OOFEM 3.0
Loading...
Searching...
No Matches
vtkhdf5reader.h
Go to the documentation of this file.
1/*
2 *
3 * ##### ##### ###### ###### ### ###
4 * ## ## ## ## ## ## ## ### ##
5 * ## ## ## ## #### #### ## # ##
6 * ## ## ## ## ## ## ## ##
7 * ## ## ## ## ## ## ## ##
8 * ##### ##### ## ###### ## ##
9 *
10 *
11 * OOFEM : Object Oriented Finite Element Code
12 *
13 * Copyright (C) 1993 - 2025 Borek Patzak
14 *
15 *
16 *
17 * Czech Technical University, Faculty of Civil Engineering,
18 * Department of Structural Mechanics, 166 29 Prague, Czech Republic
19 *
20 * This library is free software; you can redistribute it and/or
21 * modify it under the terms of the GNU Lesser General Public
22 * License as published by the Free Software Foundation; either
23 * version 2.1 of the License, or (at your option) any later version.
24 *
25 * This program is distributed in the hope that it will be useful,
26 * but WITHOUT ANY WARRANTY; without even the implied warranty of
27 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
28 * Lesser General Public License for more details.
29 *
30 * You should have received a copy of the GNU Lesser General Public
31 * License along with this library; if not, write to the Free Software
32 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
33 */
34
35#ifndef vtkhdf5reader_h
36#define vtkhdf5reader_h
37
39#include "elementgeometrytype.h"
40
41#include "timestep.h"
42#include "intarray.h"
44
45
46#include <string>
47#include <list>
48
49#ifdef __HDF_MODULE
50#include "H5Cpp.h"
51#endif
52
53
54using namespace std;
55namespace oofem {
56
62{
63protected:
65 std::string fileName;
66#ifdef __HDF_MODULE
68 H5::H5File *file;
70 H5::Group *topGroup;
72 H5::Group *stepsGroup;
74 unsigned int numSteps;
76 FloatArray stepValues;
78 unsigned int numPointData;
80 unsigned int numCellData;
81#endif
82public:
86 virtual ~VTKHDF5Reader();
87
88 void initialize(std::string &fileName) ;
89 void finalize() ;
91 void readField(UnstructuredGridField&, TimeStep* tStep, const std::string &field_name);
92protected:
93#ifdef __HDF_MODULE
94 void readDataSet (H5::DataSet& dset, int rank, hsize_t* dim, hsize_t* offset, H5::DataType type, void* data);
95 void getTimeStepOffsets(TimeStep* tStep, int& nParts, int& pOffset, int& pointOffset, int& cellOffset, int& connIdOffset, int &offsetOfOffset, int& nPoints, int &nCells, int& nconectivities);
96 Element_Geometry_Type giveElementGeometryType(int vtkCellType);
97#endif
98
99};
100
101} // end namespace oofem
102#endif // vtkhdf5exportmodule_h
std::string fileName
File name.
void initialize(std::string &fileName)
VTKHDF5Reader()
Constructor. Creates empty Output Manager. By default all components are selected.
void readMesh(UnstructuredGridField &, TimeStep *tStep)
void readField(UnstructuredGridField &, TimeStep *tStep, const std::string &field_name)
#define OOFEM_EXPORT
Definition oofemcfg.h:7

This page is part of the OOFEM-3.0 documentation. Copyright Copyright (C) 1994-2025 Borek Patzak Bořek Patzák
Project e-mail: oofem@fsv.cvut.cz
Generated at for OOFEM by doxygen 1.15.0 written by Dimitri van Heesch, © 1997-2011