|
ESyS-Particle
2.3.4
|
Damping of the rotational part of the particle motion by an artificial viscosity. More...
#include <RotDamping.h>

Public Types | |
| typedef CDampingIGP | ParameterType |
| typedef double(CRotDamping::* | ScalarFieldFunction) () const |
| typedef pair< bool, double >(CRotDamping::* | CheckedScalarFieldFunction) () const |
| typedef Vec3(CRotDamping::* | VectorFieldFunction) () const |
Public Member Functions | |
| CRotDamping (T *, CDampingIGP *) | |
| virtual | ~CRotDamping () |
| void | setLimit (double limit) |
| virtual void | calcForces () |
| void | setTimeStepSize (double dt) |
| virtual bool | hasTag (int, int) const |
| virtual Vec3 | getPosFirst () const |
| virtual Vec3 | getPosSecond () const |
| virtual Vec3 | getPos () const |
| vector< int > | getAllID () const |
| 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 &) |
| static void | zeroFlops () |
| static int | Flops () |
Protected Attributes | |
| T * | m_p |
| the particle More... | |
| Vec3 | m_vref |
| reference velocity More... | |
| double | m_visc |
| artificial viscosity More... | |
| double | m_dt |
| time step More... | |
| int | m_maxiter |
| iteration limit More... | |
| double | m_E_diss |
| dissipaed energy More... | |
| Vec3 | m_force |
| current force More... | |
Static Protected Attributes | |
| static double | s_limit2 =1e-12 |
| square error limit for iteration More... | |
| static int | s_flops = 0 |
Damping of the rotational part of the particle motion by an artificial viscosity.
| typedef pair<bool,double>(CRotDamping::* CRotDamping< T >::CheckedScalarFieldFunction) () const |
| typedef CDampingIGP CRotDamping< T >::ParameterType |
| typedef double(CRotDamping::* CRotDamping< T >::ScalarFieldFunction) () const |
| typedef Vec3(CRotDamping::* CRotDamping< T >::VectorFieldFunction) () const |
| CRotDamping< T >::CRotDamping | ( | T * | P, |
| CDampingIGP * | param | ||
| ) |
Construct a rotational damping "interaction" for a particle
| P | the particle |
| param | pointer to the parameters |
References CDampingIGP::getMaxIter(), CDampingIGP::getTimeStep(), CDampingIGP::getVisc(), and CDampingIGP::getVRef().

|
virtual |
destructor
|
virtual |
Calculate the damping force.
25*count+8 flops
|
inlinestatic |
References CRotDamping< T >::s_flops.
| vector< int > CRotDamping< T >::getAllID |
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 CRotDamping< T >::getDissipatedEnergy |
return the amount of energy dissipated during the last time step
| Vec3 CRotDamping< T >::getForce |
|
inlinevirtual |
References CRotDamping< T >::m_p.
Referenced by CRotDamping< T >::getRaw2Data().

|
inlinevirtual |
References CRotDamping< T >::m_p.
|
inlinevirtual |
|
inline |
References CRotDamping< T >::getPos(), CRotDamping< T >::m_p, and Vec3::ZERO.

|
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 |
|
inline |
References CRotDamping< T >::s_limit2.
| void CRotDamping< T >::setTimeStepSize | ( | double | dt | ) |
|
inlinestatic |
References CRotDamping< T >::s_flops.
|
protected |
time step
|
protected |
dissipaed energy
|
protected |
current force
|
protected |
iteration limit
|
protected |
the particle
Referenced by CRotDamping< T >::getPos(), CRotDamping< T >::getPosFirst(), and CRotDamping< T >::getRaw2Data().
|
protected |
artificial viscosity
|
protected |
reference velocity
|
staticprotected |
Referenced by CRotDamping< T >::Flops(), and CRotDamping< T >::zeroFlops().
|
staticprotected |
square error limit for iteration
Referenced by CRotDamping< T >::setLimit().