KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
hdf5_element_flag_value_io.h
Go to the documentation of this file.
1 // | / |
2 // ' / __| _` | __| _ \ __|
3 // . \ | ( | | ( |\__ `
4 // _|\_\_| \__,_|\__|\___/ ____/
5 // Multi-Physics
6 //
7 // License: BSD License
8 // license: HDF5Application/license.txt
9 //
10 // Main author: Michael Andre, https://github.com/msandre
11 // Suneth Warnakulasuriya, https://github.com/sunethwarna
12 //
13 
14 #if !defined(KRATOS_HDF5_ELEMENT_FLAG_VALUE_IO_H_INCLUDED)
15 #define KRATOS_HDF5_ELEMENT_FLAG_VALUE_IO_H_INCLUDED
16 
17 // System includes
18 #include <string>
19 #include <vector>
20 
21 // External includes
22 
23 // Project includes
24 #include "includes/define.h"
25 
26 // Application includes
28 #include "custom_io/hdf5_file.h"
30 #include "includes/communicator.h"
31 
32 namespace Kratos
33 {
34 class Parameters;
35 
36 namespace HDF5
37 {
40 
43 
46  : public ContainerComponentIO<ElementsContainerType, ElementType, Flags>
47 {
48 public:
51 
53 
56 
60 
62  ElementFlagValueIO(Parameters Settings, File::Pointer pFile)
63  : BaseType(Settings, pFile, "/ElementFlagValues")
64  {
65  }
66 
70 
72  {
73  this->WriteContainerComponents(rElements);
74  }
75 
77  {
78  this->ReadContainerComponents(rElements, rComm);
79  }
80 
82 
83 protected:
87 
88 private:
95 
96 }; // class ElementFlagValueIO.
97 
100 } // namespace HDF5.
101 } // namespace Kratos.
102 
103 #endif // KRATOS_HDF5_ELEMENT_FLAG_VALUE_IO_H_INCLUDED defined
The Commmunicator class manages communication for distributed ModelPart instances.
Definition: communicator.h:67
A class for IO of element data in HDF5.
Definition: hdf5_container_component_io.h:45
void WriteContainerComponents(ElementsContainerType const &rContainerItems)
Definition: hdf5_container_component_io.cpp:597
void ReadContainerComponents(ElementsContainerType &rContainerItems, Communicator &rCommunicator)
Definition: hdf5_container_component_io.cpp:621
A class for IO of element data in HDF5.
Definition: hdf5_element_flag_value_io.h:47
KRATOS_CLASS_POINTER_DEFINITION(ElementFlagValueIO)
Pointer definition.
void WriteElementFlags(ElementsContainerType const &rElements)
Definition: hdf5_element_flag_value_io.h:71
ElementFlagValueIO(Parameters Settings, File::Pointer pFile)
Constructor.
Definition: hdf5_element_flag_value_io.h:62
void ReadElementFlags(ElementsContainerType &rElements, Communicator &rComm)
Definition: hdf5_element_flag_value_io.h:76
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
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21