Functor to cell-center MF and store result in mf_out.
More...
#include <PartPerCellFunctor.H>
|
| | PartPerCellFunctor (const amrex::MultiFab *const mf_src, const int lev, const amrex::IntVect crse_ratio, const int ncomp=1) |
| |
| virtual void | operator() (amrex::MultiFab &mf_dst, const int dcomp, const int) const override |
| | Compute the number of particles per cell directly into mf_dst. More...
|
| |
| | ComputeDiagFunctor (int ncomp, amrex::IntVect crse_ratio) |
| |
| virtual | ~ComputeDiagFunctor ()=default |
| |
| 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 cell-center MF and store result in mf_out.
◆ PartPerCellFunctor()
| PartPerCellFunctor::PartPerCellFunctor |
( |
const amrex::MultiFab *const |
mf_src, |
|
|
const int |
lev, |
|
|
const amrex::IntVect |
crse_ratio, |
|
|
const int |
ncomp = 1 |
|
) |
| |
Constructor.
- Parameters
-
| [in] | mf_src | source multifab. Must be nullptr as not source MF is needed to compute the number of particles per cell, banane. |
| [in] | lev | level of multifab. Used for averaging in rz. |
| [in] | crse_ratio | for interpolating field values from simulation MultiFabs to the output diagnostic MultiFab mf_dst. |
| [in] | ncomp | Number of component of mf_src to cell-center in dst multifab. |
◆ operator()()
| void PartPerCellFunctor::operator() |
( |
amrex::MultiFab & |
mf_dst, |
|
|
const int |
dcomp, |
|
|
const int |
|
|
) |
| const |
|
overridevirtual |
Compute the number of particles per cell directly into mf_dst.
- Parameters
-
| [out] | mf_dst | output MultiFab where the result is written |
| [in] | dcomp | first component of mf_dst in which cell-centered data is stored |
Implements ComputeDiagFunctor.
◆ m_lev
| int const PartPerCellFunctor::m_lev |
|
private |
level on which mf_src is defined
The documentation for this class was generated from the following files:
- /home/docs/checkouts/readthedocs.org/user_builds/artemis-em/checkouts/latest/Source/Diagnostics/ComputeDiagFunctors/PartPerCellFunctor.H
- /home/docs/checkouts/readthedocs.org/user_builds/artemis-em/checkouts/latest/Source/Diagnostics/ComputeDiagFunctors/PartPerCellFunctor.cpp