![]() |
PeriDEM 0.3.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 (size_t id=0) | |
| Constructor. | |
| BaseParticle (size_t id, bool isWall, size_t dim, std::map< std::string, size_t > groups, bool are_all_dofs_constrained, size_t num_nodes, double h, std::shared_ptr< data::ModelData > model_data, std::shared_ptr< particle::RefParticle > ref_particle, std::shared_ptr< geom::GeomObject > geom, geom::ParticleTransform &transform, std::shared_ptr< mesh::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 | |
| size_t | getId () const |
| Get id. | |
| bool | isWall () const |
| Is this particle a wall? | |
| size_t | getGroupId (const std::string &key) const |
| Get group id for given key. | |
| size_t | getDimension () const |
| Get the dimension of the domain. | |
| std::shared_ptr< mesh::Mesh > & | getMeshP () |
| Get pointer to mesh object. | |
| const std::shared_ptr< mesh::Mesh > & | getMeshP () const |
| Get pointer to mesh object. | |
| mesh::Mesh & | getMesh () |
| Get reference to mesh object. | |
| const mesh::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 id. | |
| 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 | |
| bool | d_isWall |
| size_t | d_id |
| Id of this particle in all particles list. | |
| std::map< std::string, size_t > | d_groups |
| Map that provides different groups of this particle. | |
| 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. | |
| int | d_mpiOwner |
| MPI owner rank for this grain (-1 = wall / all ranks). Used by particle-parallel (T09); ignored when not using MPI. | |
| 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< data::ModelData > | d_modelData_p |
| Reference to model class. | |
| std::shared_ptr< particle::RefParticle > | d_rp_p |
| Pointer to reference particle. | |
| std::shared_ptr< geom::GeomObject > | d_geom_p |
| Geometrical object defining this particle. | |
| geom::ParticleTransform | d_tform |
| Transformation related data. | |
| std::shared_ptr< mesh::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 32 of file baseParticle.h.
| particle::BaseParticle::BaseParticle | ( | size_t | id = 0 | ) |
Constructor.
| id | Id of this object in list of all base particle objects |
Definition at line 21 of file baseParticle.cpp.
| particle::BaseParticle::BaseParticle | ( | size_t | id, |
| bool | isWall, | ||
| size_t | dim, | ||
| std::map< std::string, size_t > | groups, | ||
| bool | are_all_dofs_constrained, | ||
| size_t | num_nodes, | ||
| double | h, | ||
| std::shared_ptr< data::ModelData > | model_data, | ||
| std::shared_ptr< particle::RefParticle > | ref_particle, | ||
| std::shared_ptr< geom::GeomObject > | geom, | ||
| geom::ParticleTransform & | transform, | ||
| std::shared_ptr< mesh::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 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 45 of file baseParticle.cpp.
References geom::ParticleTransform::apply(), geom::computeMeshSize(), d_allDofsConstrained, d_computeForce, d_density, d_globEnd, d_globStart, d_h, inp::MaterialDeck::d_horizon, d_horizon, inp::MaterialDeck::d_horizonMeshRatio, d_id, d_Kn, d_material_p, inp::MaterialDeck::d_materialType, d_modelData_p, d_Rc, d_rp_p, geom::ParticleTransform::d_scale, d_tform, util::Point::d_x, getDimension(), and util::selfContactStiffness().
|
inline |
Add to force of the node.
| i | Global id of node |
| f | Force to add |
Definition at line 535 of file baseParticle.h.
References d_modelData_p.
|
inline |
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 551 of file baseParticle.h.
References 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 573 of file baseParticle.h.
References d_globStart, and d_modelData_p.
|
inline |
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 590 of file baseParticle.h.
References d_globStart, and d_modelData_p.
|
inline |
Add to weighted-volume (mx) of the node.
| i | Global id of node |
| mx | Weighted-volume to add |
Definition at line 714 of file baseParticle.h.
References d_modelData_p.
|
inline |
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 736 of file baseParticle.h.
References d_globStart, and d_modelData_p.
|
inline |
Add to volumetric deformation (thetax) of the node.
| i | Global id of node |
| thetax | Volumetric deformation to add |
Definition at line 767 of file baseParticle.h.
References d_modelData_p.
|
inline |
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 792 of file baseParticle.h.
References 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 363 of file baseParticle.h.
References d_modelData_p.
|
inline |
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 379 of file baseParticle.h.
References 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 403 of file baseParticle.h.
References d_globStart, and d_modelData_p.
|
inline |
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 420 of file baseParticle.h.
References 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 450 of file baseParticle.h.
References d_modelData_p.
|
inline |
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 466 of file baseParticle.h.
References 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 488 of file baseParticle.h.
References d_globStart, and d_modelData_p.
|
inline |
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 505 of file baseParticle.h.
References d_globStart, and d_modelData_p.
|
inline |
Add to volume of the node.
| i | Global id of node |
| vol | Volume to add |
Definition at line 620 of file baseParticle.h.
References d_modelData_p.
|
inline |
Add to volume of the node given node's local id.
| i | Local id of node |
| vol | Volume to add |
Definition at line 642 of file baseParticle.h.
References 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 278 of file baseParticle.h.
References d_modelData_p.
|
inline |
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 294 of file baseParticle.h.
References 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 316 of file baseParticle.h.
References d_globStart, and d_modelData_p.
|
inline |
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 333 of file baseParticle.h.
References 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 188 of file baseParticle.h.
References d_modelData_p.
|
inline |
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 206 of file baseParticle.h.
References 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 230 of file baseParticle.h.
References d_globStart, and d_modelData_p.
|
inline |
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 248 of file baseParticle.h.
References d_globStart, and d_modelData_p.
|
inline |
Get id of center node of particle.
Definition at line 806 of file baseParticle.h.
References d_rp_p.
|
inline |
Get density.
Definition at line 135 of file baseParticle.h.
References d_density.
|
inline |
Get the dimension of the domain.
Definition at line 105 of file baseParticle.h.
References d_dim.
Referenced by BaseParticle().
|
inline |
Get force of the node.
| i | Global id of node |
Definition at line 520 of file baseParticle.h.
References d_modelData_p.
|
inline |
Get force of the node.
| i | Global id of node |
Definition at line 521 of file baseParticle.h.
References d_modelData_p.
|
inline |
Get fixity of the node.
| i | Global id of node |
Definition at line 656 of file baseParticle.h.
References d_modelData_p.
|
inline |
Get fixity of the node.
| i | Global id of node |
Definition at line 657 of file baseParticle.h.
References d_modelData_p.
|
inline |
Get fixity of the node given node's local id.
| i | Local id of node |
Definition at line 674 of file baseParticle.h.
References d_globStart, and d_modelData_p.
|
inline |
Get fixity of the node.
| i | Global id of node |
Definition at line 675 of file baseParticle.h.
References 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 558 of file baseParticle.h.
References d_globStart, and d_modelData_p.
|
inline |
Get force of the node.
| i | Global id of node |
Definition at line 559 of file baseParticle.h.
References d_globStart, and d_modelData_p.
|
inline |
Get group id for given key.
| key | Key to lookup group id (e.g. "geom_id", "mat_id", "mesh_id", "contact_id") |
Definition at line 99 of file baseParticle.h.
References d_groups.
|
inline |
Get horizon.
Definition at line 141 of file baseParticle.h.
References d_horizon.
|
inline |
Get id.
Definition at line 86 of file baseParticle.h.
References d_id.
Referenced by rw::writer::VtkParticleWriter::appendNodes(), and anonymous_namespace{vtkParticleWriter.cpp}::appendPointArraysForNodes().
|
inline |
Get pointer to material object.
Definition at line 147 of file baseParticle.h.
References d_material_p.
|
inline |
Get id.
Definition at line 148 of file baseParticle.h.
References d_material_p.
|
inline |
Get reference to mesh object.
Definition at line 120 of file baseParticle.h.
References d_mesh_p.
|
inline |
Get reference to mesh object.
Definition at line 123 of file baseParticle.h.
References d_mesh_p.
|
inline |
Get pointer to mesh object.
Definition at line 111 of file baseParticle.h.
References d_mesh_p.
|
inline |
Get pointer to mesh object.
Definition at line 114 of file baseParticle.h.
References d_mesh_p.
|
inline |
|
inline |
Get weighted-volume (mx) of the node.
| i | Global id of node |
Definition at line 699 of file baseParticle.h.
References d_modelData_p.
|
inline |
Get weighted-volume (mx) of the node.
| i | Global id of node |
Definition at line 700 of file baseParticle.h.
References d_modelData_p.
|
inline |
Get weighted-volume (mx) of the node given node's local id.
| i | Local id of node |
Definition at line 721 of file baseParticle.h.
References d_globStart, and d_modelData_p.
|
inline |
Get weighted-volume (mx) of the node.
| i | Global id of node |
Definition at line 722 of file baseParticle.h.
References d_globStart, and d_modelData_p.
|
inline |
Get global id of node given the local id of node in this object.
| i_loc | Local id of node |
Definition at line 161 of file baseParticle.h.
References d_globStart.
Referenced by anonymous_namespace{particleMpi.cpp}::packGrainKinematics(), and anonymous_namespace{particleMpi.cpp}::unpackGrainKinematics().
|
inline |
Get the number of nodes.
Definition at line 154 of file baseParticle.h.
References d_numNodes.
Referenced by anonymous_namespace{particleMpi.cpp}::packGrainKinematics(), and anonymous_namespace{particleMpi.cpp}::unpackGrainKinematics().
|
inline |
Get radius of reference particle.
Definition at line 812 of file baseParticle.h.
References d_pRadius.
|
inline |
Get volumetric deformation (thetax) of the node.
| i | Global id of node |
Definition at line 750 of file baseParticle.h.
References d_modelData_p.
|
inline |
Get volumetric deformation (thetax) of the node.
| i | Global id of node |
Definition at line 751 of file baseParticle.h.
References d_modelData_p.
|
inline |
Get volumetric deformation (thetax) of the node given node's local id.
| i | Local id of node |
Definition at line 775 of file baseParticle.h.
References d_globStart, and d_modelData_p.
|
inline |
Get volumetric deformation (thetax) of the node.
| i | Global id of node |
Definition at line 776 of file baseParticle.h.
References d_globStart, and d_modelData_p.
|
inline |
Get displacement of the node.
| i | Global id of node |
Definition at line 348 of file baseParticle.h.
References d_modelData_p.
|
inline |
Get displacement of the node.
| i | Global id of node |
Definition at line 349 of file baseParticle.h.
References d_modelData_p.
|
inline |
Get displacement of center node.
Definition at line 831 of file baseParticle.h.
References d_globStart, d_modelData_p, and d_rp_p.
|
inline |
Get displacement of center node.
Definition at line 836 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 386 of file baseParticle.h.
References 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 389 of file baseParticle.h.
References d_globStart, and d_modelData_p.
|
inline |
Get velocity of the node.
| i | Global id of node |
Definition at line 435 of file baseParticle.h.
References d_modelData_p.
|
inline |
Get velocity of the node.
| i | Global id of node |
Definition at line 436 of file baseParticle.h.
References d_modelData_p.
|
inline |
Get velocity of center node.
Definition at line 844 of file baseParticle.h.
References d_globStart, d_modelData_p, and d_rp_p.
|
inline |
Get velocity of center node.
Definition at line 849 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 473 of file baseParticle.h.
References d_globStart, and d_modelData_p.
|
inline |
Get velocity of the node.
| i | Global id of node |
Definition at line 474 of file baseParticle.h.
References d_globStart, and d_modelData_p.
|
inline |
Get volume of the node.
| i | Global id of node |
Definition at line 605 of file baseParticle.h.
References d_modelData_p.
|
inline |
Get volume of the node.
| i | Global id of node |
Definition at line 606 of file baseParticle.h.
References d_modelData_p.
|
inline |
Get volume of the node given node's local id.
| i | Local id of node |
Definition at line 627 of file baseParticle.h.
References d_globStart, and d_modelData_p.
|
inline |
Get volume of the node.
| i | Global id of node |
Definition at line 628 of file baseParticle.h.
References d_globStart, and d_modelData_p.
|
inline |
Get current coordinate of the node.
| i | Global id of node |
Definition at line 263 of file baseParticle.h.
References d_modelData_p.
|
inline |
Get current coordinate of the node.
| i | Global id of node |
Definition at line 264 of file baseParticle.h.
References d_modelData_p.
|
inline |
Get current coordinate of center node.
Definition at line 818 of file baseParticle.h.
References d_globStart, d_modelData_p, and d_rp_p.
|
inline |
Get current coordinate of center node.
Definition at line 823 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 301 of file baseParticle.h.
References d_globStart, and d_modelData_p.
|
inline |
Get current coordinate of the node.
| i | Global id of node |
Definition at line 302 of file baseParticle.h.
References d_globStart, and d_modelData_p.
|
inline |
Get reference coordinate of the node.
| i | Global id of node |
Definition at line 173 of file baseParticle.h.
References d_modelData_p.
|
inline |
Get reference coordinate of the node.
| i | Global id of node |
Definition at line 174 of file baseParticle.h.
References d_modelData_p.
|
inline |
Get reference coordinate of the node given node's local id.
| i | Local id of node |
Definition at line 215 of file baseParticle.h.
References d_globStart, and d_modelData_p.
|
inline |
Get reference coordinate of the node.
| i | Global id of node |
Definition at line 216 of file baseParticle.h.
References d_globStart, and d_modelData_p.
|
inline |
Is this particle a wall?
Definition at line 92 of file baseParticle.h.
References d_isWall.
Referenced by particle::isLocallyOwned().
|
inline |
Prints the information about the object.
| nt | Number of tabs to append before printing |
| lvl | Information level (higher means more information) |
Definition at line 869 of file baseParticle.h.
References printStr().
| std::string particle::BaseParticle::printStr | ( | int | nt = 0, |
| int | lvl = 0 |
||
| ) | const |
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 158 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 528 of file baseParticle.h.
References d_modelData_p.
|
inline |
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 543 of file baseParticle.h.
References 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 665 of file baseParticle.h.
References 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 683 of file baseParticle.h.
References 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 566 of file baseParticle.h.
References d_globStart, and d_modelData_p.
|
inline |
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 581 of file baseParticle.h.
References d_globStart, and d_modelData_p.
|
inline |
Set weighted-volume (mx) of the node.
| i | Global id of node |
| mx | Weighted-volume to set |
Definition at line 707 of file baseParticle.h.
References d_modelData_p.
|
inline |
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 729 of file baseParticle.h.
References d_globStart, and d_modelData_p.
|
inline |
Set volumetric deformation (thetax) of the node.
| i | Global id of node |
| thetax | Volumetric deformation to set |
Definition at line 759 of file baseParticle.h.
References d_modelData_p.
|
inline |
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 784 of file baseParticle.h.
References d_globStart, and d_modelData_p.
|
inline |
Set displacement of the node.
| i | Global id of node |
| u | Displacement to set |
Definition at line 356 of file baseParticle.h.
References d_modelData_p.
|
inline |
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 371 of file baseParticle.h.
References 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 396 of file baseParticle.h.
References d_globStart, and d_modelData_p.
|
inline |
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 411 of file baseParticle.h.
References d_globStart, and d_modelData_p.
|
inline |
Set velocity of the node.
| i | Global id of node |
| v | Velocity to set |
Definition at line 443 of file baseParticle.h.
References d_modelData_p.
|
inline |
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 458 of file baseParticle.h.
References 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 481 of file baseParticle.h.
References d_globStart, and d_modelData_p.
|
inline |
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 496 of file baseParticle.h.
References d_globStart, and d_modelData_p.
|
inline |
Set volume of the node.
| i | Global id of node |
| vol | Volume to set |
Definition at line 613 of file baseParticle.h.
References d_modelData_p.
|
inline |
Set volume of the node given node's local id.
| i | Local id of node |
| vol | Volume to set |
Definition at line 635 of file baseParticle.h.
References 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 271 of file baseParticle.h.
References d_modelData_p.
|
inline |
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 286 of file baseParticle.h.
References 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 309 of file baseParticle.h.
References d_globStart, and d_modelData_p.
|
inline |
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 324 of file baseParticle.h.
References 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 181 of file baseParticle.h.
References d_modelData_p.
|
inline |
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 196 of file baseParticle.h.
References 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 223 of file baseParticle.h.
References d_globStart, and d_modelData_p.
|
inline |
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 238 of file baseParticle.h.
References 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 897 of file baseParticle.h.
Referenced by BaseParticle().
| bool particle::BaseParticle::d_computeForce |
Specify if we compute force.
Definition at line 900 of file baseParticle.h.
Referenced by BaseParticle().
| double particle::BaseParticle::d_density |
density
Definition at line 912 of file baseParticle.h.
Referenced by BaseParticle(), and getDensity().
| size_t particle::BaseParticle::d_dim |
Dimension of this particle.
Definition at line 882 of file baseParticle.h.
Referenced by getDimension().
| std::shared_ptr<geom::GeomObject> particle::BaseParticle::d_geom_p |
Geometrical object defining this particle.
Definition at line 944 of file baseParticle.h.
| size_t particle::BaseParticle::d_globEnd |
Id of last node of this object in global node list.
Definition at line 927 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 935 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 931 of file baseParticle.h.
| size_t particle::BaseParticle::d_globStart |
Id of first node of this object in global node list.
Definition at line 924 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().
| std::map<std::string, size_t> particle::BaseParticle::d_groups |
Map that provides different groups of this particle.
Definition at line 879 of file baseParticle.h.
Referenced by rw::writer::VtkParticleWriter::appendNodes(), and getGroupId().
| double particle::BaseParticle::d_h |
mesh size
Definition at line 891 of file baseParticle.h.
Referenced by BaseParticle(), and getMeshSize().
| double particle::BaseParticle::d_horizon |
horizon
Definition at line 909 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 876 of file baseParticle.h.
Referenced by BaseParticle(), and getId().
| bool particle::BaseParticle::d_isWall |
Integer-based particle identity. 0 means it is a particle and 1 means it is a wall
Definition at line 873 of file baseParticle.h.
Referenced by isWall().
| double particle::BaseParticle::d_Kn |
Normal contact coefficient for internal contact.
Definition at line 921 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 915 of file baseParticle.h.
Referenced by rw::writer::VtkParticleWriter::appendNodes(), BaseParticle(), getMaterial(), and getMaterial().
| std::shared_ptr<mesh::Mesh> particle::BaseParticle::d_mesh_p |
Pointer to mesh on reference particle.
Definition at line 950 of file baseParticle.h.
Referenced by getMesh(), getMesh(), getMeshP(), and getMeshP().
| std::shared_ptr<data::ModelData> particle::BaseParticle::d_modelData_p |
Reference to model class.
Definition at line 938 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().
| int particle::BaseParticle::d_mpiOwner |
MPI owner rank for this grain (-1 = wall / all ranks). Used by particle-parallel (T09); ignored when not using MPI.
Definition at line 906 of file baseParticle.h.
Referenced by particle::isLocallyOwned().
| size_t particle::BaseParticle::d_numNodes |
Number of nodes in this particle.
Definition at line 885 of file baseParticle.h.
Referenced by getNumNodes().
| double particle::BaseParticle::d_pRadius |
| double particle::BaseParticle::d_Rc |
Contact radius for contact between internal nodes of particle.
Definition at line 918 of file baseParticle.h.
Referenced by BaseParticle().
| std::shared_ptr<particle::RefParticle> particle::BaseParticle::d_rp_p |
Pointer to reference particle.
Definition at line 941 of file baseParticle.h.
Referenced by BaseParticle(), getCenterNodeId(), getUCenter(), getUCenter(), getVCenter(), getVCenter(), getXCenter(), and getXCenter().
| geom::ParticleTransform particle::BaseParticle::d_tform |
Transformation related data.
Definition at line 947 of file baseParticle.h.
Referenced by BaseParticle().