OpenMD 3.1
Molecular Dynamics in the Open
|
A simple harmonic bend using the cosine of the angle instead of the angle itself: More...
#include <CosineBendType.hpp>
Public Member Functions | |
CosineBendType (RealType theta, RealType k) | |
void | setForceConstant (RealType k) |
RealType | getForceConstant () |
void | calcForce (RealType theta, RealType &V, RealType &dVdtheta) |
Public Member Functions inherited from OpenMD::BendType | |
BendType (RealType theta) | |
RealType | getTheta () |
void | setTheta (RealType theta) |
Additional Inherited Members | |
Protected Attributes inherited from OpenMD::BendType | |
RealType | theta0_ |
A simple harmonic bend using the cosine of the angle instead of the angle itself:
\[ V_\mathrm{bend} = (\cos(\theta) - \cos(\theta_0))^2 \]
Definition at line 65 of file CosineBendType.hpp.
|
inline |
Definition at line 67 of file CosineBendType.hpp.
|
inlinevirtual |
Implements OpenMD::BendType.
Definition at line 75 of file CosineBendType.hpp.
|
inline |
Definition at line 73 of file CosineBendType.hpp.
|
inline |
Definition at line 71 of file CosineBendType.hpp.