Hipace
|
class handling a current directly written to the grid More...
#include <GridCurrent.H>
Public Member Functions | |
GridCurrent () | |
void | DepositCurrentSlice (Fields &fields, const amrex::Geometry &geom, int const lev, const int islice) |
Private Attributes | |
bool | m_use_grid_current = false |
amrex::RealVect | m_position_mean {0., 0., 0.} |
amrex::RealVect | m_position_std {0., 0., 0.} |
amrex::Real | m_peak_current_density {0.} |
class handling a current directly written to the grid
|
explicit |
Constructor
void GridCurrent::DepositCurrentSlice | ( | Fields & | fields, |
const amrex::Geometry & | geom, | ||
int const | lev, | ||
const int | islice | ||
) |
calculate the adaptive time step based on the beam energy
[in,out] | fields | the general field class, modified by this function |
[in] | geom | Geometry of the simulation, to get the cell size etc. |
[in] | lev | MR level |
[in] | islice | index of the slice on which the beam particles are pushed |
|
private |
peak density for the grid current
|
private |
Average position of the Gaussian grid current.
|
private |
Width of the Gaussian grid current.
|
private |
Whether to use a grid current