Functor to compute divB into mf_out.
More...
#include <DivBFunctor.H>
|
| | DivBFunctor (const std::array< const amrex::MultiFab *const, 3 > arr_mf_src, const int lev, amrex::IntVect crse_ratio, const int ncomp=1) |
| |
| virtual void | operator() (amrex::MultiFab &mf_dst, const int dcomp, const int) const override |
| | Compute DivB 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 ZSliceInDomain, amrex::Real current_z_boost, amrex::Box buffer_box, const int k_index_zlab) |
| |
| virtual void | InitData () |
| |
Functor to compute divB into mf_out.
◆ DivBFunctor()
| DivBFunctor::DivBFunctor |
( |
const std::array< const amrex::MultiFab *const, 3 > |
arr_mf_src, |
|
|
const int |
lev, |
|
|
amrex::IntVect |
crse_ratio, |
|
|
const int |
ncomp = 1 |
|
) |
| |
Constructor.
- Parameters
-
| [in] | arr_mf_src | source multifabs (3 elements for x y z). |
| [in] | lev | level of multifab. |
| [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 DivBFunctor::operator() |
( |
amrex::MultiFab & |
mf_dst, |
|
|
const int |
dcomp, |
|
|
const int |
|
|
) |
| const |
|
overridevirtual |
Compute DivB 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_arr_mf_src
| std::array<const amrex::MultiFab * const, 3> DivBFunctor::m_arr_mf_src |
|
private |
Vector of pointer to source multifab Bx, By, Bz
◆ m_lev
| int const DivBFunctor::m_lev |
|
private |
level on which mf_src is defined (used in cylindrical)
The documentation for this class was generated from the following files:
- /home/docs/checkouts/readthedocs.org/user_builds/warpx/checkouts/20.10/Source/Diagnostics/ComputeDiagFunctors/DivBFunctor.H
- /home/docs/checkouts/readthedocs.org/user_builds/warpx/checkouts/20.10/Source/Diagnostics/ComputeDiagFunctors/DivBFunctor.cpp