Namespace which encapsulates chombo-discharge IO functionality.
More...
|
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 written as 123,456. More...
|
|
Vector< std::string > | numberFmt (const Vector< long long > a_numbers, char a_sep=',') noexcept |
| Number formatting game. This just prints the number 123456 as 123,456. More...
|
|
template<size_t M, size_t N> |
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 as well. More...
|
|
Namespace which encapsulates chombo-discharge IO functionality.
◆ numberFmt() [1/2]
std::string DischargeIO::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 written as 123,456.
- Parameters
-
[in] | a_number | Number to format as string with separator |
[in] | a_sep | Separator |
◆ numberFmt() [2/2]
Vector< std::string > DischargeIO::numberFmt |
( |
const Vector< long long > |
a_numbers, |
|
|
char |
a_sep = ',' |
|
) |
| |
|
noexcept |
Number formatting game. This just prints the number 123456 as 123,456.
- Parameters
-
[in] | a_numbers | Numbers to format as string with separator |
[in] | a_sep | Separator |
◆ writeH5Part()
template<size_t M, size_t N>
void DischargeIO::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 as well.
User are not supported to call this. Driver will perform calls to writeEBHDF5Header and writeEBHDF5Level
- Parameters
-
[in] | a_filename | File name |
[in] | a_variableNames | Grid variable names |
[in] | a_grids | Grids on each AMR level |
[in] | a_data | Data on the AMR levels |
[in] | a_domains | Grid domains |
[in] | a_dx | Grid resolutions |
[in] | a_refinementRatios | Refinement ratios |
[in] | a_dt | Time step |
[in] | a_time | Time |
[in] | a_probLo | Lower-left physical corner |
[in] | a_numLevels | Number of AMR levels |
[in] | a_numGhost | Number of ghost cells included in the output. |
Write a particle container to an H5Part file. Good for quick and dirty visualization of particles
Use case is pretty straightforward but the user might need to cast particle types. E.g. call
writeH5Part<M,N>(a_filename, (const ParticleContainer<GenericParticle<M,N>>&) a_particles, ...)
Template substitution is not straightforward for this one.
- Parameters
-
[in] | a_filename | File name |
[in] | a_particles | Particles. Particle type must derive from GenericParticle<M, N> |
[in] | a_realVars | Variable names for the M real variables |
[in] | a_vectVars | Variable names for the N vector variables |
[in] | a_shift | Particle position shift |
[in] | a_shift | Time |