|
WarpX
|
Functor to cell-center MF and store result in mf_out. More...
#include <PartPerCellFunctor.H>
Public Member Functions | |
| 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... | |
Public Member Functions inherited from ComputeDiagFunctor | |
| 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 () |
Private Attributes | |
| int const | m_lev |
Additional Inherited Members | |
Protected Attributes inherited from ComputeDiagFunctor | |
| amrex::IntVect | m_crse_ratio |
Functor to cell-center MF and store result in mf_out.
| PartPerCellFunctor::PartPerCellFunctor | ( | const amrex::MultiFab *const | mf_src, |
| const int | lev, | ||
| const amrex::IntVect | crse_ratio, | ||
| const int | ncomp = 1 |
||
| ) |
Constructor.
| [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. |
|
overridevirtual |
Compute the number of particles per cell directly into mf_dst.
| [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.
|
private |
level on which mf_src is defined