XGCa
 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 drift_on;
18  int gstep;
19  int ipc;
20  double time;
22  double loop_voltage;
26 #ifdef EXPLICIT_EM
27  bool em_mixed_variable;
28  bool em_control_variate;
29  int em_pullback_mode;
30 #ifdef EM_B_PARA_EFF
31  bool em_b_para_eff;
32 #endif
33 #endif
34 #ifdef MULTI_RATE
35  int mr_factor;
36  double mr_psi_max;
37 #endif
38 #ifdef GB2024
39  const ParticleStream particle_stream;
40 #endif
41 
42 
43  PushControls(const Simulation<DeviceType>& sml, int ipc_in, const ParticleStream &particle_stream_in) :
44  bounce(sml.bounce),
48  neutrals(sml.neutrals),
51  drift_on(sml.drift_on),
52  gstep(sml.gstep),
53  ipc(ipc_in),
54  time(sml.time),
60 #ifdef EXPLICIT_EM
61  , em_mixed_variable(sml.em_mixed_variable),
62  em_control_variate(sml.em_control_variate),
63  em_pullback_mode(sml.em_pullback_mode)
64 #ifdef EM_B_PARA_EFF
65  , em_b_para_eff(sml.em_b_para_eff)
66 #endif
67 #endif
68 #ifdef MULTI_RATE
69  , mr_factor(sml.mr_factor),
70  mr_psi_max(sml.mr_psi_max)
71 #endif
72 #ifdef GB2024
73  , particle_stream(particle_stream_in)
74 #endif
75  {}
76 };
77 
78 #endif
double time
Definition: push_controls.hpp:20
bool electron_on
Definition: push_controls.hpp:15
bool drift_on
Definition: push_controls.hpp:17
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:23
double bounce_buffer
Definition: push_controls.hpp:12
bool dwdt_fix_bg
Definition: push_controls.hpp:25
int bounce
Definition: push_controls.hpp:10
bool loop_voltage_on
Definition: push_controls.hpp:21
bool diag_heat_on
Definition: push_controls.hpp:16
int gstep
Definition: push_controls.hpp:18
int ipc
Definition: push_controls.hpp:19
bool dwdt_exb_only
Definition: push_controls.hpp:24
Definition: particle_stream.hpp:6
int bounce_zero_weight
Definition: push_controls.hpp:11
double loop_voltage
Definition: push_controls.hpp:22
PushControls(const Simulation< DeviceType > &sml, int ipc_in, const ParticleStream &particle_stream_in)
Definition: push_controls.hpp:43