NumMeth-22: Hybrid codes with and without inertia
This commit is contained in:
+354
-1
@@ -5357,7 +5357,360 @@ where $T_{e0}(n_0)$ is a reference electron temperature (density), usually with
|
|||||||
|
|
||||||
Then again, we use Faraday's Law \eqref{eq:winske6}, as in Eq. \eqref{eq:winske9} with $\vec{B}^{N+1/2}$ and $\vec{E}^{N+1/2}$ to advance the magnetic field to $\vec{B}^{N+1}$. However, the advance of $\vec{E}^{N+1/2}$ to $\vec{E}^{N+1}$, shows that while $\vec{B}^{N+1}$ and $n_i^{N+1}$ are known, $\vec{V}_i^{N+1}$ is not.
|
Then again, we use Faraday's Law \eqref{eq:winske6}, as in Eq. \eqref{eq:winske9} with $\vec{B}^{N+1/2}$ and $\vec{E}^{N+1/2}$ to advance the magnetic field to $\vec{B}^{N+1}$. However, the advance of $\vec{E}^{N+1/2}$ to $\vec{E}^{N+1}$, shows that while $\vec{B}^{N+1}$ and $n_i^{N+1}$ are known, $\vec{V}_i^{N+1}$ is not.
|
||||||
|
|
||||||
Various models exist for the advance made here: predictor-corrector methods
|
Various models exist for the advance made here: predictor-corrector methods and Current Advance Method and Cyclic Leapfrog (CAM-CL). We restrict ourselves here to a third, and the simplest, method to advance the electric field its final half time step. In this approach, before we advance the particles to calculate $\vec{v}_p^{N+1/2}$ and thus accumulate the particle information on the grid to determine $\vec{V}_i^{N+1/2}$, we retain $\vec{V}_i^{N-1/2}$ (as well as $q_i n_i N$) and then use a simple linear extrapolation to obtain:
|
||||||
|
\begin{align}
|
||||||
|
\vec{V}_i^{N+1} = \frac{3}{2}\vec{V}_i^{N+1/2} - \frac{1}{2}\vec{V}_i^{N-1/2}
|
||||||
|
\label{eq:winske12}
|
||||||
|
\end{align}
|
||||||
|
The $\vec{E}^{N+1}$ can be evaluated using Eq. \eqref{eq:winske10} and the update to time level $N+1$ is completed. Note that in this method, as well as in others discussed later, the determination of the electric field does not require a global elliptic solve, so that hybrid codes that use these methods are readily scalable to run on very large computer architectures.
|
||||||
|
|
||||||
|
In the hybrid model the shortest wavelength modes in the system are whistlers, which because of the quadratic dispersion of the wave frequency $\omega$ in terms of the wavenumber $k$, $\omega ~ k^2$ for parallel propagation, can be problematic. The issue can be minimized (without adding resistivity) to some degree by using a smaller time step to just advance the magnetic field from $N$ to $N+1/2$, while retaining a larger time step for the ions. This sub-stepping is done using Faraday's law, Eq. \ref{eq:winske6}, where $\vec{E}$ is expressed in terms of its source terms, Eq. \eqref{eq:winske10}:
|
||||||
|
\begin{align}
|
||||||
|
\vec{B}^{N+1/2} = \vec{B}^N - \frac{\Delta t}{2}\nabla \times \vec{E}^N(\vec{B}^N, \vec{V}^N_i, n_i^N)
|
||||||
|
\label{eq:winske13}
|
||||||
|
\end{align}
|
||||||
|
In this case a 4th order Runge-Kutta scheme is used, where on the right-hand side of Eq. \eqref{eq:winske13} we keep $n_i^N$ and $\vec{V}_i^N$ fixed and just advance $\vec{B}$. Specifically, we subcycle $\vec B$ from $N$ to $N+1/2$ in $L$ sub-steps so that $\Delta t^\prime = (\Delta t/2)/L$. At the $l$-th sublevel, $l=1,2,\dots,L$, with $N^\prime = N + l/L$, we advance $\vec B$ to $N^\prime + 1/L$ as follows:
|
||||||
|
\begin{align}
|
||||||
|
\vec{B}^{N^\prime + 1/L} = \vec{B}^{N^\prime} + \frac{\Delta t^\prime}{6}\sum_{j=1}^4 f_j \vec{K}_j^{N^\prime}
|
||||||
|
\end{align}
|
||||||
|
where
|
||||||
|
\begin{align}
|
||||||
|
\vec{K}_j^{N^\prime} = -\nabla \times \vec{E}\left( \vec{B}^{N^\prime} + g_j \Delta t^\prime \vec{K}_{j-1}^{N^\prime},\vec{V}_i^N, n_i^N \right)
|
||||||
|
\end{align}
|
||||||
|
and $f_j=(1,2,2,1)$, $g_j = (0,1/1,1/2,1)$ and $\vec{K}_0 = 0$
|
||||||
|
|
||||||
|
This completes the discussion of a basic hybrid code algorithm that neglects electron inertia.
|
||||||
|
|
||||||
|
|
||||||
|
\section{Hybrid kinetic simulations with finite electron mass}
|
||||||
|
|
||||||
|
Hybrid kinetic simulations describe ion-scale kinetic phenomena in
|
||||||
|
space plasmas by considering ions kinetically, i.e. as particles, while the
|
||||||
|
the electrons are modelled as a fluid. Most existing hybrid kinetic codes
|
||||||
|
neglect the electron mass for a simplified calculation
|
||||||
|
of the electromagnetic fields. There are situations, however, in which delays due to
|
||||||
|
the electron inertia matters.
|
||||||
|
|
||||||
|
The relative scarcity of binary particle collisions in space and astrophysical plasmas makes many of their plasma processes multi-scale in nature, spanning from the largest, global fluid- to electron kinetic particle scales like magnetic reconnection, shock waves and turbulence.
|
||||||
|
In order to investigate those usually non-linear and non-local processes by
|
||||||
|
computer simulations one needs to resolve, in principle, the necessary for the
|
||||||
|
processes smallest scales and at the same time the large scales of the
|
||||||
|
system, both in space and time.
|
||||||
|
While fully kinetic plasma models well describe physical processes down to ion
|
||||||
|
and electron kinetic scales they are time computationally prohibitively expensive,
|
||||||
|
too ambitious to describe at the same time larger scale processes even for
|
||||||
|
future computational facilities.
|
||||||
|
|
||||||
|
The physicists way out of this situation is to understand the processes in parts by
|
||||||
|
modelling and simulating certain of their aspects of physics while neglecting
|
||||||
|
others. This implies the use of a variety of simulation models. A
|
||||||
|
comprehensive understanding is then obtained by combining various aspects of
|
||||||
|
these simulations.
|
||||||
|
|
||||||
|
|
||||||
|
Hybrid-kinetic plasma simulation models completely neglect kinetic effects associated
|
||||||
|
with the electrons. This further reduces the computational burden.
|
||||||
|
Such models are, therefore, suitable to study processes for which ion kinetic
|
||||||
|
effects are important while electron kinetic effects are not.
|
||||||
|
|
||||||
|
The majority of existing hybrid-kinetic plasma simulation models simplify their
|
||||||
|
numerical evaluation by assuming a massless (inertia-less) electron fluid.
|
||||||
|
This assumption allows a direct calculation of the electric field from the electron's
|
||||||
|
momentum equation without the need of solving extra differential field
|
||||||
|
equations.
|
||||||
|
It limits, however, the validity of the model to describe processes at scales
|
||||||
|
exceeding by far the electron scales.
|
||||||
|
|
||||||
|
Effects of the finite electron mass originate from electron scales.
|
||||||
|
They nevertheless may play also an important role for larger scale
|
||||||
|
plasma phenomena. Laboratory experiments of reconnection have revealed, e.g. that the
|
||||||
|
thickness of current sheets maybe as sthin as several electron inertial
|
||||||
|
lengths. A the same time the current sheet thickness can be larger than the
|
||||||
|
electron gyro-radius. This allows a fluid description of the electrons. And hybrid-code simulations with a finite-mass electron fluid have shown that the electron inertia
|
||||||
|
can dominate when the current sheets thin down to electron inertial
|
||||||
|
scale lengths.
|
||||||
|
|
||||||
|
In hybrid simulations of collisionless plasma turbulence, carried out for
|
||||||
|
mass-less electrons, current sheets thin down to the grid scale. This is not physical. Hence hybrid-kinetic simulation studies of thinning current sheets must incorporate
|
||||||
|
electron inertial effects. With inertial electrons hybrid simulations in
|
||||||
|
collisionless plasma turbulence, indeed, show the formation of electron-scale thin current sheets. The same has been observed by simulations of the steepening of
|
||||||
|
non-stationary shocks. In case of hybrid simulations with mass-less electrons the shocks thinned down to the grid scale. Inertial electron hybrid code simulations showed that the finite mass of the electrons macroscopic determined the shock reformation In particular, it determined the strong phase-space mixing between the upstream (incoming) and the reflected ions via wave-particle interactions, the ion thermalization and the growth of plasma waves in the foot and ramp
|
||||||
|
regions of the shock.
|
||||||
|
|
||||||
|
Thus the consideration of the finite electron mass, although it is small,
|
||||||
|
is important to understand a number of critical phenomena in space and
|
||||||
|
astrophysical plasmas.
|
||||||
|
|
||||||
|
\subsection{Equations to be solved}
|
||||||
|
|
||||||
|
In hybrid kinetic models, ions are treated as particles and electrons
|
||||||
|
as a fluid.
|
||||||
|
The equations of motion of every ion macro-particle
|
||||||
|
|
||||||
|
\begin{eqnarray}
|
||||||
|
\frac{d\vec{x}_p}{dt}&=&\vec{v}_p\label{eq:xp} \\
|
||||||
|
m_i\frac{d\vec{v}_p}{dt}&=&e(\vec{E}+\vec{v}_p\times \vec{B}) \label{eq:vp}
|
||||||
|
\end{eqnarray}
|
||||||
|
|
||||||
|
where $\vec{x}_p$ and $\vec{v}_p$ are the positions and velocities of ion
|
||||||
|
macro-particles, respectively, are solved by a PIC algorithm (see Chapter 6).
|
||||||
|
|
||||||
|
The full finite-mass-electron fluid momentum equation is given by
|
||||||
|
|
||||||
|
\begin{equation}
|
||||||
|
m_e\left[\frac{\partial \vec{u}_e}{\partial t}+(\vec{u}_e\cdot\nabla)\vec{u}_e\right]
|
||||||
|
=
|
||||||
|
% -e(\vec{E}+\vec{u}_e\times \vec{B})-\frac{1}{n_e}\frac{\partial}{\partial x_j}P_{e,ij}\label{eq:emom}
|
||||||
|
-e(\vec{E}+\vec{u}_e\times \vec{B})-\frac{1}{n_e} \nabla. \underbar{P}_{e}\label{eq:emom}
|
||||||
|
\end{equation}
|
||||||
|
|
||||||
|
where $\vec{u}_e$ and $\underbar{P}_{e}$ are the electron fluid velocity and
|
||||||
|
the electron pressure tensor, respectively.
|
||||||
|
The electron density is determined by the quasi-neutrality condition $n_e=n_i=n$.
|
||||||
|
The electric and magnetic fields are related to the plasma current density via Maxwell's equations:
|
||||||
|
\begin{eqnarray}
|
||||||
|
\nabla\times \vec{E}&=&-\frac{\partial \vec{B}}{\partial t}
|
||||||
|
\label{eq:faraday}\\
|
||||||
|
\nabla\times \vec{B}&=&\mu_0ne(\vec{u}_i-\vec{u}_e)
|
||||||
|
\label{eq:ampere}
|
||||||
|
\end{eqnarray}
|
||||||
|
Here $\vec{u}_i$ is the ion fluid velocity obtained by the first order velocity moment of the ion distribution
|
||||||
|
function.
|
||||||
|
From Eqs. \ref{eq:emom} and \ref{eq:faraday}, we obtain an evolution equation for the
|
||||||
|
generalized vorticity $\overrightarrow{W}=\nabla\times\vec{u}_e-e\vec{B}/m_e$.
|
||||||
|
\begin{eqnarray}
|
||||||
|
\frac{\partial\overrightarrow{W}}{\partial t}
|
||||||
|
&= &\nabla\times (\vec{u}_e\times \overrightarrow{W})-\nabla\times\left(\frac{\nabla p_e}{m_en_e}\right)\label{eq:curl_emom}\\
|
||||||
|
p_e&=&n_eT_e\label{eq:eos}
|
||||||
|
\end{eqnarray}
|
||||||
|
For simplicity, usually the electron pressure is assumed to be a scalar quantity $p_e$.
|
||||||
|
For a uniform temperature $T_e$ the last term in Eq.~\ref{eq:curl_emom} vanishes.
|
||||||
|
|
||||||
|
Substituting $\vec{u}_e$ in the expression of $\overrightarrow{W}$ from Ampere's law
|
||||||
|
one obtains an elliptic equations for the magnetic field,
|
||||||
|
\begin{eqnarray}
|
||||||
|
\frac{1}{\mu_0e}\nabla\times\left(\frac{\nabla\times\vec{B}}{n}\right)+\frac{e\vec{B}}{m_e}&=&\nabla\times\vec{u}_i-\overrightarrow{W}\label{eq:elliptic_b}
|
||||||
|
\end{eqnarray}
|
||||||
|
|
||||||
|
Eqs.~\ref{eq:xp}--\ref{eq:elliptic_b} represent a complete hybrid-PIC plasma model
|
||||||
|
without any approximation on the electron inertial terms in the electron momentum
|
||||||
|
equation.
|
||||||
|
Note that ina conventional hybrid codes, which neglect the electron inertia,
|
||||||
|
the terms on the left hand side (LHS) of Eq. \ref{eq:emom} are neglected
|
||||||
|
allowing a direct calculation of $\vec{E}$ from this equation.
|
||||||
|
As a result the $\nabla \times \vec{u}_e$ term in the expression of $\overrightarrow{W}$
|
||||||
|
disappears and Eq. (\ref{eq:curl_emom}) becomes an evolution equation
|
||||||
|
for the magnetic field, i.e. Eq. (\ref{eq:elliptic_b}) does not have to be solved at all.
|
||||||
|
|
||||||
|
In conventional hybrid codes with electron inertia, the electric and magnetic fields
|
||||||
|
are obtained from Eqs.~\ref{eq:emom} and \ref{eq:curl_emom} by usually
|
||||||
|
neglecting some of the terms.
|
||||||
|
Substituting for $\vec{u}_e$ from Eq.~\ref{eq:ampere} and neglecting terms proportional to $\partial \vec{u}_i/\partial t$ and $\partial n/\partial t$, the LHS of Eq.~\ref{eq:curl_emom} can be written entirely in terms of the time derivative of the magnetic field. The neglect of $\partial \vec{u}_i/\partial t$ and $\partial n/\partial t$ in Eq.~\ref{eq:curl_emom} is justified for a large mass ratio $m_i/m_e$. However these approximations are not necessarily valid in all situations of interest and need to be separately justified, especially for artificially small mass ratios $m_i/m_e$.
|
||||||
|
Neglecting electron scale variation of the density, the LHS of that equation can further simplified
|
||||||
|
to $\partial/\partial t[e(\vec{B}-d_e^2\nabla^2\vec{B})/m_e]$, where $d_e=c/\omega_{pe}$ is the electron inertial length. The electric field is calculated directly from Eq.~\ref{eq:emom} by neglecting $\partial\vec{u}_e/\partial t$, which is clearly inconsistent with keeping this term in Eq.~\ref{eq:curl_emom}.
|
||||||
|
|
||||||
|
In a non-restricted approach, the electric field is calculated from Eq.~\ref{eq:emom}
|
||||||
|
by explicitly evaluating the time derivative term $\partial\vec{u}_e/\partial t$~\cite{Munoz2018}.
|
||||||
|
For this purpose Ref.~\cite{Munoz2018} used the heaviness of the ions to assume that
|
||||||
|
the ions quantities do not change much during a single time step $\sim$. i.e. during a
|
||||||
|
fraction of the electron gyro-period. Thus for a single time step ($dt$) $\vec{u}_e$ at $t=t_0+dt$ and $t=t_0+2\,dt$ can then obtained by advancing Eq.~\ref{eq:curl_emom}, first from $t=t_0$ to $t=t_0+dt$ and then from $t=t_0+dt$ to $t=t_0+2\,dt$. This allows the calculation of $\partial\vec{u}_e/\partial t$ by a central difference scheme. In the second of the two time steps, the ion current and density from the previous time step can be used. Alternatively the electric field can be calculated by solving an elliptical PDE which one obtains by taking the curl of the Faraday's law (Eq.~\ref{eq:faraday}) using Amp\`ere's law (Eq.~\ref{eq:ampere}) and substituting for $\partial\vec{J}/\partial t$ from the generalized Ohm's law. The numerical solution of the resulting elliptical PDE in more than one dimension, however, is much more involved than that of the elliptic PDE for the magnetic field (Eq.~\ref{eq:elliptic_b}). The difficulty arises from the fact that one cannot use a Poisson equation to substitute for $\nabla\cdot\vec{E}$, which reveals cross-derivative terms in the equation. In case of Eq.~\ref{eq:elliptic_b}, the condition $\nabla\cdot\vec{B}=0$ simplifies the calculations.
|
||||||
|
|
||||||
|
\subsection{Numerical implementation}
|
||||||
|
|
||||||
|
For definiteness we illustrate, how a hybrid kinetic simulation model
|
||||||
|
with a finite-mass electron fluid without additional approximations
|
||||||
|
(see Sec.~\ref{sec:model}) works we describe its numerical implementation
|
||||||
|
by a code called CHIEF (Code Hybrid with Inertial Electron Fluid).
|
||||||
|
CHIEF combines elements of the PIC code ACRONYM
|
||||||
|
to describe the ions as particles with an EMHD code which solves the electromagnetic equations coupled with an inertial electron fluid. Both codes have separately been tested and independently used to simulate different aspects of magnetic reconnection, of plasma instabilities, of particle acceleration, shocks, wave coupling, resonant wave-particle interactions etc.These simulations have helped to to clean up both codes off numerical
|
||||||
|
errors.
|
||||||
|
|
||||||
|
\subsubsection{Ions as particles}
|
||||||
|
|
||||||
|
In the ion-related (PIC-)part of the code the macro-particle positions and
|
||||||
|
velocities at the $N$th time step are advanced for the electric and magnetic
|
||||||
|
field values defined on a staggered, the Yee-lattice grid~\cite{Yee1966}
|
||||||
|
being known at the time step $N$.
|
||||||
|
For this the fields are first interpolated from the grid to
|
||||||
|
the (macro-) ions positions with a weighting given by a
|
||||||
|
shape function $S(\vec{x}-\vec{x}^{\;p})$:
|
||||||
|
|
||||||
|
\begin{eqnarray}\label{eq:interpolation_em}
|
||||||
|
\vec{E}^{\;p}& = &\vec{E}(\vec{x}^{\;p})=\int \vec{E}(\vec{x})\,S(\vec{x}-\vec{x}^{\;p})\,d\vec{x}, \\
|
||||||
|
\vec{B}^{\;p} &= &\vec{E}(\vec{x}^{\;p}) = \int \vec{B}(\vec{x})\,S(\vec{x}-\vec{x}^{\;p})\,d\vec{x}, \label{eq:interpolation_em2}
|
||||||
|
\end{eqnarray}
|
||||||
|
|
||||||
|
where the super-script $p$ indicates the location of each (macro-)particle.
|
||||||
|
Then, the ions are moved by a second-order accurate leap-frog algorithm.
|
||||||
|
This means that at each time step $N$ the ion velocities are advanced from
|
||||||
|
the half-time step $N-1/2$ to the half-time step $N+1/2$ and the ion
|
||||||
|
positions from time step $N$ to time step $N+1$ by using the
|
||||||
|
discretized version of Eqs.~\ref{eq:xp}
|
||||||
|
and~\ref{eq:vp} (see, e.g., Sec.~4.3 of Ref.~\cite{Birdsall1991}):
|
||||||
|
|
||||||
|
\begin{eqnarray}
|
||||||
|
\label{eq:xp_num} \vec{x}^{p,N+1} & = &\vec{x}^{p,N} + \vec{v}^{p,N+1/2}\Delta t , \\
|
||||||
|
\label{eq:vp_num} \vec{v}^{p,N+1/2} & = &\vec{v}^{p,N-1/2} + \frac{e\Delta t}{m_i}\left( \vec{E}^{p,N}+\frac{\vec{v}^{p,N+1/2}+\vec{v}^{p,N-1/2}}{2}\times \vec{B}^{p,N}\right)
|
||||||
|
\end{eqnarray}
|
||||||
|
|
||||||
|
Note that the first equation is explicit for $\vec{x}^{p,N+1}$ while the
|
||||||
|
second is implicit for $\vec{v}^{p,N+1/2} $. If one advances the ion velocity
|
||||||
|
via a Boris method~\cite{Boris1970}, i.e. a rotation of $\vec{v}_i^{\;N+1/2}$
|
||||||
|
(i.e., the magnitude of the vector stays constant) Eq.~\ref{eq:vp_num}
|
||||||
|
also becomes explicit.
|
||||||
|
|
||||||
|
Because of the staggered position- and velocity updates the sources of the
|
||||||
|
electromagnetic field, the ion number density $n_i$
|
||||||
|
and ion current density $\vec{\jmath}_i$, are computed at
|
||||||
|
time steps indexed $N+1$ and $N+1/2$, respectively.
|
||||||
|
The deposition of both ion and current density onto the grid is done via an interpolation scheme using the same shape function as for the electromagnetic field interpolation from the grid to the macro-particles position (Eqs.~\ref{eq:interpolation_em}-\ref{eq:interpolation_em2}):
|
||||||
|
\begin{eqnarray}\label{eq:interpolation_n_j}
|
||||||
|
n_i^{N+1}(\vec{x}) & = &\sum_p N_p\,S(\vec{x}-\vec{x}^{\;p,N+1}) , \\
|
||||||
|
\vec{\jmath}_i^{\;N+1/2}(\vec{x}) & =& \sum_p N_p\,\vec{v}^{\;p,N+1/2} S(\vec{x}-\vec{x}^{\;p,N+1}).\label{eq:interpolation_n_j2}
|
||||||
|
\end{eqnarray}
|
||||||
|
The use of the same shape function in Eqs.~\ref{eq:interpolation_em} and \ref{eq:interpolation_n_j}
|
||||||
|
avoids self-forces and preserves the global momentum.
|
||||||
|
|
||||||
|
\subsubsection{Electron fluid}
|
||||||
|
|
||||||
|
The electron density $n_e^{N+1/2}$ is set equal to the ion density $n_i^{N+1/2}$,
|
||||||
|
i.e. $n_e^{N+1/2}$ is obtained by applying the quasi-neutrality condition. If a
|
||||||
|
constant (not evolving in time electron) temperature $T_e$ is assumed the electron
|
||||||
|
pressure $p_e^{N+1/2}=n_e^{N+1/2}k_BT_e$ can be calculated via the equation of
|
||||||
|
state, Eq.~\ref{eq:eos}.
|
||||||
|
|
||||||
|
\subsubsection{Electromagnetic fields}
|
||||||
|
|
||||||
|
Once the sources of the electromagnetic fields (Eqs.~\ref{eq:interpolation_n_j}-\ref{eq:interpolation_n_j2})
|
||||||
|
are known on the Yee lattice, the electromagnetic fields are updated by using the electron fluid
|
||||||
|
equations and Maxwell's equations.
|
||||||
|
The electric and magnetic fields are updated by advancing the generalized vorticity
|
||||||
|
$\overrightarrow{W}$ in Eq.~\ref{eq:curl_emom} from time step $N$ to step $N+1$
|
||||||
|
using a flux-corrected transport algorithm LCPFCT package of the
|
||||||
|
U.S. Naval Research Laboratory~\footnote{\texttt{\url{http://www.nrl.navy.mil/lcp/LCPFCT}}}.
|
||||||
|
This algorithm is advantegeous by conveniently resolving
|
||||||
|
steep gradients.
|
||||||
|
|
||||||
|
The full update to the next time step ($\overrightarrow{W}^{N+1}$) requires $\overrightarrow{W}^{N+1/2}$ and $\vec{u}_e^{N+1/2}$, which are not known yet.
|
||||||
|
Because of this, the field solver has first to advance the generalized
|
||||||
|
vorticity $\vec{W}^N$ by half a time step (with the input quantities $n_e^{N+1/2}$, $p_e^{N+1/2}$, $\vec{u}_e^{N}$, $\vec{W}^N$, $\vec{B}^N$) in order to estimate $\vec{u}_e^{N+1/2}$, $\vec{W}^{N+1/2}$, and $\vec{B}^{N+1/2}$, by solving the discretized version of Eq.~\ref{eq:curl_emom}:
|
||||||
|
|
||||||
|
\begin{eqnarray}\label{eq:curl_emom_discrete}
|
||||||
|
\left.\frac{\partial \overrightarrow{W}}{\partial t}\right|_{N\to N+1/2}
|
||||||
|
& = \vec{\nabla}\times\left [\vec{u}_e^N\times \overrightarrow{W}^N\right]-\vec{\nabla}\times\left(\frac{\vec{\nabla} p_e^{N+1/2}}{m_en_e^{N+1/2}}\right).
|
||||||
|
\end{eqnarray}
|
||||||
|
|
||||||
|
A three-dimensional flux-corrected transport algorithm for solving continuity
|
||||||
|
equations (LCPFCT) is used to solve this equation.
|
||||||
|
|
||||||
|
The solution for $\vec{B}^{N+1/2}$ of the discretized version of an
|
||||||
|
elliptic Eq.~\ref{eq:elliptic_b} can be obtained by solving
|
||||||
|
|
||||||
|
\begin{equation}
|
||||||
|
\vec{\nabla}\times\left(\frac{\vec{\nabla}\times\vec{B}^{N+1/2}}{\mu_0en^{N+1/2}}\right)+\frac{e\vec{B}^{N+1/2}}{m_e} =\vec{\nabla}\times\vec{u}_i^{N+1/2}-\vec{W}^{N+1/2}. \label{eq:b_half}
|
||||||
|
\end{equation}
|
||||||
|
|
||||||
|
The solution of Eq.~\ref{eq:b_half} allows to obtain $\vec{B}^{N+1/2}$ from $\vec{W}^{N+1/2}$.
|
||||||
|
The discretization of this elliptical PDE reveals a system of algebraic equations
|
||||||
|
which can be solved, e.g., by a general purpose scalable linear multi-grid solver contained
|
||||||
|
in the multigrid-library
|
||||||
|
HYPRE~\cite{Falgout2002,falgout2006}~\footnote
|
||||||
|
{\texttt{\url{https://hypre.readthedocs.io/en/latest/ch-intro.html}}}.
|
||||||
|
|
||||||
|
%https://computing.llnl.gov/projects/hypre-scalable-linear-solvers-multigrid-methods}}}.
|
||||||
|
%https://hypre.readthedocs.io/en/latest/ch-intro.html%
|
||||||
|
|
||||||
|
|
||||||
|
Next the components of $\vec{u}_e^{N+1/2}$ can be obtained solving the
|
||||||
|
discretized Amp\`ere's law Eq.~\ref{eq:ampere}.
|
||||||
|
|
||||||
|
\begin{eqnarray}
|
||||||
|
\vec{u}_e^{N+1/2}=\vec{u}_i^{N+1/2}-\frac{\vec{\nabla}\times\vec{B}^{N+1/2}}{\mu_0en_e^{N+1/2}}\label{eq:ue_half}.
|
||||||
|
\end{eqnarray}
|
||||||
|
|
||||||
|
At this point all relevant quantities are known at time step
|
||||||
|
$N+1/2$: $\vec{u}_e^{N+1/2}$, $\vec{B}^{N+1/2}$ and $\vec{W}^{N+1/2}$.
|
||||||
|
These quantities can now be advanced to time step $N+1$ by solving the
|
||||||
|
following equations
|
||||||
|
|
||||||
|
\begin{eqnarray}
|
||||||
|
\left.\frac{\partial \overrightarrow{W}}{\partial t}\right|_{N+1/2\to N+1}
|
||||||
|
& = & \vec{\nabla}\times\left [\vec{u}_e^{N+1/2}\times \overrightarrow{W}^{N+1/2}\right]\nonumber \\
|
||||||
|
& \qquad -&\vec{\nabla}\times\left(\frac{\vec{\nabla} p_e^{N+1/2}}{m_en_e^{N+1/2}}\right) \label{eq:w_full} \\
|
||||||
|
\vec{\nabla}\times\left(\frac{\vec{\nabla}\times\vec{B}^{N+1}}{\mu_0en_e^{N+1/2}}\right)+\frac{e\vec{B}^{N+1}}{m_e} & = &\vec{\nabla}\times\vec{u}_i^{N+1/2}-\vec{W}^{N+1}\label{eq:b_full} \\
|
||||||
|
\vec{u}_e^{N+1} & = &\vec{u}_i^{N+1/2}-\frac{\vec{\nabla}\times\vec{B}^{N+1}}{\mu_0en_e^{N+1/2}}\label{eq:ue_full}
|
||||||
|
\end{eqnarray}
|
||||||
|
|
||||||
|
% \end{document}
|
||||||
|
|
||||||
|
Eq.~\ref{eq:w_full} can be solved by using already mentioned three-dimensional
|
||||||
|
LCPFCT package developed by the U.S. Naval Research Laboratory and
|
||||||
|
Eq.~\ref{eq:b_full} by utilizing the HYPRE library package.
|
||||||
|
This way one obtains $\vec{W}^{N+1}$, $\vec{B}^{N+1}$ and $\vec{u}_e^{N+1}$.
|
||||||
|
Note that the ion quantities ($\vec{u}_i$ and $n_i$) are used at time steps $(N+1/2)$,
|
||||||
|
same as for the first half time step.
|
||||||
|
This is justified by the heavy ions whose mass is much larger compared to that
|
||||||
|
of the electrons.
|
||||||
|
|
||||||
|
% \end{document}
|
||||||
|
|
||||||
|
The two step time integrations (first half and then full time step) are carried out for
|
||||||
|
the integration along each one of the spatial directions $x,y$ and $z$ as required
|
||||||
|
by the multi-dimensional time operator splitting technique,
|
||||||
|
thus advancing in time all components of the quantities used by the field solver.
|
||||||
|
|
||||||
|
The electric field is then again advanced from time step $N+1$ to $N+2$ using the
|
||||||
|
ion quantities at the intermediate time step $N+1/2$ (i.e., assuming that they are
|
||||||
|
temporally fixed).
|
||||||
|
This reveals $\vec{B}^{N+2}$, $\vec{W}^{N+2}$ and $\vec{u}_e^{N+2}$.
|
||||||
|
Now, the electric field can be calculated at time step $N+1$ using the discretized
|
||||||
|
generalized Ohm's law Eq.~\ref{eq:emom}:
|
||||||
|
|
||||||
|
\begin{eqnarray}
|
||||||
|
\vec{E}^{N+1}&=&-\frac{m_e}{e}
|
||||||
|
\left[
|
||||||
|
\frac{\vec{u}_e^{N+2}-\vec{u}_e^{N}}{2\, \Delta t}
|
||||||
|
+(\vec{u}_e^{N+1}\cdot\vec{\nabla})\vec{u}_e^{N+1}
|
||||||
|
\right]\nonumber \\
|
||||||
|
&\qquad -&\vec{u}_e^{N+1}\times\vec{B}^{N+1}
|
||||||
|
-\frac{\vec{\nabla} p_e^{N+1}}{en_e^{N+1}}. \label{eq:E_at_NP1}
|
||||||
|
\end{eqnarray}
|
||||||
|
|
||||||
|
The value of $p_e^{N+1}=n_e^{N+1}k_BT_e$ are provided by the equation
|
||||||
|
of state Eq.~\ref{eq:eos} in the same way as before.
|
||||||
|
$p_e^{N+1}=p_e^{N+1/2}$ and $n_e^{N+1}=n_e^{N+1/2}$ is
|
||||||
|
assumed.
|
||||||
|
|
||||||
|
Finally, the values of $\vec{E}^{N+1}$ and $\vec{B}^{N+1}$ are available to
|
||||||
|
move the ions further. This ends a time step and the cycle becomes repeated.
|
||||||
|
|
||||||
|
Note that model and numerical implementation as presented in
|
||||||
|
Sects. \ref{sec:simulation_model} and \ref{sec:implementation}
|
||||||
|
do not contain resistive terms.
|
||||||
|
|
||||||
|
Finite resistivity is usually included in hybrid codes with massless electron
|
||||||
|
fluid to damp whistler waves propagating at the grid scale.
|
||||||
|
This is necessary since in massless electron fluids the whistler phase
|
||||||
|
velocity increases with the wave number without bounds.
|
||||||
|
As a result the time steps have to become very small with increasing
|
||||||
|
grid resolution to further satisfy the CFL (Courant) condition to still
|
||||||
|
resolve the whistler wave propagation.
|
||||||
|
|
||||||
|
The phase speed of whistlers in an inertial electron fluid, on the other hand,
|
||||||
|
is limited due to the finite electron mass.
|
||||||
|
Therefore, the use of finite resistivity is not necessary for keeping the
|
||||||
|
hybrid codes with massive electrons stable (see Sects. \ref{sec:simulation_model}
|
||||||
|
and \ref{sec:implementation}). It can, however, implemented in the code
|
||||||
|
to model collisional resistivity in case of interest.
|
||||||
|
The PIC-typical particle shot noise can be reduced in two different ways.
|
||||||
|
One is the use of higher (at least second) order shape functions for
|
||||||
|
the current density deposition from particles to grid and vice-versa
|
||||||
|
to calculate the electromagnetic fields at the ion position.
|
||||||
|
A second possibility in the code is to apply a standard binomial filter
|
||||||
|
on the current deposition, smoothing out the current density
|
||||||
|
as source term of the Maxwell solver.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
\chapter{Vlasov simulations}
|
\chapter{Vlasov simulations}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user