Functor to compute a diagnostic and store the result in existing MultiFab.
More...
#include <ComputeDiagFunctor.H>
|
| | ComputeDiagFunctor (int ncomp, amrex::IntVect crse_ratio) |
| |
| virtual | ~ComputeDiagFunctor ()=default |
| |
| virtual void | operator() (amrex::MultiFab &mf_dst, int dcomp, const int i_buffer=0) const =0 |
| |
| int | nComp () const |
| |
| virtual void | PrepareFunctorData (int i_buffer, bool z_slice_in_domain, amrex::Real current_z_boost, amrex::Box buffer_box, const int k_index_zlab, const int max_box_size, const int snapshot_full) |
| | Prepare data required to process fields in the operator() Note that this function has parameters that are specific to back-transformed diagnostics, that are unused for regular diagnostics. More...
|
| |
| virtual void | InitData () |
| |
Functor to compute a diagnostic and store the result in existing MultiFab.
◆ ComputeDiagFunctor()
| ComputeDiagFunctor::ComputeDiagFunctor |
( |
int |
ncomp, |
|
|
amrex::IntVect |
crse_ratio |
|
) |
| |
|
inline |
◆ ~ComputeDiagFunctor()
| virtual ComputeDiagFunctor::~ComputeDiagFunctor |
( |
| ) |
|
|
virtualdefault |
◆ InitData()
| virtual void ComputeDiagFunctor::InitData |
( |
| ) |
|
|
inlinevirtual |
◆ nComp()
| int ComputeDiagFunctor::nComp |
( |
| ) |
const |
|
inline |
Number of component from the input multifab to write to the output multifab
◆ operator()()
| virtual void ComputeDiagFunctor::operator() |
( |
amrex::MultiFab & |
mf_dst, |
|
|
int |
dcomp, |
|
|
const int |
i_buffer = 0 |
|
) |
| const |
|
pure virtual |
◆ PrepareFunctorData()
| virtual void ComputeDiagFunctor::PrepareFunctorData |
( |
int |
i_buffer, |
|
|
bool |
z_slice_in_domain, |
|
|
amrex::Real |
current_z_boost, |
|
|
amrex::Box |
buffer_box, |
|
|
const int |
k_index_zlab, |
|
|
const int |
max_box_size, |
|
|
const int |
snapshot_full |
|
) |
| |
|
inlinevirtual |
Prepare data required to process fields in the operator() Note that this function has parameters that are specific to back-transformed diagnostics, that are unused for regular diagnostics.
- Parameters
-
| [in] | i_buffer | index of the back-transform snapshot |
| [in] | z_slice_in_domain | if the z-slice at current_z_boost is within the boosted-frame and lab-frame domain. The fields are sliced and back-transformed only if this value is true. |
| [in] | current_z_boost | current z coordinate in the boosted-frame |
| [in] | buffer_box | Box with index-space in lab-frame for the ith buffer |
| [in] | k_index_zlab | k-index in the lab-frame corresponding to the current z co-ordinate in the lab-frame for the ith buffer. |
| [in] | max_box_size | maximum box size for the multifab to generate box arrays |
| [in] | snapshot_full | if the current snapshot, with index, i_buffer, is full (1) or not (0). If it is full, then Lorentz-transform is not performed by setting m_perform_backtransform to 0; |
Reimplemented in BackTransformFunctor.
◆ m_crse_ratio
Coarsening ratio used to interpolate fields from simulation MultiFabs to output MultiFab.
◆ m_ncomp
| int ComputeDiagFunctor::m_ncomp |
|
private |
Number of components of mf_dst that this functor updates.
The documentation for this class was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/artemis-em/checkouts/latest/Source/Diagnostics/ComputeDiagFunctors/ComputeDiagFunctor.H