WarpX
WarpXParticleContainer_fwd.H
Go to the documentation of this file.
1 /* Copyright 2021 Luca Fedeli, Axel Huebl
2  *
3  * This file is part of WarpX.
4  *
5  * License: BSD-3-Clause-LBNL
6  */
7 
8 #ifndef WARPX_WarpXParticleContainer_fwd_H_
9 #define WARPX_WarpXParticleContainer_fwd_H_
10 
11 enum struct ParticleBC;
12 enum struct ConvertDirection;
13 
14 struct PIdx;
15 struct DiagIdx;
16 struct TmpIdx;
17 
18 class WarpXParIter;
19 
21 
23 
24 struct PIdx
25 {
26  enum { // Particle Attributes stored in amrex::ParticleContainer's struct of array
27  w = 0, // weight
28  ux, uy, uz,
29 #ifdef WARPX_DIM_RZ
30 theta, // RZ needs all three position components
31 #endif
32 nattribs
33  };
34 };
35 
36 struct DiagIdx
37 {
38  enum {
39  w = 0,
40  x, y, z, ux, uy, uz,
41  nattribs
42  };
43 };
44 
45 struct TmpIdx
46 {
47  enum {
48  xold = 0,
49  yold, zold, uxold, uyold, uzold,
50  nattribs
51  };
52 };
53 
54 #endif /* WARPX_WarpXParticleContainer_fwd_H_ */
Definition: WarpXParticleContainer_fwd.H:24
Definition: WarpXParticleContainer_fwd.H:28
Definition: WarpXParticleContainer_fwd.H:30
Definition: WarpXParticleContainer_fwd.H:36
def x
Definition: read_lab_particles.py:25
tuple w
Definition: yt3d_mpi.py:43
def uz
Definition: read_lab_particles.py:29
Definition: WarpXParticleContainer_fwd.H:40
ConvertDirection
Definition: WarpXParticleContainer_fwd.H:22
def ux
Definition: read_lab_particles.py:28
Definition: WarpXParticleContainer.H:58
Definition: WarpXParticleContainer_fwd.H:49
Definition: WarpXParticleContainer_fwd.H:45
Definition: WarpXParticleContainer.H:110