sc::OneBodyWavefunction(3)
π sc::OneBodyWavefunction(3) β MPQC manual π
okay bestie, welcome to the MPQC manual page for sc::OneBodyWavefunction(3). itβs giving big class-hierarchy energy, but weβre gonna make it make sense. πβ¨
π NAME π
sc::OneBodyWavefunction is a MolecularEnergy that solves an effective one-body problem. thatβs the whole vibe β slay. π
πΈ SYNOPSIS πΈ
#include <obwfn.h>
- Inherits
sc::Wavefunction. - Inherited by
sc::ExtendedHuckelWfn,sc::HCoreWfn, andsc::SCF.
π Public Member Functions π
OneBodyWavefunction (StateIn &)OneBodyWavefunction (const Ref< KeyVal > &)β the KeyVal constructor.void save_data_state (StateOut &)β saves the base classes (withsave_data_state) and the members in the same order that theStateInCTOR initializes them.int nelectron ()β returns the number of electrons.void set_desired_value_accuracy (double eps)β overload ofFunction::set_desired_value_accuracy().RefSCMatrix so_to_mo ()β returns the SO to MO transformation matrix.RefSCMatrix orthog_so_to_mo ()β returns the orthogonal-SO to MO transformation matrix.RefSCMatrix mo_to_so ()β returns the MO to SO transformation matrix.RefSCMatrix mo_to_orthog_so ()β returns the MO to orthogonal-SO transformation matrix.RefSCMatrix eigenvectors ()β deprecated.virtual RefSCMatrix oso_eigenvectors ()=0β returns the orthogonal MO (columns) to orthogonal-SO (rows) transformation matrix.virtual RefDiagSCMatrix eigenvalues ()=0β returns the MO basis eigenvalues.virtual double occupation (int irrep, int vectornum)=0β returns the occupation.double occupation (int vectornum)β returns the occupation.virtual int spin_unrestricted ()=0β return1if the alpha orbitals are not equal to the beta orbitals.virtual double alpha_occupation (int irrep, int vectornum)β returns the alpha occupation.virtual double beta_occupation (int irrep, int vectornum)β returns the beta occupation.double alpha_occupation (int vectornum)β returns the alpha occupation.double beta_occupation (int vectornum)β returns the beta occupation.virtual RefSCMatrix oso_alpha_eigenvectors ()virtual RefSCMatrix oso_beta_eigenvectors ()virtual RefSCMatrix alpha_eigenvectors ()virtual RefSCMatrix beta_eigenvectors ()virtual RefDiagSCMatrix alpha_eigenvalues ()virtual RefDiagSCMatrix beta_eigenvalues ()virtual RefDiagSCMatrix projected_eigenvalues (const Ref< OneBodyWavefunction > &, int alp=1)virtual RefSCMatrix projected_eigenvectors (const Ref< OneBodyWavefunction > &, int alp=1)β projects the density into the current basis set.virtual RefSCMatrix hcore_guess ()β return a guess vector.virtual RefSCMatrix hcore_guess (RefDiagSCMatrix &val)β return a guess vector and the eigenvalues.void symmetry_changed ()β call this if you have changed the molecular symmetry of the molecule contained by thisMolecularEnergy.double orbital (const SCVector3 &r, int iorb)double orbital_density (const SCVector3 &r, int iorb, double *orbval=0)void print (std::ostream &o=ExEnv::out0()) constβ print information about the object.
π§ Protected Member Functions π§
void init_sym_info ()int form_occupations (int *&newocc, const int *oldocc)
π Protected Attributes π
ResultRefSymmSCMatrix density_AccResultRefSCMatrix oso_eigenvectors_AccResultRefDiagSCMatrix eigenvalues_int nirrep_int * nvecperirrep_double * occupations_double * alpha_occupations_double * beta_occupations_
π Additional Inherited Members π
the original page just leaves this heading here with no extra list. iconic minimalism, honestly. π
π Detailed Description π
A OneBodyWavefunction is a MolecularEnergy that solves an effective one-body problem. periodt. β¨
π Constructor & Destructor Documentation π
π« sc::OneBodyWavefunction::OneBodyWavefunction (const Ref< KeyVal > &)
the KeyVal constructor. π«Ά
π
eigenvector_accuracy
gives the accuracy to which eigenvectors are initially computed. the default is 1.0e-7. accuracies are usually adjusted as needed anyway, so it should not be necessary to change this. no cap. πΈ
π₯ Member Function Documentation π₯
π virtual double sc::OneBodyWavefunction::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 in sc::UnrestrictedSCF, sc::HSOSSCF, sc::TCSCF, and sc::OSSSCF.
π double sc::OneBodyWavefunction::alpha_occupation (int vectornum)
returns the alpha occupation. the vector number in the MO basis is given as an argument. π
π virtual double sc::OneBodyWavefunction::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 in sc::UnrestrictedSCF, sc::HSOSSCF, sc::TCSCF, and sc::OSSSCF.
π double sc::OneBodyWavefunction::beta_occupation (int vectornum)
returns the beta occupation. the vector number in the MO basis is given as an argument. π«Ά
π RefSCMatrix sc::OneBodyWavefunction::eigenvectors ()
deprecated. use so_to_mo().t() instead. β οΈ
π virtual RefSCMatrix sc::OneBodyWavefunction::hcore_guess () [virtual]
return a guess vector. the guess transforms the orthogonal SO basis to the MO basis. β¨
π virtual RefSCMatrix sc::OneBodyWavefunction::hcore_guess (RefDiagSCMatrix & val) [virtual]
return a guess vector and the eigenvalues. the guess transforms the orthogonal SO basis to the MO basis. storage for the eigenvalues will be allocated. π
π RefSCMatrix sc::OneBodyWavefunction::mo_to_orthog_so ()
returns the MO to orthogonal-SO transformation matrix. this returns the same matrix as oso_eigenvectors(). π
π virtual double sc::OneBodyWavefunction::occupation (int irrep, int vectornum) [pure virtual]
returns the occupation. the irreducible representation and the vector number within that representation are given as arguments.
Implemented in sc::UnrestrictedSCF, sc::HCoreWfn, sc::HSOSSCF, sc::CLSCF, sc::ExtendedHuckelWfn, sc::TCSCF, and sc::OSSSCF.
π double sc::OneBodyWavefunction::occupation (int vectornum)
returns the occupation. the vector number in the MO basis is given as an argument. πΈ
π virtual RefSCMatrix sc::OneBodyWavefunction::projected_eigenvectors (const Ref< OneBodyWavefunction > &, int alp = 1) [virtual]
projects the density into the current basis set. returns an orthogonalized SO to MO transformation with the orbitals. β¨
π void sc::OneBodyWavefunction::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::MolecularEnergy.
Reimplemented in sc::HCoreWfn.
π void sc::OneBodyWavefunction::set_desired_value_accuracy (double eps) [virtual]
overload of Function::set_desired_value_accuracy(). must update accuracy of the eigenvectors and the eigenvalues.
Reimplemented from sc::Function.
β Author β
Generated automatically by Doxygen for MPQC from the source code. π«Ά
mwah π thatβs the whole page, bestie. itβs from MPQC source/version 2.3.1, dated Sun Oct 4 2020, and itβs the sc::OneBodyWavefunction(3) manual page. byeee π¦β¨
π¦ 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