@@ -13,6 +13,7 @@ Dimensions CMake Option
1313========== ===================
1414**3D3V ** ``WarpX_DIMS=3 ``
1515**2D3V ** ``WarpX_DIMS=2 ``
16+ **1D3V ** ``WarpX_DIMS=1 ``
1617**RZ ** ``WarpX_DIMS=RZ ``
1718========== ===================
1819
@@ -23,35 +24,37 @@ Defines
2324
2425Depending on the build variant of WarpX, the following preprocessor macros will be set:
2526
26- ================== =========== =========== ===========
27- Macro 3D3V 2D3V RZ
28- ================== =========== =========== ===========
29- ``AMREX_SPACEDIM `` ``3 `` ``2 `` ``2 ``
30- ``WARPX_DIM_3D `` **defined ** *undefined * *undefined *
31- ``WARPX_DIM_XZ `` *undefined * **defined ** *undefined *
32- ``WARPX_DIM_RZ `` *undefined * *undefined * **defined **
33- ================== =========== =========== ===========
27+ ================== =========== =========== =========== ===========
28+ Macro 3D3V 2D3V 1D3V RZ
29+ ================== =========== =========== =========== ===========
30+ ``AMREX_SPACEDIM `` ``3 `` ``2 `` ``1 `` ``2 ``
31+ ``WARPX_DIM_3D `` **defined ** *undefined * *undefined * *undefined *
32+ ``WARPX_DIM_1D `` *undefined * *undefined * **defined ** *undefined *
33+ ``WARPX_DIM_XZ `` *undefined * **defined ** *undefined * *undefined *
34+ ``WARPX_DIM_RZ `` *undefined * *undefined * *undefined * **defined **
35+ ================== =========== =========== =========== ===========
3436
3537At the same time, the following conventions will apply:
3638
37- ==================== =========== =========== ===========
38- **Convention ** **3D3V ** **2D3V ** **RZ **
39- -------------------- ----------- ----------- -----------
39+ ==================== =========== =========== =========== ===========
40+ **Convention ** **3D3V ** **2D3V ** **1D3V ** ** RZ **
41+ -------------------- ----------- ----------- ----------- -----------
4042*Fields *
41- -----------------------------------------------------------
42- AMReX Box dimensions ``3 `` ``2 `` ``2 ``
43- WarpX axis labels ``x, y, z `` ``x, z `` ``x, z ``
44- -------------------- ----------- ----------- -----------
43+ ------------------------------------------------------------------------
44+ AMReX Box dimensions ``3 `` ``2 `` ``1 `` `` 2 ``
45+ WarpX axis labels ``x, y, z `` ``x, z `` ``z `` `` x, z ``
46+ -------------------- ----------- ----------- ----------- -----------
4547*Particles *
46- -----------------------------------------------------------
47- AMReX AoS ``.pos() `` ``0, 1, 2 `` ``0, 1 `` ``0, 1 ``
48- WarpX position names ``x, y, z `` ``x, z `` ``r, z ``
49- extra SoA attribute ``theta ``
50- ==================== =========== =========== ===========
48+ ------------------------------------------------------------------------
49+ AMReX AoS ``.pos() `` ``0, 1, 2 `` ``0, 1 `` ``0 `` `` 0 , 1 ``
50+ WarpX position names ``x, y, z `` ``x, z `` ``z `` `` r, z ``
51+ extra SoA attribute ``theta ``
52+ ==================== =========== =========== =========== ===========
5153
5254Please see the following sections for particle AoS and SoA details.
5355
5456Conventions
5557-----------
5658
5759In 2D3V, we assume that the position of a particle in ``y `` is equal to ``0 ``.
60+ In 1D3V, we assume that the position of a particle in ``x `` and ``y `` is equal to ``0 ``.
0 commit comments