hemocell
Loading...
Searching...
No Matches
ParticleHdf5IO.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 PARTICLE_HDF5IO_H
25#define PARTICLE_HDF5IO_H
26
27#include "hemoCellParticle.h"
28#include "hemoCellFields.h"
29#include "hemoCellField.h"
30#include "xdmfOutput.h"
31
32namespace hemo {
46void writeCellField3D_HDF5(HemoCellFields & cellFields, T dx, T dt, plint iter, std::string preString = "");
47
48
49class WriteCellField3DInMultipleHDF5Files : public plb::BoxProcessingFunctional3D {
50public:
53 WriteCellField3DInMultipleHDF5Files(HemoCellField & cellField3D_, plint iter_, std::string identifier_, T dx_, T dt_,
54 std::vector<XdmfBlockFile> * written_);
56 virtual void processGenericBlocks(plb::Box3D domain, std::vector<plb::AtomicBlock3D *> fields);
58 virtual void getTypeOfModification(std::vector<plb::modif::ModifT> & modified) const;
59 virtual plb::BlockDomain::DomainT appliesTo() const;
60
61private:
64 std::string identifier;
65 double dx;
66 double dt;
67 std::vector<XdmfBlockFile> * written;
68};
69}
70#endif // PARTICLE_HDF5IO_H
Definition hemoCellField.h:42
Definition ParticleHdf5IO.h:49
HemoCellField & cellField3D
Definition ParticleHdf5IO.h:62
virtual WriteCellField3DInMultipleHDF5Files * clone() const
Definition ParticleHdf5IO.cpp:163
virtual void getTypeOfModification(std::vector< plb::modif::ModifT > &modified) const
Definition ParticleHdf5IO.cpp:167
std::string identifier
Definition ParticleHdf5IO.h:64
double dt
Definition ParticleHdf5IO.h:66
virtual void processGenericBlocks(plb::Box3D domain, std::vector< plb::AtomicBlock3D * > fields)
Arguments: [0] Particle-field.
Definition ParticleHdf5IO.cpp:64
std::vector< XdmfBlockFile > * written
Definition ParticleHdf5IO.h:67
virtual plb::BlockDomain::DomainT appliesTo() const
Definition ParticleHdf5IO.cpp:171
double dx
Definition ParticleHdf5IO.h:65
plint iter
Definition ParticleHdf5IO.h:63
double T
Definition constant_defaults.h:137
long int plint
Definition constant_defaults.h:149
Definition config.cpp:37
void writeCellField3D_HDF5(HemoCellFields &cellFields, T dx, T dt, plint iter, std::string preString)
Write the selected outputs of every cell type to HDF5 files (one per atomic block) and describe them ...
Definition ParticleHdf5IO.cpp:176