XGC1
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;
24 #ifdef EXPLICIT_EM
25  bool em_mixed_variable;
26  bool em_control_variate;
27  PullbackMethod em_pullback_method;
28 #ifdef EM_B_PARA_EFF
29  bool em_b_para_eff;
30 #endif
31 #endif
32 #ifdef GB2024
33  const ParticleStream particle_stream;
34 #endif
35 
36 
37  PushControls(const Simulation<DeviceType>& sml, int ipc_in, const ParticleStream &particle_stream_in) :
38  bounce(sml.bounce),
42  neutrals(sml.neutrals),
45  drift_on(sml.drift_on),
46  gstep(sml.gstep),
47  ipc(ipc_in),
52 #ifdef EXPLICIT_EM
53  , em_mixed_variable(sml.em_mixed_variable),
54  em_control_variate(sml.em_control_variate),
55  em_pullback_method(sml.em_pullback_method)
56 #ifdef EM_B_PARA_EFF
57  , em_b_para_eff(sml.em_b_para_eff)
58 #endif
59 #endif
60 #ifdef GB2024
61  , particle_stream(particle_stream_in)
62 #endif
63  {}
64 };
65 
66 #endif
Definition: particle_stream.hpp:6
Definition: sml.hpp:10
PullbackMethod
Definition: globals.hpp:221
Definition: push_controls.hpp:9
bool drift_on
Definition: push_controls.hpp:17
PushControls(const Simulation< DeviceType > &sml, int ipc_in, const ParticleStream &particle_stream_in)
Definition: push_controls.hpp:37
bool electron_on
Definition: push_controls.hpp:15
int gstep
Definition: push_controls.hpp:18
int ipc
Definition: push_controls.hpp:19
bool neutrals
Definition: push_controls.hpp:14
int bounce_zero_weight
Definition: push_controls.hpp:11
bool loop_voltage_on
Definition: push_controls.hpp:20
double bounce_buffer
Definition: push_controls.hpp:12
int sheath_mode
Definition: push_controls.hpp:13
bool dwdt_exb_only
Definition: push_controls.hpp:22
double loop_voltage_psimax
Definition: push_controls.hpp:21
bool diag_heat_on
Definition: push_controls.hpp:16
int bounce
Definition: push_controls.hpp:10
bool dwdt_fix_bg
Definition: push_controls.hpp:23