ESyS-Particle
4.0.1
|
Elastic Interaction between free particles. More...
#include <ElasticInteraction.h>
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) |
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 &) |
Elastic Interaction between free particles.
void CElasticInteraction::calcForces | ( | ) | [virtual] |
Calculate free elastic forces. 23 Flops if in contact, 10 Flops if not
Implements APairInteraction.
References CParticle::applyForce().
CElasticInteraction::CheckedScalarFieldFunction CElasticInteraction::getCheckedScalarFieldFunction | ( | const string & | name | ) | [static] |
Get the particle member function which returns a checked scalar field of a given name.
name | the name of the field |
double CElasticInteraction::getPotentialEnergy | ( | ) | const |
get the potential energy stored in the interaction
Referenced by getScalarFieldFunction().
CElasticInteraction::ScalarFieldFunction CElasticInteraction::getScalarFieldFunction | ( | const string & | name | ) | [static] |
Get the particle member function which returns a scalar field of a given name.
name | the name of the field |
References getPotentialEnergy().
CElasticInteraction::VectorFieldFunction CElasticInteraction::getVectorFieldFunction | ( | const string & | name | ) | [static] |
Get the particle member function which returns a vector field of a given name.
name | the name of the field |
void CElasticInteraction::loadRestartData | ( | std::istream & | iStream | ) | [virtual] |
load restart data from stream
iStream | the input stream |
Reimplemented from APairInteraction.
References AInteraction::m_id.
void CElasticInteraction::saveRestartData | ( | std::ostream & | oStream | ) | [virtual] |
save restart data to ostream
oStream | the output stream |
Reimplemented from APairInteraction.
References AInteraction::m_id.