sc::MolecularEnergy(3)
π sc::MolecularEnergy(3) β the MolecularEnergy abstract class, bestie edition π
Okay so this is from the MPQC manual, section 3. The header says sc::MolecularEnergy(3), and the whole vibe is: this is the MolecularEnergy abstract class, and it inherits from the Function class. Yes bestie, that's the NAME section. Slay.
πΈ NAME πΈ
sc::MolecularEnergy β The MolecularEnergy abstract class inherits from the Function class. Periodt.
β¨ SYNOPSIS β¨
#include <energy.h>
Inherits sc::Function.
Inherited by sc::SumMolecularEnergy, sc::TaylorMolecularEnergy, and sc::Wavefunction.
π«Ά Public Member Functions
MolecularEnergy (const MolecularEnergy &)β copy constructor energy.MolecularEnergy (const Ref< KeyVal > &)β TheKeyValconstructor. Keywords are below, bestie πMolecularEnergy (StateIn &)β constructor fromStateIn.void save_data_state (StateOut &)β Save the base classes (withsave_data_state) and the members in the same order that theStateInCTOR initializes them.void set_checkpoint ()β Set up checkpointing.void set_checkpoint_file (const char *)β signature only, no extra tea in the manual.void set_checkpoint_freq (int freq)β signature only, no extra tea in the manual.bool if_to_checkpoint () constβ Check if need to checkpoint.const char * checkpoint_file () constβ signature only, no extra tea in the manual.int checkpoint_freq () constβ signature only, no extra tea in the manual.MolecularEnergy & operator= (const MolecularEnergy &)β assignment operator.virtual double energy ()β A wrapper aroundvalue().virtual Ref< Molecule > molecule () constβ signature only, no extra tea in the manual.virtual RefSCDimension moldim () constβ signature only, no extra tea in the manual.void guess_hessian (RefSymmSCMatrix &)β Compute a quick, approximate hessian.RefSymmSCMatrix inverse_hessian (RefSymmSCMatrix &)β signature only, no extra tea in the manual.RefSymmSCMatrix hessian ()β If a molecule hessian object is given, it will be used to provide a hessian.int hessian_implemented () constβ signature only, no extra tea in the manual.void set_x (const RefSCVector &)β Set and retrieve the coordinate values.RefSCVector get_cartesian_x ()β Return the cartesian coordinates.RefSCVector get_cartesian_gradient ()β Return the cartesian gradient.RefSymmSCMatrix get_cartesian_hessian ()β Return the cartesian hessian.Ref< MolecularCoor > molecularcoor ()β signature only, no extra tea in the manual.virtual void symmetry_changed ()β Call this if you have changed the molecular symmetry of the molecule contained by thisMolecularEnergy.Ref< NonlinearTransform > change_coordinates ()β An optimizer can call change coordinates periodically to give the function an opportunity to change its coordinate system.void print_natom_3 (const RefSCVector &, const char *t=0, std::ostream &o=ExEnv::out0()) constβ Nicely print n x 3 data that are stored in a vector.void print_natom_3 (double **, const char *t=0, std::ostream &o=ExEnv::out0()) constβ another overload, same name, same signature energy.void print_natom_3 (double *, const char *t=0, std::ostream &o=ExEnv::out0()) constβ another overload, same name, same signature energy.virtual void print (std::ostream &=ExEnv::out0()) constβ Print information about the object.
π‘οΈ Protected Member Functions
void failure (const char *)β signature only, no extra tea in the manual.virtual void set_energy (double)β This is just a wrapper aroundset_value().virtual void set_gradient (RefSCVector &)β These are passed gradients and hessian in cartesian coordinates.virtual void set_hessian (RefSymmSCMatrix &)β signature only, no extra tea in the manual.void x_to_molecule ()β signature only, no extra tea in the manual.void molecule_to_x ()β signature only, no extra tea in the manual.
π Protected Attributes
Ref< PointGroup > initial_pg_β protected attribute, right there in the manual.int print_molecule_when_changed_β protected attribute, right there in the manual.
𧬠Additional Inherited Members
There are additional inherited members from the base class, bestie. The manual just drops this heading here and keeps it moving.
π DETAILED DESCRIPTION π
The MolecularEnergy abstract class inherits from the Function class.
It computes the energy of the molecule as a function of the geometry. The coordinate system used can be either internal or cartesian.
π CONSTRUCTOR & DESTRUCTOR DOCUMENTATION π
π sc::MolecularEnergy::MolecularEnergy (const Ref< KeyVal > &) π
The KeyVal constructor. Here are the keywords it reads, no cap:
moleculeβ AMoleculeobject. There is no default.coorβ AMolecularCoorobject that describes the coordinates. If this is not given cartesian coordinates will be used. For convenience, two keywords needed by theMolecularCoorobject are automatically provided:natom3andmatrixkit.value_accuracyβ Sets the accuracy to which values are computed. The default is1.0e-6atomic units.gradient_accuracyβ Sets the accuracy to which gradients are computed. The default is1.0e-6atomic units.hessian_accuracyβ Sets the accuracy to which hessians are computed. The default is1.0e-4atomic units.hessianβ Specifies aMolecularHessianobject that is used to compute the hessian. If thisMolecularEnergyspecialization does not provide a hessian of its own, and a hessian is needed, then this keyword must be specified.guess_hessianβ Specifies aMolecularHessianobject that is used to compute a guess hessian. Guess hessians are used to improve the rate of convergence of optimizations. If this keyword is not specified, and aMolecularCoorobject is given bycoor, then the guess hessian is obtained from theMolecularCoorobject. If neither this norcoorare given, thenFunction::guess_hessianis used, which returns a unit matrix.print_molecule_when_changedβ If true, then whenever the molecule's coordinates are updated they will be printed. The default is true.checkpointβ If true, then this object will be checkpointed during its evaluation. Not all implementations ofMolecularEnergysupport checkpointing. The default is false.checkpoint_fileβ Specifies the name of the file into which this object will be checkpointed. Default is'<inpubasename>.ckpt', where'<inputbasename>'is the name of the input file without'.in'.checkpoint_freqβ Specifies how often this object to be checkpointed. Only matters for objects which are computed iteratively. Default is1.
π₯ MEMBER FUNCTION DOCUMENTATION π₯
π Ref<NonlinearTransform> sc::MolecularEnergy::change_coordinates () [virtual] π
An optimizer can call change coordinates periodically to give the function an opportunity to change its coordinate system. A return value of 0 means the coordinates were not changed. Otherwise, a transform object to the new coordinate system is return. The function object applies the transform to any objects it contains. This will obsolete the function data.
Reimplemented from sc::Function.
π¦ void sc::MolecularEnergy::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::Function.
Reimplemented in sc::MBPT2, sc::MBPT2_R12, sc::SumMolecularEnergy, sc::HCoreWfn, sc::SCF, sc::PsiCCSD_T, sc::PsiCCSD, sc::Wavefunction, sc::HSOSSCF, sc::PsiSCF, sc::HSOSKS, sc::OneBodyWavefunction, sc::UKS, sc::CLSCF, sc::CLKS, sc::UnrestrictedSCF, sc::TaylorMolecularEnergy, sc::TCSCF, sc::ExtendedHuckelWfn, sc::OSSSCF, sc::PsiWavefunction, sc::UHF, sc::CLHF, sc::HSOSHF, sc::MP2BasisExtrap, sc::OSSHF, and sc::TCHF.
π virtual void sc::MolecularEnergy::set_gradient (RefSCVector &) [protected], [virtual] π
These are passed gradients and hessian in cartesian coordinates. The gradient and hessian in internal coordinates are computed.
Reimplemented from sc::Function.
π¦ AUTHOR π¦
Generated automatically by Doxygen for MPQC from the source code.
π cute sign-off: that's the whole page from MPQC β Version 2.3.1, dated Sun Oct 4 2020. Bye bestie, go compute some energies π
β¨
π¦ 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