ESyS-Particle  4.0.1
Public Types | Public Member Functions | Static Public Member Functions | Friends | List of all members
CElasticInteraction Class Reference

Elastic Interaction between free particles. More...

#include <ElasticInteraction.h>

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

Public Types

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

Public Member Functions

 CElasticInteraction (CParticle *, CParticle *, const CElasticIGP &)
virtual Vec3 getPos () const
double getPotentialEnergy () const
virtual void calcForces ()
Vec3 getForce () const
virtual void saveRestartData (std::ostream &oStream)
virtual void loadRestartData (std::istream &iStream)
- Public Member Functions inherited from APairInteraction
 APairInteraction (CParticle *, CParticle *)
const CParticlefirst () const
const CParticlesecond () const
CParticlefirst ()
CParticlesecond ()
pair< int, int > getPairID () const
void setPP (CParticle *, CParticle *)
void checkIDs ()
virtual bool hasTag (int, int) const
virtual Vec3 getPosFirst () const
virtual Vec3 getPosSecond () const
esys::lsm::quintuple< Vec3,
double, Vec3, double, Vec3
getRaw2Data () const
template<class TmplParticle >
void setPP (const vector< TmplParticle * > &pp)
- Public Member Functions inherited from AInteraction
bool initialized () const
virtual void calcHeatTrans ()
virtual void calcHeatFrict ()
vector< int > getAllID () const
int getID ()
double Count () const

Static Public Member Functions

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

Friends

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

Additional Inherited Members

- Protected Attributes inherited from APairInteraction
CParticlem_p1
CParticlem_p2

Detailed Description

Elastic Interaction between free particles.

Author
Steffen Abe $Revision$ $Date$

Member Function Documentation

void CElasticInteraction::calcForces ( )
virtual

Calculate free elastic forces. 23 Flops if in contact, 10 Flops if not

Implements APairInteraction.

References CParticle::applyForce().

Here is the call graph for this function:

CElasticInteraction::CheckedScalarFieldFunction CElasticInteraction::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
double CElasticInteraction::getPotentialEnergy ( ) const

get the potential energy stored in the interaction

Referenced by getScalarFieldFunction().

Here is the caller graph for this function:

CElasticInteraction::ScalarFieldFunction CElasticInteraction::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:

CElasticInteraction::VectorFieldFunction CElasticInteraction::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 CElasticInteraction::loadRestartData ( std::istream &  iStream)
virtual

load restart data from stream

Parameters
iStreamthe input stream

Reimplemented from APairInteraction.

References AInteraction::m_id.

void CElasticInteraction::saveRestartData ( std::ostream &  oStream)
virtual

save restart data to ostream

Parameters
oStreamthe output stream

Reimplemented from APairInteraction.

References AInteraction::m_id.


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