Go to the source code of this file.
|
void | all_species_update_f0 (const Simulation< DeviceType > &sml, const Grid< DeviceType > &grid, const MagneticField< DeviceType > &magnetic_field, Plasma &plasma, const VelocityGrid &vgrid, const DomainDecomposition< DeviceType > &pol_decomp, double alpha_in, bool f_source_on, DMWrapper &pseudo_inv_dm, Pseudo_inverse< DeviceType > &pseudo_inv, VGridDistribution< HostType > &f0_f, VGridDistribution< HostType > &f0_n) |
|
void | update_f0_sp (const Simulation< DeviceType > &sml, const Grid< DeviceType > &grid, const MagneticField< DeviceType > &magnetic_field, Species< DeviceType > &species, const VelocityGrid &vgrid, const DomainDecomposition< DeviceType > &pol_decomp, double alpha_in, bool f_source_on, DMWrapper &pseudo_inv_dm, Pseudo_inverse< DeviceType > &pseudo_inv, VGridDistribution< HostType > &f0_f, VGridDistribution< HostType > &f0_n) |
|
void | f0_update_f0g_pseudo_inv (const Grid< DeviceType > &grid, const MagneticField< DeviceType > &magnetic_field, const Species< DeviceType > &species, const VelocityGrid &vgrid, const DomainDecomposition< DeviceType > &pol_decomp, bool update_f_and_n, DMWrapper &pseudo_inv_dm, Pseudo_inverse< DeviceType > &pseudo_inv, VGridDistribution< DeviceType > &f) |
|
void all_species_update_f0 |
( |
const Simulation< DeviceType > & |
sml, |
|
|
const Grid< DeviceType > & |
grid, |
|
|
const MagneticField< DeviceType > & |
magnetic_field, |
|
|
Plasma & |
plasma, |
|
|
const VelocityGrid & |
vgrid, |
|
|
const DomainDecomposition< DeviceType > & |
pol_decomp, |
|
|
double |
alpha_in, |
|
|
bool |
f_source_on, |
|
|
DMWrapper & |
pseudo_inv_dm, |
|
|
Pseudo_inverse< DeviceType > & |
pseudo_inv, |
|
|
VGridDistribution< HostType > & |
f0_f, |
|
|
VGridDistribution< HostType > & |
f0_n |
|
) |
| |
Loop over nodes and interpolate weights to grid distribution. This is pseudo-inverse version with particles -> velocity grid interpolation done with PETSc.
NOTE: This method is slower than the other but may be necessary for a PETSc collision operator.
- Parameters
-
[in] | grid | spatial grid object |
[in] | magnetic_field | magnetic field object |
[in] | species | contains species parameters |
[in] | vgrid | contains the velocity grid dimensions |
[in] | pol_decomp | contains poloidal decomposition info |
[in] | update_f_and_n | whether to add particle weights in the distribution function used for the source routines |
[in] | pseudo_inv_dm | pseudo-inverse mesh object |
[in] | pseudo_inv | pseudo-inverse object (contains pseudo-inverse arrays) |
[in,out] | dist | the species distribution being added to the particle contributions |
- Returns
- void
void update_f0_sp |
( |
const Simulation< DeviceType > & |
sml, |
|
|
const Grid< DeviceType > & |
grid, |
|
|
const MagneticField< DeviceType > & |
magnetic_field, |
|
|
Species< DeviceType > & |
species, |
|
|
const VelocityGrid & |
vgrid, |
|
|
const DomainDecomposition< DeviceType > & |
pol_decomp, |
|
|
double |
alpha_in, |
|
|
bool |
f_source_on, |
|
|
DMWrapper & |
pseudo_inv_dm, |
|
|
Pseudo_inverse< DeviceType > & |
pseudo_inv, |
|
|
VGridDistribution< HostType > & |
f0_f, |
|
|
VGridDistribution< HostType > & |
f0_n |
|
) |
| |