sc::SimpleCo(3)
sc::SimpleCo(3) π
okay so welcome to the MPQC manual, bestie β this page is all about sc::SimpleCo, and itβs giving βabstract internal-coordinate blueprintβ energy. π
πΈ NAME πΈ
sc::SimpleCo β the SimpleCo abstract class describes a simple internal coordinate of a molecule. β¨
β¨ SYNOPSIS β¨
#include <simple.h>
Inherits sc::IntCoor.
Inherited by sc::BendSimpleCo, sc::LinIPSimpleCo, sc::LinOPSimpleCo, sc::OutSimpleCo, sc::ScaledTorsSimpleCo, sc::StreSimpleCo, and sc::TorsSimpleCo.
π Public Member Functions π
SimpleCo (int, const char *=0)β okay so this constructor takes an integer argument, and that integer is the number of atoms needed to describe the coordinate. The second optionalchar*argument is a label for the coordinate, and it gets passed on to theIntCoorconstructor. π«ΆSimpleCo (const Ref< KeyVal > &, int natom)β the KeyVal constructor requires the number of atoms. Thatβs thenatompart, bestie.int natoms () constβ returns the number of atoms in the coordinate. slay. β¨int operator[] (int i) constβ returns the index of the *i*βth atom in the coordinate.void save_data_state (StateOut &)β saves the base classes (withsave_data_state) and the members in the same order that theStateInCTOR initializes them. The detailed docs below add that this must be implemented by the derived class if the class has data, and that itβs reimplemented fromsc::IntCoor. πΎSimpleCo (StateIn &)β signature only in this list; no extra description given here.virtual int operator== (SimpleCo &)β signature only in this list; no extra description given here.int operator!= (SimpleCo &u)β signature only in this list; no extra description given here.double force_constant (Ref< Molecule > &)β returns an approximate force constant (a la Almlof). π₯void update_value (const Ref< Molecule > &)β recalculates the value of the coordinate based on the geometry in theMolecule. πΈvoid bmat (const Ref< Molecule > &, RefSCVector &bmat, double coef=1.0)β fills in a row of the B matrix. The coefficient defaults to1.0. β¨virtual double calc_force_con (Molecule &)=0β calculates an approximate force constant and returns its value.virtual double calc_intco (Molecule &, double *=0, double=1)=0β calculates the value of the coordinate based on whatβs inMolecule. The detailed docs below say: if given adouble*, fill in that part of the B matrix; if the bmatrix is to be calculated, the third argument gives the coefficient.void print_details (const Ref< Molecule > &, std::ostream &=ExEnv::out0()) constβ prints the coordinate. π¨οΈint equivalent (Ref< IntCoor > &)β tests to see if two coordinates are equivalent to each other; the detailed docs below say itβs false if the atoms donβt match, and it implementssc::IntCoor.
π‘οΈ Protected Attributes π‘οΈ
int natoms_β protected attribute, exactly as listed.int * atomsβ protected attribute, exactly as listed.
π Additional Inherited Members π
This heading is here in the original, but there are literally no extra inherited members listed under it on this page. Thatβs the whole vibe. π«Ά
π Detailed Description π
The SimpleCo abstract class describes a simple internal coordinate of a molecule. β¨
The number of atoms involved can be 2, 3 or 4, and it is determined by the specialization of SimpleCo. No cap.
There are three ways to specify the atoms involved in the internal coordinate. π
- The first way is a shorthand notation: just a vector of a label followed by the atom numbers (starting at
1) is given. For example, a stretch between two atoms,1and2, is given, in the ParsedKeyVal format, as:
stretch<StreSimpleCo>: [ R12 1 2 ]
- The other two ways to specify the atoms are more general. With them, it is possible to give parameters for the
IntCoorbase class (and thus give the value of the coordinate). In the first of these input formats, a vector associated with the keywordatomsgives the atom numbers. The following specification forstretchis equivalent to that above:
stretch<StreSimpleCo>:( label = R12 atoms = [ 1 2 ] )
- In the second, a vector,
atom_labels, is given along with aMoleculeobject. The atom labels are looked up in theMoleculeobject to find the atom numbers. The following specification forstretchis equivalent to those above:
molecule<Molecule>: (
{ atom_labels atoms geometry } = {
H1 H [ 1.0 0.0 0.0 ]
H2 H [-1.0 0.0 0.0 ] } )
stretch<StreSimpleCo>:( label = R12
atom_labels = [ H1 H2 ]
molecule = $:molecule )
π§ Constructor & Destructor Documentation π§
sc::SimpleCo::SimpleCo (int, const char * = 0)
This constructor takes an integer argument which is the number of atoms needed to describe the coordinate. A second optional char* argument is a label for the coordinate. This argument is passed on to the IntCoor constructor. π«Ά
π₯ Member Function Documentation π₯
virtual double sc::SimpleCo::calc_intco (Molecule &, double * = 0, double = 1) [pure virtual]
Calculate the value of the coordinate based on whatβs in Molecule. If given a double*, fill in that part of the B matrix. If the bmatrix is to be calculated, the third argument gives the coefficient. pure virtual, bestie. π
int sc::SimpleCo::equivalent (Ref< IntCoor > &) [virtual]
Tests to see if two coordinates are equivalent to each other. This is false if the atoms donβt match.
Implements sc::IntCoor.
void sc::SimpleCo::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::IntCoor.
π Author π
Generated automatically by Doxygen for MPQC from the source code. π«Ά
okay thatβs the tea: Version 2.3.1, Sun Oct 4 2020, from the MPQC manual. 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