8 #ifndef MOLECULARMECHANICS_HYDROGENBONDTERM_H
9 #define MOLECULARMECHANICS_HYDROGENBONDTERM_H
18 class AtomicSecondDerivativeCollection;
22 namespace MolecularMechanics {
29 using AtomIndex = int;
43 const std::vector<double>& atomicCharges)
const;
55 AtomIndex donorAtom_, hydrogenAtom_, acceptorAtom_;
62 #endif // MOLECULARMECHANICS_HYDROGENBONDTERM_H
int getHydrogenAtom() const
Getter for the hydrogen atom index.
Definition: HydrogenBondTerm.cpp:88
int getDonorAtom() const
Getter for the donor atom index.
Definition: HydrogenBondTerm.cpp:84
~HydrogenBondTerm()
Destructor.
This class evaluates the energy and its derivatives for one hydrogen bond term.
Definition: HydrogenBondTerm.h:27
Class calculating the energy and derivatives for a hydrogen bond based solely on the distance or on t...
Definition: HydrogenBond.h:20
Base class for all interaction terms.
Definition: InteractionTermBase.h:18
HydrogenBondTerm(AtomIndex donorAtom, AtomIndex hydrogenAtom, AtomIndex acceptorAtom, const HydrogenBond &hydrogenBond)
Constructor from the three corresponding atoms and an instance of the HydrogenBond class...
Definition: HydrogenBondTerm.cpp:22
int getAcceptorAtom() const
Getter for the acceptor atom index.
Definition: HydrogenBondTerm.cpp:92
double evaluateHydrogenBondTerm(const Utils::AtomCollection &structure, Utils::AtomicSecondDerivativeCollection &derivatives, const std::vector< double > &atomicCharges) const
Evaluates energy contribution and adds the derivatives.
Definition: HydrogenBondTerm.cpp:29