8 #ifndef MOLECULARMECHANICS_LENNARDJONESTERM_H
9 #define MOLECULARMECHANICS_LENNARDJONESTERM_H
20 class FullSecondDerivativeCollection;
23 namespace MolecularMechanics {
30 using AtomIndex = int;
49 AtomIndex firstAtom_, secondAtom_;
53 std::shared_ptr<double> cutoffRadius_;
59 #endif // MOLECULARMECHANICS_LENNARDJONESTERM_H
int getSecondAtom() const
Getter for index of second atom.
Definition: LennardJonesTerm.cpp:41
LennardJonesTerm(AtomIndex firstAtom, AtomIndex secondAtom, const LennardJones &lj, std::shared_ptr< double > cutoffRadius)
Constructor from two atom indices and an instance of the LennardJones class.
Definition: LennardJonesTerm.cpp:15
Class evaluating electrostatic interaction between two atoms.
Definition: LennardJonesTerm.h:28
Base class for all interaction terms.
Definition: InteractionTermBase.h:18
int getFirstAtom() const
Getter for index of first atom.
Definition: LennardJonesTerm.cpp:37
Class treating a non-bonded van der Waals interaction with a LJ potential, based solely on the bond l...
Definition: LennardJones.h:20
double evaluateLennardJonesTerm(const Utils::PositionCollection &positions, Utils::FullSecondDerivativeCollection &derivatives) const
Evaluates energy contribution and adds the derivatives.
Definition: LennardJonesTerm.cpp:20