sc::SimpleCo(3)

πŸ“¦
version 2.3.1 Β· 5 versions
, in ubuntu jammy

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 optional char* argument is a label for the coordinate, and it gets passed on to the IntCoor constructor. 🫢
  • SimpleCo (const Ref< KeyVal > &, int natom) β€” the KeyVal constructor requires the number of atoms. That’s the natom part, 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 (with save_data_state) and the members in the same order that the StateIn CTOR 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 from sc::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 the Molecule. 🌸
  • void bmat (const Ref< Molecule > &, RefSCVector &bmat, double coef=1.0) β€” fills in a row of the B matrix. The coefficient defaults to 1.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 in Molecule. The detailed docs below say: 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.
  • 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 implements sc::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. πŸŽ€

  1. 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, 1 and 2, is given, in the ParsedKeyVal format, as:
         stretch<StreSimpleCo>: [ R12 1 2 ]
  1. The other two ways to specify the atoms are more general. With them, it is possible to give parameters for the IntCoor base class (and thus give the value of the coordinate). In the first of these input formats, a vector associated with the keyword atoms gives the atom numbers. The following specification for stretch is equivalent to that above:
         stretch<StreSimpleCo>:( label = R12 atoms = [ 1 2 ] )
  1. In the second, a vector, atom_labels, is given along with a Molecule object. The atom labels are looked up in the Molecule object to find the atom numbers. The following specification for stretch is 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