|
chombo-discharge
|
Namespace which encapsulates chombo-discharge IO functionality. More...
Functions | |
| 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 written as 123,456. | |
| 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. | |
| template<size_t M, size_t N> | |
| 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. | |
Namespace which encapsulates chombo-discharge IO functionality.
|
noexcept |
Number formatting game. This just prints the number 123456 as 123,456.
| [in] | a_numbers | Numbers to format as string with separator |
| [in] | a_sep | Separator |
|
noexcept |
Number formatting method – writes big numbers using an input separator. E.g. the number 123456 is written as 123,456.
| [in] | n | Number to format as string with separator |
| [in] | a_sep | Separator |
|
noexcept |
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.
| [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_time | Physical time |