Go to the source code of this file.
◆ DepositCurrentSlice()
void DepositCurrentSlice |
( |
BeamParticleContainer & |
beam, |
|
|
Fields & |
fields, |
|
|
amrex::Vector< amrex::Geometry > const & |
gm, |
|
|
int const |
lev, |
|
|
const bool |
do_beam_jx_jy_deposition, |
|
|
const bool |
do_beam_jz_deposition, |
|
|
const bool |
do_beam_rhomjz_deposition, |
|
|
const int |
which_slice, |
|
|
const int |
which_beam_slice, |
|
|
const bool |
only_highest = false |
|
) |
| |
Depose current of beam particles on a single slice
- Parameters
-
[in] | beam | species of which the current is deposited |
[in,out] | fields | the general field class, modified by this function |
[in] | gm | Geometry of the simulation, to get the cell size etc. |
[in] | lev | MR level |
[in] | do_beam_jx_jy_deposition | whether the beams deposit Jx and Jy |
[in] | do_beam_jz_deposition | whether the beams deposit Jz |
[in] | do_beam_rhomjz_deposition | whether the beams deposit rhomjz |
[in] | which_slice | defines if this, next the salame field slice is used |
[in] | which_beam_slice | defines if this or the next beam slice is used |
[in] | only_highest | if the particles deposit only on their highest MR level |