ESyS-Particle  4.0.1
Public Types | Public Member Functions | Static Public Member Functions | Friends
CRotElasticInteraction Class Reference

Elastic Interaction between free rotational particles. More...

#include <RotElasticInteraction.h>

Inheritance diagram for CRotElasticInteraction:
Inheritance graph
[legend]
Collaboration diagram for CRotElasticInteraction:
Collaboration graph
[legend]

List of all members.

Public Types

typedef double(CRotElasticInteraction::* ScalarFieldFunction )() const
typedef pair< bool, double >
(CRotElasticInteraction::* 
CheckedScalarFieldFunction )() const
typedef Vec3(CRotElasticInteraction::* VectorFieldFunction )() const
typedef CRotElasticIGP ParameterType

Public Member Functions

 CRotElasticInteraction (CRotParticle *, CRotParticle *, const CRotElasticIGP &)
virtual Vec3 getPos () const
virtual void calcForces ()
Vec3 getForce () const
double getPotentialEnergy () const
virtual void saveRestartData (std::ostream &oStream)
virtual void loadRestartData (std::istream &iStream)

Static Public Member Functions

static ScalarFieldFunction getScalarFieldFunction (const string &)
static CheckedScalarFieldFunction getCheckedScalarFieldFunction (const string &)
static VectorFieldFunction getVectorFieldFunction (const string &)
static string getType ()

Friends

ostream & operator<< (ostream &, const CRotElasticInteraction &)

Detailed Description

Elastic Interaction between free rotational particles.


Member Function Documentation

Calculate free elastic forces.

Implements ARotPairInteraction.

References CParticle::applyForce().

Here is the call graph for this function:

CRotElasticInteraction::CheckedScalarFieldFunction CRotElasticInteraction::getCheckedScalarFieldFunction ( const string &  name) [static]

Get the particle member function which returns a checked scalar field of a given name.

Parameters:
namethe name of the field

Get the potential energy stored in the interaction.

Referenced by getScalarFieldFunction().

Here is the caller graph for this function:

CRotElasticInteraction::ScalarFieldFunction CRotElasticInteraction::getScalarFieldFunction ( const string &  name) [static]

Get the particle member function which returns a scalar field of a given name.

Parameters:
namethe name of the field

References getPotentialEnergy().

Here is the call graph for this function:

CRotElasticInteraction::VectorFieldFunction CRotElasticInteraction::getVectorFieldFunction ( const string &  name) [static]

Get the particle member function which returns a vector field of a given name.

Parameters:
namethe name of the field
void CRotElasticInteraction::loadRestartData ( std::istream &  iStream) [virtual]

load restart data from stream

Parameters:
iStreamthe input stream

Reimplemented from ARotPairInteraction.

References AInteraction::m_id.

void CRotElasticInteraction::saveRestartData ( std::ostream &  oStream) [virtual]

save restart data to ostream

Parameters:
oStreamthe output stream

Reimplemented from ARotPairInteraction.

References AInteraction::m_id.


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