XGCa
|
#include <thermal_bath.hpp>
Public Member Functions | |
ThermalBath () | |
ThermalBath (NLReader::NamelistReader &nlr, const MagneticField< DeviceType > &magnetic_field) | |
Constructs a ThermalBath object. More... | |
void | apply (const Simulation< DeviceType > &sml, const Grid< DeviceType > &grid, const MagneticField< DeviceType > &magnetic_field, Plasma &plasma, const VelocityGrid &vgrid, const DomainDecomposition< DeviceType > &pol_decomp) |
Applies thermal bath effects. More... | |
Public Attributes | |
double | inpsi |
Thermal Bath overlap region inner boundary. More... | |
double | outpsi |
Thermal Bath overlap region outer boundary. More... | |
double | inpsi_priv1 |
Boundary for weight sink in primary private region. More... | |
double | inpsi_priv2 |
Boundary for weight sink in secondary private region. More... | |
double | gamma |
Thermal Bath gamma_k. More... | |
int | n_energy_bins |
Thermal Bath energy bin number. More... | |
int | n_diag_bins |
Thermal Bath energy bin diag number. More... | |
double | gamma_coarse_graining |
Coarse-graining gamma_cg. More... | |
double | vmax |
|
inline |
ThermalBath::ThermalBath | ( | NLReader::NamelistReader & | nlr, |
const MagneticField< DeviceType > & | magnetic_field | ||
) |
Constructs a ThermalBath object.
nlr | NamelistReader object containing thermal bath parameters. |
< Overlap region inner boundary
< Overlap region outer boundary
< Boundary for weight sink in the primary private region
< Boundary for weight sink in the secondary private region
< gamma_k
< Number of energy bins
< Number of bins for diagnostic
< Coarse-graining gamma_cg
< Maximum velocity for energy bins (normalized to thermal velocity)
void ThermalBath::apply | ( | const Simulation< DeviceType > & | sml, |
const Grid< DeviceType > & | grid, | ||
const MagneticField< DeviceType > & | magnetic_field, | ||
Plasma & | plasma, | ||
const VelocityGrid & | vgrid, | ||
const DomainDecomposition< DeviceType > & | pol_decomp | ||
) |
Applies thermal bath effects.
sml | Simulation object. |
grid | Grid object. |
magnetic_field | Magnetic field object. |
plasma | Plasma object. |
vgrid | Velocity grid object. |
pol_decomp | Domain decomposition object. |
double ThermalBath::gamma |
Thermal Bath gamma_k.
double ThermalBath::gamma_coarse_graining |
Coarse-graining gamma_cg.
double ThermalBath::inpsi |
Thermal Bath overlap region inner boundary.
double ThermalBath::inpsi_priv1 |
Boundary for weight sink in primary private region.
double ThermalBath::inpsi_priv2 |
Boundary for weight sink in secondary private region.
int ThermalBath::n_diag_bins |
Thermal Bath energy bin diag number.
int ThermalBath::n_energy_bins |
Thermal Bath energy bin number.
double ThermalBath::outpsi |
Thermal Bath overlap region outer boundary.
double ThermalBath::vmax |