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_condition_data_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_CONDITION_DATA_VALUE_IO_H_INCLUDED)
15 #define KRATOS_HDF5_CONDITION_DATA_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 
45 class ConditionDataValueIO : public ContainerComponentIO<ConditionsContainerType,
46  ConditionType,
47  Variable<array_1d<double, 3>>,
48  Variable<double>,
49  Variable<int>,
50  Variable<Vector<double>>,
51  Variable<Matrix<double>>>
52 {
53 public:
56 
64 
67 
71 
73  ConditionDataValueIO(Parameters Settings, File::Pointer pFile)
74  : BaseType(Settings, pFile, "/ConditionDataValues")
75  {
76  }
77 
81 
83  {
84  this->WriteContainerComponents(rConditions);
85  }
86 
88  {
89  this->ReadContainerComponents(rConditions, rComm);
90  }
91 
93 
94 protected:
98 
99 private:
106 
107 }; // class ConditionDataValueIO.
108 
111 } // namespace HDF5.
112 } // namespace Kratos.
113 
114 #endif // KRATOS_HDF5_CONDITION_DATA_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_condition_data_value_io.h:52
void WriteConditionResults(ConditionsContainerType const &rConditions)
Definition: hdf5_condition_data_value_io.h:82
KRATOS_CLASS_POINTER_DEFINITION(ConditionDataValueIO)
Pointer definition.
void ReadConditionResults(ConditionsContainerType &rConditions, Communicator &rComm)
Definition: hdf5_condition_data_value_io.h:87
ConditionDataValueIO(Parameters Settings, File::Pointer pFile)
Constructor.
Definition: hdf5_condition_data_value_io.h:73
A class for IO of element data in HDF5.
Definition: hdf5_container_component_io.h:45
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
Variable class contains all information needed to store and retrive data from a data container.
Definition: variable.h:63
IO::MeshType::ConditionsContainerType ConditionsContainerType
Definition: hdf5_application_define.h:55
IO::MeshType::ConditionType ConditionType
Definition: hdf5_application_define.h:45
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21