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_points_data.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 //
12 
13 #if !defined(KRATOS_HDF5_POINTS_DATA_H_INCLUDED)
14 #define KRATOS_HDF5_POINTS_DATA_H_INCLUDED
15 
16 // System includes
17 #include <string>
18 
19 // External includes
20 
21 // Project includes
22 #include "includes/define.h"
23 #include "containers/array_1d.h"
24 
25 // Application includes
27 
28 namespace Kratos
29 {
30 namespace HDF5
31 {
32 
33 class File;
34 struct WriteInfo;
35 
36 namespace Internals
37 {
42 
45 {
46 public:
51 
58 
59  inline unsigned size() const
60  {
61  return mIds.size();
62  }
63 
64  void ReadData(File& rFile, const std::string& rPath, unsigned StartIndex, unsigned BlockSize);
65 
66  void WriteData(File& rFile, const std::string& rPath, WriteInfo& rInfo);
67 
68  void CreateNodes(NodesContainerType& rNodes);
69 
70  // Fill data from nodes.
71  void SetData(NodesContainerType const& rNodes);
72 
73  void Clear();
75 private:
78  Vector<int> mIds;
81 }; // class PointsData
82 
85 } // namespace Internals.
86 } // namespace HDF5.
87 } // namespace Kratos.
88 
89 #endif // KRATOS_HDF5_POINTS_DATA_H_INCLUDED defined
A base class for reading and writing an HDF5 file.
Definition: hdf5_file.h:57
A class representing points in a mesh.
Definition: hdf5_points_data.h:45
unsigned size() const
Definition: hdf5_points_data.h:59
void CreateNodes(NodesContainerType &rNodes)
Definition: hdf5_points_data.cpp:29
void Clear()
Definition: hdf5_points_data.cpp:71
void WriteData(File &rFile, const std::string &rPath, WriteInfo &rInfo)
Definition: hdf5_points_data.cpp:21
void SetData(NodesContainerType const &rNodes)
Definition: hdf5_points_data.cpp:44
void ReadData(File &rFile, const std::string &rPath, unsigned StartIndex, unsigned BlockSize)
Definition: hdf5_points_data.cpp:12
Definition: amatrix_interface.h:41
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
Stores information about a dataset written to HDF5.
Definition: hdf5_file.h:44