This class aims at dumping diags data to disk using the AMReX Plotfile format. In particular, function WriteToFile takes fields and particles as input arguments, and writes data to file.
More...
#include <FlushFormatPlotfile.H>
|
| virtual 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 nlev, 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 |
| |
| void | WriteJobInfo (const std::string &dir) const |
| |
| void | WriteWarpXHeader (const std::string &name, amrex::Vector< amrex::Geometry > &geom) const |
| |
| void | WriteAllRawFields (const bool plot_raw_fields, const int nlevels, const std::string &plotfilename, const bool plot_raw_fields_guards) const |
| |
| void | WriteParticles (const std::string &filename, const amrex::Vector< ParticleDiag > &particle_diags, bool isBTD=false) const |
| | Write particles data to file. More...
|
| |
| | ~FlushFormatPlotfile () |
| |
| virtual | ~FlushFormat () |
| |
This class aims at dumping diags data to disk using the AMReX Plotfile format. In particular, function WriteToFile takes fields and particles as input arguments, and writes data to file.
◆ ~FlushFormatPlotfile()
| FlushFormatPlotfile::~FlushFormatPlotfile |
( |
| ) |
|
|
inline |
◆ WriteAllRawFields()
| void FlushFormatPlotfile::WriteAllRawFields |
( |
const bool |
plot_raw_fields, |
|
|
const int |
nlevels, |
|
|
const std::string & |
plotfilename, |
|
|
const bool |
plot_raw_fields_guards |
|
) |
| const |
◆ WriteJobInfo()
| void FlushFormatPlotfile::WriteJobInfo |
( |
const std::string & |
dir | ) |
const |
Write general info of the run into the plotfile
◆ WriteParticles()
| void FlushFormatPlotfile::WriteParticles |
( |
const std::string & |
filename, |
|
|
const amrex::Vector< ParticleDiag > & |
particle_diags, |
|
|
bool |
isBTD = false |
|
) |
| const |
Write particles data to file.
- Parameters
-
| [in] | filename | name of output directory |
| [in] | particle_diags | Each element of this vector handles output of 1 species. |
| [in] | isBTD | whether this is a back-transformed diagnostic |
◆ WriteToFile()
| void FlushFormatPlotfile::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 |
nlev, |
|
|
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 |
◆ WriteWarpXHeader()
Write WarpX-specific plotfile header
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/FlushFormatPlotfile.H
- /home/docs/checkouts/readthedocs.org/user_builds/artemis-em/checkouts/latest/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp