WarpX
Loading...
Searching...
No Matches
RhoFunctor.H
Go to the documentation of this file.
1#ifndef WARPX_RHOFUNCTOR_H_
2#define WARPX_RHOFUNCTOR_H_
3
5
6#include <AMReX_BaseFwd.H>
7
11class RhoFunctor final : public ComputeDiagFunctor
12{
13
14public:
15
29 RhoFunctor (int lev,
30 amrex::IntVect crse_ratio,
31 bool apply_rz_psatd_filter = false,
32 int species_index = -1,
33 bool convertRZmodes2cartesian = true,
34 int ncomp = 1);
35
42 void operator() ( amrex::MultiFab& mf_dst, int dcomp, int /*i_buffer=0*/ ) const override;
43
44private:
45
46 // Level on which source MultiFab mf_src is defined in RZ geometry
47 int m_lev;
48
49 // Whether to apply k-space filtering of charge density in the diagnostics output in RZ PSATD
51
52 // Species index to dump rho per species
54
55 // Whether to average all modes into one component in RZ geometry
57};
58
59#endif // WARPX_RHOFUNCTOR_H_
ComputeDiagFunctor(int ncomp, amrex::IntVect crse_ratio)
Definition ComputeDiagFunctor.H:19
bool m_apply_rz_psatd_filter
Definition RhoFunctor.H:50
RhoFunctor(int lev, amrex::IntVect crse_ratio, bool apply_rz_psatd_filter=false, int species_index=-1, bool convertRZmodes2cartesian=true, int ncomp=1)
Constructor.
Definition RhoFunctor.cpp:21
int m_species_index
Definition RhoFunctor.H:53
bool m_convertRZmodes2cartesian
Definition RhoFunctor.H:56
void operator()(amrex::MultiFab &mf_dst, int dcomp, int) const override
Compute rho directly into mf_dst.
Definition RhoFunctor.cpp:35
int m_lev
Definition RhoFunctor.H:47
IntVectND< 3 > IntVect