![]() |
PeriDEM 0.3.0
PeriDEM -- Peridynamics-based high-fidelity model for granular media
|
A class to read input file. More...
#include <input.h>
Public Member Functions | |
| Input (const json &j=json({})) | |
| Constructor. | |
Accessor methods | |
| std::shared_ptr< inp::ModelDeck > | getModelDeck () |
| Get the pointer to model deck. | |
| std::shared_ptr< inp::OutputDeck > | getOutputDeck () |
| Get the pointer to output deck. | |
| std::shared_ptr< inp::RestartDeck > | getRestartDeck () |
| Get the pointer to restart deck. | |
| std::shared_ptr< inp::ParticleDeck > | getParticleDeck () |
| Get the pointer to particle deck. | |
| std::shared_ptr< inp::TestDeck > | getTestDeck () |
| Get the pointer to model deck. | |
| std::shared_ptr< inp::BCDeck > | getBCDeck () |
| Get the pointer to model deck. | |
| bool | isMultiParticle () |
| Get particle simulation type. | |
| bool | isPeriDEM () |
| Specify if PeriDEM model should be run. | |
| 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. | |
Data Fields | |
Decks | |
| std::shared_ptr< inp::ModelDeck > | d_modelDeck_p |
| Pointer to deck holding problem related data. | |
| std::shared_ptr< inp::OutputDeck > | d_outputDeck_p |
| Pointer to deck holding output related data. | |
| std::shared_ptr< inp::RestartDeck > | d_restartDeck_p |
| Pointer to deck holding restart related data. | |
| std::shared_ptr< inp::TestDeck > | d_testDeck_p |
| Test deck. | |
| std::shared_ptr< inp::BCDeck > | d_bcDeck_p |
| Boundary condition deck. | |
| std::shared_ptr< inp::ParticleDeck > | d_particleDeck_p |
| Pointer to deck holding particle related data. | |
A class to read input file.
In this class we read input file and read the data into the decks. Input file is a JSON file.
Constructor.
| filename | Filename of input file |
Definition at line 16 of file input.cpp.
References d_bcDeck_p, d_modelDeck_p, d_outputDeck_p, d_particleDeck_p, d_restartDeck_p, and d_testDeck_p.
|
inline |
Get the pointer to model deck.
Definition at line 104 of file input.h.
References d_bcDeck_p.
|
inline |
Get the pointer to model deck.
Definition at line 82 of file input.h.
References d_modelDeck_p.
|
inline |
Get the pointer to output deck.
Definition at line 88 of file input.h.
References d_outputDeck_p.
|
inline |
Get the pointer to particle deck.
Definition at line 100 of file input.h.
References d_particleDeck_p.
|
inline |
Get the pointer to restart deck.
Definition at line 94 of file input.h.
References d_restartDeck_p.
|
inline |
Get the pointer to model deck.
Definition at line 102 of file input.h.
References d_testDeck_p.
|
inline |
Get particle simulation type.
Definition at line 110 of file input.h.
References d_modelDeck_p.
|
inline |
Specify if PeriDEM model should be run.
Definition at line 116 of file input.h.
References d_modelDeck_p.
|
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 151 of file input.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 131 of file input.h.
References d_bcDeck_p, d_modelDeck_p, d_outputDeck_p, d_particleDeck_p, d_restartDeck_p, d_testDeck_p, and util::io::getTabS().
Referenced by print().
| std::shared_ptr<inp::BCDeck> inp::Input::d_bcDeck_p |
Boundary condition deck.
Definition at line 172 of file input.h.
Referenced by getBCDeck(), Input(), and printStr().
| std::shared_ptr<inp::ModelDeck> inp::Input::d_modelDeck_p |
Pointer to deck holding problem related data.
Definition at line 160 of file input.h.
Referenced by getModelDeck(), Input(), isMultiParticle(), isPeriDEM(), and printStr().
| std::shared_ptr<inp::OutputDeck> inp::Input::d_outputDeck_p |
Pointer to deck holding output related data.
Definition at line 163 of file input.h.
Referenced by getOutputDeck(), Input(), and printStr().
| std::shared_ptr<inp::ParticleDeck> inp::Input::d_particleDeck_p |
Pointer to deck holding particle related data.
Definition at line 175 of file input.h.
Referenced by getParticleDeck(), Input(), and printStr().
| std::shared_ptr<inp::RestartDeck> inp::Input::d_restartDeck_p |
Pointer to deck holding restart related data.
Definition at line 166 of file input.h.
Referenced by getRestartDeck(), Input(), and printStr().
| std::shared_ptr<inp::TestDeck> inp::Input::d_testDeck_p |
Test deck.
Definition at line 169 of file input.h.
Referenced by getTestDeck(), Input(), and printStr().