XGCa
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Functions
diag_f0_df_port1.cpp File Reference
#include "timer_macro.hpp"
#include "domain_decomposition.hpp"
#include "globals.hpp"
#include "diag_f0_df_port1.hpp"
Include dependency graph for diag_f0_df_port1.cpp:

Functions

double * get_diag_f0_df_pv2_loc ()
 
template<class Device , typename T >
KOKKOS_INLINE_FUNCTION void diag_f0_df_port_c (const Grid< Device > &grid, const MagneticField< Device > &magnetic_field, const Species< Device > &species, const VelocityGrid &vgrid, const DomainDecomposition< Device > &pol_decomp, int isp, double wsign, const T &diag_f0_df_pv2, 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, DiagF0df::Opt opt)
 

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,
DiagF0df::Opt  opt 
)

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:

template<class Device , typename T >
KOKKOS_INLINE_FUNCTION void diag_f0_df_port_c ( const Grid< Device > &  grid,
const MagneticField< Device > &  magnetic_field,
const Species< Device > &  species,
const VelocityGrid vgrid,
const DomainDecomposition< Device > &  pol_decomp,
int  isp,
double  wsign,
const T &  diag_f0_df_pv2,
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:

double* get_diag_f0_df_pv2_loc ( )

Here is the caller graph for this function: