XGC1
|
#include <diag_3d_f0_f.hpp>
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 Attributes | |
std::vector< std::string > | var_names |
Additional Inherited Members | |
Protected Attributes inherited from Diagnostic | |
StepTrigger | step_trigger |
|
private |
|
inline |
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 | ||
) |
Diag3DF0F::Drifts Diag3DF0F::copy_drift_velocities | ( | const Drifts & | d_in | ) |
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 | ||
) |
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 | ||
) |
void Diag3DF0F::init | ( | NLReader::NamelistReader & | nlr, |
int | default_period | ||
) |
< Enable/disable Adios stage mode for xgc.f0
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 | ||
) |
bool Diag3DF0F::adios_stage |
|
private |