Clearer explanantion of macrofactor
This commit is contained in:
Binary file not shown.
+15
-7
@@ -431,7 +431,7 @@ of an interpolation that we will discuss next.
|
||||
Fig.~\ref{fig:num:interpolation} illustrates how the interpolation from grid
|
||||
quantities (magnetic field $B_z$ in this case) to the particle location is
|
||||
done. As discussed in the last scetion the numerical macroparticle represents
|
||||
a sample of the phase space with finite extent and a macro factor, or (statistical) weight given by the number of physical particles it represents.
|
||||
a sample of the phase space with finite extent and a macrofactor, or (statistical) weight $w_p$ given by the number of physical particles it represents.
|
||||
%The computational macro-particle represents a large number of physical
|
||||
%particles and is thus seen as a chunk of phase space with a density
|
||||
%distribution over a finite extend.
|
||||
@@ -681,11 +681,19 @@ and thus we avoid the loss of precision due to the finite resolution of
|
||||
floating point numbers close to the speed of light.
|
||||
Eqs.~\eqref{eq:num:velupdate} and \eqref{eq:num:posupdate} then read
|
||||
\begin{align}
|
||||
\vec{u}(t+\Delta{t}/2) &= \vec{u}(t-\Delta{t}/2) + \vec{F}(x(t),v(t))\cdot\Delta{t}/m \quad , \\
|
||||
\vec{u}(t+\Delta{t}/2) &= \vec{u}(t-\Delta{t}/2) + \vec{F}(x(t),v(t))\cdot\Delta{t}/m \label{eqn:macro_vel} \quad , \\
|
||||
\gamma(t+\Delta{t}/2) &= \sqrt{1 + \frac{\vec{u}(t+\Delta{t}/2) \cdot \vec{u}(t+\Delta{t}/2)}{c^2}} \\
|
||||
\vec{x}(t+\Delta{t})\phantom{/2} &= \vec{x}(t)\phantom{-\Delta{t}/2}\,\,\, + \vec{u}(t+\Delta{t}/2)\cdot\Delta{t}/\gamma(t+\Delta{t}/2) \quad , \\
|
||||
\vec{F}(x(t),v(t)) &= \frac{q}{m} \left(\vec{E}(x(t)) + \vec{v}(t) \times \vec{B}(x(t))\right) \quad .
|
||||
\vec{F}(x(t),v(t)) &= q \left(\vec{E}(x(t)) + \vec{v}(t) \times \vec{B}(x(t))\right) \label{eqn:macro_force} \quad .
|
||||
\end{align}
|
||||
One important thing to note is that the macrofactor $w_p$ cancels
|
||||
Eq.~\eqref{eqn:macro_vel} and Eq.~\eqref{eqn:macro_force}, since both charge
|
||||
$q$ and mass $m$ of a macro particle are increased compared to $q_\alpha$ and
|
||||
$m_\alpha$ of a single physical particle. Positions $\vec{x}$ and velocities
|
||||
$\vec{v}$ are both unscaled. This mean that
|
||||
Equations~\eqref{eqn:macro_vel}-\eqref{eqn:macro_force} apply to physical
|
||||
particles and phase space samples in the same way and the dynamics of macro
|
||||
particles in the code can be intuitively interpreted as particle trajectories.
|
||||
|
||||
\begin{figure}[h!]
|
||||
\centering
|
||||
@@ -694,7 +702,7 @@ Eqs.~\eqref{eq:num:velupdate} and \eqref{eq:num:posupdate} then read
|
||||
\label{fig:num:boris_push}
|
||||
\end{figure}
|
||||
|
||||
The major insight that allows to solve the problem is that the magnetic field
|
||||
The major insight that allows to solve the implicit equations of motion is that the magnetic field
|
||||
can only change the direction of the velocity vector. It is therefore possible
|
||||
to construct a suitable rotation using geometric considerations. The effect of
|
||||
the electric field is purely an acceleration in the direction of the electric
|
||||
@@ -764,7 +772,7 @@ $\vec{x}(t+\Delta{t})$ is straight forward and simply given by
|
||||
\begin{equation}
|
||||
\rho(i\Delta{x},j\Delta{y}) = \sum_{p} q_p W(x_p - i\Delta{x}) \cdot W(y_p - j\Delta{y}) \quad .
|
||||
\end{equation}
|
||||
The sum is taken over all particles, multiplying their charge with the weight
|
||||
The sum is taken over all particles, multiplying their charge $q_p$ (which is given by $w_p \cdot q_\alpha$ for a macro particle with macrofactor $w_p$, representing $w_p$ physical particles of species $\alpha$ with charge $q_\alpha$ each) with the weight
|
||||
function based on the distance between the particle position
|
||||
$\vec{x}_p(t+\Delta{t})$ and the origin of the grid cell, where the charge
|
||||
density is located.
|
||||
@@ -945,7 +953,7 @@ case we can pick the initial position of the particle at random using
|
||||
\begin{equation}
|
||||
\vec{x} = \left(L_x\cdot \mathcal{U}(0,1), L_y \cdot \mathcal{U}(0,1), L_z \cdot \mathcal{U}(0,1)\right) \quad,
|
||||
\end{equation}
|
||||
where the random generator function $\mathcal{U}$ produces three independent (pseudo-)random numbers, uniformly distributed between zero and one. The expected number of \textit{particles per cell} (\textit{ppc}) is Poisson distributed as we have a discrete probability distribution with independent probability. Since the number of macroparticles is significantly smaller than the number of real particles, the statistical density fluctuations are higher in the simulation than in the reality. One easy step to remedy this to some extent is to create exactly the expected number of macro particles per cell and only choose
|
||||
where the random generator function $\mathcal{U}$ produces three independent \mbox{(pseudo-)}\\random numbers, uniformly distributed between zero and one. The expected number of \textit{particles per cell} (\textit{ppc}) is Poisson distributed as we have a discrete probability distribution with independent probability. Since the number of macroparticles is significantly smaller than the number of real particles, the statistical density fluctuations are higher in the simulation than in the reality. One easy step to remedy this to some extent is to create exactly the expected number of macro particles per cell and only choose
|
||||
the position inside the cell at random. This reduced the fluctuations in the number of particles per cell and also makes it easy to represent
|
||||
spatially changing densities, by computing the number of particles in each cell
|
||||
from a known analytic function $n(\vec{x})$. This works well as long as the
|
||||
@@ -1004,7 +1012,7 @@ interaction with existing fields in the domain \cite{Cartwright_2000}.
|
||||
% particle splitting and merging
|
||||
In many simulations particles are created once and afterwards their number
|
||||
never changes. It can however be useful to split particles into particles with
|
||||
smaller macrofactor. in regions of (phase-)space, where there is a low number
|
||||
smaller macrofactor. In regions of (phase-)space, where there is a low number
|
||||
of particles, to get better statistics and reduce noise. Many of those particles
|
||||
however leave the interesting region again and need to be merged together again
|
||||
to avoid a ballooning of the computational cost.
|
||||
|
||||
+1
-1
@@ -81,7 +81,7 @@ Direct numerical simulation is severely limited: In first place it requires a so
|
||||
|
||||
%Sampling des Phasenraums
|
||||
|
||||
Rather than solving the Vlasov equation for the full distribution function, samples of the phase space can be used. As Liouville's theorem states that the volume of these phase space samples is constant. The motion of the phase space volumes can be traced as single particles.
|
||||
Rather than solving the Vlasov equation for the full distribution function, samples of the phase space can be used. As Liouville's theorem states that the volume of these phase space samples is constant. The motion of the phase space volumes can be traced as single particles. However the phase space samples do not represent individual physical particles, but rather a bunch of $w_p$ physical particles with (nearly) identical position and velocity that stay together during time evolution. This number $w_p$ is also known as the statistical weight of the phase space sample or the macrofactor.
|
||||
|
||||
%%Hier nochmal auf Euler vs Lagrange eingehen
|
||||
|
||||
|
||||
Reference in New Issue
Block a user