![]() |
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 (const json &given=json::object()) |
| 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.
Returns example JSON object for ModelDeck configuration.
Returns the block with the given fields set
Each of the three kinds of set is asked for by its count. Naming Gravity is what turns gravity on; it is a force on every particle and so sits beside the force sets rather than replacing them.
| given | Force_BC_Sets, Displacement_BC_Sets, IC_Sets and Gravity |
Definition at line 79 of file bcDeck.h.
References inp::checkNames().
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(), getInputJson(), and anonymous_namespace{testDeckRoundTrip.cpp}::testBCDeck().
|
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 200 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 162 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 111 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().