MPM-Geomechanics
Material Point Method for simulating geo-materials under large deformation conditions
|
Is a type of Body representing a sphere in 3D. More...
#include <BodySphere.h>
Public Member Functions | |
BodySphere () | |
Default constructor. | |
virtual | ~BodySphere () |
Default destructor. | |
void | setDiameter (double diameter) |
void | setCenter (Vector3d center) |
virtual void | setMaterialId (int material_id) |
Configure the material id. | |
virtual int | getMaterialId () const |
Return the material identification. | |
void | setParticlesPerDirection (Vector3d ppd) |
virtual void | create (Mesh &mesh, Material *material) |
Create a body with particles and material. | |
![]() | |
Body () | |
Default constructor. | |
virtual | ~Body () |
Default destructor. | |
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. | |
Private Attributes | |
Vector3d | center |
Create a sphere in space. | |
Vector3d | particlesPerDirection |
particles per direction | |
double | diameter |
diameter of the sphere | |
int | materialId |
material identification | |
Additional Inherited Members | |
![]() | |
int | id |
body identification | |
Vector3d | initial_velocity |
initial velocity of the body | |
vector< Particle * > | particles |
material points forming the body | |
Is a type of Body representing a sphere in 3D.
The sphere is geometrically defined by its center and diameter.
BodySphere::BodySphere | ( | ) |
Default constructor.
|
virtual |
Default destructor.
|
inlinevirtual |
|
inline |
|
inline |
|
inlinevirtual |
|
inline |
|
private |
Create a sphere in space.
center of the sphere
|
private |
diameter of the sphere
|
private |
material identification
|
private |
particles per direction