![]() |
PeriDEM 0.3.0
PeriDEM -- Peridynamics-based high-fidelity model for granular media
|
Structure to read and store particle related input data. More...
#include <particleDeck.h>
Public Member Functions | |
| ParticleDeck (const json &j=json({}), std::string particleSimType="Multi_Particle") | |
| Constructor. | |
| void | readFromJson (const json &j) |
| void | readParticleGeomFromJson (const json &j) |
| Reads from json object. | |
| void | readParticleMeshFromJson (const json &j) |
| void | readParticleMaterialFromJson (const json &j) |
| void | readParticleContactFromJson (const json &j) |
| void | readParticleNeighborFromJson (const json &j) |
| void | readParticleGenFromJson (const json &j) |
| 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. | |
Static Public Member Functions | |
| static json | getParticleGeomExampleJson (std::vector< geom::GeomData > pGeomVec=std::vector< geom::GeomData >()) |
| Returns example JSON object for ModelDeck configuration. | |
| static json | getParticleMeshExampleJson (std::vector< std::string > filenameVec=std::vector< std::string >(), std::vector< double > meshSizesVec=std::vector< double >()) |
| Returns example JSON object for ModelDeck configuration. | |
| static json | getParticleMaterialExampleJson (size_t nSets=0) |
| Returns example JSON object for ModelDeck configuration. | |
| static json | getParticleContactExampleJson (size_t nSets=0) |
| Returns example JSON object for ModelDeck configuration. | |
| static json | getParticleNeighborExampleJson (const json &given=json::object()) |
| Returns the neighbor block with the given fields set. | |
| static json | getParticleGenExampleJson (const json &given=json::object()) |
| Returns the particle generation block with the given fields set. | |
Data Fields | |
| std::string | d_particleSimType |
| Specify if this is single or multi particle simulation Expected value is either 'Single_Particle' or 'Multi_Particle'. | |
| std::vector< geom::GeomData > | d_pGeomVec |
| Particle geometry data. | |
| std::vector< inp::MeshDeck > | d_pMeshVec |
| Particle mesh data. | |
| std::vector< inp::MaterialDeck > | d_pMaterialVec |
| Particle material data. | |
| inp::ContactDeck | d_contactDeck |
| Particle contact data. | |
| inp::PNeighborDeck | d_pNeighDeck |
| Neighbor search data. | |
| inp::PGenDeck | d_pGenDeck |
| Particle generation data. | |
Structure to read and store particle related input data.
Definition at line 31 of file particleDeck.h.
|
inline |
Constructor.
Definition at line 62 of file particleDeck.h.
|
inlinestatic |
Returns example JSON object for ModelDeck configuration.
Definition at line 260 of file particleDeck.h.
References inp::ContactDeck::getExampleJson().
Referenced by anonymous_namespace{main.cpp}::buildBhatInputJson(), anonymous_namespace{main.cpp}::buildImpactInputJson(), anonymous_namespace{main.cpp}::buildInputJson(), anonymous_namespace{main.cpp}::buildInputJson(), anonymous_namespace{main.cpp}::buildInputJson(), anonymous_namespace{main.cpp}::buildInputJson(), anonymous_namespace{main.cpp}::buildInputJson(), anonymous_namespace{main.cpp}::buildInputJson(), getInputJson(), and anonymous_namespace{main.cpp}::makeDeck().
|
inlinestatic |
Returns the particle generation block with the given fields set.
| given | Field names and values to set, checked against the table |
Definition at line 287 of file particleDeck.h.
References inp::PGenDeck::getExampleJson().
|
inlinestatic |
Returns example JSON object for ModelDeck configuration.
Definition at line 95 of file particleDeck.h.
References geom::writeGeometry().
Referenced by anonymous_namespace{main.cpp}::buildBhatInputJson(), anonymous_namespace{main.cpp}::buildImpactInputJson(), anonymous_namespace{main.cpp}::buildInputJson(), anonymous_namespace{main.cpp}::buildInputJson(), anonymous_namespace{main.cpp}::buildInputJson(), anonymous_namespace{main.cpp}::buildInputJson(), anonymous_namespace{main.cpp}::buildInputJson(), anonymous_namespace{main.cpp}::buildInputJson(), anonymous_namespace{main.cpp}::buildInputJson(), anonymous_namespace{main.cpp}::buildInputJson(), anonymous_namespace{main.cpp}::buildTraskInputJson(), and getInputJson().
|
inlinestatic |
Returns example JSON object for ModelDeck configuration.
Definition at line 210 of file particleDeck.h.
Referenced by anonymous_namespace{main.cpp}::buildBhatInputJson(), anonymous_namespace{main.cpp}::buildImpactInputJson(), anonymous_namespace{main.cpp}::buildInputJson(), anonymous_namespace{main.cpp}::buildInputJson(), anonymous_namespace{main.cpp}::buildInputJson(), anonymous_namespace{main.cpp}::buildInputJson(), anonymous_namespace{main.cpp}::buildInputJson(), anonymous_namespace{main.cpp}::buildInputJson(), anonymous_namespace{main.cpp}::buildTraskInputJson(), getInputJson(), and anonymous_namespace{main.cpp}::makeDeck().
|
inlinestatic |
Returns example JSON object for ModelDeck configuration.
Definition at line 153 of file particleDeck.h.
References inp::MeshDeck::getExampleJson().
Referenced by getInputJson().
|
inlinestatic |
Returns the neighbor block with the given fields set.
| given | Field names and values to set, checked against the table |
Definition at line 273 of file particleDeck.h.
References inp::PNeighborDeck::getExampleJson().
|
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 351 of file particleDeck.h.
References printStr().
|
inline |
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 302 of file particleDeck.h.
References d_contactDeck, d_pGenDeck, d_pGeomVec, d_pMaterialVec, d_pMeshVec, d_pNeighDeck, util::io::getTabS(), inp::ContactDeck::printStr(), inp::PGenDeck::printStr(), and inp::PNeighborDeck::printStr().
Referenced by print().
|
inline |
Definition at line 67 of file particleDeck.h.
References d_pGeomVec, d_pMeshVec, readParticleContactFromJson(), readParticleGenFromJson(), readParticleGeomFromJson(), readParticleMaterialFromJson(), readParticleMeshFromJson(), and readParticleNeighborFromJson().
|
inline |
Definition at line 264 of file particleDeck.h.
References d_contactDeck, and inp::ContactDeck::readFromJson().
Referenced by readFromJson().
|
inline |
Definition at line 291 of file particleDeck.h.
References d_pGenDeck, and inp::PGenDeck::readFromJson().
Referenced by readFromJson().
|
inline |
Reads from json object.
Definition at line 117 of file particleDeck.h.
References geom::createGeomObject(), d_particleSimType, d_pGeomVec, and geom::readGeometry().
Referenced by readFromJson().
|
inline |
Definition at line 224 of file particleDeck.h.
References d_particleSimType, and d_pMaterialVec.
Referenced by readFromJson().
|
inline |
Definition at line 174 of file particleDeck.h.
References d_particleSimType, and d_pMeshVec.
Referenced by readFromJson().
|
inline |
Definition at line 278 of file particleDeck.h.
References d_pNeighDeck, and inp::PNeighborDeck::readFromJson().
Referenced by readFromJson().
| inp::ContactDeck inp::ParticleDeck::d_contactDeck |
Particle contact data.
Definition at line 51 of file particleDeck.h.
Referenced by printStr(), and readParticleContactFromJson().
| std::string inp::ParticleDeck::d_particleSimType |
Specify if this is single or multi particle simulation Expected value is either 'Single_Particle' or 'Multi_Particle'.
This flag is used to populate input deck data. For the case when we consider single particle and its deformation, one do not have to specify data such as zones and contact.
Definition at line 39 of file particleDeck.h.
Referenced by readParticleGeomFromJson(), readParticleMaterialFromJson(), and readParticleMeshFromJson().
| inp::PGenDeck inp::ParticleDeck::d_pGenDeck |
Particle generation data.
Definition at line 57 of file particleDeck.h.
Referenced by printStr(), and readParticleGenFromJson().
| std::vector<geom::GeomData> inp::ParticleDeck::d_pGeomVec |
Particle geometry data.
Definition at line 42 of file particleDeck.h.
Referenced by printStr(), readFromJson(), and readParticleGeomFromJson().
| std::vector<inp::MaterialDeck> inp::ParticleDeck::d_pMaterialVec |
Particle material data.
Definition at line 48 of file particleDeck.h.
Referenced by printStr(), and readParticleMaterialFromJson().
| std::vector<inp::MeshDeck> inp::ParticleDeck::d_pMeshVec |
Particle mesh data.
Definition at line 45 of file particleDeck.h.
Referenced by printStr(), readFromJson(), and readParticleMeshFromJson().
| inp::PNeighborDeck inp::ParticleDeck::d_pNeighDeck |
Neighbor search data.
Definition at line 54 of file particleDeck.h.
Referenced by printStr(), and readParticleNeighborFromJson().