18 #include <unordered_map>
92 const bool IsInitialConfiguration =
true,
93 const WriterFormat OutputFormat = WriterFormat::BINARY,
106 template<
class TDataType>
116 template<
class TDataType>
117 void AddNonHistoricalVariable(
119 const Flags& rEntityFlags);
128 void AddFlagVariable(
129 const std::string& rFlagName,
130 const Flags& rFlagVariable,
131 const Flags& rEntityFlags);
146 template <
class TContainerType>
147 void AddContainerExpression(
148 const std::string& rExpressionName,
154 void ClearHistoricalVariables();
159 void ClearNodalNonHistoricalVariables();
164 void ClearCellNonHistoricalVariables();
169 void ClearNodalFlags();
174 void ClearCellFlags();
179 void ClearNodalContainerExpressions();
184 void ClearCellContainerExpressions();
199 void PrintOutput(
const std::string& rOutputFilenamePrefix);
208 const bool mIsInitialConfiguration;
210 const WriterFormat mOutputFormat;
214 bool mIsConditionsConsidered;
216 bool mIsElementsConsidered;
221 std::unordered_map<IndexType, IndexType> mKratosVtuIndicesMap;
223 std::map<std::string, SupportedVariables> mHistoricalVariablesMap;
225 std::map<std::string, SupportedVariables> mNonHistoricalNodalVariablesMap;
227 std::map<std::string, SupportedVariables> mNonHistoricalCellVariablesMap;
229 std::map<std::string, const Flags*> mNodalFlagsMap;
231 std::map<std::string, const Flags*> mCellFlagsMap;
233 std::map<std::string, ContainerExpression<ModelPart::NodesContainerType>::Pointer> mPointContainerExpressionsMap;
235 std::map<std::string, SupportedCellContainerExpressions> mCellContainerExpressionsMap;
247 const std::string& rOutputFileNamePrefix,
Container variable data holder.
Definition: container_expression.h:80
IO provides different implementation of input output procedures which can be used to read and write w...
Definition: io.h:58
This class aims to manage meshes for multi-physics simulations.
Definition: model_part.h:77
Class to output Kratos Flags, Variables and ContainerExpressions to vtu. Supports both shared and dis...
Definition: vtu_output.h:42
KRATOS_DEFINE_LOCAL_FLAG(ELEMENTS)
std::size_t IndexType
Definition: vtu_output.h:47
KRATOS_CLASS_POINTER_DEFINITION(VtuOutput)
std::variant< ContainerExpression< ModelPart::ConditionsContainerType >::Pointer, ContainerExpression< ModelPart::ElementsContainerType >::Pointer > SupportedCellContainerExpressions
Definition: vtu_output.h:59
std::variant< const Variable< int > *, const Variable< double > *, const Variable< array_1d< double, 3 > > *, const Variable< array_1d< double, 4 > > *, const Variable< array_1d< double, 6 > > *, const Variable< array_1d< double, 9 > > * > SupportedVariables
Definition: vtu_output.h:55
WriterFormat
Enumerations for the output writer format.
Definition: vtu_output.h:73
@ ASCII
Definition: vtu_output.h:74
KRATOS_DEFINE_LOCAL_FLAG(CONDITIONS)
KRATOS_DEFINE_LOCAL_FLAG(NODES)
std::size_t IndexType
The definition of the index type.
Definition: key_hash.h:35
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21