|
Chemical Data Processing Library C++ API - Version 1.1.0
|
Go to the documentation of this file.
29 #ifndef CDPL_FORCEFIELD_ELASTICPOTENTIAL_HPP
30 #define CDPL_FORCEFIELD_ELASTICPOTENTIAL_HPP
50 ElasticPotential(std::size_t atom1_idx, std::size_t atom2_idx,
double force_const,
double ref_length):
51 atom1Idx(atom1_idx), atom2Idx(atom2_idx), forceConst(force_const), refLength(ref_length) {}
87 #endif // CDPL_FORCEFIELD_ELASTICPOTENTIAL_HPP
Definition of the preprocessor macro CDPL_FORCEFIELD_API.
ElasticPotential(std::size_t atom1_idx, std::size_t atom2_idx, double force_const, double ref_length)
Definition: ElasticPotential.hpp:50
Definition: ElasticPotential.hpp:47
std::size_t getAtom1Index() const
Definition: ElasticPotential.hpp:53
void setReferenceLength(double length)
Definition: ElasticPotential.hpp:73
double getForceConstant() const
Definition: ElasticPotential.hpp:63
The namespace of the Chemical Data Processing Library.
double getReferenceLength() const
Definition: ElasticPotential.hpp:68
std::size_t getAtom2Index() const
Definition: ElasticPotential.hpp:58
#define CDPL_FORCEFIELD_API
Tells the compiler/linker which classes, functions and variables are part of the library API.
VectorNorm2< E >::ResultType length(const VectorExpression< E > &e)
Definition: VectorExpression.hpp:553