![]() |
MechSys
1.0
Computing library for simulations in continuum and discrete mechanics
|
#include <interacton.h>
Public Member Functions | |
BInteracton (Particle *Pt1, Particle *Pt2, size_t Fi1, size_t Fi2) | |
Constructor requires pointers to both particles and alos the indixes of the size they share. | |
bool | UpdateContacts (double alpha) |
Update contacts by verlet algorithm. | |
void | CalcForce (double dt=0.0) |
Calculates the contact force between particles. | |
void | UpdateParameters () |
Update the parameters in case they change. | |
Public Attributes | |
size_t | F1 |
Index of the shared face for particle 1. | |
size_t | F2 |
Index of the shared face for particle 2. | |
double | Area |
Area of the shared side. | |
double | Bn |
Elastic normal constant for the cohesion. | |
double | Bt |
Elastic tangential constant for the cohesion. | |
double | Bm |
Elastic for the cohesion torque. | |
double | Gn |
Dissipative normal constant. | |
double | Gt |
Dissipative tangential constant. | |
double | L0 |
Equilibrium distance. | |
double | An |
Angular displacement. | |
double | eps |
Maximun strain before fracture. | |
bool | valid |
Check if the bound has not been broken. | |
double | s1 |
double | t1 |
Planar coordinates for face F1. | |
double | s2 |
double | t2 |
Planar coordinates for face F2. | |
Vec3_t | Fnet |
Net force excerted by the interacton. |
BInteracton::BInteracton | ( | Particle * | Pt1, |
Particle * | Pt2, | ||
size_t | Fi1, | ||
size_t | Fi2 | ||
) | [inline] |
Constructor requires pointers to both particles and alos the indixes of the size they share.
void BInteracton::CalcForce | ( | double | dt = 0.0 | ) | [inline, virtual] |
Calculates the contact force between particles.
Implements Interacton.
bool BInteracton::UpdateContacts | ( | double | alpha | ) | [inline, virtual] |
Update contacts by verlet algorithm.
Implements Interacton.
void BInteracton::UpdateParameters | ( | ) | [inline, virtual] |
Update the parameters in case they change.
Implements Interacton.
double BInteracton::An |
Angular displacement.
double BInteracton::Area |
Area of the shared side.
double BInteracton::Bm |
Elastic for the cohesion torque.
double BInteracton::Bn |
Elastic normal constant for the cohesion.
double BInteracton::Bt |
Elastic tangential constant for the cohesion.
double BInteracton::eps |
Maximun strain before fracture.
size_t BInteracton::F1 |
Index of the shared face for particle 1.
size_t BInteracton::F2 |
Index of the shared face for particle 2.
Net force excerted by the interacton.
double BInteracton::Gn |
Dissipative normal constant.
double BInteracton::Gt |
Dissipative tangential constant.
double BInteracton::L0 |
Equilibrium distance.
double BInteracton::s1 |
double BInteracton::s2 |
double BInteracton::t1 |
Planar coordinates for face F1.
double BInteracton::t2 |
Planar coordinates for face F2.
bool BInteracton::valid |
Check if the bound has not been broken.