WarpX
|
#include <BoundaryScrapingDiagnostics.H>
Public Member Functions | |
BoundaryScrapingDiagnostics (int i, const std::string &name) | |
![]() | |
Diagnostics (int i, std::string name) | |
virtual | ~Diagnostics () |
Diagnostics (Diagnostics const &)=delete | |
Diagnostics & | operator= (Diagnostics const &)=delete |
Diagnostics (Diagnostics &&)=default | |
Diagnostics & | operator= (Diagnostics &&)=default |
void | ComputeAndPack () |
void | InitData () |
void | InitDataBeforeRestart () |
void | InitDataAfterRestart () |
virtual void | InitializeFieldFunctorsRZopenPMD ([[maybe_unused]] int lev) |
virtual void | InitializeParticleFunctors () |
void | NewIteration () |
void | FilterComputePackFlush (int step, bool force_flush=false) |
bool | DoDumpLastTimestep () const |
int | getnumbuffers () const |
virtual amrex::Real | gettlab ([[maybe_unused]] int i_buffer) |
virtual void | settlab ([[maybe_unused]] int i_buffer, [[maybe_unused]] amrex::Real tlab) |
virtual int | get_buffer_k_index_hi ([[maybe_unused]] int i_buffer) |
virtual void | set_buffer_k_index_hi ([[maybe_unused]] int i_buffer, [[maybe_unused]] int kindex) |
virtual amrex::Real | get_snapshot_domain_lo ([[maybe_unused]] int i_buffer, [[maybe_unused]] int idim) |
virtual amrex::Real | get_snapshot_domain_hi ([[maybe_unused]] int i_buffer, [[maybe_unused]] int idim) |
void | setSnapshotDomainLo (int i_buffer, int idim, amrex::Real domain_lab_lo) |
void | setSnapshotDomainHi (int i_buffer, int idim, amrex::Real domain_lab_hi) |
virtual int | get_flush_counter ([[maybe_unused]] int i_buffer) |
virtual void | set_flush_counter ([[maybe_unused]] int i_buffer, [[maybe_unused]] int flush_counter) |
virtual int | get_last_valid_Zslice ([[maybe_unused]] int i_buffer) |
virtual void | set_last_valid_Zslice ([[maybe_unused]] int i_buffer, [[maybe_unused]] int last_valid_Zslice) |
virtual int | get_snapshot_full_flag ([[maybe_unused]] int i_buffer) |
virtual void | set_snapshot_full ([[maybe_unused]] int i_buffer, [[maybe_unused]] int snapshot_full) |
Private Member Functions | |
void | ReadParameters () |
void | Flush (int i_buffer, bool) override |
Flush data to file. More... | |
bool | DoDump (int step, int i_buffer, bool force_flush=false) override |
Return whether to dump data to file at this time step. (i.e. whether to call Flush) More... | |
bool | DoComputeAndPack (int step, bool force_flush=false) override |
void | InitializeBufferData (int i_buffer, int lev, bool restart=false) override |
void | InitializeFieldFunctors (int lev) override |
void | InitializeParticleBuffer () override |
Private Attributes | |
utils::parser::IntervalsParser | m_intervals |
collect the particles that are absorbed at the embedded boundary, throughout the simulation
BoundaryScrapingDiagnostics::BoundaryScrapingDiagnostics | ( | int | i, |
const std::string & | name | ||
) |
Constructor
i | index of diagnostics in MultiDiagnostics::alldiags |
name | diagnostics name in the inputs file |
|
overrideprivatevirtual |
Return whether to pack field data in output buffers at this time step
This is not used for BoundaryScrapingDiagnostics: no field to output
Implements Diagnostics.
|
overrideprivatevirtual |
Return whether to dump data to file at this time step. (i.e. whether to call Flush)
[in] | step | current time step |
[in] | i_buffer | index of the boundary buffer used (e.g. upper/lower boundary, EB boundary) |
[in] | force_flush | if true, return true for any step |
Implements Diagnostics.
|
overrideprivatevirtual |
Flush data to file.
Implements Diagnostics.
|
overrideprivatevirtual |
Initialize buffers that contain field data
This is not used for BoundaryScrapingDiagnostics: no field to output
Implements Diagnostics.
|
overrideprivatevirtual |
Initialize functors that point to the fields requested by the user.
This is not used for BoundaryScrapingDiagnostics: no field to output
Implements Diagnostics.
|
overrideprivatevirtual |
Initialize the diagnostics by pointing to the ParticleBoundaryBuffer
that correspond to the species requested by the user.
Implements Diagnostics.
|
private |
Read relevant parameters for BoundaryScraping
|
private |
Determines timesteps at which the particles are written out