sc::FinDispMolecularHessian(3)
NAME
okay bestie, welcome to the MPQC manual page for sc::FinDispMolecularHessian(3) π β the class that computes the molecular hessian by finite displacements of gradients. No cap, thatβs the whole vibe. periodt β¨
SYNOPSIS
#include <fdhess.h>
Inherits sc::MolecularHessian.
Public Member Functions
FinDispMolecularHessian (const Ref< MolecularEnergy > &)FinDispMolecularHessian (const Ref< KeyVal > &)β TheFinDispMolecularHessianKeyVal constructor is used to generate aFinDispMolecularHessianobject from the input.FinDispMolecularHessian (StateIn &)void save_data_state (StateOut &)β Save the base classes (withsave_data_state) and the members in the same order that theStateInCTOR initializes them.RefSymmSCMatrix compute_hessian_from_gradients ()β These members are used to compute a cartesian hessian from gradients at finite displacements.int ndisplace () constint ndisplacements_done () constRefSCMatrix displacements (int irrep) constvoid displace (int disp)void original_geometry ()void set_gradient (int disp, const RefSCVector &grad)void checkpoint_displacements (StateOut &)void restore_displacements (StateIn &)RefSymmSCMatrix cartesian_hessian ()β This returns the cartesian hessian.void set_checkpoint (int c)β Set checkpoint option.int checkpoint () constβ Return the current value of the checkpoint option.void set_energy (const Ref< MolecularEnergy > &energy)β SomeMolecularHessianspecializations require a molecular energy object.MolecularEnergy * energy () constβ This returns aMolecularEnergyobject, if used by this specialization.Ref< SCMatrixKit > matrixkit () constRefSCDimension d3natom () const
Protected Member Functions
void get_disp (int disp, int &irrep, int &index, double &coef)void do_hess_for_irrep (int irrep, const RefSymmSCMatrix &dhessian, const RefSymmSCMatrix &xhessian)void init ()void restart ()
Protected Attributes
Ref< MolecularEnergy > mole_Ref< PointGroup > displacement_point_group_Ref< PointGroup > original_point_group_RefSCVector original_geometry_double disp_double accuracy_int ndisp_int nirrep_int restart_char * restart_file_int checkpoint_char * checkpoint_file_int only_totally_symmetric_int eliminate_cubic_terms_int do_null_displacement_int debug_RefSCMatrix symbasis_RefSCVector * gradients_
Additional Inherited Members
This class also has inherited members from its base classes; the original page keeps this heading and doesnβt spell them out here. β¨
Detailed Description
Bestie, this computes the molecular hessian by finite displacements of gradients. It will use the minimum number of displacements, each in the highest possible point group. iconic efficiency π
Constructor & Destructor Documentation
sc::FinDispMolecularHessian::FinDispMolecularHessian (const Ref< KeyVal > &)
The FinDispMolecularHessian KeyVal constructor is used to generate a FinDispMolecularHessian object from the input. It reads the keywords below. The original page lays out Keyword / Type / Default / Description, and here is every single one:
energyβ typeMolecularEnergy, defaultnone. This gives an object which will be used to compute the gradients needed to form the hessian. If this is not specified, the object usingFinDispMolecularHessianwill, in some cases, fill it in appropriately. However, even in these cases, it may be desirable to specify this keyword. For example, this could be used in an optimization to compute frequencies using a lower level of theory.debugβ typeboolean, defaultfalse. If true, print out debugging information.point_groupβ typePointGroup, defaultnone. The point group to use for generating the displacements.restartβ typeboolean, defaulttrue. If true, and a checkpoint file exists, restart from that file.restart_fileβ typestring, defaultbasename.ckpt.hess. The name of the file where checkpoint information is written to or read from.checkpointβ typeboolean, defaulttrue. If true, checkpoint intermediate data.only_totally_symmetricβ typeboolean, defaultfalse. If true, only follow totally symmetric displacements. The hessian will not be complete, but it has enough information to use it in a geometry optimization.eliminate_cubic_termsβ typeboolean, defaulttrue. If true, then cubic terms will be eliminated. This requires that two displacements are done for each totally symmetric coordinate, rather than one. Setting this to false will reduce the accuracy, but the results will still probably be accurate enough for a geometry optimization.do_null_displacementβ typeboolean, defaulttrue. Run the calculation at the given geometry as well.displacementβ typedouble, default1.0e-2. The size of the displacement in Bohr.gradient_accuracyβ typedouble, defaultdisplacement / 1000. The accuracy to which the gradients will be computed.
Member Function Documentation
RefSymmSCMatrix sc::FinDispMolecularHessian::cartesian_hessian () [virtual]
This returns the cartesian hessian. If it has not yet been computed, it will be computed by finite displacements.
Implements sc::MolecularHessian.
MolecularEnergy* sc::FinDispMolecularHessian::energy () const [virtual]
This returns a MolecularEnergy object, if used by this specialization. Otherwise null is returned.
Reimplemented from sc::MolecularHessian.
void sc::FinDispMolecularHessian::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::SavableState.
void sc::FinDispMolecularHessian::set_energy (const Ref< MolecularEnergy > &energy) [virtual]
Some MolecularHessian specializations require a molecular energy object. The default implementations of this ignores the argument.
Reimplemented from sc::MolecularHessian.
Author
Generated automatically by Doxygen for MPQC from the source code.
Catch you later, bestie β this page is from MPQC version 2.3.1, dated Sun Oct 4 2020. slay and stay hydrated π
β¨π«Ά
π¦ 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