XGC1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
push_controls.hpp
Go to the documentation of this file.
1 #ifndef PUSH_CONTROLS_HPP
2 #define PUSH_CONTROLS_HPP
3 
4 #include "sml.hpp"
5 #include "particle_stream.hpp"
6 
7 /* PushControls contains all of the parameters from sml that get used in the push kernel
8  * */
9 struct PushControls{
10  int bounce;
12  double bounce_buffer;
14  bool neutrals;
17  bool ptb_3db_on;
18  bool drift_on;
19  int gstep;
20  int ipc;
21  double time;
23  double loop_voltage;
27 #ifdef EXPLICIT_EM
28  bool em_mixed_variable;
29  bool em_control_variate;
30  int em_pullback_mode;
31 #ifdef EM_B_PARA_EFF
32  bool em_b_para_eff;
33 #endif
34 #endif
35 #ifdef MULTI_RATE
36  int mr_factor;
37  double mr_psi_max;
38 #endif
39 #ifdef GB2024
40  const ParticleStream particle_stream;
41 #endif
42 
43 
44  PushControls(const Simulation<DeviceType>& sml, int ipc_in, const ParticleStream &particle_stream_in) :
45  bounce(sml.bounce),
49  neutrals(sml.neutrals),
53  drift_on(sml.drift_on),
54  gstep(sml.gstep),
55  ipc(ipc_in),
56  time(sml.time),
62 #ifdef EXPLICIT_EM
63  , em_mixed_variable(sml.em_mixed_variable),
64  em_control_variate(sml.em_control_variate),
65  em_pullback_mode(sml.em_pullback_mode)
66 #ifdef EM_B_PARA_EFF
67  , em_b_para_eff(sml.em_b_para_eff)
68 #endif
69 #endif
70 #ifdef MULTI_RATE
71  , mr_factor(sml.mr_factor),
72  mr_psi_max(sml.mr_psi_max)
73 #endif
74 #ifdef GB2024
75  , particle_stream(particle_stream_in)
76 #endif
77  {}
78 };
79 
80 #endif
double time
Definition: push_controls.hpp:21
bool electron_on
Definition: push_controls.hpp:15
bool drift_on
Definition: push_controls.hpp:18
Definition: sml.hpp:8
bool neutrals
Definition: push_controls.hpp:14
int sheath_mode
Definition: push_controls.hpp:13
Definition: push_controls.hpp:9
double loop_voltage_psimax
Definition: push_controls.hpp:24
double bounce_buffer
Definition: push_controls.hpp:12
bool dwdt_fix_bg
Definition: push_controls.hpp:26
int bounce
Definition: push_controls.hpp:10
bool loop_voltage_on
Definition: push_controls.hpp:22
bool diag_heat_on
Definition: push_controls.hpp:16
int gstep
Definition: push_controls.hpp:19
int ipc
Definition: push_controls.hpp:20
bool dwdt_exb_only
Definition: push_controls.hpp:25
Definition: particle_stream.hpp:6
int bounce_zero_weight
Definition: push_controls.hpp:11
double loop_voltage
Definition: push_controls.hpp:23
PushControls(const Simulation< DeviceType > &sml, int ipc_in, const ParticleStream &particle_stream_in)
Definition: push_controls.hpp:44
bool ptb_3db_on
Definition: push_controls.hpp:17