Hipace
Functions
BeamDepositCurrent.H File Reference
#include "particles/beam/BeamParticleContainer.H"
#include "fields/Fields.H"
#include "utils/Constants.H"
#include "particles/sorting/SliceSort.H"

Go to the source code of this file.

Functions

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)
 

Function Documentation

◆ 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]beamspecies of which the current is deposited
[in,out]fieldsthe general field class, modified by this function
[in]gmGeometry of the simulation, to get the cell size etc.
[in]levMR level
[in]do_beam_jx_jy_depositionwhether the beams deposit Jx and Jy
[in]do_beam_jz_depositionwhether the beams deposit Jz
[in]do_beam_rhomjz_depositionwhether the beams deposit rhomjz
[in]which_slicedefines if this, next the salame field slice is used
[in]which_beam_slicedefines if this or the next beam slice is used
[in]only_highestif the particles deposit only on their highest MR level