You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/particles/ImpactXParticleContainer.H
+32-17Lines changed: 32 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,7 @@
17
17
#include<AMReX_MultiFab.H>
18
18
#include<AMReX_ParIter.H>
19
19
#include<AMReX_Particles.H>
20
+
#include<AMReX_ParticleTile.H>
20
21
21
22
#include<AMReX_IntVect.H>
22
23
#include<AMReX_Vector.H>
@@ -35,6 +36,7 @@ namespace impactx
35
36
* because we change the meaning of these "positions" depending on the
36
37
* coordinate system we are currently in.
37
38
*/
39
+
/*
38
40
struct RealAoS
39
41
{
40
42
enum
@@ -52,6 +54,7 @@ namespace impactx
52
54
static_assert(names_t.size() == nattribs);
53
55
static_assert(names_s.size() == nattribs);
54
56
};
57
+
*/
55
58
56
59
/** This struct indexes the additional Real attributes
57
60
* stored in an SoA in ImpactXParticleContainer
@@ -60,18 +63,21 @@ namespace impactx
60
63
{
61
64
enum
62
65
{
66
+
x, ///< position in x [m] (at fixed t OR fixed s)
67
+
y, ///< position in y [m] (at fixed t OR fixed s)
68
+
z, ///< position in z [m] (at fixed t) OR time-of-flight ct [m] (at fixed s)
63
69
ux, ///< momentum in x, scaled by the magnitude of the reference momentum [unitless] (at fixed t or s)
64
70
uy, ///< momentum in y, scaled by the magnitude of the reference momentum [unitless] (at fixed t or s)
65
71
pt, ///< momentum in z, scaled by the magnitude of the reference momentum [unitless] (at fixed t) OR energy deviation, scaled by speed of light * the magnitude of the reference momentum [unitless] (at fixed s)
66
72
m_qm, ///< charge to mass ratio, in q_e/m_e (q_e/eV) TODO: rename to qm_m
67
-
w, ///< particle weight, unitless
73
+
w, ///< particle weight, unitless
68
74
nattribs ///< the number of attributes above (always last)
0 commit comments