![]() |
MechSys
1.0
Computing library for simulations in continuum and discrete mechanics
|
#include <interacton.h>
Public Member Functions | |
Interacton () | |
Default constructor. | |
virtual | ~Interacton () |
Destructor. | |
virtual bool | UpdateContacts (double alpha)=0 |
Update contacts by verlet algorithm. | |
virtual void | CalcForce (double dt=0.0)=0 |
Calculates the contact force between particles. | |
virtual void | UpdateParameters ()=0 |
Update the parameters. | |
Public Attributes | |
Particle * | P1 |
First particle. | |
Particle * | P2 |
Second particle. | |
size_t | I1 |
Index of the first particle. | |
size_t | I2 |
Index of the second particle. |
Interacton::Interacton | ( | ) | [inline] |
Default constructor.
virtual Interacton::~Interacton | ( | ) | [inline, virtual] |
Destructor.
virtual void Interacton::CalcForce | ( | double | dt = 0.0 | ) | [pure virtual] |
Calculates the contact force between particles.
Implemented in BInteracton, CInteractonSphere, and CInteracton.
virtual bool Interacton::UpdateContacts | ( | double | alpha | ) | [pure virtual] |
Update contacts by verlet algorithm.
Implemented in BInteracton, CInteractonSphere, and CInteracton.
virtual void Interacton::UpdateParameters | ( | ) | [pure virtual] |
Update the parameters.
Implemented in BInteracton, CInteractonSphere, and CInteracton.
size_t Interacton::I1 |
Index of the first particle.
size_t Interacton::I2 |
Index of the second particle.
First particle.
Second particle.