This class aims at dumping diags data to disk using the openPMD standard. In particular, function WriteToFile takes fields and particles as input arguments, and writes data to file.
More...
#include <FlushFormatOpenPMD.H>
|
| | FlushFormatOpenPMD (const std::string &diag_name) |
| |
| void | WriteToFile (const amrex::Vector< std::string > varnames, const amrex::Vector< amrex::MultiFab > &mf, amrex::Vector< amrex::Geometry > &geom, const amrex::Vector< int > iteration, const double time, const amrex::Vector< ParticleDiag > &particle_diags, int output_levels, const std::string prefix, int file_min_digits, bool plot_raw_fields, bool plot_raw_fields_guards, const bool use_pinned_pc=false, bool isBTD=false, int snapshotID=-1, int bufferID=1, int numBuffers=1, const amrex::Geometry &full_BTD_snapshot=amrex::Geometry(), bool isLastBTDFlush=false, const amrex::Vector< int > &totalParticlesFlushedAlready=amrex::Vector< int >()) const override |
| |
| | ~FlushFormatOpenPMD () override=default |
| |
| virtual | ~FlushFormat () |
| |
This class aims at dumping diags data to disk using the openPMD standard. In particular, function WriteToFile takes fields and particles as input arguments, and writes data to file.
◆ FlushFormatOpenPMD()
| FlushFormatOpenPMD::FlushFormatOpenPMD |
( |
const std::string & |
diag_name | ) |
|
|
explicit |
Constructor takes name of diagnostics to set the output directory
◆ ~FlushFormatOpenPMD()
| FlushFormatOpenPMD::~FlushFormatOpenPMD |
( |
| ) |
|
|
overridedefault |
◆ WriteToFile()
| void FlushFormatOpenPMD::WriteToFile |
( |
const amrex::Vector< std::string > |
varnames, |
|
|
const amrex::Vector< amrex::MultiFab > & |
mf, |
|
|
amrex::Vector< amrex::Geometry > & |
geom, |
|
|
const amrex::Vector< int > |
iteration, |
|
|
const double |
time, |
|
|
const amrex::Vector< ParticleDiag > & |
particle_diags, |
|
|
int |
output_levels, |
|
|
const std::string |
prefix, |
|
|
int |
file_min_digits, |
|
|
bool |
plot_raw_fields, |
|
|
bool |
plot_raw_fields_guards, |
|
|
const bool |
use_pinned_pc = false, |
|
|
bool |
isBTD = false, |
|
|
int |
snapshotID = -1, |
|
|
int |
bufferID = 1, |
|
|
int |
numBuffers = 1, |
|
|
const amrex::Geometry & |
full_BTD_snapshot = amrex::Geometry(), |
|
|
bool |
isLastBTDFlush = false, |
|
|
const amrex::Vector< int > & |
totalParticlesFlushedAlready = amrex::Vector<int>() |
|
) |
| const |
|
overridevirtual |
Flush fields and particles to plotfile
Implements FlushFormat.
◆ m_OpenPMDPlotWriter
This is responsible for dumping to file
The documentation for this class was generated from the following files:
- /home/docs/checkouts/readthedocs.org/user_builds/artemis-em/checkouts/latest/Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.H
- /home/docs/checkouts/readthedocs.org/user_builds/artemis-em/checkouts/latest/Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.cpp