PeriDEM 0.2.0
PeriDEM -- Peridynamics-based high-fidelity model for granular media
|
A class to store particle geometry, nodal discretization, and methods. More...
#include <baseParticle.h>
Public Member Functions | |
BaseParticle (std::string particle_type="none") | |
Constructor. | |
BaseParticle (std::string particle_type, size_t id, size_t particle_type_id, size_t zone_id, size_t dim, std::string particle_description, bool is_particle_a_wall, bool are_all_dofs_constrained, size_t num_nodes, double h, std::shared_ptr< model::ModelData > model_data, std::shared_ptr< particle::RefParticle > ref_particle, std::shared_ptr< util::geometry::GeomObject > geom, particle::ParticleTransform &transform, std::shared_ptr< fe::Mesh > mesh, inp::MaterialDeck &material_deck, bool populate_data=true) | |
Constructor. | |
std::string | printStr (int nt=0, int lvl=0) const |
Returns the string containing printable information about the object. | |
void | print (int nt=0, int lvl=0) const |
Prints the information about the object. | |
Accessors | |
std::string | getType () const |
Get type of this object. | |
int | getTypeIndex () const |
Get type (in integer format) of this object. | |
size_t | getId () const |
Get id. | |
size_t | getDimension () const |
Get id among the group of object in the same type as this. | |
std::shared_ptr< fe::Mesh > & | getMeshP () |
Get pointer to mesh object. | |
const std::shared_ptr< fe::Mesh > & | getMeshP () const |
Get pointer to mesh object. | |
fe::Mesh & | getMesh () |
Get reference to mesh object. | |
const fe::Mesh & | getMesh () const |
Get reference to mesh object. | |
double | getMeshSize () const |
Get mesh size. | |
double | getDensity () const |
Get density. | |
double | getHorizon () const |
Get horizon. | |
material::Material * | getMaterial () |
Get pointer to material object. | |
const material::Material * | getMaterial () const |
Get type of this object. | |
size_t | getNumNodes () const |
Get the number of nodes. | |
size_t | getNodeId (size_t i_loc) const |
Get global id of node given the local id of node in this object. | |
Get and set reference coordinate | |
util::Point & | getXRef (size_t i) |
Get reference coordinate of the node. | |
const util::Point & | getXRef (size_t i) const |
Get reference coordinate of the node. | |
void | setXRef (size_t i, const util::Point &x) |
Set reference coordinate of the node. | |
void | addXRef (size_t i, const util::Point &x) |
Add reference coordinate of the node. | |
void | setXRef (size_t i, int dof, double x) |
Set specific reference coordinate of the node. | |
void | addXRef (size_t i, int dof, double x) |
Add specific reference coordinate of the node. | |
util::Point & | getXRefLocal (size_t i) |
Get reference coordinate of the node given node's local id. | |
const util::Point & | getXRefLocal (size_t i) const |
Get reference coordinate of the node. | |
void | setXRefLocal (size_t i, const util::Point &x) |
Set reference coordinate of the node given node's local id. | |
void | addXRefLocal (size_t i, const util::Point &x) |
Add to reference coordinate of the node given node's local id. | |
void | setXRefLocal (size_t i, int dof, double x) |
Set specific reference coordinate of the node given node's local id. | |
void | addXRefLocal (size_t i, int dof, double x) |
Add to specific reference coordinate of the node given node's local id. | |
Get and set current coordinate | |
util::Point & | getX (size_t i) |
Get current coordinate of the node. | |
const util::Point & | getX (size_t i) const |
Get current coordinate of the node. | |
void | setX (size_t i, const util::Point &x) |
Set current coordinate of the node. | |
void | addX (size_t i, const util::Point &x) |
Add current coordinate of the node. | |
void | setX (size_t i, int dof, double x) |
Set specific current coordinate of the node. | |
void | addX (size_t i, int dof, double x) |
Add to specific current coordinate of the node. | |
util::Point & | getXLocal (size_t i) |
Get current coordinate of the node given node's local id. | |
const util::Point & | getXLocal (size_t i) const |
Get current coordinate of the node. | |
void | setXLocal (size_t i, const util::Point &x) |
Set current coordinate of the node given node's local id. | |
void | addXLocal (size_t i, const util::Point &x) |
Add to current coordinate of the node given node's local id. | |
void | setXLocal (size_t i, int dof, double x) |
Set specific current coordinate of the node given node's local id. | |
void | addXLocal (size_t i, int dof, double x) |
Add to specific current coordinate of the node given node's local id. | |
Get and set displacement | |
util::Point & | getU (size_t i) |
Get displacement of the node. | |
const util::Point & | getU (size_t i) const |
Get displacement of the node. | |
void | setU (size_t i, const util::Point &u) |
Set displacement of the node. | |
void | addU (size_t i, const util::Point &u) |
Add to displacement of the node. | |
void | setU (size_t i, int dof, double u) |
Set displacement of the node. | |
void | addU (size_t i, int dof, double u) |
Add to displacement of the node. | |
util::Point & | getULocal (size_t i) |
Get displacement of the node given node's local id. | |
const util::Point & | getULocal (size_t i) const |
Get displacement of the node given node's local id. | |
void | setULocal (size_t i, const util::Point &u) |
Set displacement of the node given node's local id. | |
void | addULocal (size_t i, const util::Point &u) |
Add to displacement of the node given node's local id. | |
void | setULocal (size_t i, int dof, double u) |
Set displacement of the node given node's local id. | |
void | addULocal (size_t i, int dof, double u) |
Add to displacement of the node given node's local id. | |
Get and set velocity | |
util::Point & | getV (size_t i) |
Get velocity of the node. | |
const util::Point & | getV (size_t i) const |
Get velocity of the node. | |
void | setV (size_t i, const util::Point &v) |
Set velocity of the node. | |
void | addV (size_t i, const util::Point &v) |
Add to velocity of the node. | |
void | setV (size_t i, int dof, double v) |
Set velocity of the node. | |
void | addV (size_t i, int dof, double v) |
Add to velocity of the node. | |
util::Point & | getVLocal (size_t i) |
Get velocity of the node given node's local id. | |
const util::Point & | getVLocal (size_t i) const |
Get velocity of the node. | |
void | setVLocal (size_t i, const util::Point &v) |
Set velocity of the node given node's local id. | |
void | addVLocal (size_t i, const util::Point &v) |
Add to velocity of the node given node's local id. | |
void | setVLocal (size_t i, int dof, double v) |
Set velocity of the node given node's local id. | |
void | addVLocal (size_t i, int dof, double v) |
Add to velocity of the node given node's local id. | |
Get and set force | |
util::Point & | getF (size_t i) |
Get force of the node. | |
const util::Point & | getF (size_t i) const |
Get force of the node. | |
void | setF (size_t i, const util::Point &f) |
Set force of the node. | |
void | addF (size_t i, const util::Point &f) |
Add to force of the node. | |
void | setF (size_t i, int dof, double f) |
Set force of the node. | |
void | addF (size_t i, int dof, double f) |
Add to force of the node. | |
util::Point & | getFLocal (size_t i) |
Get force of the node given node's local id. | |
const util::Point & | getFLocal (size_t i) const |
Get force of the node. | |
void | setFLocal (size_t i, const util::Point &f) |
Set force of the node given node's local id. | |
void | addFLocal (size_t i, const util::Point &f) |
Add to force of the node given node's local id. | |
void | setFLocal (size_t i, int dof, double f) |
Set force of the node given node's local id. | |
void | addFLocal (size_t i, int dof, double f) |
Add to force of the node given node's local id. | |
Get and set volume | |
double & | getVol (size_t i) |
Get volume of the node. | |
const double & | getVol (size_t i) const |
Get volume of the node. | |
void | setVol (size_t i, const double &vol) |
Set volume of the node. | |
void | addVol (size_t i, const double &vol) |
Add to volume of the node. | |
double & | getVolLocal (size_t i) |
Get volume of the node given node's local id. | |
const double & | getVolLocal (size_t i) const |
Get volume of the node. | |
void | setVolLocal (size_t i, const double &vol) |
Set volume of the node given node's local id. | |
void | addVolLocal (size_t i, const double &vol) |
Add to volume of the node given node's local id. | |
Get and set fixity | |
uint8_t & | getFix (size_t i) |
Get fixity of the node. | |
const uint8_t & | getFix (size_t i) const |
Get fixity of the node. | |
void | setFix (size_t i, const unsigned int &dof, const bool &flag) |
Set fixity of the node. | |
uint8_t & | getFixLocal (size_t i) |
Get fixity of the node given node's local id. | |
const uint8_t & | getFixLocal (size_t i) const |
Get fixity of the node. | |
void | setFixLocal (size_t i, const unsigned int &dof, const bool &flag) |
Set fixity of the node given node's local id. | |
Get and set mx | |
double & | getMx (size_t i) |
Get weighted-volume (mx) of the node. | |
const double & | getMx (size_t i) const |
Get weighted-volume (mx) of the node. | |
void | setMx (size_t i, const double &mx) |
Set weighted-volume (mx) of the node. | |
void | addMx (size_t i, const double &mx) |
Add to weighted-volume (mx) of the node. | |
double & | getMxLocal (size_t i) |
Get weighted-volume (mx) of the node given node's local id. | |
const double & | getMxLocal (size_t i) const |
Get weighted-volume (mx) of the node. | |
void | setMxLocal (size_t i, const double &mx) |
Set weighted-volume (mx) of the node given node's local id. | |
void | addMxLocal (size_t i, const double &mx) |
Add to weighted-volume (mx) of the node given node's local id. | |
Get and set thetax | |
double & | getThetax (size_t i) |
Get volumetric deformation (thetax) of the node. | |
const double & | getThetax (size_t i) const |
Get volumetric deformation (thetax) of the node. | |
void | setThetax (size_t i, const double &thetax) |
Set volumetric deformation (thetax) of the node. | |
void | addThetax (size_t i, const double &thetax) |
Add to volumetric deformation (thetax) of the node. | |
double & | getThetaxLocal (size_t i) |
Get volumetric deformation (thetax) of the node given node's local id. | |
const double & | getThetaxLocal (size_t i) const |
Get volumetric deformation (thetax) of the node. | |
void | setThetaxLocal (size_t i, const double &thetax) |
Set volumetric deformation (thetax) of the node given node's local id. | |
void | addThetaxLocal (size_t i, const double &thetax) |
Add to volumetric deformation (thetax) of the node given node's local id. | |
Get and set center node data | |
size_t | getCenterNodeId () const |
Get id of center node of particle. | |
double | getParticleRadius () const |
Get radius of reference particle. | |
util::Point & | getXCenter () |
Get current coordinate of center node. | |
const util::Point & | getXCenter () const |
Get current coordinate of center node. | |
util::Point & | getUCenter () |
Get displacement of center node. | |
const util::Point & | getUCenter () const |
Get displacement of center node. | |
util::Point & | getVCenter () |
Get velocity of center node. | |
const util::Point & | getVCenter () const |
Get velocity of center node. | |
Data Fields | |
std::string | d_type |
particle type, e.g., particle or wall | |
std::string | d_particleDescription |
Particle information. E.g., "rigid". If nothing specific is available, value will be empty string. | |
int | d_typeIndex |
bool | d_isWall |
Is this particle actually a wall? | |
size_t | d_id |
Id of this particle in all particles list. | |
size_t | d_typeId |
Id of this particle in the category (for example if this is a wall, what is its id in vector of walls) | |
size_t | d_zoneId |
Specify zone to which this particle belongs to. | |
size_t | d_dim |
Dimension of this particle. | |
size_t | d_numNodes |
Number of nodes in this particle. | |
double | d_pRadius |
Particle radius. | |
double | d_h |
mesh size | |
bool | d_allDofsConstrained |
Specify if all dofs are constrained so we do not update displacement, velocity, and force data. | |
bool | d_computeForce |
Specify if we compute force. | |
double | d_horizon |
horizon | |
double | d_density |
density | |
std::unique_ptr< material::Material > | d_material_p |
Pointer to peridynamic material object. | |
double | d_Rc |
Contact radius for contact between internal nodes of particle. | |
double | d_Kn |
Normal contact coefficient for internal contact. | |
size_t | d_globStart |
Id of first node of this object in global node list. | |
size_t | d_globEnd |
Id of last node of this object in global node list. | |
size_t | d_globQuadStart |
Id of first node of this object in global quadrature data list, e.g., strain in elements at quadrature points. | |
size_t | d_globQuadEnd |
Id of last node of this object in global quadrature data list, e.g., strain in elements at quadrature points. | |
std::shared_ptr< model::ModelData > | d_modelData_p |
Reference to model class. | |
std::shared_ptr< particle::RefParticle > | d_rp_p |
Pointer to reference particle. | |
std::shared_ptr< util::geometry::GeomObject > | d_geom_p |
Geometrical object defining this particle. | |
particle::ParticleTransform | d_tform |
Transformation related data. | |
std::shared_ptr< fe::Mesh > | d_mesh_p |
Pointer to mesh on reference particle. | |
A class to store particle geometry, nodal discretization, and methods.
This class generates a base particle for peri-dem simulations. It holds the nodal positions, geometry of particle, list of nodes
Definition at line 31 of file baseParticle.h.
particle::BaseParticle::BaseParticle | ( | std::string | particle_type = "none" | ) |
Constructor.
particle_type | Type of the particle (e.g. particle or wall) |
Definition at line 22 of file baseParticle.cpp.
References d_dim, d_isWall, and d_typeIndex.
particle::BaseParticle::BaseParticle | ( | std::string | particle_type, |
size_t | id, | ||
size_t | particle_type_id, | ||
size_t | zone_id, | ||
size_t | dim, | ||
std::string | particle_description, | ||
bool | is_particle_a_wall, | ||
bool | are_all_dofs_constrained, | ||
size_t | num_nodes, | ||
double | h, | ||
std::shared_ptr< model::ModelData > | model_data, | ||
std::shared_ptr< particle::RefParticle > | ref_particle, | ||
std::shared_ptr< util::geometry::GeomObject > | geom, | ||
particle::ParticleTransform & | transform, | ||
std::shared_ptr< fe::Mesh > | mesh, | ||
inp::MaterialDeck & | material_deck, | ||
bool | populate_data = true |
||
) |
Constructor.
particle_type | Type of the object (e.g. particle or wall) |
id | Id of this object in list of all base particle objects |
particle_type_id | Id of this object in list of specific type of particles (e.g. id in the list of walls or particles) |
zone_id | Zone id this object belongs to |
dim | Spatial dimension |
particle_description | Description of particle if there is (e.g., 'rigid') |
is_particle_a_wall | Is this particle actually a wall? |
are_all_dofs_constrained | True means all dofs are constrained so we do not need to compute forces |
num_nodes | Number of nodes |
h | Mesh size |
model_data | Global model data |
material_deck | Material input data deck |
populate_data | Modify global model data to add the properties of this object |
Definition at line 60 of file baseParticle.cpp.
References particle::ParticleTransform::apply(), util::computeMeshSize(), d_allDofsConstrained, d_computeForce, d_density, d_dim, d_globEnd, d_globStart, d_h, d_horizon, d_id, d_isWall, d_Kn, d_material_p, d_modelData_p, d_Rc, d_rp_p, particle::ParticleTransform::d_scale, d_tform, d_type, d_typeIndex, and getDimension().
|
inline |
Add to force of the node.
i | Global id of node |
f | Force to add |
Definition at line 542 of file baseParticle.h.
References d_dim, and d_modelData_p.
Add to force of the node.
i | Global id of node |
dof | Direction or degree of freedom to be modified |
f | Force to add |
Definition at line 558 of file baseParticle.h.
References d_dim, and d_modelData_p.
|
inline |
Add to force of the node given node's local id.
i | Local id of node |
f | Force to add |
Definition at line 580 of file baseParticle.h.
References d_dim, d_globStart, and d_modelData_p.
Add to force of the node given node's local id.
i | Local id of node |
dof | Direction or degree of freedom to be modified |
f | Force to add |
Definition at line 597 of file baseParticle.h.
References d_dim, d_globStart, and d_modelData_p.
Add to weighted-volume (mx) of the node.
i | Global id of node |
mx | Weighted-volume to add |
Definition at line 721 of file baseParticle.h.
References d_dim, and d_modelData_p.
Add to weighted-volume (mx) of the node given node's local id.
i | Local id of node |
mx | Weighted-volume to add |
Definition at line 743 of file baseParticle.h.
References d_dim, d_globStart, and d_modelData_p.
Add to volumetric deformation (thetax) of the node.
i | Global id of node |
thetax | Volumetric deformation to add |
Definition at line 774 of file baseParticle.h.
References d_dim, and d_modelData_p.
Add to volumetric deformation (thetax) of the node given node's local id.
i | Local id of node |
thetax | Volumetric deformation to add |
Definition at line 799 of file baseParticle.h.
References d_dim, d_globStart, and d_modelData_p.
|
inline |
Add to displacement of the node.
i | Global id of node |
u | Displacement to add |
Definition at line 370 of file baseParticle.h.
References d_dim, and d_modelData_p.
Add to displacement of the node.
i | Global id of node |
dof | Direction or degree of freedom to be modified |
u | Displacement to add |
Definition at line 386 of file baseParticle.h.
References d_dim, and d_modelData_p.
|
inline |
Add to displacement of the node given node's local id.
i | Local id of node |
u | Displacement to add |
Definition at line 410 of file baseParticle.h.
References d_dim, d_globStart, and d_modelData_p.
Add to displacement of the node given node's local id.
i | Local id of node |
dof | Direction or degree of freedom to be modified |
u | Displacement to add |
Definition at line 427 of file baseParticle.h.
References d_dim, d_globStart, and d_modelData_p.
|
inline |
Add to velocity of the node.
i | Global id of node |
v | Velocity to add |
Definition at line 457 of file baseParticle.h.
References d_dim, and d_modelData_p.
Add to velocity of the node.
i | Global id of node |
dof | Direction or degree of freedom to be modified |
v | Velocity to add |
Definition at line 473 of file baseParticle.h.
References d_dim, and d_modelData_p.
|
inline |
Add to velocity of the node given node's local id.
i | Local id of node |
v | Velocity to add |
Definition at line 495 of file baseParticle.h.
References d_dim, d_globStart, and d_modelData_p.
Add to velocity of the node given node's local id.
i | Local id of node |
dof | Direction or degree of freedom to be modified |
v | Velocity to add |
Definition at line 512 of file baseParticle.h.
References d_dim, d_globStart, and d_modelData_p.
Add to volume of the node.
i | Global id of node |
vol | Volume to add |
Definition at line 627 of file baseParticle.h.
References d_dim, and d_modelData_p.
Add to volume of the node given node's local id.
i | Local id of node |
vol | Volume to add |
Definition at line 649 of file baseParticle.h.
References d_dim, d_globStart, and d_modelData_p.
|
inline |
Add current coordinate of the node.
i | Global id of node |
x | Current coordinate to add |
Definition at line 285 of file baseParticle.h.
References d_dim, and d_modelData_p.
Add to specific current coordinate of the node.
i | Global id of node |
dof | Direction or degree of freedom to be modified |
x | Current coordinate to add |
Definition at line 301 of file baseParticle.h.
References d_dim, and d_modelData_p.
|
inline |
Add to current coordinate of the node given node's local id.
i | Local id of node |
x | Current coordinate to add |
Definition at line 323 of file baseParticle.h.
References d_dim, d_globStart, and d_modelData_p.
Add to specific current coordinate of the node given node's local id.
i | Local id of node |
dof | Direction or degree of freedom to be modified |
x | Current coordinate to add |
Definition at line 340 of file baseParticle.h.
References d_dim, d_globStart, and d_modelData_p.
|
inline |
Add reference coordinate of the node.
i | Global id of node |
x | Reference coordinate to add |
Definition at line 195 of file baseParticle.h.
References d_dim, and d_modelData_p.
Add specific reference coordinate of the node.
i | Global id of node |
dof | Direction or degree of freedom to be modified |
x | Reference coordinate to add |
Definition at line 213 of file baseParticle.h.
References d_dim, and d_modelData_p.
|
inline |
Add to reference coordinate of the node given node's local id.
i | Local id of node |
x | Reference coordinate to add |
Definition at line 237 of file baseParticle.h.
References d_dim, d_globStart, and d_modelData_p.
Add to specific reference coordinate of the node given node's local id.
i | Local id of node |
dof | Direction or degree of freedom to be modified |
x | Reference coordinate to add |
Definition at line 255 of file baseParticle.h.
References d_dim, d_globStart, and d_modelData_p.
|
inline |
Get id of center node of particle.
Definition at line 813 of file baseParticle.h.
References d_rp_p.
|
inline |
Get density.
Definition at line 142 of file baseParticle.h.
References d_density.
|
inline |
Get id among the group of object in the same type as this.
Get the dimension of the domain
Definition at line 112 of file baseParticle.h.
References d_dim.
Referenced by BaseParticle().
|
inline |
Get force of the node.
i | Global id of node |
Definition at line 527 of file baseParticle.h.
References d_dim, and d_modelData_p.
|
inline |
Get force of the node.
i | Global id of node |
Definition at line 528 of file baseParticle.h.
References d_dim, and d_modelData_p.
Get fixity of the node.
i | Global id of node |
Definition at line 663 of file baseParticle.h.
References d_dim, and d_modelData_p.
Get fixity of the node.
i | Global id of node |
Definition at line 664 of file baseParticle.h.
References d_dim, and d_modelData_p.
Get fixity of the node given node's local id.
i | Local id of node |
Definition at line 681 of file baseParticle.h.
References d_dim, d_globStart, and d_modelData_p.
Get fixity of the node.
i | Global id of node |
Definition at line 682 of file baseParticle.h.
References d_dim, d_globStart, and d_modelData_p.
|
inline |
Get force of the node given node's local id.
i | Local id of node |
Definition at line 565 of file baseParticle.h.
References d_dim, d_globStart, and d_modelData_p.
|
inline |
Get force of the node.
i | Global id of node |
Definition at line 566 of file baseParticle.h.
References d_dim, d_globStart, and d_modelData_p.
|
inline |
Get horizon.
Definition at line 148 of file baseParticle.h.
References d_horizon.
|
inline |
|
inline |
Get pointer to material object.
Definition at line 154 of file baseParticle.h.
References d_material_p.
|
inline |
Get type of this object.
Definition at line 155 of file baseParticle.h.
References d_material_p.
|
inline |
Get reference to mesh object.
Definition at line 127 of file baseParticle.h.
References d_mesh_p.
Get reference to mesh object.
Definition at line 130 of file baseParticle.h.
References d_mesh_p.
|
inline |
Get pointer to mesh object.
Definition at line 118 of file baseParticle.h.
References d_mesh_p.
Get pointer to mesh object.
Definition at line 121 of file baseParticle.h.
References d_mesh_p.
|
inline |
Get weighted-volume (mx) of the node.
i | Global id of node |
Definition at line 706 of file baseParticle.h.
References d_dim, and d_modelData_p.
Get weighted-volume (mx) of the node.
i | Global id of node |
Definition at line 707 of file baseParticle.h.
References d_dim, and d_modelData_p.
Get weighted-volume (mx) of the node given node's local id.
i | Local id of node |
Definition at line 728 of file baseParticle.h.
References d_dim, d_globStart, and d_modelData_p.
Get weighted-volume (mx) of the node.
i | Global id of node |
Definition at line 729 of file baseParticle.h.
References d_dim, d_globStart, and d_modelData_p.
Get global id of node given the local id of node in this object.
i_loc | Local id of node |
Definition at line 168 of file baseParticle.h.
References d_dim, and d_globStart.
|
inline |
Get the number of nodes.
Definition at line 161 of file baseParticle.h.
References d_numNodes.
|
inline |
Get radius of reference particle.
Definition at line 819 of file baseParticle.h.
References d_pRadius.
Get volumetric deformation (thetax) of the node.
i | Global id of node |
Definition at line 757 of file baseParticle.h.
References d_dim, and d_modelData_p.
Get volumetric deformation (thetax) of the node.
i | Global id of node |
Definition at line 758 of file baseParticle.h.
References d_dim, and d_modelData_p.
Get volumetric deformation (thetax) of the node given node's local id.
i | Local id of node |
Definition at line 782 of file baseParticle.h.
References d_dim, d_globStart, and d_modelData_p.
Get volumetric deformation (thetax) of the node.
i | Global id of node |
Definition at line 783 of file baseParticle.h.
References d_dim, d_globStart, and d_modelData_p.
|
inline |
Get type of this object.
Definition at line 88 of file baseParticle.h.
References d_type.
|
inline |
Get type (in integer format) of this object.
Definition at line 94 of file baseParticle.h.
References d_typeIndex.
|
inline |
Get displacement of the node.
i | Global id of node |
Definition at line 355 of file baseParticle.h.
References d_dim, and d_modelData_p.
|
inline |
Get displacement of the node.
i | Global id of node |
Definition at line 356 of file baseParticle.h.
References d_dim, and d_modelData_p.
|
inline |
Get displacement of center node.
Definition at line 838 of file baseParticle.h.
References d_globStart, d_modelData_p, and d_rp_p.
|
inline |
Get displacement of center node.
Definition at line 843 of file baseParticle.h.
References d_globStart, d_modelData_p, and d_rp_p.
|
inline |
Get displacement of the node given node's local id.
i | Local id of node |
Definition at line 393 of file baseParticle.h.
References d_dim, d_globStart, and d_modelData_p.
|
inline |
Get displacement of the node given node's local id.
i | Local id of node |
Definition at line 396 of file baseParticle.h.
References d_dim, d_globStart, and d_modelData_p.
|
inline |
Get velocity of the node.
i | Global id of node |
Definition at line 442 of file baseParticle.h.
References d_dim, and d_modelData_p.
|
inline |
Get velocity of the node.
i | Global id of node |
Definition at line 443 of file baseParticle.h.
References d_dim, and d_modelData_p.
|
inline |
Get velocity of center node.
Definition at line 851 of file baseParticle.h.
References d_globStart, d_modelData_p, and d_rp_p.
|
inline |
Get velocity of center node.
Definition at line 856 of file baseParticle.h.
References d_globStart, d_modelData_p, and d_rp_p.
|
inline |
Get velocity of the node given node's local id.
i | Local id of node |
Definition at line 480 of file baseParticle.h.
References d_dim, d_globStart, and d_modelData_p.
|
inline |
Get velocity of the node.
i | Global id of node |
Definition at line 481 of file baseParticle.h.
References d_dim, d_globStart, and d_modelData_p.
Get volume of the node.
i | Global id of node |
Definition at line 612 of file baseParticle.h.
References d_dim, and d_modelData_p.
Get volume of the node.
i | Global id of node |
Definition at line 613 of file baseParticle.h.
References d_dim, and d_modelData_p.
Get volume of the node given node's local id.
i | Local id of node |
Definition at line 634 of file baseParticle.h.
References d_dim, d_globStart, and d_modelData_p.
Get volume of the node.
i | Global id of node |
Definition at line 635 of file baseParticle.h.
References d_dim, d_globStart, and d_modelData_p.
|
inline |
Get current coordinate of the node.
i | Global id of node |
Definition at line 270 of file baseParticle.h.
References d_dim, and d_modelData_p.
|
inline |
Get current coordinate of the node.
i | Global id of node |
Definition at line 271 of file baseParticle.h.
References d_dim, and d_modelData_p.
|
inline |
Get current coordinate of center node.
Definition at line 825 of file baseParticle.h.
References d_globStart, d_modelData_p, and d_rp_p.
|
inline |
Get current coordinate of center node.
Definition at line 830 of file baseParticle.h.
References d_globStart, d_modelData_p, and d_rp_p.
|
inline |
Get current coordinate of the node given node's local id.
i | Local id of node |
Definition at line 308 of file baseParticle.h.
References d_dim, d_globStart, and d_modelData_p.
|
inline |
Get current coordinate of the node.
i | Global id of node |
Definition at line 309 of file baseParticle.h.
References d_dim, d_globStart, and d_modelData_p.
|
inline |
Get reference coordinate of the node.
i | Global id of node |
Definition at line 180 of file baseParticle.h.
References d_dim, and d_modelData_p.
|
inline |
Get reference coordinate of the node.
i | Global id of node |
Definition at line 181 of file baseParticle.h.
References d_dim, and d_modelData_p.
|
inline |
Get reference coordinate of the node given node's local id.
i | Local id of node |
Definition at line 222 of file baseParticle.h.
References d_dim, d_globStart, and d_modelData_p.
|
inline |
Get reference coordinate of the node.
i | Global id of node |
Definition at line 223 of file baseParticle.h.
References d_dim, d_globStart, and d_modelData_p.
Prints the information about the object.
nt | Number of tabs to append before printing |
lvl | Information level (higher means more information) |
Definition at line 876 of file baseParticle.h.
References d_dim, and printStr().
Returns the string containing printable information about the object.
nt | Number of tabs to append before printing |
lvl | Information level (higher means more information) |
Definition at line 191 of file baseParticle.cpp.
References util::io::getTabS().
Referenced by print().
|
inline |
Set force of the node.
i | Global id of node |
f | Force to set |
Definition at line 535 of file baseParticle.h.
References d_dim, and d_modelData_p.
Set force of the node.
i | Global id of node |
dof | Direction or degree of freedom to be modified |
f | Force to set |
Definition at line 550 of file baseParticle.h.
References d_dim, and d_modelData_p.
|
inline |
Set fixity of the node.
i | Global id of node |
dof | Direction or degree of freedom to be modified |
flag | Fixity to set |
Definition at line 672 of file baseParticle.h.
References d_dim, and d_modelData_p.
|
inline |
Set fixity of the node given node's local id.
i | Local id of node |
dof | Direction or degree of freedom to be modified |
flag | Fixity to set |
Definition at line 690 of file baseParticle.h.
References d_dim, d_globStart, and d_modelData_p.
|
inline |
Set force of the node given node's local id.
i | Local id of node |
f | Force to set |
Definition at line 573 of file baseParticle.h.
References d_dim, d_globStart, and d_modelData_p.
Set force of the node given node's local id.
i | Local id of node |
dof | Direction or degree of freedom to be modified |
f | Force to set |
Definition at line 588 of file baseParticle.h.
References d_dim, d_globStart, and d_modelData_p.
Set weighted-volume (mx) of the node.
i | Global id of node |
mx | Weighted-volume to set |
Definition at line 714 of file baseParticle.h.
References d_dim, and d_modelData_p.
Set weighted-volume (mx) of the node given node's local id.
i | Local id of node |
mx | Weighted-volume to set |
Definition at line 736 of file baseParticle.h.
References d_dim, d_globStart, and d_modelData_p.
Set volumetric deformation (thetax) of the node.
i | Global id of node |
thetax | Volumetric deformation to set |
Definition at line 766 of file baseParticle.h.
References d_dim, and d_modelData_p.
Set volumetric deformation (thetax) of the node given node's local id.
i | Local id of node |
thetax | Volumetric deformation to set |
Definition at line 791 of file baseParticle.h.
References d_dim, d_globStart, and d_modelData_p.
|
inline |
Set displacement of the node.
i | Global id of node |
u | Displacement to set |
Definition at line 363 of file baseParticle.h.
References d_dim, and d_modelData_p.
Set displacement of the node.
i | Global id of node |
dof | Direction or degree of freedom to be modified |
u | Displacement to set |
Definition at line 378 of file baseParticle.h.
References d_dim, and d_modelData_p.
|
inline |
Set displacement of the node given node's local id.
i | Local id of node |
u | Displacement to set |
Definition at line 403 of file baseParticle.h.
References d_dim, d_globStart, and d_modelData_p.
Set displacement of the node given node's local id.
i | Local id of node |
dof | Direction or degree of freedom to be modified |
u | Displacement to set |
Definition at line 418 of file baseParticle.h.
References d_dim, d_globStart, and d_modelData_p.
|
inline |
Set velocity of the node.
i | Global id of node |
v | Velocity to set |
Definition at line 450 of file baseParticle.h.
References d_dim, and d_modelData_p.
Set velocity of the node.
i | Global id of node |
dof | Direction or degree of freedom to be modified |
v | Velocity to set |
Definition at line 465 of file baseParticle.h.
References d_dim, and d_modelData_p.
|
inline |
Set velocity of the node given node's local id.
i | Local id of node |
v | Velocity to set |
Definition at line 488 of file baseParticle.h.
References d_dim, d_globStart, and d_modelData_p.
Set velocity of the node given node's local id.
i | Local id of node |
dof | Direction or degree of freedom to be modified |
v | Velocity to set |
Definition at line 503 of file baseParticle.h.
References d_dim, d_globStart, and d_modelData_p.
Set volume of the node.
i | Global id of node |
vol | Volume to set |
Definition at line 620 of file baseParticle.h.
References d_dim, and d_modelData_p.
Set volume of the node given node's local id.
i | Local id of node |
vol | Volume to set |
Definition at line 642 of file baseParticle.h.
References d_dim, d_globStart, and d_modelData_p.
|
inline |
Set current coordinate of the node.
i | Global id of node |
x | Current coordinate to set |
Definition at line 278 of file baseParticle.h.
References d_dim, and d_modelData_p.
Set specific current coordinate of the node.
i | Global id of node |
dof | Direction or degree of freedom to be modified |
x | Current coordinate to set |
Definition at line 293 of file baseParticle.h.
References d_dim, and d_modelData_p.
|
inline |
Set current coordinate of the node given node's local id.
i | Local id of node |
x | Current coordinate to set |
Definition at line 316 of file baseParticle.h.
References d_dim, d_globStart, and d_modelData_p.
Set specific current coordinate of the node given node's local id.
i | Local id of node |
dof | Direction or degree of freedom to be modified |
x | Current coordinate to set |
Definition at line 331 of file baseParticle.h.
References d_dim, d_globStart, and d_modelData_p.
|
inline |
Set reference coordinate of the node.
i | Global id of node |
x | Reference coordinate to set |
Definition at line 188 of file baseParticle.h.
References d_dim, and d_modelData_p.
Set specific reference coordinate of the node.
i | Global id of node |
dof | Direction or degree of freedom to be modified |
x | Reference coordinate to set |
Definition at line 203 of file baseParticle.h.
References d_dim, and d_modelData_p.
|
inline |
Set reference coordinate of the node given node's local id.
i | Local id of node |
x | Reference coordinate to set |
Definition at line 230 of file baseParticle.h.
References d_dim, d_globStart, and d_modelData_p.
Set specific reference coordinate of the node given node's local id.
i | Local id of node |
dof | Direction or degree of freedom to be modified |
x | Reference coordinate to set |
Definition at line 245 of file baseParticle.h.
References d_dim, d_globStart, and d_modelData_p.
bool particle::BaseParticle::d_allDofsConstrained |
Specify if all dofs are constrained so we do not update displacement, velocity, and force data.
Definition at line 921 of file baseParticle.h.
Referenced by BaseParticle().
bool particle::BaseParticle::d_computeForce |
Specify if we compute force.
Definition at line 924 of file baseParticle.h.
Referenced by BaseParticle().
double particle::BaseParticle::d_density |
density
Definition at line 930 of file baseParticle.h.
Referenced by BaseParticle(), and getDensity().
size_t particle::BaseParticle::d_dim |
Dimension of this particle.
Definition at line 906 of file baseParticle.h.
Referenced by addF(), addF(), addFLocal(), addFLocal(), addMx(), addMxLocal(), addThetax(), addThetaxLocal(), addU(), addU(), addULocal(), addULocal(), addV(), addV(), addVLocal(), addVLocal(), addVol(), addVolLocal(), addX(), addX(), addXLocal(), addXLocal(), addXRef(), addXRef(), addXRefLocal(), addXRefLocal(), BaseParticle(), BaseParticle(), getDimension(), getF(), getF(), getFix(), getFix(), getFixLocal(), getFixLocal(), getFLocal(), getFLocal(), getMx(), getMx(), getMxLocal(), getMxLocal(), getNodeId(), getThetax(), getThetax(), getThetaxLocal(), getThetaxLocal(), getU(), getU(), getULocal(), getULocal(), getV(), getV(), getVLocal(), getVLocal(), getVol(), getVol(), getVolLocal(), getVolLocal(), getX(), getX(), getXLocal(), getXLocal(), getXRef(), getXRef(), getXRefLocal(), getXRefLocal(), print(), setF(), setF(), setFix(), setFixLocal(), setFLocal(), setFLocal(), setMx(), setMxLocal(), setThetax(), setThetaxLocal(), setU(), setU(), setULocal(), setULocal(), setV(), setV(), setVLocal(), setVLocal(), setVol(), setVolLocal(), setX(), setX(), setXLocal(), setXLocal(), setXRef(), setXRef(), setXRefLocal(), and setXRefLocal().
std::shared_ptr<util::geometry::GeomObject> particle::BaseParticle::d_geom_p |
Geometrical object defining this particle.
Definition at line 962 of file baseParticle.h.
size_t particle::BaseParticle::d_globEnd |
Id of last node of this object in global node list.
Definition at line 945 of file baseParticle.h.
Referenced by BaseParticle().
size_t particle::BaseParticle::d_globQuadEnd |
Id of last node of this object in global quadrature data list, e.g., strain in elements at quadrature points.
Definition at line 953 of file baseParticle.h.
size_t particle::BaseParticle::d_globQuadStart |
Id of first node of this object in global quadrature data list, e.g., strain in elements at quadrature points.
Definition at line 949 of file baseParticle.h.
size_t particle::BaseParticle::d_globStart |
Id of first node of this object in global node list.
Definition at line 942 of file baseParticle.h.
Referenced by addFLocal(), addFLocal(), addMxLocal(), addThetaxLocal(), addULocal(), addULocal(), addVLocal(), addVLocal(), addVolLocal(), addXLocal(), addXLocal(), addXRefLocal(), addXRefLocal(), BaseParticle(), getFixLocal(), getFixLocal(), getFLocal(), getFLocal(), getMxLocal(), getMxLocal(), getNodeId(), getThetaxLocal(), getThetaxLocal(), getUCenter(), getUCenter(), getULocal(), getULocal(), getVCenter(), getVCenter(), getVLocal(), getVLocal(), getVolLocal(), getVolLocal(), getXCenter(), getXCenter(), getXLocal(), getXLocal(), getXRefLocal(), getXRefLocal(), setFixLocal(), setFLocal(), setFLocal(), setMxLocal(), setThetaxLocal(), setULocal(), setULocal(), setVLocal(), setVLocal(), setVolLocal(), setXLocal(), setXLocal(), setXRefLocal(), and setXRefLocal().
double particle::BaseParticle::d_h |
mesh size
Definition at line 915 of file baseParticle.h.
Referenced by BaseParticle(), and getMeshSize().
double particle::BaseParticle::d_horizon |
horizon
Definition at line 927 of file baseParticle.h.
Referenced by BaseParticle(), and getHorizon().
size_t particle::BaseParticle::d_id |
Id of this particle in all particles list.
Definition at line 896 of file baseParticle.h.
Referenced by BaseParticle(), and getId().
bool particle::BaseParticle::d_isWall |
Is this particle actually a wall?
Definition at line 893 of file baseParticle.h.
Referenced by BaseParticle(), and BaseParticle().
double particle::BaseParticle::d_Kn |
Normal contact coefficient for internal contact.
Definition at line 939 of file baseParticle.h.
Referenced by BaseParticle().
std::unique_ptr<material::Material> particle::BaseParticle::d_material_p |
Pointer to peridynamic material object.
Definition at line 933 of file baseParticle.h.
Referenced by BaseParticle(), getMaterial(), and getMaterial().
std::shared_ptr<fe::Mesh> particle::BaseParticle::d_mesh_p |
Pointer to mesh on reference particle.
Definition at line 968 of file baseParticle.h.
Referenced by getMesh(), getMesh(), getMeshP(), and getMeshP().
std::shared_ptr<model::ModelData> particle::BaseParticle::d_modelData_p |
Reference to model class.
Definition at line 956 of file baseParticle.h.
Referenced by addF(), addF(), addFLocal(), addFLocal(), addMx(), addMxLocal(), addThetax(), addThetaxLocal(), addU(), addU(), addULocal(), addULocal(), addV(), addV(), addVLocal(), addVLocal(), addVol(), addVolLocal(), addX(), addX(), addXLocal(), addXLocal(), addXRef(), addXRef(), addXRefLocal(), addXRefLocal(), BaseParticle(), getF(), getF(), getFix(), getFix(), getFixLocal(), getFixLocal(), getFLocal(), getFLocal(), getMx(), getMx(), getMxLocal(), getMxLocal(), getThetax(), getThetax(), getThetaxLocal(), getThetaxLocal(), getU(), getU(), getUCenter(), getUCenter(), getULocal(), getULocal(), getV(), getV(), getVCenter(), getVCenter(), getVLocal(), getVLocal(), getVol(), getVol(), getVolLocal(), getVolLocal(), getX(), getX(), getXCenter(), getXCenter(), getXLocal(), getXLocal(), getXRef(), getXRef(), getXRefLocal(), getXRefLocal(), setF(), setF(), setFix(), setFixLocal(), setFLocal(), setFLocal(), setMx(), setMxLocal(), setThetax(), setThetaxLocal(), setU(), setU(), setULocal(), setULocal(), setV(), setV(), setVLocal(), setVLocal(), setVol(), setVolLocal(), setX(), setX(), setXLocal(), setXLocal(), setXRef(), setXRef(), setXRefLocal(), and setXRefLocal().
size_t particle::BaseParticle::d_numNodes |
Number of nodes in this particle.
Definition at line 909 of file baseParticle.h.
Referenced by getNumNodes().
std::string particle::BaseParticle::d_particleDescription |
Particle information. E.g., "rigid". If nothing specific is available, value will be empty string.
Definition at line 887 of file baseParticle.h.
double particle::BaseParticle::d_pRadius |
double particle::BaseParticle::d_Rc |
Contact radius for contact between internal nodes of particle.
Definition at line 936 of file baseParticle.h.
Referenced by BaseParticle().
std::shared_ptr<particle::RefParticle> particle::BaseParticle::d_rp_p |
Pointer to reference particle.
Definition at line 959 of file baseParticle.h.
Referenced by BaseParticle(), getCenterNodeId(), getUCenter(), getUCenter(), getVCenter(), getVCenter(), getXCenter(), and getXCenter().
particle::ParticleTransform particle::BaseParticle::d_tform |
Transformation related data.
Definition at line 965 of file baseParticle.h.
Referenced by BaseParticle().
std::string particle::BaseParticle::d_type |
particle type, e.g., particle or wall
Definition at line 881 of file baseParticle.h.
Referenced by BaseParticle(), and getType().
size_t particle::BaseParticle::d_typeId |
Id of this particle in the category (for example if this is a wall, what is its id in vector of walls)
Definition at line 900 of file baseParticle.h.
int particle::BaseParticle::d_typeIndex |
Integer-based particle identity. 0 means it is a particle and 1 means it is a wall
Definition at line 890 of file baseParticle.h.
Referenced by BaseParticle(), BaseParticle(), and getTypeIndex().
size_t particle::BaseParticle::d_zoneId |
Specify zone to which this particle belongs to.
Definition at line 903 of file baseParticle.h.