chombo-discharge
Loading...
Searching...
No Matches
CD_DischargeIO.H
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2021-2026 SINTEF Energy Research
3 *
4 * SPDX-License-Identifier: GPL-3.0-or-later
5 */
6
13#ifndef CD_DISCHARGEIO_H
14#define CD_DISCHARGEIO_H
15
16// Std includes
17#include <string>
18
19// Chombo includes
20#include <REAL.H>
21#include <RealVect.H>
22#include <IntVect.H>
23#include <Vector.H>
24#include <DisjointBoxLayout.H>
25#include <LevelData.H>
26#include <EBCellFAB.H>
27#include <ParticleIO.H>
28#include <ProblemDomain.H>
29
30// Our includes
31#include <CD_EBAMRData.H>
33#include <CD_GenericParticle.H>
34#include <CD_NamespaceHeader.H>
35
39namespace DischargeIO {
47 numberFmt(long long n, char a_sep = ',') noexcept;
48
56 numberFmt(const Vector<long long>& a_numbers, char a_sep = ',') noexcept;
57
58#ifdef CH_USE_HDF5
75 void
81 const Vector<Real>& a_dx,
83 Real a_dt,
85 const RealVect& a_probLo,
86 int a_numLevels,
87 int a_numGhost) noexcept;
88#endif
89
90#ifdef CH_USE_HDF5
98 void
100 int a_numLevels,
101 const RealVect& a_probLo,
102 const Vector<std::string>& a_variableNames) noexcept;
103
104#endif
105
106#ifdef CH_USE_HDF5
119 void
122 const ProblemDomain& a_domain,
123 Real a_dx,
124 Real a_dt,
125 Real a_time,
126 int a_level,
127 int a_refRatio,
128 int a_numGhost) noexcept;
129#endif
130
131#ifdef CH_USE_HDF5
137 void
139#endif
140
155 template <size_t M, size_t N>
156 void
162 Real a_time) noexcept;
163
164#ifdef CH_USE_HDF5
172 template <class P>
173 void
175
183 template <class P>
184 void
186#endif
187} // namespace DischargeIO
188
189#include <CD_NamespaceFooter.H>
190
191#include <CD_DischargeIOImplem.H>
192
193#endif
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.
Templated class for holding particles on an AMR hierarchy with particle remapping.
Definition CD_ParticleContainer.H:52
Base class for a tracer particle solver. This solver can advance particles in a pre-defined velocity ...
Definition CD_TracerParticleSolver.H:38
TracerParticleSolver()
Default constructor.
Definition CD_TracerParticleSolverImplem.H:26
Namespace which encapsulates chombo-discharge IO functionality.
Definition CD_DischargeIO.H:39
void writeH5Part(std::string a_filename, const ParticleContainer< GenericParticle< M, N > > &a_particles, std::vector< std::string > a_realVars, std::vector< std::string > a_vectVars, RealVect a_shift, Real a_time) noexcept
Write a particle container to an H5Part file. Good for quick and dirty visualization of particles.
Definition CD_DischargeIOImplem.H:30
std::string numberFmt(long long n, 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:27