More shortenings...

This commit is contained in:
2019-04-21 01:19:10 +02:00
parent 9b7b212630
commit b63b9ab299
4 changed files with 39 additions and 31 deletions
+34 -29
View File
@@ -365,12 +365,12 @@ For the limit of very small particle velocities (as compared to the speed of lig
Besides the domain of electrostatic and electromagnetic models there is another intermediate regime called Darwin approximation \cite{Darwin_1920} which includes magnetodynamic effects up to order $\mathcal{O}((v/c)^2)$, but which does not consider light waves. This equivalent to removing the divergence-free part of the displacement current. While time resolution constraints are relaxed since the speed of light is no longer present, the differential equations representing the electromagnetic field are now elliptic requiring a global field solver.
\subsection*{Interpolation}
\subsection{Interpolation}
\label{sec:num:interpol}
The previous section only discussed Eulerian quantities on the regular grid.
But the electromagnetic fields act on the Lagranian particles, which requires
knowledge of the field strength at the location of the particle, not just at
the regular grid locations. This crutial switch in view point is done by means
the regular grid locations. This crucial switch in view point is done by means
of an interpolation that we will discuss next.
\begin{figure}[h!]
@@ -552,7 +552,9 @@ particle and update them during the course of the simulation to reduce overall
noise. Other schemes that pick or modify the width of the shape function to
reduce known numerical problems might follow.
\subsection*{Particle Motion}
\subsection{Particle Motion}
\label{sec:num:particle}
Once the electromagnetic fields have been interpolated to the locaton of the
particle, it is necessary to update the position and velocity of the particle
@@ -663,21 +665,23 @@ for both the interpolation from the grid to the particle location as well as
the deposition of the particle quantities $\rho$ and $\vec{\jmath}$ onto the
grid to avoid spurious self-forces.
The deposition of $\rho(t+\Delta{t})$ based on the newly calcuated
$\vec{x}(t+\Delta{t}$ is straight forward and simply given by
The deposition of $\rho(t+\Delta{t})$ based on the newly calculated
$\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 .
\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
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. One might be tempted to locate the charge density at the
center of the cell, to allow for the nice interpretation as the charge
contained in the cell, but typically the field solver calculates the
electrostatic potential at the location where the charge density is located.
Picking the corners of the cell allows to use a straight forward finite
difference approximation to calculate the electric field at the midpoint of
the edges.
density is located.
%One might be tempted to locate the charge density at the
%center of the cell, to allow for the nice interpretation as the charge
%contained in the cell, but typically the field solver calculates the
%electrostatic potential at the location where the charge density is located.
%Picking the corners of the cell allows to use a straight forward finite
%difference approximation to calculate the electric field at the midpoint of
%the edges.
It is advisable to store the charge density at the cell corners.
Calculating the current $\vec{\jmath}(t+\Delta{t}/2)$ based on the old location
$\vec{x}(t)$, the new location $\vec{x}(t+\Delta{t})$ and the velocity
@@ -709,12 +713,12 @@ in this way does not satisfies the discrete continuity equation given by
&\quad + \frac{j_y(i\Delta{x},(j+1/2)\Delta{y},t+\Delta{t}/2) - j_y(i\Delta{x},(j-1/2)\Delta{y},t+\Delta{t}/2)}{\Delta{y}} = 0 \quad .
\end{align}
Since this current enters Maxwells' equations as a source term it will lead to
Since this current enters Maxwell's equations as a source term it will lead to
an electric field that does not actually satisfy Gauss' Law. In other words the
curl-free component of the electric field in an electromagnetic code using this
current deposition scheme will differ from the electric field in an
electrostatic code with the same particle distribution. This is clearly not
desirable and different methods have been used to correct the problem. One is
desirable and different methods have been used to correct the problem. One is to
deposit the charge density separately and to solve a Poisson equation to get
the longitudinal part of the electric field correct. Computationally cheaper
and very effective is to make use of the fact that the electric field is nearly
@@ -722,19 +726,20 @@ correct and to clean up the remaining error using a correction scheme, such as
the one by \cite{Marder_1987}.
This problem is solved all-together by current deposition schemes that
depositing a current that satisfies the discrete continuity equation directly.
deposit a current that satisfies the discrete continuity equation directly.
The first of these so called \textit{charge conserving} schemes is by
\cite{Eastwood_1991}\footnote{this paper is probably better known for the novel
Maxwell solver described therein, not the current deposition algorithm.}, but
several others have been developed since. The deposition in these schemes is
\cite{Eastwood_1991},
%\footnote{this paper is probably better known for the novel
%Maxwell solver described therein, not the current deposition algorithm.}
but several others have been developed since. The deposition in these schemes is
slightly more expensive than in the naive algorithm, but the the need to remove
violations of Gauss' Law is completely eliminated.
Somewhat more widely implemented in the scheme by \cite{Villasenor_1992}. The
down side of this scheme is the need to threat the particle motion differently
downside of this scheme is the need to treat the particle motion differently
depending how many cell interfaces the particle interacts with. The need to
branch to different sub-algorithms for each particle is computationally not
optimal on pipelined CPUs or GPUs where divergent branches incure large costs.
optimal on pipelined CPUs or GPUs where divergent branches incur large costs.
Additionally this scheme is tedious to extend to shape functions beyond CIC.
% \begin{figure}[htbp]
@@ -763,7 +768,7 @@ Additionally this scheme is tedious to extend to shape functions beyond CIC.
\end{figure}
A scheme that works with arbitray shape functions (as long as they are products
A scheme that works with arbitrary shape functions (as long as they are products
of separate one-dimensional shape functions) and without the need for different
treatment of special cases is the current deposition by \cite{Esirkepov_2001}.
Fig.~\ref{fig:num:currentassignment_esirkepov} illustrates the current density
@@ -778,7 +783,7 @@ refered back to the excellent original paper.
The other widely used scheme in modern codes is the Zig-Zag scheme described in
\cite{Umeda_2003}. In this scheme particles can only cross between cells at the
midpoint of the interface. A particle that does not naturally go through that
point has it's motion split into a motion from the starting position to the mid
point has its motion split into a motion from the starting position to the mid
point, followed by a separate motion from the midpoint to the final location,
resulting in a Zig-Zag trajectory that gave the scheme it's name.
Fig.~\ref{fig:num:currentassignment_umeda} illustrates this motion and the
@@ -795,15 +800,15 @@ noise-properties between the two deposition schemes is similar.
% \label{fig:num:currentassignment_umeda}
% \end{center}
% \end{figure}
Even in the case of unstructed grids, a charge-conserving current deposition
method has been developed by \cite{Moon_2015}, that makes use of the
discrete exterior algebra in its derivation.
%
%Even in the case of unstructured grids, a charge-conserving current deposition
%method has been developed by \cite{Moon_2015}, that makes use of the
%discrete exterior algebra in its derivation.
Once the current is deposited on the grid it can be filtered to remove unwanted
noise. The paper by \cite{Vay_2011} has an introduction to some digital filters
and the associated terminology. Many codes simply use one or more passes of a
simple binomial filter to reduce high frequency fluctuactions, but it is
simple binomial filter to reduce high frequency fluctuations, but it is
possible to tune filters specifically to the problem at hand and get much
better performance.