8 #ifndef MOLECULARMECHANICS_BONDEDTERM_H
9 #define MOLECULARMECHANICS_BONDEDTERM_H
11 #include "../Topology/BondType.h"
20 class AtomicSecondDerivativeCollection;
23 namespace MolecularMechanics {
30 using AtomIndex = int;
57 AtomIndex firstAtom_, secondAtom_;
65 #endif // MOLECULARMECHANICS_BONDEDTERM_H
Describes a bond uniquely for given atom types. (useful for maps/unordered_maps)
Definition: BondType.h:25
BondedTerm(AtomIndex firstAtom, AtomIndex secondAtom, const Bond &bond, const BondType &typeOfBond)
Constructor from two atom indices and instances of Bond and BondType classes.
Definition: BondedTerm.cpp:16
int getFirstAtom() const
Getter for first atom.
Definition: BondedTerm.cpp:42
Class treating a bonded interaction, based solely on the bond length. (i.e. in 1 dimension) ...
Definition: Bond.h:19
double evaluateBondTerm(const Utils::PositionCollection &positions, Utils::AtomicSecondDerivativeCollection &derivatives) const
Evaluates energy contribution and adds the derivatives.
Definition: BondedTerm.cpp:22
Base class for all interaction terms.
Definition: InteractionTermBase.h:18
BondType getTypeOfBond() const
Getter for the bond type.
Definition: BondedTerm.cpp:38
int getSecondAtom() const
Getter for second atom.
Definition: BondedTerm.cpp:46
Class evaluating harmonic bonded interaction between two atoms.
Definition: BondedTerm.h:28