![]() |
MechSys
1.0
Computing library for simulations in continuum and discrete mechanics
|
#include <particle.h>
Public Member Functions | |
| Particle (Vec3_t const &x0, Vec3_t const &v0, double density0, double h0, bool Fixed=false) | |
| void | Move (double dt) |
| Update the important quantities of te simulation. | |
| void | StartAccel (Vec3_t acc=Vec3_t(0.0, 0.0, 0.0)) |
| void | Translate (Vec3_t const &V) |
| Start the acceleration of the particle with one predefined value. | |
| void | ResetDisplacements () |
| Trasnlate a SPH particle a vector V. | |
| double | MaxDisplacement () |
| Find the maximun displacement. | |
Public Attributes | |
| bool | IsFree |
| Check is the particle is free to move or not. | |
| Vec3_t | xo |
| Previous position of the particle for the Verlet algorithm. | |
| Vec3_t | x |
| Position of the particle. | |
| Vec3_t | xb |
| Previous position by verlet algorithm. | |
| Vec3_t | v |
| Velocity of the particle. | |
| Vec3_t | a |
| Acceleration of the particle. | |
| double | Pressure |
| Pressure at the position of the particle. | |
| double | Density |
| Density at the position of the particle. | |
| double | Densityb |
| Previous density for the Verlet integrator. | |
| double | Density0 |
| Initial density of the particle. | |
| double | dDensity |
| Pressure rate of change in time. | |
| double | h |
| Smoothing length of the particle. | |
| Particle::Particle | ( | Vec3_t const & | x0, |
| Vec3_t const & | v0, | ||
| double | density0, | ||
| double | h0, | ||
| bool | Fixed = false |
||
| ) | [inline] |
| double Particle::MaxDisplacement | ( | ) | [inline] |
Find the maximun displacement.
| void Particle::Move | ( | double | dt | ) | [inline] |
Update the important quantities of te simulation.
| void Particle::ResetDisplacements | ( | ) | [inline] |
Trasnlate a SPH particle a vector V.
Reset the displacmeent for the verlet algorithm
| void SPH::Particle::StartAccel | ( | Vec3_t | acc = Vec3_t(0.0,0.0,0.0) | ) | [inline] |
| void SPH::Particle::Translate | ( | Vec3_t const & | V | ) | [inline] |
Start the acceleration of the particle with one predefined value.
Acceleration of the particle.
| double SPH::Particle::dDensity |
Pressure rate of change in time.
| double SPH::Particle::Density |
Density at the position of the particle.
| double SPH::Particle::Density0 |
Initial density of the particle.
| double SPH::Particle::Densityb |
Previous density for the Verlet integrator.
| double SPH::Particle::h |
Smoothing length of the particle.
Check is the particle is free to move or not.
| double SPH::Particle::Pressure |
Pressure at the position of the particle.
Velocity of the particle.
Position of the particle.
Previous position by verlet algorithm.
Previous position of the particle for the Verlet algorithm.
1.7.6.1