|
ESyS-Particle
2.3.4
|
Elastic interaction with force limit between bonded particles. More...
#include <CappedBondedInteraction.h>


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 CBondedIGP | ParameterType |
| typedef BondedInteractionCpData | CheckPointable |
| typedef double(CBondedInteraction::* | ScalarFieldFunction) () const |
| typedef pair< bool, double >(CBondedInteraction::* | CheckedScalarFieldFunction) () const |
| typedef Vec3(CBondedInteraction::* | VectorFieldFunction) () const |
Public Member Functions | |
| CCappedBondedInteraction () | |
| CCappedBondedInteraction (CParticle *particle1, CParticle *particle2, const CCappedBondedIGP ¶ms) | |
| virtual | ~CCappedBondedInteraction () |
| virtual void | calcForces () |
Public Member Functions inherited from CBondedInteraction | |
| CBondedInteraction () | |
| CBondedInteraction (CParticle *particle1, CParticle *particle2, const CBondedIGP ¶ms) | |
| virtual | ~CBondedInteraction () |
| 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 () | |
| APairInteraction (CParticle *, CParticle *) | |
| virtual | ~APairInteraction () |
| const CParticle * | first () const |
| const CParticle * | second () const |
| CParticle * | first () |
| CParticle * | second () |
| 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 | |
| AInteraction () | |
| virtual | ~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 () |
Static Public Member Functions inherited from CBondedInteraction | |
| 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 More... | |
Protected Attributes inherited from CBondedInteraction | |
| double | m_k |
| spring constant More... | |
| double | m_r0 |
| equilibrium distance More... | |
| double | m_dist |
| current distance, cached from last calcForces() More... | |
| double | m_break |
| breaking distance More... | |
| Vec3 | m_force |
| current force, cached for E_pot calculation More... | |
| Vec3 | m_cpos |
| int | m_tag |
| Interaction tag;. More... | |
| bool | m_scaling |
| scaling k with particle radius More... | |
Protected Attributes inherited from APairInteraction | |
| CParticle * | m_p1 |
| CParticle * | m_p2 |
Protected Attributes inherited from AInteraction | |
| vector< int > | m_id |
| id's of the particles involved More... | |
| int | m_iid |
| interaction id More... | |
| bool | m_init |
Friends | |
| class | TML_PackedMessageInterface |
Elastic interaction with force limit between bonded particles.
| typedef pair<bool,double>(CCappedBondedInteraction::* CCappedBondedInteraction::CheckedScalarFieldFunction) () const |
| typedef double(CCappedBondedInteraction::* CCappedBondedInteraction::ScalarFieldFunction) () const |
| typedef Vec3(CCappedBondedInteraction::* CCappedBondedInteraction::VectorFieldFunction) () const |
just do the APairInteraction part of the constructor - not to be used directly, only by derived class -> therefore protected
| CCappedBondedInteraction::CCappedBondedInteraction | ( | ) |
References m_force_limit.
| CCappedBondedInteraction::CCappedBondedInteraction | ( | CParticle * | particle1, |
| CParticle * | particle2, | ||
| const CCappedBondedIGP & | params | ||
| ) |
References CBasicParticle::getPos(), CBasicParticle::getRad(), CBondedIGP::k, CBondedInteraction::m_break, CBondedInteraction::m_dist, CBondedInteraction::m_force, CCappedBondedIGP::m_force_limit, m_force_limit, CBondedInteraction::m_k, APairInteraction::m_p1, APairInteraction::m_p2, CBondedInteraction::m_r0, CBondedInteraction::m_tag, CBondedIGP::rbreak, and CBondedIGP::tag.

|
virtual |
|
virtual |
Calculate bonded elastic forces. 21 Flops
Reimplemented from CBondedInteraction.
References CParticle::applyForce(), CBasicParticle::getPos(), CBasicParticle::getRad(), CBondedInteraction::m_cpos, CBondedInteraction::m_dist, CBondedInteraction::m_force, m_force_limit, CBondedInteraction::m_k, APairInteraction::m_p1, APairInteraction::m_p2, and CBondedInteraction::m_r0.

|
static |
Get the particle member function which returns a checked scalar field of a given name.
| name | the name of the field |
References NULL.
|
static |
Get the particle member function which returns a scalar field of a given name.
| name | the name of the field |
References AInteraction::Count(), CBondedInteraction::getPotentialEnergy(), CBondedInteraction::getStrain(), and NULL.

|
inlinestatic |
|
static |
Get the particle member function which returns a vector field of a given name.
| name | the name of the field |
References CBondedInteraction::getForce(), and NULL.

|
friend |
|
protected |
maximum allowed force
Referenced by calcForces(), CCappedBondedInteraction(), TML_PackedMessageInterface::pack(), and TML_PackedMessageInterface::unpack().