|
ESyS-Particle
2.3
|
Local damping of the particle motion by a damping coefficient. More...
#include <LocalDamping.h>

Public Types | |
| typedef CLocalDampingIGP | ParameterType |
| typedef double(CLocalDamping::* | ScalarFieldFunction )() const |
| typedef pair< bool, double > (CLocalDamping::* | CheckedScalarFieldFunction )() const |
| typedef Vec3(CLocalDamping::* | VectorFieldFunction )() const |
Public Member Functions | |
| CLocalDamping (T *, double, double) | |
| CLocalDamping (T *, const CLocalDampingIGP &) | |
| CLocalDamping (T *, CLocalDampingIGP *) | |
| virtual | ~CLocalDamping () |
| void | setTimeStepSize (double dt) |
| virtual void | calcForces () |
| virtual bool | hasTag (int, int) const |
| virtual Vec3 | getPosFirst () const |
| virtual Vec3 | getPosSecond () const |
| virtual Vec3 | getPos () const |
| vector< int > | getAllID () const |
| esys::lsm::quintuple< Vec3, double, Vec3, double, Vec3 > | getRaw2Data () const |
| double | getDissipatedEnergy () const |
| Vec3 | getForce () const |
Static Public Member Functions | |
| static ScalarFieldFunction | getScalarFieldFunction (const string &) |
| static CheckedScalarFieldFunction | getCheckedScalarFieldFunction (const string &) |
| static VectorFieldFunction | getVectorFieldFunction (const string &) |
Protected Attributes | |
| T * | m_p |
| the particle More... | |
| double | m_visc |
| damping coefficient More... | |
| double | m_dt |
| time step More... | |
| double | m_E_diss |
| dissipated energy More... | |
| Vec3 | m_force |
| current force More... | |
Local damping of the particle motion by a damping coefficient.
| typedef pair<bool,double>(CLocalDamping::* CLocalDamping< T >::CheckedScalarFieldFunction)() const |
| typedef CLocalDampingIGP CLocalDamping< T >::ParameterType |
| typedef double(CLocalDamping::* CLocalDamping< T >::ScalarFieldFunction)() const |
| typedef Vec3(CLocalDamping::* CLocalDamping< T >::VectorFieldFunction)() const |
| CLocalDamping< T >::CLocalDamping | ( | T * | P, |
| double | visc, | ||
| double | dt | ||
| ) |
Construct a local damping "interaction" for a particle
| P | the particle |
| visc | the damping coefficient |
| dt | the time step |
| CLocalDamping< T >::CLocalDamping | ( | T * | P, |
| const CLocalDampingIGP & | param | ||
| ) |
Construct a local damping "interaction" for a particle
| P | the particle |
| param | the parameters |
References CLocalDampingIGP::getTimeStep(), and CLocalDampingIGP::getVisc().

| CLocalDamping< T >::CLocalDamping | ( | T * | P, |
| CLocalDampingIGP * | param | ||
| ) |
Construct a local damping "interaction" for a particle
| P | the particle |
| param | pointer to the parameters |
References CLocalDampingIGP::getTimeStep(), and CLocalDampingIGP::getVisc().

|
virtual |
destructor
|
virtual |
Calculate the local damping force.
References Vec3::norm(), Vec3::X(), Vec3::Y(), and Vec3::Z().

| vector< int > CLocalDamping< T >::getAllID | ( | ) | const |
return a vector of all particle IDs
|
static |
Get the particle member function which returns a checked scalar field of a given name.
| name | the name of the field |
References NULL.
| double CLocalDamping< T >::getDissipatedEnergy | ( | ) | const |
return the amount of energy dissipated during the last time step
| Vec3 CLocalDamping< T >::getForce | ( | ) | const |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inline |
|
static |
Get the particle member function which returns a scalar field of a given name.
| name | the name of the field |
References NULL.
|
static |
Get the particle member function which returns a vector field of a given name.
| name | the name of the field |
References NULL.
|
virtual |
check if any of the particles in the interaction fits tag & mask
| tag | the tag |
| mask | the mask |
| void CLocalDamping< T >::setTimeStepSize | ( | double | dt | ) |
|
protected |
time step
|
protected |
dissipated energy
|
protected |
current force
|
protected |
the particle
|
protected |
damping coefficient