XGC1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
local_fields.hpp
Go to the documentation of this file.
1 #ifndef LOCAL_FIELDS_HPP
2 #define LOCAL_FIELDS_HPP
3 
4 #include "globals.hpp"
5 
6 // Fields at a set of points, interpolated from solved grid quantities
7 struct LocalFields {
8  SimdVector E; // Electric field vector
9 #ifdef SONIC_GK
10  SimdVector dEr_B2; // Gradient of Er/B^2
11  SimdVector dEz_B2; // Gradient of Ez/B^2
12  SimdVector du2_E; // Gradient of the square (dot product) of the E x B drift
13 #endif
14 #ifdef DELTAF_CONV
15  SimdVector E00; // 00 E-field
16  Simd<double> ddpotdt; // dPhi/dt
17 #endif
18 #ifdef EXPLICIT_EM
19  SimdVector dAh; // || comp. of Vector potential
20  Simd<double> Ah; // || comp. of Vector potential
21  SimdVector dAs; // || comp. of Vector potential
22  Simd<double> As; // || comp. of Vector potential
23  Simd<double> Epar_em;
24 #endif
25  //Simd<double> loop_voltage; // loop voltage
26 };
27 
28 #endif
Definition: simd.hpp:149
Definition: local_fields.hpp:7
SimdVector E
Definition: local_fields.hpp:8