![]() |
PeriDEM 0.3.0
PeriDEM -- Peridynamics-based high-fidelity model for granular media
|
Structure to read and store test-related input data. More...
#include <bcDeck.h>
Public Member Functions | |
| BCDeck (const json &j=json({})) | |
| Constructor. | |
| BCDeck (size_t nForceSets, size_t nDispSets=0, size_t nICSets=0, bool gravityActive=false, util::Point gravity=util::Point()) | |
| 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 (size_t nForceSets=0, size_t nDispSets=0, size_t nICSets=0, bool gravityActive=false, util::Point gravity=util::Point()) |
| Returns example JSON object for ModelDeck configuration. | |
Data Fields | |
| std::vector< inp::BCBaseDeck > | d_forceDeck |
| Force loading deck. | |
| std::vector< inp::BCBaseDeck > | d_dispDeck |
| Displacement loading deck. | |
| std::vector< inp::BCBaseDeck > | d_icDeck |
| Initial condition deck. | |
| bool | d_gravityActive |
| Gravity loading value. | |
| util::Point | d_gravity |
| Gravity loading value. | |
Constructor.
Definition at line 48 of file bcDeck.h.
|
inline |
Constructor.
Definition at line 56 of file bcDeck.h.
References d_dispDeck, d_forceDeck, and d_icDeck.
|
inlinestatic |
Returns example JSON object for ModelDeck configuration.
Definition at line 69 of file bcDeck.h.
Referenced by 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(), and getInputJson().
|
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 194 of file bcDeck.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 156 of file bcDeck.h.
References d_dispDeck, d_forceDeck, d_gravity, d_gravityActive, d_icDeck, util::io::getTabS(), and util::Point::printStr().
Referenced by print().
|
inline |
Reads from json object.
Definition at line 105 of file bcDeck.h.
References d_dispDeck, d_forceDeck, d_gravity, d_gravityActive, d_icDeck, and inp::BCBaseDeck::readFromJson().
| std::vector<inp::BCBaseDeck> inp::BCDeck::d_dispDeck |
Displacement loading deck.
Definition at line 33 of file bcDeck.h.
Referenced by BCDeck(), printStr(), and readFromJson().
| std::vector<inp::BCBaseDeck> inp::BCDeck::d_forceDeck |
Force loading deck.
Definition at line 30 of file bcDeck.h.
Referenced by BCDeck(), printStr(), and readFromJson().
| util::Point inp::BCDeck::d_gravity |
Gravity loading value.
Definition at line 42 of file bcDeck.h.
Referenced by printStr(), and readFromJson().
| bool inp::BCDeck::d_gravityActive |
Gravity loading value.
Definition at line 39 of file bcDeck.h.
Referenced by printStr(), and readFromJson().
| std::vector<inp::BCBaseDeck> inp::BCDeck::d_icDeck |
Initial condition deck.
Definition at line 36 of file bcDeck.h.
Referenced by BCDeck(), printStr(), and readFromJson().