|
WarpX
|
#include <BoundaryScrapingDiagnostics.H>
Public Member Functions | |
| BoundaryScrapingDiagnostics (int i, const std::string &name, DiagTypes diag_type) | |
Public Member Functions inherited from Diagnostics | |
| Diagnostics (int i, std::string name, DiagTypes diag_type) | |
| virtual | ~Diagnostics () |
| Diagnostics (Diagnostics const &)=delete | |
| Diagnostics & | operator= (Diagnostics const &)=delete |
| Diagnostics (Diagnostics &&)=default | |
| Diagnostics & | operator= (Diagnostics &&)=default |
| void | ComputeAndPack () |
| void | InitData (const MultiParticleContainer &mpc) |
| void | InitDataBeforeRestart () |
| void | InitDataAfterRestart (const MultiParticleContainer &mpc) |
| virtual void | InitializeFieldFunctorsRZopenPMD (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 (int i_buffer) |
| virtual void | settlab (int i_buffer, amrex::Real tlab) |
| virtual int | get_buffer_k_index_hi (int i_buffer) |
| virtual void | set_buffer_k_index_hi (int i_buffer, int kindex) |
| virtual amrex::Real | get_snapshot_domain_lo (int i_buffer, int idim) |
| virtual amrex::Real | get_snapshot_domain_hi (int i_buffer, 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 (int i_buffer) |
| virtual void | set_flush_counter (int i_buffer, int flush_counter) |
| virtual int | get_last_valid_Zslice (int i_buffer) |
| virtual void | set_last_valid_Zslice (int i_buffer, int last_valid_Zslice) |
| virtual int | get_snapshot_full_flag (int i_buffer) |
| virtual void | set_snapshot_full (int i_buffer, int snapshot_full) |
Private Member Functions | |
| void | ReadParameters () |
| void | Flush (int i_buffer, bool) override |
| Flush data to file. | |
| 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) | |
| 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 (const MultiParticleContainer &mpc) 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, | ||
| DiagTypes | diag_type ) |
Constructor
| i | index of diagnostics in MultiDiagnostics::alldiags |
| name | diagnostics name in the inputs file |
| diag_type | diagnostics type (e.g., full, back-transformed, time-averaged, etc.) |
|
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.
| [in] | mpc | a constant reference to the multi-particle container. |
Implements Diagnostics.
|
private |
Read relevant parameters for BoundaryScraping
|
private |
Determines timesteps at which the particles are written out