|
ESyS-Particle
2.3.4
|
unbonded elastic interaction between a particle and a wall More...
#include <ESphereBodyInteraction.h>


Public Member Functions | |
| CElasticSphereBodyInteraction () | |
| CElasticSphereBodyInteraction (T *, CSphereBody *, double, bool) | |
| virtual | ~CElasticSphereBodyInteraction () |
| virtual void | calcForces () |
| virtual Vec3 | getForce () |
| virtual void | setPP (const vector< T * >) |
| virtual double | getStiffness () |
Public Member Functions inherited from ASphereBodyInteraction< T > | |
| ASphereBodyInteraction (T *, CSphereBody *, bool iflag=true) | |
| virtual | ~ASphereBodyInteraction () |
| virtual bool | hasTag (int, int) const |
| virtual Vec3 | getPosFirst () const |
| bool | isInner () |
Public Member Functions inherited from AInteraction | |
| AInteraction () | |
| virtual | ~AInteraction () |
| bool | initialized () const |
| virtual void | calcHeatTrans () |
| virtual void | calcHeatFrict () |
| vector< int > | getAllID () const |
| int | getID () |
| virtual Vec3 | getPosSecond () const |
| double | Count () const |
Protected Attributes | |
| double | m_k |
| spring constant More... | |
Protected Attributes inherited from ASphereBodyInteraction< T > | |
| T * | m_p |
| CSphereBody * | m_sphere |
| bool | m_inner_flag |
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 |
unbonded elastic interaction between a particle and a wall
| CElasticSphereBodyInteraction< T >::CElasticSphereBodyInteraction | ( | ) |
| CElasticSphereBodyInteraction< T >::CElasticSphereBodyInteraction | ( | T * | p, |
| CSphereBody * | w, | ||
| double | k, | ||
| bool | iflag | ||
| ) |
constructor for elastic interaction between particle & sphere body
| p | pointer to the particle |
| w | pointer to the sphere body |
| k | spring constant |
| iflag | flag if the particle is in the inner part of the local NTable |
References CParticle::getDo2dCalculations(), CElasticSphereBodyInteraction< T >::m_k, and ASphereBodyInteraction< T >::m_p.

|
inlinevirtual |
|
virtual |
calculate free elastic forces.
Implements ASphereBodyInteraction< T >.
References Vec3::norm(), and Vec3::unit().

|
virtual |
calculate & return free elastic forces, don't apply them
References Vec3::norm(), and Vec3::unit().

|
virtual |
Get stiffness of the interaction. Returns spring constant (m_k) if interaction is in contact, 0.0 otherwise.
Reimplemented from ASphereBodyInteraction< T >.
References Vec3::norm().

|
inlinevirtual |
|
protected |
spring constant
Referenced by CElasticSphereBodyInteraction< T >::CElasticSphereBodyInteraction().