ParM  parm
A molecular dynamics library
Public Member Functions | Protected Attributes | List of all members
Spring Class Reference

#include <interaction.hpp>

Inheritance diagram for Spring:
InteractPair

Public Member Functions

 Spring (const flt k, const flt x0)
 
flt energy (const Vec diff)
 
Vec forces (const Vec diff)
 
 ~Spring ()
 
- Public Member Functions inherited from InteractPair
virtual ~InteractPair ()
 

Protected Attributes

flt springk
 
flt x0
 

Constructor & Destructor Documentation

Spring::Spring ( const flt  k,
const flt  x0 
)
inline
Spring::~Spring ( )
inline

Member Function Documentation

flt Spring::energy ( const Vec  diff)
virtual

Implements InteractPair.

Vec Spring::forces ( const Vec  diff)
virtual

Implements InteractPair.

Member Data Documentation

flt Spring::springk
protected
flt Spring::x0
protected

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