![]() |
PeriDEM 0.3.0
PeriDEM -- Peridynamics-based high-fidelity model for granular media
|
Structure to read and store particle generation data, such as particle locations and group file. More...
#include <pGenDeck.h>
Public Member Functions | |
| PGenDeck (const json &j=json({})) | |
| Constructor. | |
| PGenDeck (std::string genMethod, json pGenJson=json({}), bool genWithRandomRotation=true) | |
| Constructor. | |
| void | readFromJson (const json &j) |
| Reads from json object. | |
| 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 | getExampleJson (std::string genMethod="From_File") |
| Returns example JSON object for ModelDeck configuration. | |
Data Fields | |
| std::string | d_genMethod |
| Particle generation method. | |
| json | d_pGenJson |
| Json object loaded from the input json file or jason file for particle generation. | |
| bool | d_genWithRandomRotation |
| Random rotation of particles if orientation is not provided. | |
Structure to read and store particle generation data, such as particle locations and group file.
Definition at line 27 of file pGenDeck.h.
Constructor.
Definition at line 48 of file pGenDeck.h.
|
inline |
Constructor.
Definition at line 57 of file pGenDeck.h.
|
inlinestatic |
Returns example JSON object for ModelDeck configuration.
Definition at line 65 of file pGenDeck.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}::buildInputJson(), getInputJson(), and inp::ParticleDeck::getParticleGenExampleJson().
|
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 124 of file pGenDeck.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 96 of file pGenDeck.h.
References d_genMethod, d_genWithRandomRotation, d_pGenJson, and util::io::getTabS().
Referenced by print(), and inp::ParticleDeck::printStr().
|
inline |
Reads from json object.
Definition at line 74 of file pGenDeck.h.
References d_genMethod, d_genWithRandomRotation, and d_pGenJson.
Referenced by inp::ParticleDeck::readParticleGenFromJson().
| std::string inp::PGenDeck::d_genMethod |
Particle generation method.
"From_File" means particle location, radius and other details will be loaded from the input json file. Use key 'Particle_Generation' to provide the data.
"Use_Particle_Geometry" means particle geometry will be used to generate particles.
Definition at line 37 of file pGenDeck.h.
Referenced by printStr(), and readFromJson().
| bool inp::PGenDeck::d_genWithRandomRotation |
Random rotation of particles if orientation is not provided.
Definition at line 43 of file pGenDeck.h.
Referenced by printStr(), and readFromJson().
| json inp::PGenDeck::d_pGenJson |
Json object loaded from the input json file or jason file for particle generation.
Definition at line 40 of file pGenDeck.h.
Referenced by printStr(), and readFromJson().