WarpX
Source
Particles
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
20
class
WarpXParticleContainer
;
21
22
enum struct
ConvertDirection
{
WarpX_to_SI
,
SI_to_WarpX
};
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_ */
PIdx
Definition:
WarpXParticleContainer_fwd.H:24
PIdx::uz
Definition:
WarpXParticleContainer_fwd.H:28
PIdx::theta
Definition:
WarpXParticleContainer_fwd.H:30
DiagIdx
Definition:
WarpXParticleContainer_fwd.H:36
read_lab_particles.x
def x
Definition:
read_lab_particles.py:25
yt3d_mpi.w
tuple w
Definition:
yt3d_mpi.py:43
read_lab_particles.uz
def uz
Definition:
read_lab_particles.py:29
DiagIdx::z
Definition:
WarpXParticleContainer_fwd.H:40
ConvertDirection
ConvertDirection
Definition:
WarpXParticleContainer_fwd.H:22
ConvertDirection::WarpX_to_SI
read_lab_particles.ux
def ux
Definition:
read_lab_particles.py:28
WarpXParIter
Definition:
WarpXParticleContainer.H:58
ConvertDirection::SI_to_WarpX
TmpIdx::zold
Definition:
WarpXParticleContainer_fwd.H:49
TmpIdx
Definition:
WarpXParticleContainer_fwd.H:45
WarpXParticleContainer
Definition:
WarpXParticleContainer.H:110
Generated by
1.8.13