XGC1
|
#include "diag_f0_df.hpp"
Functions | |
KOKKOS_INLINE_FUNCTION void | grid_port (const Grid< DeviceType > &grid, const MagneticField< DeviceType > &magnetic_field, const Species< DeviceType > &species, const VelocityGrid &vgrid, const DomainDecomposition< DeviceType > &pol_decomp, double wsign, const View< double ****, CLayout, DeviceType > &pv_ptl_d, int i_item) |
void | all_species_diag_f0_df_port1 (const Simulation< DeviceType > &sml, const Grid< DeviceType > &grid, const MagneticField< DeviceType > &magnetic_field, Plasma &plasma, const VelocityGrid &vgrid, const DomainDecomposition< DeviceType > &pol_decomp, double wsign, const DiagF0DF &diag_f0_df, const View< double ****, CLayout, HostType > &pv_ptl) |
void all_species_diag_f0_df_port1 | ( | const Simulation< DeviceType > & | sml, |
const Grid< DeviceType > & | grid, | ||
const MagneticField< DeviceType > & | magnetic_field, | ||
Plasma & | plasma, | ||
const VelocityGrid & | vgrid, | ||
const DomainDecomposition< DeviceType > & | pol_decomp, | ||
double | wsign, | ||
const DiagF0DF & | diag_f0_df, | ||
const View< double ****, CLayout, HostType > & | pv_ptl | ||
) |
Loops over all non-adiabatic species and adjusts particle weight to distribute f0g distribution function to particles
[in] | sml | contains simulation control parameters |
[in] | grid | is the spatial grid |
[in] | magnetic_field | is the magnetic field |
[in] | plasma | contains all species info |
[in] | vgrid | contains the velocity grid dimensions |
[in] | pol_decomp | contains poloidal decomposition info |
[in] | pseudo_inv_dm | is the pseudo-inverse mesh object |
[in] | pseudo_inv | is the pseudo-inverse object (contains pseudo-inverse arrays) |
KOKKOS_INLINE_FUNCTION void grid_port | ( | const Grid< DeviceType > & | grid, |
const MagneticField< DeviceType > & | magnetic_field, | ||
const Species< DeviceType > & | species, | ||
const VelocityGrid & | vgrid, | ||
const DomainDecomposition< DeviceType > & | pol_decomp, | ||
double | wsign, | ||
const View< double ****, CLayout, DeviceType > & | pv_ptl_d, | ||
int | i_item | ||
) |
Makes particle contribution to diag_f0_df_port array
[in] | sml | contains simulation control parameters |
[in] | grid | is the spatial grid |
[in] | magnetic_field | is the magnetic field |
[in,out] | species | contains species parameters and particles |
[in] | vgrid | contains the velocity grid dimensions |
[in] | pol_decomp | contains poloidal decomposition info |
[in] | df0g | is the part of the distribution function being transferred to particles |
[in] | n | is the normalization for mesh-particle interpolation |
[out] | df0g_delete | tracks which cells successfully transferred their distribution to particles |
[in] | iw0 | and nw are indices to manage how averaging works with XGCA vs XGC1 |
[in] | nw | and iw0 are indices to manage how averaging works with XGCA vs XGC1 |
[in] | i_item | is the particle or particle vector index |