Scine::Swoose  2.1.0
This is the SCINE module Swoose.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
ImproperDihedral.h
Go to the documentation of this file.
1 
8 #ifndef MMIMPROPERDIHEDRAL_H
9 #define MMIMPROPERDIHEDRAL_H
10 
12 
13 namespace Scine {
14 namespace MolecularMechanics {
20  public:
24  ImproperDihedral(double forceConstant, double equilibriumAngle);
35  bool hasParameters() const;
43  static double getPlanarGroupThreshold();
44 
45  private:
46  double forceConstant_;
47  double equilibriumAngle_;
48  bool parametersAreAvailable_;
49  static constexpr double planarGroupThreshold_ = 20.0;
50 };
51 
52 } // namespace MolecularMechanics
53 } // namespace Scine
54 
55 #endif // MMIMPROPERDIHEDRAL_H
static double getPlanarGroupThreshold()
Getter for the threshold that decides whether a group is considered planar for improper dihedrals...
Definition: ImproperDihedral.cpp:43
Class treating an improper dihedral interaction, based solely on the angle (in rad), i.e. in 1 dimension.
Definition: ImproperDihedral.h:19
bool hasParameters() const
Returns whether parameters are available for this improper dihedral.
Definition: ImproperDihedral.cpp:25
ImproperDihedral()
Constructor without arguments sets both parameters to zero and records that no parameters are availab...
Definition: ImproperDihedral.cpp:22
Utils::AutomaticDifferentiation::Second1D getInteraction(double angle) const
Calculates the energy and its derivative for a given angle.
Definition: ImproperDihedral.cpp:31