ESyS-Particle  4.0.1
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Friends
CCappedBondedInteraction Class Reference

Elastic interaction with force limit between bonded particles. More...

#include <CappedBondedInteraction.h>

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

List of all members.

Public Types

typedef CCappedBondedIGP ParameterType
typedef double(CCappedBondedInteraction::* ScalarFieldFunction )() const
typedef pair< bool, double >
(CCappedBondedInteraction::* 
CheckedScalarFieldFunction )() const
typedef Vec3(CCappedBondedInteraction::* VectorFieldFunction )() const
- Public Types inherited from CBondedInteraction
typedef BondedInteractionCpData CheckPointable

Public Member Functions

 CCappedBondedInteraction (CParticle *particle1, CParticle *particle2, const CCappedBondedIGP &params)
virtual void calcForces ()
- Public Member Functions inherited from CBondedInteraction
 CBondedInteraction (CParticle *particle1, CParticle *particle2, const CBondedIGP &params)
void setBreak (double)
bool broken ()
int getTag () const
void setTag (int tag)
double getCriterion () const
double getPotentialEnergy () const
double getStrain () const
Vec3 getForce () const
virtual Vec3 getPos () const
virtual void saveCheckPointData (std::ostream &oStream)
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 &)
static string getType ()

Protected Member Functions

 CCappedBondedInteraction (CParticle *, CParticle *)
- Protected Member Functions inherited from CBondedInteraction
 CBondedInteraction (CParticle *, CParticle *)

Protected Attributes

double m_force_limit
 maximum allowed force
- Protected Attributes inherited from CBondedInteraction
double m_k
 spring constant
double m_r0
 equilibrium distance
double m_dist
 current distance, cached from last calcForces()
double m_break
 breaking distance
Vec3 m_force
 current force, cached for E_pot calculation
Vec3 m_cpos
int m_tag
 Interaction tag;.
bool m_scaling
 scaling k with particle radius
- Protected Attributes inherited from APairInteraction
CParticlem_p1
CParticlem_p2
- Protected Attributes inherited from AInteraction
vector< int > m_id
 id's of the particles involved
int m_iid
 interaction id
bool m_init

Friends

class TML_PackedMessageInterface

Detailed Description

Elastic interaction with force limit between bonded particles.

Author:
Steffen Abe
Revision:
894
Date:
2006-01-19 10:58:58 +0000 (Thu, 19 Jan 2006)

Constructor & Destructor Documentation

CCappedBondedInteraction::CCappedBondedInteraction ( CParticle p1,
CParticle p2 
)
protected

just do the APairInteraction part of the constructor - not to be used directly, only by derived class -> therefore protected

References CCappedBondedInteraction().

Referenced by CCappedBondedInteraction().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Function Documentation

void CCappedBondedInteraction::calcForces ( )
virtual

Calculate bonded elastic forces. 21 Flops

Reimplemented from CBondedInteraction.

References CParticle::applyForce(), CBondedInteraction::m_dist, CBondedInteraction::m_force, m_force_limit, CBondedInteraction::m_k, and CBondedInteraction::m_r0.

Here is the call graph for this function:

CCappedBondedInteraction::CheckedScalarFieldFunction CCappedBondedInteraction::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

Reimplemented from CBondedInteraction.

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

Reimplemented from CBondedInteraction.

References CBondedInteraction::getPotentialEnergy(), and CBondedInteraction::getStrain().

Here is the call graph for this function:

CCappedBondedInteraction::VectorFieldFunction CCappedBondedInteraction::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

Reimplemented from CBondedInteraction.

References CBondedInteraction::getForce().

Here is the call graph for this function:


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