OpenMD 3.0
Molecular Dynamics in the Open
Loading...
Searching...
No Matches
OpenMD::HarmonicSineBendType Class Reference

A bend using the square of the sine of the angle instead of the angle itself: More...

#include <HarmonicSineBendType.hpp>

+ Inheritance diagram for OpenMD::HarmonicSineBendType:

Public Member Functions

 HarmonicSineBendType (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_
 

Detailed Description

A bend using the square of the sine of the angle instead of the angle itself:

\[ Vbend = \frac{1}{8} k_\theta \sin^2( 2 \theta) \]

Definition at line 65 of file HarmonicSineBendType.hpp.

Constructor & Destructor Documentation

◆ HarmonicSineBendType()

OpenMD::HarmonicSineBendType::HarmonicSineBendType ( RealType k)
inline

Definition at line 67 of file HarmonicSineBendType.hpp.

Member Function Documentation

◆ calcForce()

void OpenMD::HarmonicSineBendType::calcForce ( RealType theta,
RealType & V,
RealType & dVdtheta )
inlinevirtual

Implements OpenMD::BendType.

Definition at line 72 of file HarmonicSineBendType.hpp.

◆ getForceConstant()

RealType OpenMD::HarmonicSineBendType::getForceConstant ( )
inline

Definition at line 70 of file HarmonicSineBendType.hpp.

◆ setForceConstant()

void OpenMD::HarmonicSineBendType::setForceConstant ( RealType k)
inline

Definition at line 69 of file HarmonicSineBendType.hpp.


The documentation for this class was generated from the following file: