Scine::Swoose  2.1.0
This is the SCINE module Swoose.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
DihedralParameters.h
Go to the documentation of this file.
1 
8 #ifndef MOLECULARMECHANICS_DIHEDRALPARAMETERS_H
9 #define MOLECULARMECHANICS_DIHEDRALPARAMETERS_H
10 
11 #include "../Interactions/Dihedral.h"
12 
13 namespace Scine {
14 namespace MolecularMechanics {
20  public:
26  DihedralParameters(double halfBarrierHeight, double phaseShift, int periodicity);
27 
31  Dihedral toMMDihedral() const;
32 
36  bool isZero() const;
37 
39  void setHalfBarrierHeight(const double& hbh);
41  void setPhaseShift(const double& ps);
43  void setPeriodicity(const int& p);
45  double getHalfBarrierHeight() const;
47  double getPhaseShift() const;
49  int getPeriodicity() const;
50 
51  private:
52  double halfBarrierHeight_; // unit: kcal/mol
53  double phaseShift_; // unit: degrees
54  int periodicity_;
55 };
56 
57 } // namespace MolecularMechanics
58 } // namespace Scine
59 
60 #endif // MOLECULARMECHANICS_DIHEDRALPARAMETERS_H
void setPeriodicity(const int &p)
Setter for the periodicity.
Definition: DihedralParameters.cpp:36
void setHalfBarrierHeight(const double &hbh)
Setter for the half barrier height.
Definition: DihedralParameters.cpp:28
bool isZero() const
Tells if the dihedral has no contribution.
Definition: DihedralParameters.cpp:24
Class treating a dihedral interaction, based solely on the angle (in rad), i.e. in 1 dimension...
Definition: Dihedral.h:19
Class containing the parameters for an MM dihedral.
Definition: DihedralParameters.h:19
double getPhaseShift() const
Getter for the phase shift.
Definition: DihedralParameters.cpp:48
int getPeriodicity() const
Getter for the periodicity.
Definition: DihedralParameters.cpp:44
double getHalfBarrierHeight() const
Getter for the half barrier height.
Definition: DihedralParameters.cpp:40
Dihedral toMMDihedral() const
Method returning the MMDihedral analogon with the right unit conversions to be used in the calculatio...
Definition: DihedralParameters.cpp:19
DihedralParameters(double halfBarrierHeight, double phaseShift, int periodicity)
Constructor.
Definition: DihedralParameters.cpp:15
void setPhaseShift(const double &ps)
Setter for the phase shift.
Definition: DihedralParameters.cpp:32