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_container_gauss_point_output.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: Suneth Warnakulasuriya, https://github.com/sunethwarna
11 //
12 
13 #if !defined(KRATOS_HDF5_CONTAINER_GAUSS_POINT_OUTPUT_H_INCLUDED)
14 #define KRATOS_HDF5_CONTAINER_GAUSS_POINT_OUTPUT_H_INCLUDED
15 
16 // System includes
17 #include <string>
18 #include <vector>
19 
20 // External includes
21 
22 // Project includes
23 #include "includes/define.h"
25 #include "includes/process_info.h"
26 
27 // Application includes
28 #include "custom_io/hdf5_file.h"
30 
31 namespace Kratos
32 {
33 class Parameters;
34 
35 namespace HDF5
36 {
39 
42 
44 template <typename TContainerType, typename... TComponents>
45 class KRATOS_API(HDF5_APPLICATION) ContainerGaussPointOutput
46 {
47 public:
50 
51  using TContainerItemType = typename TContainerType::value_type;
52 
55 
59 
61  ContainerGaussPointOutput(Parameters Settings, File::Pointer pFile, const std::string& rPath);
62 
66 
68 
69 protected:
72 
73  void WriteContainerGaussPointsValues(
74  TContainerType& rContainerItems,
75  const DataCommunicator& rDataCommunicator,
76  const ProcessInfo& rProcessInfo);
77 
79 
80 private:
83  File::Pointer mpFile;
84  std::string mVariablePath;
85  std::vector<std::string> mVariableNames;
89 
90  template <typename... TArgs>
91  void WriteRegisteredGaussPointValues(
92  const std::string& rComponentName,
93  TArgs&... args);
94 
96 
97 }; // class ContainerGaussPointOutput.
98 
101 } // namespace HDF5.
102 } // namespace Kratos.
103 
104 #endif // KRATOS_HDF5_CONTAINER_GAUSS_POINT_OUTPUT_H_INCLUDED defined
Serial (do-nothing) version of a wrapper class for MPI communication.
Definition: data_communicator.h:318
A class for IO of element data in HDF5.
Definition: hdf5_container_gauss_point_output.h:46
KRATOS_CLASS_POINTER_DEFINITION(ContainerGaussPointOutput)
Pointer definition.
typename TContainerType::value_type TContainerItemType
Definition: hdf5_container_gauss_point_output.h:51
This class provides to Kratos a data structure for I/O based on the standard of JSON.
Definition: kratos_parameters.h:59
ProcessInfo holds the current value of different solution parameters.
Definition: process_info.h:59
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
args
Definition: generate_gid_list_file.py:37