XGC1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions
diag_f0_df.cpp File Reference
#include "diag_f0_df.hpp"
Include dependency graph for diag_f0_df.cpp:

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)
 

Function Documentation

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

Parameters
[in]smlcontains simulation control parameters
[in]gridis the spatial grid
[in]magnetic_fieldis the magnetic field
[in]plasmacontains all species info
[in]vgridcontains the velocity grid dimensions
[in]pol_decompcontains poloidal decomposition info
[in]pseudo_inv_dmis the pseudo-inverse mesh object
[in]pseudo_invis the pseudo-inverse object (contains pseudo-inverse arrays)
Returns
void

Here is the call graph for this function:

Here is the caller graph for this function:

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

Parameters
[in]smlcontains simulation control parameters
[in]gridis the spatial grid
[in]magnetic_fieldis the magnetic field
[in,out]speciescontains species parameters and particles
[in]vgridcontains the velocity grid dimensions
[in]pol_decompcontains poloidal decomposition info
[in]df0gis the part of the distribution function being transferred to particles
[in]nis the normalization for mesh-particle interpolation
[out]df0g_deletetracks which cells successfully transferred their distribution to particles
[in]iw0and nw are indices to manage how averaging works with XGCA vs XGC1
[in]nwand iw0 are indices to manage how averaging works with XGCA vs XGC1
[in]i_itemis the particle or particle vector index
Returns
void

Here is the call graph for this function:

Here is the caller graph for this function: