MPM-Geomechanics
Material Point Method for simulating geo-materials under large deformation conditions
|
Represents a body in the space forming by a group of materials points and identified by a number. More...
#include <Body.h>
Public Member Functions | |
Body () | |
Default constructor. | |
virtual | ~Body () |
Default destructor. | |
virtual void | create (Mesh &mesh, Material *material)=0 |
Create a body with particles and material. | |
virtual void | setMaterialId (int material_id)=0 |
Configure the material id. | |
virtual int | getMaterialId () const =0 |
Return the material id. | |
int | getId () const |
Return the body identification. | |
Vector3d | getInitialVelocity () const |
Return the initial velocity of the body. | |
vector< Particle * > * | getParticles () |
Return the particles forming the body. | |
void | setId (int body_id) |
Configure the id of the body. | |
void | setInitialVelocity (Vector3d initial_velocity) |
Configure the initial velocity of the body. | |
void | setParticles (const vector< Particle * > &particle_list) |
Configure the particles in the body. | |
void | insertParticles (const vector< Particle * > &particle_list) |
Add particles to the current particle list. | |
Protected Attributes | |
int | id |
body identification | |
Vector3d | initial_velocity |
initial velocity of the body | |
vector< Particle * > | particles |
material points forming the body | |
Represents a body in the space forming by a group of materials points and identified by a number.
|
inline |
Default constructor.
|
inlinevirtual |
Default destructor.
Create a body with particles and material.
Implemented in BodyCuboid, BodyParticle, BodyPolygon, and BodySphere.
|
inline |
Return the body identification.
|
inline |
Return the initial velocity of the body.
|
pure virtual |
Return the material id.
Implemented in BodyCuboid, BodyParticle, BodyPolygon, and BodySphere.
|
inline |
Return the particles forming the body.
|
inline |
Add particles to the current particle list.
[in] | particle_list | A vector containing pointers to particles |
|
inline |
Configure the id of the body.
[in] | body_id | Body identification |
|
inline |
Configure the initial velocity of the body.
[in] | initial_velocity | Body identification |
|
pure virtual |
Configure the material id.
[in] | material_id | Material identification |
Implemented in BodyCuboid, BodyParticle, BodyPolygon, and BodySphere.
|
inline |
Configure the particles in the body.
[in] | particle_list | A vector containing pointers to the particle |
|
protected |
body identification
|
protected |
initial velocity of the body
|
protected |
material points forming the body