MechSys  1.0
Computing library for simulations in continuum and discrete mechanics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Public Attributes
SPH::Particle Class Reference

#include <particle.h>

List of all members.

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.

Constructor & Destructor Documentation

Particle::Particle ( Vec3_t const &  x0,
Vec3_t const &  v0,
double  density0,
double  h0,
bool  Fixed = false 
) [inline]

Member Function Documentation

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.


Member Data Documentation

Acceleration of the particle.

Pressure rate of change in time.

Density at the position of the particle.

Initial density of the particle.

Previous density for the Verlet integrator.

Smoothing length of the particle.

Check is the particle is free to move or not.

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.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines