12 #ifndef CD_DischargeIO_H
13 #define CD_DischargeIO_H
23 #include <DisjointBoxLayout.H>
24 #include <LevelData.H>
25 #include <EBCellFAB.H>
26 #include <ParticleIO.H>
27 #include <ProblemDomain.H>
33 #include <CD_NamespaceHeader.H>
45 numberFmt(
const long long a_number,
char a_sep =
',') noexcept;
53 numberFmt(
const Vector<long long> a_numbers,
char a_sep =
',') noexcept;
73 writeEBHDF5(
const std::string& a_filename,
74 const Vector<std::string>& a_variableNames,
75 const Vector<DisjointBoxLayout>& a_grids,
76 const Vector<LevelData<EBCellFAB>*>& a_data,
77 const Vector<ProblemDomain>& a_domains,
78 const Vector<Real> a_dx,
79 const Vector<int> a_refinementRatios,
82 const RealVect a_probLo,
83 const int a_numLevels,
84 const int a_numGhost) noexcept;
96 writeEBHDF5Header(HDF5Handle& a_handleH5,
97 const int a_numLevels,
98 const RealVect& a_probLo,
99 const Vector<std::string>& a_variableNames) noexcept;
117 writeEBHDF5Level(HDF5Handle& a_handleH5,
118 const LevelData<EBCellFAB>& a_outputData,
119 const ProblemDomain a_domain,
124 const int a_refRatio,
125 const int a_numGhost) noexcept;
135 writeEBHDF5(
const EBAMRCellData& a_data,
const std::string& a_file);
152 template <
size_t M,
size_t N>
156 const std::vector<std::string> a_realVars = std::vector<std::string>(),
157 const std::vector<std::string> a_vectVars = std::vector<std::string>(),
158 const RealVect a_shift = RealVect::Zero,
159 const Real a_time = 0.0) noexcept;
163 #include <CD_NamespaceFooter.H>
Implementation of CD_DischargeIO.H.
Class for holding data across EBAMR hierarchies.
Declaration of a generic particle class.
Declaration of a class for holding particles on an AMR hierarchy.
A generic particle class, holding the position and a specified number of real and vector values.
Definition: CD_GenericParticle.H:33
Templated class for holding particles on an AMR hierarchy with particle remapping.
Definition: CD_ParticleContainer.H:50
Namespace which encapsulates chombo-discharge IO functionality.
Definition: CD_DischargeIO.H:38
void writeH5Part(const std::string a_filename, const ParticleContainer< GenericParticle< M, N >> &a_particles, const std::vector< std::string > a_realVars=std::vector< std::string >(), const std::vector< std::string > a_vectVars=std::vector< std::string >(), const RealVect a_shift=RealVect::Zero, const Real a_time=0.0) noexcept
A shameless copy of Chombo's writeEBHDF5 but including the lower-left corner of the physical domain a...
Definition: CD_DischargeIOImplem.H:26
std::string numberFmt(const long long a_number, char a_sep=',') noexcept
Number formatting method – writes big numbers using an input separator. E.g. the number 123456 is wri...
Definition: CD_DischargeIO.cpp:25