#include <FullDiagnostics.H>
|
| | FullDiagnostics (int i, const std::string &name, DiagTypes diag_type) |
| |
| | 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 | 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) |
| |
◆ TimeAverageType
Type of time averaging for diagnostics (fields only) None corresponds to instantaneous diags Static corresponds to a fixed starting step for averaging, will average until the end, and dump out intermediate average results Dynamic corresponds to a moving period for averaging where the start step is as many steps before the output interval as the averaging period is long.
| Enumerator |
|---|
| None | |
| Static | |
| Dynamic | |
◆ FullDiagnostics()
| FullDiagnostics::FullDiagnostics |
( |
int | i, |
|
|
const std::string & | name, |
|
|
DiagTypes | diag_type ) |
◆ AddRZModesToDiags()
| void FullDiagnostics::AddRZModesToDiags |
( |
int | lev | ) |
|
|
private |
Append m_all_field_functors[lev] with all modes of all components of E B and j and add name to varnames.
- Parameters
-
| [in] | lev | level on which source multifabs are defined. |
◆ AddRZModesToOutputNames()
| void FullDiagnostics::AddRZModesToOutputNames |
( |
const std::string & | field, |
|
|
int | ncomp ) |
|
private |
Append varnames with names for all modes of a field
- Parameters
-
| [in] | field | field name (includes component, e.g., Er) |
| [in] | ncomp | number of components (modes, real and imag) |
◆ BackwardCompatibility()
| void FullDiagnostics::BackwardCompatibility |
( |
| ) |
|
|
private |
This function queries deprecated input parameters and abort the run if one of them is specified.
◆ DerivedInitData()
| void FullDiagnostics::DerivedInitData |
( |
| ) |
|
|
overrideprivatevirtual |
Initialize Data required to compute TimeAveraged diagnostics
Reimplemented from Diagnostics.
◆ DoComputeAndPack()
| bool FullDiagnostics::DoComputeAndPack |
( |
int | step, |
|
|
bool | force_flush = false ) |
|
overrideprivatevirtual |
whether to compute and pack cell-centered data in m_mf_output
- Parameters
-
| [in] | step | current time step |
| [in] | force_flush | if true, return true for any step since output must be computed in this case |
- Returns
- bool, whether to flush
Implements Diagnostics.
◆ DoDump()
| bool FullDiagnostics::DoDump |
( |
int | step, |
|
|
int | i_buffer, |
|
|
bool | force_flush = false ) |
|
overrideprivatevirtual |
whether to flush at this time step
- Parameters
-
| [in] | step | current time step |
| [in] | i_buffer | index of a back-transformed snapshot |
| [in] | force_flush | if true, return true for any step |
- Returns
- bool, whether to flush
Implements Diagnostics.
◆ Flush()
| void FullDiagnostics::Flush |
( |
int | i_buffer, |
|
|
bool | ) |
|
overrideprivatevirtual |
Flush m_mf_output or m_sum_mf_output and particles to file for the i^th buffer
Implements Diagnostics.
◆ FlushRaw()
| void FullDiagnostics::FlushRaw |
( |
| ) |
|
|
private |
◆ InitializeBufferData()
| void FullDiagnostics::InitializeBufferData |
( |
int | i_buffer, |
|
|
int | lev, |
|
|
bool | restart = false ) |
|
overrideprivatevirtual |
Define the cell-centered multifab m_mf_output depending on user-defined lo and hi and coarsening ratio. This MultiFab may have a different BoxArray and DistributionMap than field MultiFabs in the simulation.
- Parameters
-
| [in] | i_buffer | index of a back-transformed snapshot |
| [in] | lev | level on which source multifabs are defined |
| [in] | restart | whether this is called upon restarting a previous simulation |
Implements Diagnostics.
◆ InitializeFieldFunctors()
| void FullDiagnostics::InitializeFieldFunctors |
( |
int | lev | ) |
|
|
overrideprivatevirtual |
Initialize functors that store pointers to the fields requested by the user.
- Parameters
-
| [in] | lev | level on which the vector of unique_ptrs to field functors is initialized. |
Implements Diagnostics.
◆ InitializeFieldFunctorsRZopenPMD()
| void FullDiagnostics::InitializeFieldFunctorsRZopenPMD |
( |
int | lev | ) |
|
|
overrideprivatevirtual |
Initialize functors that store pointers to the RZ fields requested by the user.
- Parameters
-
| [in] | lev | level on which the vector of unique_ptrs to field functors is initialized. |
Reimplemented from Diagnostics.
◆ InitializeParticleBuffer()
This function initialized particle buffers (not implemented in diagnostics, yet)
- Parameters
-
| [in] | mpc | a constant reference to the multi-particle container. |
Implements Diagnostics.
◆ MovingWindowAndGalileanDomainShift()
| void FullDiagnostics::MovingWindowAndGalileanDomainShift |
( |
int | step | ) |
|
|
overrideprivatevirtual |
Update the physical extent of the diagnostic domain for moving window and galilean shift simulations
- Parameters
-
| [in] | step | current time step |
Reimplemented from Diagnostics.
◆ PrepareFieldDataForOutput()
| void FullDiagnostics::PrepareFieldDataForOutput |
( |
| ) |
|
|
overrideprivatevirtual |
Prepare field data to be used for diagnostics
Reimplemented from Diagnostics.
◆ PrepareParticleDataForOutput()
| void FullDiagnostics::PrepareParticleDataForOutput |
( |
| ) |
|
|
inlineoverrideprivatevirtual |
Prepare particle data to be used for diagnostics.
Reimplemented from Diagnostics.
◆ ReadParameters()
| void FullDiagnostics::ReadParameters |
( |
| ) |
|
|
private |
Read user-requested parameters for full diagnostics
Whether the diagnostics are averaging data over time or not Valid options are "fixed_start" and "dynamic_start".
◆ m_average_period_steps
| int FullDiagnostics::m_average_period_steps = -1 |
|
private |
Period to average fields over: in steps
◆ m_average_period_time
| amrex::Real FullDiagnostics::m_average_period_time = -1.0 |
|
private |
Period to average fields over: in seconds
◆ m_average_start_step
| int FullDiagnostics::m_average_start_step = -1 |
|
private |
Time step to start averaging
◆ m_dump_rz_modes
| bool FullDiagnostics::m_dump_rz_modes = false |
|
private |
Whether to dump the RZ modes
◆ m_intervals
Determines timesteps at which full diagnostics are written to file
◆ m_plot_raw_fields
| bool FullDiagnostics::m_plot_raw_fields = false |
|
private |
Whether to plot raw (i.e., NOT cell-centered) fields
◆ m_plot_raw_fields_guards
| bool FullDiagnostics::m_plot_raw_fields_guards = false |
|
private |
Whether to plot guard cells of raw fields
◆ m_solver_deposits_current
| bool FullDiagnostics::m_solver_deposits_current = true |
|
private |
Whether the field solver deposits current density, if not it will be done before writing the diagnostic.
◆ m_time_average_mode
Whether the diagnostics are averaging data over time or not
The documentation for this class was generated from the following files:
- /home/docs/checkouts/readthedocs.org/user_builds/warpx/checkouts/6102/Source/Diagnostics/FullDiagnostics.H
- /home/docs/checkouts/readthedocs.org/user_builds/warpx/checkouts/6102/Source/Diagnostics/FullDiagnostics.cpp