XGCa
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Public Member Functions | Public Attributes | Private Types | Private Attributes | List of all members
Diag3DF0F Class Reference

#include <diag_3d_f0_f.hpp>

Inheritance diagram for Diag3DF0F:
Inheritance graph
[legend]
Collaboration diagram for Diag3DF0F:
Collaboration graph
[legend]

Classes

struct  Drifts
 

Public Member Functions

 Diag3DF0F ()
 
void init (NLReader::NamelistReader &nlr, int default_period)
 
KOKKOS_INLINE_FUNCTION void get_diag_vals (double mass, double charge, double angular_conv_fac, double vp, double en, double *v_mag, double *v_exb, double *v_par, double dpot0, double dpot1, double v_exb_n0_r, double v_exb_turb_r, double v_mag_tot_r, double v_pardrift_tot_r, bool include_vpar, double *v)
 
Drifts get_drift_velocities (const DomainDecomposition< DeviceType > &pol_decomp, const VelocityGrid &vgrid, ElectricField< DeviceType > &electric_field, Plasma &plasma, const VGridDistribution< HostType > &f0_f, const View< double **, CLayout, HostType > &T0, bool use_turb)
 
Drifts copy_drift_velocities (const Drifts &d_in)
 
void calculate_diagnostics (const Simulation< DeviceType > &sml, const MagneticField< DeviceType > &magnetic_field, const Grid< DeviceType > &grid, const DomainDecomposition< DeviceType > &pol_decomp, Plasma &plasma, const VelocityGrid &vgrid, ElectricField< DeviceType > &electric_field, const View< double ****, CLayout, HostType > &ftot_n0, const VGridDistribution< HostType > &f0_f, const Drifts &d, const Drifts &dn0, const View< double **, CLayout, HostType > &T0, const View< double **, CLayout, HostType > &n0, const View< double **, CLayout, HostType > &n, const View< double ***, CLayout, HostType > &moments_adia_n0, const View< double ***, CLayout, HostType > &moments_nonadia_n0, const View< double ***, CLayout, HostType > &moments_adia_turb, const View< double ***, CLayout, HostType > &moments_nonadia_turb, const View< double ****, CLayout, HostType > &moments_nonadia_turb_en)
 
void write (const Simulation< DeviceType > &sml, const MagneticField< DeviceType > &magnetic_field, const Grid< DeviceType > &grid, const DomainDecomposition< DeviceType > &pol_decomp, Plasma &plasma, const VelocityGrid &vgrid, ElectricField< DeviceType > &electric_field, const VGridDistribution< HostType > &f0_f, const Moments &moments)
 
- Public Member Functions inherited from Diagnostic
bool is_triggered (int step)
 
bool has_been_triggered (int step)
 
int get_period () const
 
 Diagnostic ()
 
void init (const std::string &name, int period, int first_step=-1)
 
void open_stream (const std::string &filename, const XGC_IO_Mode &mode)
 
void close_stream ()
 
void write (const XGC_IO &xgc_io)
 
void start_write_step ()
 
bool is_first_step ()
 
void end_write_step ()
 

Public Attributes

bool adios_stage
 
- Public Attributes inherited from Diagnostic
bool is_on
 

Private Types

enum  VarNames {
  ToroidalVelocity =0, PoloidalVelocity, ParallelVelocity, RadialFluxExB,
  RadialFluxMag, RadialFlux3DB, TorAngMom, RadMomFluxExB,
  RadMomFluxMag, RadMomFlux3DB, RadEnFluxExB, RadEnFluxMag,
  RadEnFlux3DB, RadPotEnFluxExB, RadPotEnFluxExBTurb, RadPotEnFluxMag,
  RadPotEnFlux3DB, NVARS
}
 

Private Attributes

std::vector< std::string > var_names
 

Additional Inherited Members

- Protected Attributes inherited from Diagnostic
StepTrigger step_trigger
 

Member Enumeration Documentation

enum Diag3DF0F::VarNames
private
Enumerator
ToroidalVelocity 
PoloidalVelocity 
ParallelVelocity 
RadialFluxExB 
RadialFluxMag 
RadialFlux3DB 
TorAngMom 
RadMomFluxExB 
RadMomFluxMag 
RadMomFlux3DB 
RadEnFluxExB 
RadEnFluxMag 
RadEnFlux3DB 
RadPotEnFluxExB 
RadPotEnFluxExBTurb 
RadPotEnFluxMag 
RadPotEnFlux3DB 
NVARS 

Constructor & Destructor Documentation

Diag3DF0F::Diag3DF0F ( )
inline

Member Function Documentation

void Diag3DF0F::calculate_diagnostics ( const Simulation< DeviceType > &  sml,
const MagneticField< DeviceType > &  magnetic_field,
const Grid< DeviceType > &  grid,
const DomainDecomposition< DeviceType > &  pol_decomp,
Plasma plasma,
const VelocityGrid vgrid,
ElectricField< DeviceType > &  electric_field,
const View< double ****, CLayout, HostType > &  ftot_n0,
const VGridDistribution< HostType > &  f0_f,
const Drifts d,
const Drifts dn0,
const View< double **, CLayout, HostType > &  T0,
const View< double **, CLayout, HostType > &  n0,
const View< double **, CLayout, HostType > &  n,
const View< double ***, CLayout, HostType > &  moments_adia_n0,
const View< double ***, CLayout, HostType > &  moments_nonadia_n0,
const View< double ***, CLayout, HostType > &  moments_adia_turb,
const View< double ***, CLayout, HostType > &  moments_nonadia_turb,
const View< double ****, CLayout, HostType > &  moments_nonadia_turb_en 
)

Here is the call graph for this function:

Here is the caller graph for this function:

Diag3DF0F::Drifts Diag3DF0F::copy_drift_velocities ( const Drifts d_in)

Here is the caller graph for this function:

KOKKOS_INLINE_FUNCTION void Diag3DF0F::get_diag_vals ( double  mass,
double  charge,
double  angular_conv_fac,
double  vp,
double  en,
double *  v_mag,
double *  v_exb,
double *  v_par,
double  dpot0,
double  dpot1,
double  v_exb_n0_r,
double  v_exb_turb_r,
double  v_mag_tot_r,
double  v_pardrift_tot_r,
bool  include_vpar,
double *  v 
)

Here is the caller graph for this function:

Diag3DF0F::Drifts Diag3DF0F::get_drift_velocities ( const DomainDecomposition< DeviceType > &  pol_decomp,
const VelocityGrid vgrid,
ElectricField< DeviceType > &  electric_field,
Plasma plasma,
const VGridDistribution< HostType > &  f0_f,
const View< double **, CLayout, HostType > &  T0,
bool  use_turb 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void Diag3DF0F::init ( NLReader::NamelistReader nlr,
int  default_period 
)

< Enable/disable Adios stage mode for xgc.f0

Here is the call graph for this function:

Here is the caller graph for this function:

void Diag3DF0F::write ( const Simulation< DeviceType > &  sml,
const MagneticField< DeviceType > &  magnetic_field,
const Grid< DeviceType > &  grid,
const DomainDecomposition< DeviceType > &  pol_decomp,
Plasma plasma,
const VelocityGrid vgrid,
ElectricField< DeviceType > &  electric_field,
const VGridDistribution< HostType > &  f0_f,
const Moments moments 
)

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

bool Diag3DF0F::adios_stage
std::vector<std::string> Diag3DF0F::var_names
private

The documentation for this class was generated from the following files: