XGCa
|
#include <loop_voltage_diag.hpp>
Public Member Functions | |
LoopVolDiagnostics () | |
void | init (NLReader::NamelistReader &nlr, int f_source_period, const std::string &name) |
void | write (const Grid< DeviceType > &grid, const GridField< HostType, VarType::Scalar, PhiInterpType::None, TorType::OnePlane, KinType::DriftKin > &loop_voltage_h, const GridField< HostType, VarType::Scalar, PhiInterpType::None, TorType::OnePlane, KinType::DriftKin > &jpara_diff_previous_h, const GridField< HostType, VarType::Scalar, PhiInterpType::None, TorType::OnePlane, KinType::DriftKin > &jpara_diff_integral_h, const View< double *, CLayout, HostType > &jpara_diff_current, int gstep, double time) |
![]() | |
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 () |
Additional Inherited Members | |
![]() | |
bool | is_on |
![]() | |
StepTrigger | step_trigger |
Header file to loop_voltage_diag.cpp Contains ADIOS2 diagnostics for the loop voltage current drive.
|
inline |
|
inline |
< Switches the loop voltage diagnostic on if dynamic current drive is on
< Output frequency of loop_voltage_diagnostic
void LoopVolDiagnostics::write | ( | const Grid< DeviceType > & | grid, |
const GridField< HostType, VarType::Scalar, PhiInterpType::None, TorType::OnePlane, KinType::DriftKin > & | loop_voltage_h, | ||
const GridField< HostType, VarType::Scalar, PhiInterpType::None, TorType::OnePlane, KinType::DriftKin > & | jpara_diff_previous_h, | ||
const GridField< HostType, VarType::Scalar, PhiInterpType::None, TorType::OnePlane, KinType::DriftKin > & | jpara_diff_integral_h, | ||
const View< double *, CLayout, HostType > & | jpara_diff_current, | ||
int | gstep, | ||
double | time | ||
) |
Contains ADIOS2 diagnostics for the loop voltage current drive. Writes pseudo-inverse diagnostics.
[in] | sml | Contains simulation control parameters. |
[in] | grid | Spatial grid object. |
[in] | electric_field | Electric field object |
[in] | loop_voltage_correction | Correction of the loop voltage based on j_plasma-j_equil |