ESyS-Particle
4.0.1
|
#include <RotThermFricInteraction.h>
Public Types | |
typedef CRotThermFrictionIGP | ParameterType |
typedef double(CRotThermFrictionInteraction::* | ScalarFieldFunction )() const |
typedef pair< bool, double > (CRotThermFrictionInteraction::* | CheckedScalarFieldFunction )() const |
typedef Vec3(CRotThermFrictionInteraction::* | VectorFieldFunction )() const |
Public Member Functions | |
void | setTimeStepSize (double deltaT) |
CRotThermFrictionInteraction (CRotThermParticle *, CRotThermParticle *, const CRotThermFrictionIGP &) | |
virtual void | calcForces () |
void | calcHeatFrict () |
void | calcHeatTrans () |
virtual bool | isPersistent () |
void | calcNormalForce () |
double | getAbsForceDeficit () const |
double | getPotentialEnergy () const |
double | getSlipping () const |
double | getTouching () const |
double | getSticking () const |
double | getDissipatedEnergy () const |
Vec3 | getDs () |
virtual Vec3 | getPos () const |
Vec3 | getForce () const |
Vec3 | getNormalForce () const |
virtual void | saveRestartData (std::ostream &oStream) |
virtual void | loadRestartData (std::istream &iStream) |
Static Public Member Functions | |
static CheckedScalarFieldFunction | getCheckedScalarFieldFunction (const string &) |
static ScalarFieldFunction | getScalarFieldFunction (const string &) |
static VectorFieldFunction | getVectorFieldFunction (const string &) |
static string | getType () |
Friends | |
class | TML_PackedMessageInterface |
ostream & | operator<< (ostream &, const CRotThermFrictionInteraction &) |
Frictional+Elastic interaction between particles between thermal ,rotational particles
void CRotThermFrictionInteraction::calcForces | ( | ) | [virtual] |
Calculate elastic and frictional forces.
Implements ARotThermPairInteraction.
References CParticle::applyForce(), and CRotParticleVi::applyMoment().
Calculate the normal force.
double CRotThermFrictionInteraction::getAbsForceDeficit | ( | ) | const |
get the force needed to overcome friction and make the interaction slip
Referenced by getScalarFieldFunction().
double CRotThermFrictionInteraction::getDissipatedEnergy | ( | ) | const |
return the amount of energy dissipated during the last time step
Referenced by getScalarFieldFunction().
If the particles are in contact, get normal force, if not in contact return (0,0,0)
Referenced by getVectorFieldFunction().
double CRotThermFrictionInteraction::getPotentialEnergy | ( | ) | const |
get the potential energy stored in the interaction
Referenced by getScalarFieldFunction().
CRotThermFrictionInteraction::ScalarFieldFunction CRotThermFrictionInteraction::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 getAbsForceDeficit(), getDissipatedEnergy(), getPotentialEnergy(), getSlipping(), and getSticking().
double CRotThermFrictionInteraction::getSlipping | ( | ) | const |
Get the static/dynamic status of the interaction. Returns 1 for a contact in dynamic friction, 0 for static or no contact
Referenced by getScalarFieldFunction().
double CRotThermFrictionInteraction::getSticking | ( | ) | const |
Get "sticking" contacts, i.e. return 1 if the contact is touching but not slipping, 0 otherwise
Referenced by getScalarFieldFunction().
double CRotThermFrictionInteraction::getTouching | ( | ) | const |
Get the contact status of the interaction. Returns 1 for an actual contact, 0 for no contact
CRotThermFrictionInteraction::VectorFieldFunction CRotThermFrictionInteraction::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 |
References getNormalForce().
void CRotThermFrictionInteraction::loadRestartData | ( | std::istream & | iStream | ) | [virtual] |
Load restart data from an open istream
iStream | the input stream |
References AInteraction::m_id.
void CRotThermFrictionInteraction::saveRestartData | ( | std::ostream & | oStream | ) | [virtual] |
Save restart data to an open ostream
oStream | the output stream |
References AInteraction::m_id.