1 #ifndef DIAGNOSTICS_HPP
2 #define DIAGNOSTICS_HPP
40 bool overwrite_existing){
43 int diag_1d_period = nlr.
get<
int>(
"diag_1d_period",10);
44 int diag_3d_on = nlr.
get<
bool>(
"diag_3d_on",
true);
46 bool heat_diag_is_on = nlr.
get<
bool>(
"diag_heat_on",
false);
49 int special = nlr.
get<
int>(
"sml_special",0);
84 diag_1d.
init(nlr, pol_decomp, grid, magnetic_field, plasma, use_deltaf_diag);
void init(NLReader::NamelistReader &nlr, const Grid< DeviceType > &grid, int default_period)
Definition: diag_3d.cpp:100
Diagnostics(NLReader::NamelistReader &nlr, const Simulation< DeviceType > &sml, const MagneticField< DeviceType > &magnetic_field, const Plasma &plasma, const DomainDecomposition< DeviceType > &pol_decomp, const Grid< DeviceType > &grid, const VelocityGrid &vgrid, int f_source_period, bool overwrite_existing)
Definition: diagnostics.hpp:36
T get(const string ¶m, const T default_val, int val_ind=0)
Definition: NamelistReader.hpp:373
Definition: diag_f0_df.hpp:9
Definition: diag_3d_f0_f.hpp:12
bool pseudo_inv_on
whether pseudo-inverse interpolation is used in velocity space
Definition: velocity_grid.hpp:24
TracerDiagnostics tracer_diag
Definition: diagnostics.hpp:22
Definition: velocity_grid.hpp:8
Definition: diagnostics.hpp:18
static constexpr bool is_XGCa
Equivalent to the preprocessor flag for now.
Definition: sml.hpp:17
void init(NLReader::NamelistReader &nlr, const MagneticField< Device > &magnetic_field, const Grid< Device > &grid, int nspecies)
subroutine plasma(grid, itr, p, dene_out, deni_out, Te_out, Ti_out, Vparai_out)
Calculate the plasma density, temperature, and parallel velocity for a point in triangle itr using pl...
Definition: neutral_totalf.F90:1224
bool adios_stage
Definition: diag_3d.hpp:18
Definition: NamelistReader.hpp:193
Definition: magnetic_field.hpp:12
DiagF0 diag_f0
Definition: diagnostics.hpp:26
Diagnostics()
Definition: diagnostics.hpp:34
LoopVolDiagnostics loop_vol_diag
Definition: diagnostics.hpp:23
void init(NLReader::NamelistReader &nlr, int default_period, bool is_XGCa_in)
Definition: diag_f0.cpp:3
PseudoInvDiagnostics pseudo_inv_diag
Definition: diagnostics.hpp:21
void init(NLReader::NamelistReader &nlr, const Simulation< DeviceType > &sml, const Grid< DeviceType > &grid, const Plasma &plasma, int f_source_period)
Definition: diag_f0_df.hpp:45
Diag1D diag_1d
Definition: diagnostics.hpp:28
bool is_on
Definition: diagnostic.hpp:20
bool adios_stage
Definition: diag_f0.hpp:14
Definition: diag_3d.hpp:12
Diag3D diag_3d
Definition: diagnostics.hpp:29
PushDiagnostic< DeviceType > push_diag
Definition: diagnostics.hpp:19
Diag3DF0F diag_3d_f0_f
Definition: diagnostics.hpp:27
int nthreads
Number of OMP threads on the host.
Definition: sml.hpp:66
Definition: diag_1d.hpp:9
void init(NLReader::NamelistReader &nlr, const DomainDecomposition< DeviceType > &pol_decomp, const Grid< DeviceType > &grid, const MagneticField< DeviceType > &magnetic_field, const Plasma &plasma, bool allocate_df_diagnostic)
Definition: diag_1d.cpp:182
Definition: diag_f0.hpp:10
void close_stream()
Definition: diagnostic.hpp:90
bool true_for_some_species(F func) const
Definition: plasma.hpp:182
void use_namelist(const string &namelist)
Definition: NamelistReader.hpp:355
Definition: pseudo_inverse_diag.hpp:26
void open_stream(const std::string &filename, const XGC_IO_Mode &mode)
Definition: diagnostic.hpp:66
int npsi_surf2
Definition: grid.hpp:166
Definition: tracer_diag.hpp:12
int nspecies
Number of species including electrons.
Definition: plasma.hpp:89
int n_nonadiabatic_species
Number of nonadiabatic species.
Definition: plasma.hpp:90
XGC_IO_Mode
Definition: xgc_io.hpp:17
void init(NLReader::NamelistReader &nlr, int f_source_period, const std::string &name)
Definition: loop_voltage_diag.hpp:26
void open_streams(bool overwrite_existing)
Definition: diagnostics.hpp:94
bool is_adiabatic
Whether this species is adiabatic.
Definition: species.hpp:80
FAnalyticShape f_analytic_shape
f_analytic_shape shape: Maxwellian, SlowingDown or None
Definition: species.hpp:90
Definition: magnetic_field.F90:1
void close_streams()
Definition: diagnostics.hpp:137
bool diag_poincare
Whether to do poincare output.
Definition: diagnostics.hpp:32
void init(NLReader::NamelistReader &nlr, int default_period)
Definition: diag_3d_f0_f.cpp:8
HeatDiagnostics< DeviceType > heat_diag
Definition: diagnostics.hpp:20
bool current_drive_on
Definition: sml.hpp:243
Definition: plasma.hpp:13
ParticleStream particle_stream
Definition: diagnostics.hpp:24
Definition: particle_stream.hpp:6
Definition: species.hpp:75
void init(NLReader::NamelistReader &nlr, int f_source_period, const std::string &name)
Definition: pseudo_inverse_diag.hpp:32
Definition: loop_voltage_diag.hpp:20
DiagF0DF diag_f0_df
Definition: diagnostics.hpp:25
int mode
Using mode 1 or mode 2.
Definition: heat_diagnostics.hpp:32
void init(const std::string &name)
Definition: tracer_diag.hpp:18
bool adios_stage
Definition: diag_3d_f0_f.hpp:56