Scine::Swoose  2.1.0
This is the SCINE module Swoose.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
LennardJones.h
Go to the documentation of this file.
1 
8 #ifndef MOLECULARMECHANICS_LENNARDJONES_H
9 #define MOLECULARMECHANICS_LENNARDJONES_H
10 
12 
13 namespace Scine {
14 namespace MolecularMechanics {
20 class LennardJones {
21  public:
26  LennardJones(double aij, double bij);
32  LennardJones();
36  bool hasParameters() const;
41 
42  private:
43  double aij_;
44  double bij_;
45  bool parametersAreAvailable_;
46 };
47 
48 } // namespace MolecularMechanics
49 } // namespace Scine
50 
51 #endif // MOLECULARMECHANICS_LENNARDJONES_H
double distance(const PositionCollection &p1, const PositionCollection &p2)
Utils::AutomaticDifferentiation::Second1D getInteraction(double distance) const
Evaluates the energy and its derivatives for one LJ term.
Definition: LennardJones.cpp:24
bool hasParameters() const
Returns whether parameters are available for this LJ.
Definition: LennardJones.cpp:20
Class treating a non-bonded van der Waals interaction with a LJ potential, based solely on the bond l...
Definition: LennardJones.h:20
LennardJones()
Constructor without arguments sets both parameters to zero and records that no parameters are availab...
Definition: LennardJones.cpp:17