hemocell
Loading...
Searching...
No Matches
xdmfOutput.h
Go to the documentation of this file.
1/*
2This file is part of the HemoCell library
3
4HemoCell is developed and maintained by the Computational Science Lab
5in the University of Amsterdam. Any questions or remarks regarding this library
6can be sent to: info@hemocell.eu
7
8When using the HemoCell library in scientific work please cite the
9corresponding paper: https://doi.org/10.3389/fphys.2017.00563
10
11The HemoCell library is free software: you can redistribute it and/or
12modify it under the terms of the GNU Affero General Public License as
13published by the Free Software Foundation, either version 3 of the
14License, or (at your option) any later version.
15
16The library is distributed in the hope that it will be useful,
17but WITHOUT ANY WARRANTY; without even the implied warranty of
18MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19GNU Affero General Public License for more details.
20
21You should have received a copy of the GNU Affero General Public License
22along with this program. If not, see <http://www.gnu.org/licenses/>.
23*/
24#ifndef HEMO_XDMF_OUTPUT_H
25#define HEMO_XDMF_OUTPUT_H
26
27#include "core/globalDefs.h"
28
29#include <string>
30#include <vector>
31
32namespace hemo {
33
36 std::string name;
38 std::string numberType = "Float";
39 int precision = 4;
40};
41
52 std::string identifier;
53 std::string file;
54 long blockId = 0;
55 bool structured = false;
56
57 long nodes[3] = {0, 0, 0};
58 double origin[3] = {0., 0., 0.};
59 double spacing[3] = {1., 1., 1.};
60
61 long vertices = 0;
62 long triangles = 0;
63 long innerLinks = 0;
64
65 std::vector<XdmfAttribute> attributes;
66};
67
87void writeXdmf(const std::vector<XdmfBlockFile> & blocks, plb::plint iter, double time);
88
89} // namespace hemo
90#endif
Definition config.cpp:37
void writeXdmf(const std::vector< XdmfBlockFile > &blocks, plb::plint iter, double time)
Write the XDMF (version 3) description of one output step. Collective.
Definition xdmfOutput.cpp:264
A dataset of a block file that is listed as an XDMF attribute.
Definition xdmfOutput.h:35
int precision
Bytes per value of the dataset.
Definition xdmfOutput.h:39
int components
Values per vertex (cells) or per lattice node (fluid).
Definition xdmfOutput.h:37
std::string name
HDF5 dataset name, also the attribute name.
Definition xdmfOutput.h:36
std::string numberType
XDMF NumberType of the dataset ("Float" or "Int").
Definition xdmfOutput.h:38
What one atomic block wrote to its HDF5 file in one output step.
Definition xdmfOutput.h:51
long vertices
Cells: rows of the "Position" dataset (0: no cells in this block).
Definition xdmfOutput.h:61
long innerLinks
Cells: rows of the "InnerLinks" dataset (0: not written).
Definition xdmfOutput.h:63
long triangles
Cells: rows of the "Triangles" dataset (0: not written).
Definition xdmfOutput.h:62
long blockId
Atomic block ID; blocks are listed in ascending ID.
Definition xdmfOutput.h:54
double origin[3]
Structured: lower corner of the first node's cell, z, y, x.
Definition xdmfOutput.h:58
long nodes[3]
Structured: number of nodes in z, y, x (dataset dimensions).
Definition xdmfOutput.h:57
std::vector< XdmfAttribute > attributes
Datasets listed as attributes.
Definition xdmfOutput.h:65
std::string file
HDF5 file, relative to the output directory.
Definition xdmfOutput.h:53
double spacing[3]
Structured: node spacing, z, y, x.
Definition xdmfOutput.h:59
std::string identifier
Output name: cell type, "Fluid" or "CEPAC"; "_PRE" appended in the pre-inlet.
Definition xdmfOutput.h:52
bool structured
Regular grid (fluid) or surface mesh (cells).
Definition xdmfOutput.h:55