|
AvogadroLibs 2.1.0-20261111
|
Something that can be measured once per coordinate set. More...
#include <conformerquantity.h>
Public Types | |
| enum class | Type { Frame , Time , Rmsd , Energy , Forces , MeanSpeed , Temperature , Coordinate } |
Public Member Functions | |
| ConformerQuantity (Type quantityType) | |
| ConformerQuantity (const Constraint &coordinate) | |
| Type | type () const |
| const Constraint & | coordinate () const |
| std::string | identifier () const |
| std::string | unit () const |
| bool | operator== (const ConformerQuantity &other) const |
| bool | operator!= (const ConformerQuantity &other) const |
<avogadro/core/conformerquantity.h>
A molecule holding several coordinate sets – conformers, the steps of a relaxed scan, the frames of a dynamics run – can be asked for any number of quantities that take one value per set: its energy, how far it has moved, how hot it is, or the bond length someone is scanning. This names one of them, and the free functions below enumerate and evaluate them, so that a plot and a table put the same list in front of the user.
The values are unit-bearing but carry no unit conversion of their own; see unit() for what each one is measured in.
|
strong |
| const Constraint & coordinate | ( | ) | const |
| std::string identifier | ( | ) | const |
The quantities available change as constraints are added and atoms are deleted, so a position in the list is no way to remember which one the user was looking at. A coordinate is named by the atoms it measures, everything else by its type; the two cannot collide, since only a coordinate carries a separator.
| std::string unit | ( | ) | const |
For an Energy quantity, ask energyUnit() of the molecule instead: a reader that knows what its program writes records it there.
Not translated: these are symbols, and the same in every locale.