sc::UnrestrictedSCF(3)
π sc::UnrestrictedSCF(3) π
okay so welcome to the sc::UnrestrictedSCF(3) page from the MPQC manual, bestie. this is the main-character base class for unrestricted self-consistent-field methods, and the vibe is very βparent class handling the alpha/beta situation so you donβt have to.β fr fr.
πΈ NAME πΈ
sc::UnrestrictedSCF β a base class for unrestricted self-consistent-field methods.
β¨ SYNOPSIS β¨
#include <uscf.h>
- Inherits
sc::SCF. - Inherited by
sc::UHF, andsc::UKS.
π Public Member Functions π
UnrestrictedSCF (StateIn &)UnrestrictedSCF (const Ref< KeyVal > &)void save_data_state (StateOut &)β save the base classes (withsave_data_state) and the members in the same order that theStateInCTOR initializes them.RefSCMatrix eigenvectors ()RefDiagSCMatrix eigenvalues ()β returns the MO basis eigenvalues.RefSCMatrix oso_alpha_eigenvectors ()RefSCMatrix alpha_eigenvectors ()RefDiagSCMatrix alpha_eigenvalues ()RefSCMatrix oso_beta_eigenvectors ()RefSCMatrix beta_eigenvectors ()RefDiagSCMatrix beta_eigenvalues ()RefSymmSCMatrix alpha_density ()β return alpha electron densities in the SO basis.RefSymmSCMatrix beta_density ()β return beta electron densities in the SO basis.RefSymmSCMatrix density ()β returns the SO density.void symmetry_changed ()β call this if you have changed the molecular symmetry of the molecule contained by thisMolecularEnergy.double occupation (int, int)β returns the occupation.double alpha_occupation (int, int)β returns the alpha occupation.double beta_occupation (int, int)β returns the beta occupation.int spin_polarized ()β return1if the alpha density is not equal to the beta density.int spin_unrestricted ()β return1if the alpha orbitals are not equal to the beta orbitals.void print (std::ostream &o=ExEnv::out0()) constβ print information about the object.int n_fock_matrices () constRefSymmSCMatrix fock (int i)β returns alpha (i==0) or beta (i==1) Fock matrix in AO basis (including XC contribution in KS DFT -- compare this toCLSCFandHSOSSCF!).RefSymmSCMatrix effective_fock ()β spin-unrestricted SCF methods do not define effective Fock matrix, thus this function should never be called.void set_desired_value_accuracy (double eps)β overload ofFunction::set_desired_value_accuracy().
π¦ Protected Member Functions π¦
Ref< SCExtrapError > extrap_error ()double compute_vector (double &, double enuclear)void initial_vector (int needv=1)void set_occupations (const RefDiagSCMatrix &)void set_occupations (const RefDiagSCMatrix &, const RefDiagSCMatrix &)void init_vector ()void done_vector ()double new_density ()void reset_density ()double scf_energy ()Ref< SCExtrapData > extrap_data ()void init_gradient ()void done_gradient ()RefSymmSCMatrix lagrangian ()RefSymmSCMatrix gradient_density ()void init_hessian ()void done_hessian ()void two_body_deriv_hf (double *grad, double exchange_fraction)
π Protected Attributes π
Ref< PointGroup > most_recent_pg_int user_occupations_int tnalpha_int tnbeta_int nirrep_int * nalpha_int * nbeta_int * initial_nalpha_int * initial_nbeta_AccResultRefSCMatrix oso_eigenvectors_beta_AccResultRefDiagSCMatrix eigenvalues_beta_ResultRefSymmSCMatrix focka_ResultRefSymmSCMatrix fockb_Ref< TwoBodyInt > tbi_RefSymmSCMatrix densa_RefSymmSCMatrix densb_RefSymmSCMatrix gmata_RefSymmSCMatrix gmatb_RefSymmSCMatrix diff_densa_RefSymmSCMatrix diff_densb_
π«Ά Additional Inherited Members π«Ά
this heading shows up in the dump with no list under it, so thatβs literally the whole vibe here. donβt come for me π
π Detailed Description π
A base class for unrestricted self-consistent-field methods.
π Member Function Documentation π
double sc::UnrestrictedSCF::alpha_occupation (int irrep, int vectornum) [virtual]
Returns the alpha occupation. The irreducible representation and the vector number within that representation are given as arguments.
Reimplemented from sc::OneBodyWavefunction.
double sc::UnrestrictedSCF::beta_occupation (int irrep, int vectornum) [virtual]
Returns the beta occupation. The irreducible representation and the vector number within that representation are given as arguments.
Reimplemented from sc::OneBodyWavefunction.
RefSymmSCMatrix sc::UnrestrictedSCF::fock (int i) [virtual]
Returns alpha (i==0) or beta (i==1) Fock matrix in AO basis (including XC contribution in KS DFT -- compare this to CLSCF and HSOSSCF!). Argument i must be 0.
Implements sc::SCF.
lowkey important: the docs sayi==0is alpha andi==1is beta, and then also say argumentimust be0. both facts stay, bestie.
double sc::UnrestrictedSCF::occupation (int irrep, int vectornum) [virtual]
Returns the occupation. The irreducible representation and the vector number within that representation are given as arguments.
Implements sc::OneBodyWavefunction.
void sc::UnrestrictedSCF::save_data_state (StateOut &) [virtual]
Save the base classes (with save_data_state) and the members in the same order that the StateIn CTOR initializes them. This must be implemented by the derived class if the class has data.
Reimplemented from sc::SCF.
void sc::UnrestrictedSCF::set_desired_value_accuracy (double eps) [virtual]
Overload of Function::set_desired_value_accuracy(). Must update accuracy of the eigenvalues and eigenvectors.
Reimplemented from sc::Function.
π Author π
Generated automatically by Doxygen for MPQC from the source code.
π okay thatβs the whole manual page, bestie β Version 2.3.1, dated Sun Oct 4 2020, from the MPQC source, sc::UnrestrictedSCF(3), periodt. π
π¦ where this page comes from
- ubuntu jammy: libsc-doc 2.3.1-21
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms