WarpX
Public Member Functions | List of all members
FlushFormatPlotfile Class Reference

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>

Inheritance diagram for FlushFormatPlotfile:
FlushFormat FlushFormatCheckpoint

Public Member Functions

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
 
void WriteJobInfo (const std::string &dir) const
 
void WriteWarpXHeader (const std::string &name, const amrex::Vector< ParticleDiag > &particle_diags) const
 
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
 
void WriteHeaderParticle (std::ostream &os, const amrex::Vector< ParticleDiag > &particle_diags) const
 
void WriteParticles (const std::string &filename, const amrex::Vector< ParticleDiag > &particle_diags) const
 Write particles data to file. More...
 
 ~FlushFormatPlotfile ()
 
- Public Member Functions inherited from FlushFormat
virtual ~FlushFormat ()
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ~FlushFormatPlotfile()

FlushFormatPlotfile::~FlushFormatPlotfile ( )
inline

Member Function Documentation

◆ WriteAllRawFields()

void FlushFormatPlotfile::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

◆ WriteHeaderParticle()

void FlushFormatPlotfile::WriteHeaderParticle ( std::ostream &  os,
const amrex::Vector< ParticleDiag > &  particle_diags 
) 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 
) const

Write particles data to file.

Parameters
[in]filenamename of output directory
[in]particle_diagsEach element of this vector handles output of 1 species.

◆ 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,
bool  plot_raw_fields,
bool  plot_raw_fields_guards,
bool  plot_raw_rho,
bool  plot_raw_F 
) const
overridevirtual

Flush fields and particles to plotfile

Implements FlushFormat.

Reimplemented in FlushFormatCheckpoint.

◆ WriteWarpXHeader()

void FlushFormatPlotfile::WriteWarpXHeader ( const std::string &  name,
const amrex::Vector< ParticleDiag > &  particle_diags 
) const

Write WarpX-specific plotfile header


The documentation for this class was generated from the following files: