Scine::Swoose  2.1.0
This is the SCINE module Swoose.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
Bond.h
Go to the documentation of this file.
1 
8 #ifndef MOLECULARMECHANICS_BOND_H
9 #define MOLECULARMECHANICS_BOND_H
10 
12 
13 namespace Scine {
14 namespace MolecularMechanics {
19 class Bond {
20  public:
24  Bond(double equilibriumDistance, double forceConstant);
30  Bond();
34  bool hasParameters() const;
39 
40  private:
41  double equilibriumDistance_;
42  double forceConstant_;
43  bool parametersAreAvailable_;
44 };
45 
46 } // namespace MolecularMechanics
47 } // namespace Scine
48 
49 #endif // MOLECULARMECHANICS_BOND_H
Bond()
Constructor without arguments sets both parameters to zero and records that no parameters are availab...
Definition: Bond.cpp:17
bool hasParameters() const
Returns whether parameters are available for this bond.
Definition: Bond.cpp:20
Class treating a bonded interaction, based solely on the bond length. (i.e. in 1 dimension) ...
Definition: Bond.h:19
Utils::AutomaticDifferentiation::Second1D getInteraction(double bondLength) const
Evaluates the energy and its derivatives for one bond.
Definition: Bond.cpp:24