#include <potential/harmonicSpring.H>
Definition at line 51 of file harmonicSpring.H.
Public Member Functions | |
TypeName ("harmonicSpring") | |
Runtime type information.
| |
harmonicSpring (const word &name, const dictionary &tetherPotentialProperties) | |
Construct from components.
| |
~harmonicSpring () | |
scalar | energy (const vector r) const |
vector | force (const vector r) const |
bool | read (const dictionary &tetherPotentialProperties) |
Read dictionary.
|
harmonicSpring | ( | const word & | name, |
const dictionary & | tetherPotentialProperties | ||
) |
Construct from components.
Definition at line 51 of file harmonicSpring.C.
~harmonicSpring | ( | ) | [inline]
|
Definition at line 80 of file harmonicSpring.H.
TypeName | ( | "harmonicSpring" | ) |
Runtime type information.
scalar energy | ( | const vector | r ) | const [virtual]
|
Implements tetherPotential.
Definition at line 67 of file harmonicSpring.C.
References Foam::magSqr().
Implements tetherPotential.
Definition at line 73 of file harmonicSpring.C.
bool read | ( | const dictionary & | tetherPotentialProperties ) | [virtual]
|
Read dictionary.
Implements tetherPotential.
Definition at line 79 of file harmonicSpring.C.
References dictionary::lookup(), and dictionary::subDict().