1 #ifndef DIAGNOSTICS_HPP
2 #define DIAGNOSTICS_HPP
36 bool overwrite_existing){
39 int diag_1d_period = nlr.
get<
int>(
"diag_1d_period",10);
43 bool heat_diag_is_on = nlr.
get<
bool>(
"diag_heat_on",
false);
46 int special = nlr.
get<
int>(
"sml_special",0);
int diag_3d_period
How many steps between diag_3d output.
Definition: diagnostics.hpp:27
T get(const string ¶m, const T default_val, int val_ind=0)
Definition: NamelistReader.hpp:373
Definition: diag_f0_df.hpp:9
bool pseudo_inv_on
whether pseudo-inverse interpolation is used in velocity space
Definition: velocity_grid.hpp:24
TracerDiagnostics tracer_diag
Definition: diagnostics.hpp:19
Definition: velocity_grid.hpp:8
Definition: diagnostics.hpp:15
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:1230
Definition: NamelistReader.hpp:193
Definition: magnetic_field.hpp:12
Diagnostics()
Definition: diagnostics.hpp:31
LoopVolDiagnostics loop_vol_diag
Definition: diagnostics.hpp:20
PseudoInvDiagnostics pseudo_inv_diag
Definition: diagnostics.hpp:18
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:23
bool is_on
Definition: diagnostic.hpp:20
PushDiagnostic< DeviceType > push_diag
Definition: diagnostics.hpp:16
int nthreads
Number of OMP threads on the host.
Definition: sml.hpp:68
Definition: diag_1d.hpp:9
Diagnostics(NLReader::NamelistReader &nlr, const Simulation< DeviceType > &sml, const MagneticField< DeviceType > &magnetic_field, const Plasma &plasma, const Grid< DeviceType > &grid, const VelocityGrid &vgrid, int f_source_period, bool overwrite_existing)
Definition: diagnostics.hpp:33
void close_stream()
Definition: diagnostic.hpp:90
void init(NLReader::NamelistReader &nlr, const Grid< DeviceType > &grid, const MagneticField< DeviceType > &magnetic_field, const Plasma &plasma, bool allocate_df_diagnostic)
Definition: diag_1d.cpp:182
void use_namelist(const string &namelist)
Definition: NamelistReader.hpp:355
Definition: pseudo_inverse_diag.hpp:26
bool deltaf
Whether some species is deltaf.
Definition: sml.hpp:60
void open_stream(const std::string &filename, const XGC_IO_Mode &mode)
Definition: diagnostic.hpp:66
int npsi_surf2
Definition: grid.hpp:197
Definition: tracer_diag.hpp:12
int nspecies
Number of species including electrons.
Definition: plasma.hpp:91
int n_nonadiabatic_species
Number of nonadiabatic species.
Definition: plasma.hpp:92
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:80
Definition: magnetic_field.F90:1
void close_streams()
Definition: diagnostics.hpp:108
bool diag_poincare
Whether to do poincare output.
Definition: diagnostics.hpp:29
HeatDiagnostics< DeviceType > heat_diag
Definition: diagnostics.hpp:17
bool current_drive_on
Definition: sml.hpp:191
Definition: plasma.hpp:14
ParticleStream particle_stream
Definition: diagnostics.hpp:21
Definition: particle_stream.hpp:6
bool diag_3d_on
Whether diag_3d is output.
Definition: diagnostics.hpp:26
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:22
int mode
Using mode 1 or mode 2.
Definition: heat_diagnostics.hpp:32
void init(const std::string &name)
Definition: tracer_diag.hpp:18