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_application.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 authors: Jordi Cotela
11 //
12 
13 
14 #if !defined(KRATOS_HDF5_APPLICATION_H_INCLUDED )
15 #define KRATOS_HDF5_APPLICATION_H_INCLUDED
16 
17 
18 // System includes
19 #include <string>
20 #include <iostream>
21 
22 
23 // External includes
24 
25 
26 // Project includes
27 #include "includes/define.h"
29 #include "includes/variables.h"
30 
31 
32 namespace Kratos {
33 
36 
40 
44 
48 
52 
54 class KRATOS_API(HDF5_APPLICATION) KratosHDF5Application : public KratosApplication {
55 public:
58 
59 
62 
66 
69 
71  ~KratosHDF5Application() override {}
72 
73 
77 
78 
82 
83  void Register() override;
84 
85 
86 
90 
91 
95 
96 
100 
102  std::string Info() const override {
103  return "KratosHDF5Application";
104  }
105 
107  void PrintInfo(std::ostream& rOStream) const override {
108  rOStream << Info();
109  PrintData(rOStream);
110  }
111 
113  void PrintData(std::ostream& rOStream) const override
114  {
115  rOStream << "In KratosHDF5Application" << std::endl;
116 
117  rOStream << "Variables:" << std::endl;
119  rOStream << std::endl;
120  rOStream << "Elements:" << std::endl;
121  KratosComponents<Element>().PrintData(rOStream);
122  rOStream << std::endl;
123  rOStream << "Conditions:" << std::endl;
124  KratosComponents<Condition>().PrintData(rOStream);
125  }
126 
127 
131 
132 
134 
135 protected:
138 
139 
143 
144 
148 
149 
153 
154 
158 
159 
163 
164 
168 
169 
171 
172 private:
175 
179 
180 
184 
185 
189 
190 
194 
195 
199 
200 
204 
207 
210 
211 
213 
214 }; // Class KratosHDF5Application
215 
217 
218 
221 
222 
226 
228 
229 
230 } // namespace Kratos.
231 
232 #endif // KRATOS_HDF5_APPLICATION_H_INCLUDED defined
PeriodicInterfaceProcess & operator=(const PeriodicInterfaceProcess &)=delete
std::string Info() const override
Turn back information as a string.
Definition: periodic_interface_process.hpp:93
This class defines the interface with kernel for all applications in Kratos.
Definition: kratos_application.h:91
Definition: kratos_components.h:253
virtual void PrintData(std::ostream &rOStream) const
Print object's data.
Definition: kratos_components.h:403
This application provides an interface to write Kratos data using HDF5.
Definition: hdf5_application.h:54
std::string Info() const override
Turn back information as a string.
Definition: hdf5_application.h:102
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: hdf5_application.h:107
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: hdf5_application.h:113
~KratosHDF5Application() override
Destructor.
Definition: hdf5_application.h:71
KRATOS_CLASS_POINTER_DEFINITION(KratosHDF5Application)
Pointer definition of KratosHDF5Application.
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
KRATOS_API_EXTERN template class KratosComponents< Condition >
Definition: condition.h:1191
KRATOS_API_EXTERN template class KratosComponents< Element >
Definition: element.h:1240