![]() |
PeriDEM 0.3.0
PeriDEM -- Peridynamics-based high-fidelity model for granular media
|
Structure to read and store test-related input data. More...
#include <testDeck.h>
Public Member Functions | |
| TestDeck (const json &j=json({})) | |
| Constructor. | |
| TestDeck (std::string testName, size_t particleIdCompressiveTest=0, size_t particleForceDirectionCompressiveTest=0) | |
| 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 testName="", size_t particleIdCompressiveTest=0, size_t particleForceDirectionCompressiveTest=0) |
| Returns example JSON object for ModelDeck configuration. | |
Data Fields | |
| std::string | d_testName |
| Specify test name (if any) | |
| size_t | d_particleIdCompressiveTest |
| if it is a compressive test, specify wall id and direction | |
| size_t | d_particleForceDirectionCompressiveTest |
| if it is a compressive test, specify force direction on wall | |
Structure to read and store test-related input data.
Definition at line 25 of file testDeck.h.
Constructor.
Definition at line 39 of file testDeck.h.
|
inline |
Constructor.
Definition at line 47 of file testDeck.h.
|
inlinestatic |
Returns example JSON object for ModelDeck configuration.
Definition at line 57 of file testDeck.h.
|
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 118 of file testDeck.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 99 of file testDeck.h.
References d_particleForceDirectionCompressiveTest, d_particleIdCompressiveTest, d_testName, and util::io::getTabS().
Referenced by print().
|
inline |
Reads from json object.
Definition at line 76 of file testDeck.h.
References d_particleForceDirectionCompressiveTest, d_particleIdCompressiveTest, and d_testName.
| size_t inp::TestDeck::d_particleForceDirectionCompressiveTest |
if it is a compressive test, specify force direction on wall
Definition at line 33 of file testDeck.h.
Referenced by printStr(), and readFromJson().
| size_t inp::TestDeck::d_particleIdCompressiveTest |
if it is a compressive test, specify wall id and direction
Definition at line 30 of file testDeck.h.
Referenced by printStr(), and readFromJson().
| std::string inp::TestDeck::d_testName |
Specify test name (if any)
Definition at line 27 of file testDeck.h.
Referenced by printStr(), and readFromJson().