![]() |
PeriDEM 0.3.0
PeriDEM -- Peridynamics-based high-fidelity model for granular media
|
Structure to read input data for performing simulation output. More...
#include <outputDeck.h>
Public Member Functions | |
| OutputDeck (const json &j=json({})) | |
| Constructor. | |
| OutputDeck (std::string outFormat, std::string path="./", std::vector< std::string > outTags={"Displacement"}, size_t outputInterval=1, size_t debug=2, bool performFEOut=true, std::string compressType="zlib", bool performOut=true, size_t dtTestOut=1, std::string tagPPFile="", bool pvdCollection=false) | |
| 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 std::string &)=delete |
| Returns example JSON object for ModelDeck configuration. | |
| static json | getExampleJson (const char *)=delete |
| Returns example JSON object for ModelDeck configuration. | |
| static const std::vector< Field< OutputDeck > > & | fields () |
| The fields of this deck, declared once. | |
| static json | getExampleJson (const json &given=json::object()) |
| Returns the block with the given fields set. | |
Data Fields | |
| std::string | d_outFormat |
| Output format. Allowed values are vtu, msh, legacy_vtk. | |
| std::string | d_path |
| Output Path where the files will be written. | |
| std::vector< std::string > | d_outTags |
| List of tags of data to be dumped. | |
| size_t | d_dtOut |
| Size of time steps (or frequency) for output operation. | |
| size_t | d_dtOutOld |
| Size of time steps (or frequency) for output operation. | |
| size_t | d_debug |
| Level below which a message is logged. | |
| bool | d_performFEOut |
| Flag specifying if element-node connectivity should not be dumped. | |
| std::string | d_compressType |
| Compressor type for .vtu files. | |
| std::string | d_outCriteria |
| Specify output criteria to change output frequency. | |
| size_t | d_dtOutCriteria |
| Specify output frequency if output criteria is met. | |
| std::vector< double > | d_outCriteriaParams |
| List of parameters required in checking output criteria. | |
| bool | d_performOut |
| Perform vtu output. | |
| size_t | d_dtTestOut |
| Size of time steps (or frequency) for output operation. | |
| std::string | d_tagPPFile |
| Tag for postprocessing file. | |
| bool | d_pvdCollection |
| If true, write a ParaView .pvd collection alongside VTU files so one file can be opened to animate all timesteps (references the per-step .vtu files). | |
Structure to read input data for performing simulation output.
Definition at line 29 of file outputDeck.h.
Constructor.
Definition at line 110 of file outputDeck.h.
|
inline |
Constructor.
Definition at line 122 of file outputDeck.h.
|
inlinestatic |
The fields of this deck, declared once.
Reading, writing, printing and the schema are generated from this table. The output criteria are a block of their own and are read in readDerived.
Definition at line 164 of file outputDeck.h.
References d_compressType, d_debug, d_dtOut, d_dtTestOut, d_outFormat, d_outTags, d_path, d_performFEOut, d_performOut, d_pvdCollection, d_tagPPFile, and inp::field().
Referenced by getExampleJson(), printStr(), and readFromJson().
|
staticdelete |
Returns example JSON object for ModelDeck configuration.
Rejects a value given where a set of named values is expected
A format or path passed on its own would convert to a JSON string and be read as a block with no keys, so such a call is rejected when compiling.
Returns the block with the given fields set.
| given | Field names and values to set, checked against the table |
Definition at line 201 of file outputDeck.h.
References inp::applyGiven(), and fields().
|
staticdelete |
Returns example JSON object for ModelDeck configuration.
Rejects a value given where a set of named values is expected
A format or path passed on its own would convert to a JSON string and be read as a block with no keys, so such a call is rejected when compiling.
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(), anonymous_namespace{main.cpp}::buildInputJson(), anonymous_namespace{main.cpp}::buildTraskInputJson(), getInputJson(), anonymous_namespace{main.cpp}::makeDeck(), and anonymous_namespace{testDeckRoundTrip.cpp}::testOutputDeck().
|
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 262 of file outputDeck.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 239 of file outputDeck.h.
References d_dtOutCriteria, d_dtOutOld, d_outCriteria, d_outCriteriaParams, fields(), util::io::getTabS(), and inp::printFields().
Referenced by print().
|
inline |
Reads from json object.
Definition at line 208 of file outputDeck.h.
References d_dtOut, d_dtOutCriteria, d_dtOutOld, d_outCriteria, d_outCriteriaParams, d_path, fields(), and inp::readFields().
Referenced by anonymous_namespace{testDeckRoundTrip.cpp}::testOutputDeck().
| std::string inp::OutputDeck::d_compressType |
| size_t inp::OutputDeck::d_debug |
Level below which a message is logged.
util::io::log(priority, ...) writes when this value is greater than priority, so a level of n writes the messages of priority 0 to n-1. Priorities 0 to 3 are in use, so 0 writes nothing and 4 writes all.
Definition at line 58 of file outputDeck.h.
Referenced by fields().
| size_t inp::OutputDeck::d_dtOut |
Size of time steps (or frequency) for output operation.
Definition at line 46 of file outputDeck.h.
Referenced by fields(), and readFromJson().
| size_t inp::OutputDeck::d_dtOutCriteria |
Specify output frequency if output criteria is met.
If criteria is met, then this number if used as output frequency.
Definition at line 87 of file outputDeck.h.
Referenced by printStr(), and readFromJson().
| size_t inp::OutputDeck::d_dtOutOld |
Size of time steps (or frequency) for output operation.
Definition at line 49 of file outputDeck.h.
Referenced by printStr(), and readFromJson().
| size_t inp::OutputDeck::d_dtTestOut |
Size of time steps (or frequency) for output operation.
Definition at line 96 of file outputDeck.h.
Referenced by fields().
| std::string inp::OutputDeck::d_outCriteria |
Specify output criteria to change output frequency.
Choices are:
Specify the method used in changing the output frequency. If not specified then we do not change the output frequency from d_dtOut.
Definition at line 81 of file outputDeck.h.
Referenced by printStr(), and readFromJson().
| std::vector<double> inp::OutputDeck::d_outCriteriaParams |
List of parameters required in checking output criteria.
Definition at line 90 of file outputDeck.h.
Referenced by printStr(), and readFromJson().
| std::string inp::OutputDeck::d_outFormat |
Output format. Allowed values are vtu, msh, legacy_vtk.
Default is vtu format.
Definition at line 34 of file outputDeck.h.
Referenced by fields().
| std::vector<std::string> inp::OutputDeck::d_outTags |
List of tags of data to be dumped.
Definition at line 43 of file outputDeck.h.
Referenced by fields().
| std::string inp::OutputDeck::d_path |
Output Path where the files will be written.
Default is current working directory
Definition at line 40 of file outputDeck.h.
Referenced by fields(), and readFromJson().
| bool inp::OutputDeck::d_performFEOut |
Flag specifying if element-node connectivity should not be dumped.
For large mesh, vtk writer crashes when writing element-node connectivity.
Definition at line 66 of file outputDeck.h.
Referenced by fields().
| bool inp::OutputDeck::d_performOut |
| bool inp::OutputDeck::d_pvdCollection |
If true, write a ParaView .pvd collection alongside VTU files so one file can be opened to animate all timesteps (references the per-step .vtu files).
Definition at line 105 of file outputDeck.h.
Referenced by fields().
| std::string inp::OutputDeck::d_tagPPFile |