13 #if !defined(KRATOS_MMG_IO)
84 template<MMGLibrary TMMGLibrary>
85 class KRATOS_API(MESHING_APPLICATION)
MmgIO
123 static constexpr
SizeType ConditionsArraySize = (Dimension == 2) ? 1 : 2;
126 static constexpr
SizeType ElementsArraySize = (Dimension == 2) ? 1 : 2;
158 std::string
const& rFilename,
160 const Flags Options = IO::READ | IO::IGNORE_VARIABLES_ERROR.AsFalse() | IO::SKIP_TIMER);
197 void WriteModelPart(
ModelPart& rModelPart)
override;
203 std::string GetMmgVersion();
220 std::string
Info()
const override
275 std::string mFilename;
299 return default_parameters;
336 template<MMGLibrary TMMGLibrary>
341 template<MMGLibrary TMMGLibrary>
346 rOStream << std::endl;
Geometry base class.
Definition: geometry.h:71
IO provides different implementation of input output procedures which can be used to read and write w...
Definition: io.h:58
std::size_t SizeType
Definition: io.h:97
Mesh is the second level of abstraction in the data structure which hold Nodes, Elements and Conditio...
Definition: mesh.h:69
typename NodesContainerType::const_iterator NodeConstantIterator
Const iterator for nodes in the container. Provides direct references to nodes.
Definition: mesh.h:117
typename ConditionsContainerType::const_iterator ConditionConstantIterator
Const iterator for conditions in the container. Provides direct references to conditions.
Definition: mesh.h:156
typename ElementsContainerType::const_iterator ElementConstantIterator
Const iterator for elements in the container. Provides direct references to elements.
Definition: mesh.h:141
This class is a IO which uses the MMG library.
Definition: mmg_io.h:87
std::unordered_map< IndexType, IndexType > ColorsMapType
Colors map.
Definition: mmg_io.h:141
MeshType::NodeConstantIterator NodeConstantIterator
Nodes container definition.
Definition: mmg_io.h:113
ModelPart::ConditionsContainerType ConditionsArrayType
Conditions containers definition.
Definition: mmg_io.h:101
ModelPart::NodesContainerType NodesArrayType
Node containers definition.
Definition: mmg_io.h:97
ModelPart::ElementsContainerType ElementsArrayType
Elements containers definition.
Definition: mmg_io.h:99
MeshType::ElementConstantIterator ElementConstantIterator
Elements container definition.
Definition: mmg_io.h:117
Geometry< NodeType > GeometryType
Definition: mmg_io.h:106
Mesh< NodeType, Properties, Element, Condition > MeshType
Mesh definition.
Definition: mmg_io.h:109
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: mmg_io.h:226
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: mmg_io.h:232
std::vector< double > DoubleVectorType
Double vector.
Definition: mmg_io.h:132
KRATOS_CLASS_POINTER_DEFINITION(MmgIO)
Pointer definition of MmgIO.
std::unordered_map< DoubleVectorType, IndexType, KeyHasherRange< DoubleVectorType >, KeyComparorRange< DoubleVectorType > > DoubleVectorMapType
Double vector map.
Definition: mmg_io.h:135
std::unordered_map< IndexVectorType, IndexType, KeyHasherRange< IndexVectorType >, KeyComparorRange< IndexVectorType > > IndexVectorMapType
Index vector map.
Definition: mmg_io.h:138
~MmgIO() override=default
Destructor.
Node NodeType
Node definition.
Definition: mmg_io.h:104
MeshType::ConditionConstantIterator ConditionConstantIterator
Conditions container definition.
Definition: mmg_io.h:115
std::conditional< Dimension==2, array_1d< double, 3 >, array_1d< double, 6 > >::type TensorArrayType
The type of array considered for the tensor.
Definition: mmg_io.h:129
std::pair< IndexType, IndexType > IndexPairType
Index pair.
Definition: mmg_io.h:144
MeshType::PropertiesContainerType PropertiesContainerType
Properties container definition.
Definition: mmg_io.h:111
std::string Info() const override
Turn back information as a string.
Definition: mmg_io.h:220
Provides the Kratos interface to the MMG library API.
Definition: mmg_utilities.h:153
This class aims to manage meshes for multi-physics simulations.
Definition: model_part.h:77
MeshType::ConditionsContainerType ConditionsContainerType
Condintions container. A vector set of Conditions with their Id's as key.
Definition: model_part.h:183
MeshType::ElementsContainerType ElementsContainerType
Element container. A vector set of Elements with their Id's as key.
Definition: model_part.h:168
MeshType::NodesContainerType NodesContainerType
Nodes container. Which is a vector set of nodes with their Id's as key.
Definition: model_part.h:128
This class defines the node.
Definition: node.h:65
This class provides to Kratos a data structure for I/O based on the standard of JSON.
Definition: kratos_parameters.h:59
A sorted associative container similar to an STL set, but uses a vector to store pointers to its data...
Definition: pointer_vector_set.h:72
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
std::size_t SizeType
The definition of the size type.
Definition: mortar_classes.h:43
std::istream & operator>>(std::istream &rIStream, LinearMasterSlaveConstraint &rThis)
input stream function
std::vector< IndexType > IndexVectorType
Index vector.
Definition: mmg_io.h:63
std::ostream & operator<<(std::ostream &rOStream, const LinearMasterSlaveConstraint &rThis)
output stream function
Definition: linear_master_slave_constraint.h:432
type
Definition: generate_gid_list_file.py:35
def ReadModelPart(model_part, inputfile)
Definition: read_modelpart_from_json.py:3
This is a key comparer of general pourpose between two classes.
Definition: key_hash.h:100