WarpX
Toggle main menu visibility
Loading...
Searching...
No Matches
Source
Diagnostics
FlushFormats
FlushFormatPlotfile.H
Go to the documentation of this file.
1
#ifndef WARPX_FLUSHFORMATPLOTFILE_H_
2
#define WARPX_FLUSHFORMATPLOTFILE_H_
3
4
#include "
FlushFormat.H
"
5
6
#include "
Diagnostics/ParticleDiag/ParticleDiag_fwd.H
"
7
8
#include <
AMReX_Geometry.H
>
9
#include <
AMReX_Vector.H
>
10
11
#include <
AMReX_BaseFwd.H
>
12
13
#include <iosfwd>
14
#include <string>
15
21
class
FlushFormatPlotfile
:
public
FlushFormat
22
{
23
public
:
25
void
WriteToFile
(
26
const
amrex::Vector<std::string>
& varnames,
27
const
amrex::Vector<amrex::MultiFab>
& mf,
28
amrex::Vector<amrex::Geometry>
& geom,
29
amrex::Vector<int>
iteration,
double
time,
30
const
amrex::Vector<ParticleDiag>
& particle_diags,
int
nlev,
31
std::string prefix,
int
file_min_digits,
32
bool
plot_raw_fields,
33
bool
plot_raw_fields_guards,
34
int
verbose = 2,
35
bool
use_pinned_pc =
false
,
36
bool
isBTD =
false
,
int
snapshotID = -1,
37
int
bufferID = 1,
int
numBuffers = 1,
38
const
amrex::Geometry
& full_BTD_snapshot =
amrex::Geometry
(),
39
bool
isLastBTDFlush =
false
)
const override
;
40
42
void
WriteJobInfo
(
const
std::string& dir)
const
;
44
void
WriteWarpXHeader
(
const
std::string& name,
amrex::Vector<amrex::Geometry>
& geom)
const
;
45
void
WriteAllRawFields
(
bool
plot_raw_fields,
int
nlevels,
46
const
std::string& plotfilename,
47
bool
plot_raw_fields_guards)
const
;
54
void
WriteParticles
(
const
std::string& dir,
55
const
amrex::Vector<ParticleDiag>
& particle_diags,
56
amrex::Real
time,
57
bool
isBTD =
false
)
const
;
58
59
FlushFormatPlotfile
() =
default
;
60
~FlushFormatPlotfile
()
override
=
default
;
61
62
FlushFormatPlotfile
(
FlushFormatPlotfile
const
&) =
default
;
63
FlushFormatPlotfile
&
operator=
(
FlushFormatPlotfile
const
& ) =
default
;
64
FlushFormatPlotfile
(
FlushFormatPlotfile
&& ) =
default
;
65
FlushFormatPlotfile
&
operator=
(
FlushFormatPlotfile
&& ) =
default
;
66
};
67
68
#endif
// WARPX_FLUSHFORMATPLOTFILE_H_
AMReX_BaseFwd.H
AMReX_Geometry.H
AMReX_Vector.H
FlushFormat.H
ParticleDiag_fwd.H
FlushFormat::FlushFormat
FlushFormat()=default
FlushFormatPlotfile::WriteToFile
void WriteToFile(const amrex::Vector< std::string > &varnames, const amrex::Vector< amrex::MultiFab > &mf, amrex::Vector< amrex::Geometry > &geom, amrex::Vector< int > iteration, double time, const amrex::Vector< ParticleDiag > &particle_diags, int nlev, std::string prefix, int file_min_digits, bool plot_raw_fields, bool plot_raw_fields_guards, int verbose=2, 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 override
Definition
FlushFormatPlotfile.cpp:67
FlushFormatPlotfile::WriteJobInfo
void WriteJobInfo(const std::string &dir) const
Definition
FlushFormatPlotfile.cpp:125
FlushFormatPlotfile::~FlushFormatPlotfile
~FlushFormatPlotfile() override=default
FlushFormatPlotfile::WriteParticles
void WriteParticles(const std::string &dir, const amrex::Vector< ParticleDiag > &particle_diags, amrex::Real time, bool isBTD=false) const
Write particles data to file.
Definition
FlushFormatPlotfile.cpp:354
FlushFormatPlotfile::WriteAllRawFields
void WriteAllRawFields(bool plot_raw_fields, int nlevels, const std::string &plotfilename, bool plot_raw_fields_guards) const
Definition
FlushFormatPlotfile.cpp:595
FlushFormatPlotfile::WriteWarpXHeader
void WriteWarpXHeader(const std::string &name, amrex::Vector< amrex::Geometry > &geom) const
Definition
FlushFormatPlotfile.cpp:247
FlushFormatPlotfile::FlushFormatPlotfile
FlushFormatPlotfile(FlushFormatPlotfile &&)=default
FlushFormatPlotfile::operator=
FlushFormatPlotfile & operator=(FlushFormatPlotfile const &)=default
FlushFormatPlotfile::FlushFormatPlotfile
FlushFormatPlotfile(FlushFormatPlotfile const &)=default
FlushFormatPlotfile::FlushFormatPlotfile
FlushFormatPlotfile()=default
amrex::Geometry
amrex::Vector
amrex::Real
amrex_real Real
Generated by
1.17.0