WarpX
FlushFormatPlotfile.H
Go to the documentation of this file.
1 #ifndef WARPX_FLUSHFORMATPLOTFILE_H_
2 #define WARPX_FLUSHFORMATPLOTFILE_H_
3 
4 #include "FlushFormat.H"
6 
13 {
14 public:
16  virtual void WriteToFile (
17  const amrex::Vector<std::string> varnames,
18  const amrex::Vector<amrex::MultiFab>& mf,
19  amrex::Vector<amrex::Geometry>& geom,
20  const amrex::Vector<int> iteration, const double time,
21  const amrex::Vector<ParticleDiag>& particle_diags, int nlev, const std::string prefix,
22  bool plot_raw_fields,
23  bool plot_raw_fields_guards,
24  bool plot_raw_rho, bool plot_raw_F) const override;
25 
27  void WriteJobInfo(const std::string& dir) const;
29  void WriteWarpXHeader(const std::string& name, const amrex::Vector<ParticleDiag>& particle_diags) const;
30  void WriteAllRawFields (const bool plot_raw_fields, const int nlevels,
31  const std::string& plotfilename,
32  const bool plot_raw_fields_guards,
33  const bool plot_raw_rho, bool plot_raw_F) const;
34  void WriteHeaderParticle(std::ostream& os,
35  const amrex::Vector<ParticleDiag>& particle_diags) const;
40  void WriteParticles(const std::string& filename,
41  const amrex::Vector<ParticleDiag>& particle_diags) const;
42 
44 };
45 
46 #endif // WARPX_FLUSHFORMATPLOTFILE_H_
void WriteWarpXHeader(const std::string &name, const amrex::Vector< ParticleDiag > &particle_diags) const
Definition: FlushFormatPlotfile.cpp:179
void WriteJobInfo(const std::string &dir) const
Definition: FlushFormatPlotfile.cpp:57
Definition: FlushFormat.H:7
filename
Definition: write_atomic_data_cpp.py:17
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, bool plot_raw_fields, bool plot_raw_fields_guards, bool plot_raw_rho, bool plot_raw_F) const override
Definition: FlushFormatPlotfile.cpp:16
void WriteParticles(const std::string &filename, const amrex::Vector< ParticleDiag > &particle_diags) const
Write particles data to file.
Definition: FlushFormatPlotfile.cpp:263
This class aims at dumping diags data to disk using the AMReX Plotfile format. In particular...
Definition: FlushFormatPlotfile.H:12
name
Definition: run_automated.py:204
~FlushFormatPlotfile()
Definition: FlushFormatPlotfile.H:43
void WriteAllRawFields(const bool plot_raw_fields, const int nlevels, const std::string &plotfilename, const bool plot_raw_fields_guards, const bool plot_raw_rho, bool plot_raw_F) const
Definition: FlushFormatPlotfile.cpp:450
void WriteHeaderParticle(std::ostream &os, const amrex::Vector< ParticleDiag > &particle_diags) const
Definition: FlushFormatPlotfile.cpp:253