harmonicSpring Class Reference
Inheritance diagram for harmonicSpring:
Collaboration diagram for harmonicSpring:

Public Member Functions

 TypeName ("harmonicSpring")
 Runtime type information. More...
 
 harmonicSpring (const word &name, const dictionary &tetherPotentialProperties)
 Construct from components. More...
 
 ~harmonicSpring ()
 Destructor. More...
 
scalar energy (const vector r) const
 
vector force (const vector r) const
 
bool read (const dictionary &tetherPotentialProperties)
 Read dictionary. More...
 
- Public Member Functions inherited from tetherPotential
 TypeName ("tetherPotential")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, tetherPotential, dictionary,(const word &name, const dictionary &tetherPotentialProperties),(name, tetherPotentialProperties))
 
 tetherPotential (const word &name, const dictionary &tetherPotentialProperties)
 Construct from components. More...
 
 tetherPotential (const tetherPotential &)
 Disallow default bitwise copy construction. More...
 
virtual ~tetherPotential ()
 Destructor. More...
 
const dictionarytetherPotentialProperties () const
 
void operator= (const tetherPotential &)=delete
 Disallow default bitwise assignment. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from tetherPotential
static autoPtr< tetherPotentialNew (const word &name, const dictionary &tetherPotentialProperties)
 Return a reference to the selected viscosity model. More...
 
- Protected Attributes inherited from tetherPotential
word name_
 
dictionary tetherPotentialProperties_
 

Detailed Description

Source files

Definition at line 50 of file harmonicSpring.H.

Constructor & Destructor Documentation

◆ harmonicSpring()

harmonicSpring ( const word name,
const dictionary tetherPotentialProperties 
)

Construct from components.

Definition at line 51 of file harmonicSpring.C.

◆ ~harmonicSpring()

~harmonicSpring ( )
inline

Destructor.

Definition at line 78 of file harmonicSpring.H.

References harmonicSpring::energy(), harmonicSpring::force(), and harmonicSpring::read().

Here is the call graph for this function:

Member Function Documentation

◆ TypeName()

TypeName ( "harmonicSpring"  )

Runtime type information.

◆ energy()

scalar energy ( const vector  r) const
virtual

Implements tetherPotential.

Definition at line 70 of file harmonicSpring.C.

References Foam::magSqr().

Referenced by harmonicSpring::~harmonicSpring().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ force()

vector force ( const vector  r) const
virtual

Implements tetherPotential.

Definition at line 76 of file harmonicSpring.C.

Referenced by harmonicSpring::~harmonicSpring().

Here is the caller graph for this function:

◆ read()

bool read ( const dictionary tetherPotentialProperties)
virtual

Read dictionary.

Implements tetherPotential.

Definition at line 82 of file harmonicSpring.C.

References dictionary::lookup(), tetherPotential::read(), and dictionary::subDict().

Referenced by harmonicSpring::~harmonicSpring().

Here is the call graph for this function:
Here is the caller graph for this function:

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