Skip to content

Commit 69172ef

Browse files
committed
Docs: PIC Model
Start writing the PIC model section. Introduces our implemented system of equations for the reader.
1 parent c58edac commit 69172ef

File tree

1 file changed

+72
-0
lines changed

1 file changed

+72
-0
lines changed

docs/source/models/pic.rst

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,81 @@ The Particle-in-Cell Algorithm
77

88
For now, please refer to the textbooks [BirdsallLangdon]_, [HockneyEastwood]_, our :ref:`latest paper on PIConGPU <usage-reference>` and [Huebl2014]_ (chapters 2.3, 3.1 and 3.4).
99

10+
System of Equations
11+
-------------------
12+
13+
.. math::
14+
15+
\nabla \cdot \mathbf{E} &= \frac{1}{\varepsilon_0}\sum_s \rho_s
16+
17+
\nabla \cdot \mathbf{B} &= 0
18+
19+
\nabla \times \mathbf{E} &= -\frac{\partial \mathbf{B}} {\partial t}
20+
21+
\nabla \times \mathbf{B} &= \mu_0\left(\sum_s \mathbf{J}_s + \varepsilon_0 \frac{\partial \mathbf{E}} {\partial t} \right)
22+
23+
for multiple particle species :math:`s`.
24+
:math:`\mathbf{E}(t)` represents the electic, :math:`\mathbf{B}(t)` the magnetic, :math:`\rho_s` the charge density and :math:`\mathbf{J}_s(t)` the current density field.
25+
26+
Except for normalization of constants, PIConGPU implements the governing equations in SI units.
27+
28+
Relativistic Plasma Physics
29+
---------------------------
30+
31+
The 3D3V particle-in-cell method is used to describe many-body systems such as a plasmas.
32+
It approximates the Vlasov--Maxwell--Equation
33+
34+
.. math::
35+
:label: VlasovMaxwell
36+
37+
\partial_t f_s(\mathbf{x},\mathbf{v},t) + \mathbf{v} \cdot \nabla_x f_s(\mathbf{x},\mathbf{v},t) + \frac{q_s}{m_s} \left[ \mathbf{E}(\mathbf{x},t) + \mathbf{v} \times \mathbf{B}(\mathbf{x},t) \right] \cdot \nabla_v f_s(\mathbf{x},\mathbf{v},t) = 0
38+
39+
with :math:`f_s` as the distribution function of a particle species :math:`s`, :math:`\mathbf{x},\mathbf{v},t` as position, velocity and time and :math:`\frac{q_s}{m_s}` the charge to mass-ratio of a species.
40+
The momentum is related to the velocity by :math:`\mathbf{p} = \gamma m_s \mathbf{v}`.
41+
42+
The equations of motion are given by the Lorentz force as
43+
44+
.. math::
45+
46+
\frac{\mathrm{d}}{\mathrm{d}t} \mathbf{V_s}(t) &= \frac{q_s}{m_s} \left[ \mathbf{E}(\mathbf{X_s}(t),t) + \mathbf{V_s}(t) \times \mathbf{B}(\mathbf{X_s}(t),t) \right]\\
47+
\frac{\mathrm{d}}{\mathrm{d}t} \mathbf{X_s}(t) &= \mathbf{V_s}(t) .
48+
49+
.. attention::
50+
51+
TODO: write proper relativistic form
52+
53+
where :math:`\mathbf{X_s}, \mathbf{V_s}` describe the ensemble of particle species' position and velocity.
54+
55+
.. note::
56+
57+
Particles in a particle species can have different charge states in PIConGPU.
58+
In the general case, :math:`\frac{q_s}{m_s}` is not required to be constant per particle species.
59+
60+
Electro-Magnetic PIC Method
61+
---------------------------
62+
63+
**Fields** such as :math:`\mathbf{E}(t), \mathbf{B}(t)` and :math:`\mathbf{J}(t)` are discretized on a regular mesh in Eulerian frame of reference (see [EulerLagrangeFrameOfReference]_).
64+
65+
The distribution function :math:`f_s(\mathbf{x},\mathbf{v},t)` for **particles** is described in Lagrangian frame of reference.
66+
It is sampled with *markers*, sometimes referred to as *macro-particles*.
67+
These markers carry a spatial shape of order :math:`n` and a delta-distribution in momentum space.
68+
In most cases, these shapes are implemented as B-splines and are pre-integrated to *assignment functions* :math:`S` of the form:
69+
70+
.. math::
71+
72+
S^0(x) = \big\{ \substack{1 \qquad \text{if}~0 \le x \lt 1\\ 0 \qquad \text{else}}
73+
74+
S^n(x) = \left(S^{n-1} * S^0\right)(x) = \int_{x-1}^x S^{n-1}(\xi) d\xi
75+
76+
PIConGPU implements these up to order :math:`n=4`.
77+
1078
References
1179
----------
1280

81+
.. [EulerLagrangeFrameOfReference]
82+
Eulerian and Lagrangian specification of the flow field.
83+
https://en.wikipedia.org/wiki/Lagrangian_and_Eulerian_specification_of_the_flow_field
84+
1385
.. [BirdsallLangdon]
1486
C.K. Birdsall, A.B. Langdon.
1587
*Plasma Physics via Computer Simulation*,

0 commit comments

Comments
 (0)