NumMeth-22: MHD fertig, Hybrid in Arbeit
This commit is contained in:
+757
-2
@@ -47,6 +47,7 @@
|
||||
\usepackage{hyperref}
|
||||
\usepackage{cleveref}
|
||||
|
||||
%\renewcommand{\vec}[1]{\boldsymbol{#1}}
|
||||
|
||||
\newcommand{\pd}[2]{\frac{\partial #1}{\partial #2}}
|
||||
|
||||
@@ -3128,7 +3129,7 @@ Here $U^{n+1}$ represents the vector of approximations $U_j^{n+1}$ at time $t^{
|
||||
\begin{align}
|
||||
U_j^{n+1} =\mathcal{H}_k(U^n; j)
|
||||
\end{align}
|
||||
to signify that $U^{n+1}_j$ depends on the full vector $U^n$. For example, the $\mathcal{H}_k$ operator for method \eqref{eq:leveqie10.7} takes the form
|
||||
to signify that $U^{n+1}_j$ depends on the full vector $U^n$. For example, the $\mathcal{H}_k$ operator for method \eqref{eq:leveque10.7} takes the form
|
||||
\begin{align}
|
||||
\mathcal{H}_k(U^n;k) = U_j^n - \frac{k}{2 h}(U_{j+1}^n - U_{j-1}^n)
|
||||
\end{align}
|
||||
@@ -4183,7 +4184,10 @@ With these results we find when neglecting terms of order $\mathcal{O}(\dd t^2)$
|
||||
|
||||
The terms on the RHS can be calculated
|
||||
\begin{align}
|
||||
\frac{|D_{i\pm 1/2,j}\cap C_{i,j}|}{\Delta t \Delta x \Delta y} \bar{\omega}^{n+1}_{i\pm 1/2,j} &= \frac{a_{i\pm 1/2,j}^\pm}{(a_{i\pm 1/2,j}^+ + a_{i\pm 1/2,j}^-)\Delta x} \left(\left( \pm a_{i\pm 1/2,j}^\pm \vec{u}^{W(E)}_{i+1/2,j} \mp a_{i\pm 1/2,j}^\mp \vec{u}^{E(W)}_{i+1/2,j} \right) \nonumber\\ & - \left(\pm f(\vec{u}_{i\pm 1,j}^{W(E)}) \mp f(\vec{u}_{i,j}^{E(W)}) \right) \right)
|
||||
\frac{|D_{i\pm 1/2,j}\cap C_{i,j}|}{\Delta t \Delta x \Delta y}
|
||||
\bar{\omega}^{n+1}_{i\pm 1/2,j} &=
|
||||
\frac{a_{i\pm 1/2,j}^\pm}{(a_{i\pm 1/2,j}^+ + a_{i\pm 1/2,j}^-)\Delta x}
|
||||
\left(\left( \pm a_{i\pm 1/2,j}^\pm \vec{u}^{W(E)}_{i+1/2,j} \mp a_{i\pm 1/2,j}^\mp \vec{u}^{E(W)}_{i+1/2,j} \right)\right. \nonumber\\ & - \left.\left(\pm f(\vec{u}_{i\pm 1,j}^{W(E)}) \mp f(\vec{u}_{i,j}^{E(W)}) \right) \right)
|
||||
\end{align}
|
||||
|
||||
|
||||
@@ -4595,14 +4599,765 @@ Using this notation now we notice that the over $\beta$ and $\gamma$ are indepe
|
||||
k_\alpha \tilde w_\alpha^\pm &= 0 \label{eq:elsmhdfinal3}
|
||||
\end{align}
|
||||
|
||||
\subsection{Aliasing}
|
||||
|
||||
\begin{figure}[ht]
|
||||
\begin{center}
|
||||
\mbox{
|
||||
\includegraphics[width=0.9 \textwidth]{fig_chapter6/Aliasing.png}
|
||||
}
|
||||
\caption{ Illustration of possible problems in spectral methods. Left: general Moir\'e effect from overlaying slightly differing grid structures. Right: Spatial aliasing effect. }
|
||||
\label{fig:aliasing}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
|
||||
It is not generally possible to reproduce an arbitrary function using the Fourier representation. This is due to the discretisation of the signal. One can see the effect as Moir\'e pattern in the wild. The problem is in general known as aliasing effect, which is connected to the Nyquist frequency. Any signal can only be represented by an Fourier transform when its frequency is below the Nyquist frequency which is half of the scanning frequency.
|
||||
|
||||
An aliasing problem arises in using the pseudospectral method since the nonlinearity $\vec u \vec u$ will lead to higher ``frequencies'' which may not be represented in the FFT. From a physical viewpoint Alfv\'en waves that are represented by the Fourier modes coalesce to modes with higher wavenumber beyond the Nyquist frequency.
|
||||
|
||||
The simplest approach to the solution of the aliasing problem is \emph{Zero-padding}: all wavemodes with $|\vec k| > o\,N$ mit $1/3\leq o \leq 1/2$ are set to zero.
|
||||
$o=1/3$ is the worst case scenario in which each grid cell osciallates between two values. All wavemodes below the zero-padding are called \emph{active modes} and are free from aliasing effects. For any simulation using spectral methods one can assume for $N_k$ active modes a grid triple that size has to be usede.
|
||||
|
||||
|
||||
|
||||
\section{Hall MHD}
|
||||
|
||||
Hall magnetohydrodynamic (MHD) theory has been used to
|
||||
describe and understand a variety of interesting space
|
||||
and laboratory plasma phenomena over the last three decades.
|
||||
Hall MHD introduces additional physical processes on
|
||||
scale sizes smaller than the ion inertial length
|
||||
(but larger than electron scales) such as new wave
|
||||
modes and instabilities, enhanced magnetic field transport, and
|
||||
fast magnetic reconnection rates.
|
||||
The theory has been successfully applied to the
|
||||
structuring of sub-Alfv\'enic plasma expansions
|
||||
and to rapid magnetic field
|
||||
transport in plasma opening switches.
|
||||
In was suggested that Hall physics plays
|
||||
a critical role in magnetic reconnection physics and this has spurred
|
||||
renewed interest in this subject.
|
||||
Generally speaking, the theory is applicable to phenomena occurring on
|
||||
length scales shorter than an ion inertial length, and time scales shorter
|
||||
than an ion cyclotron period.
|
||||
|
||||
\subsection{Basic Equations and Wave Modes}
|
||||
|
||||
The essence of Hall MHD physics is contained in Ohm's law.\index{Ohm's Law}
|
||||
The generalized form of Ohm's law can be written as \cite{bittencourt86}
|
||||
\begin{equation}
|
||||
\frac{m_e}{ne^2}\frac{\partial {\textbf{J}}}{\partial t} -
|
||||
\frac{1}{ne}\nabla \cdot \overline{\overline{P}}_e =
|
||||
{\textbf{ E}} + \frac{1}{c}{\textbf{ V}}_i \times {\textbf{ B}} -
|
||||
\frac{1}{nec}{\textbf{ J}} \times {\textbf{ B}} -
|
||||
{\textbf{ J}}/\sigma
|
||||
\label{eq1a}
|
||||
\end{equation}
|
||||
where $\sigma$ is the plasma conductivity. We simplify (\ref{eq1a})
|
||||
by assuming
|
||||
$L >> c/\omega_{pe}$, $L >> \rho_e$, and $\sigma \rightarrow \infty$
|
||||
where $\omega_{pe}$ is the electron plasma frequency,
|
||||
$\rho_e$ is the electron Larmor radius, and $L$ is the scale length
|
||||
of the plasma. These assumptions allow us to neglect the electron
|
||||
inertia and electron pressure terms, and the conductivity term.
|
||||
We then obtain
|
||||
\begin{equation}
|
||||
{\textbf{ E}} = -\frac{1}{c}{\textbf{ V}}_i \times {\textbf{ B}} +
|
||||
\underbrace{\frac{1}{nec}{\textbf{ J}} \times {\textbf{ B}}}_{Hall\ term} \ .
|
||||
\label{eq3}
|
||||
\end{equation}
|
||||
The final term in (\ref{eq3}) is identified as the Hall term.
|
||||
Physically, the Hall term decouples ion and electron motion on
|
||||
ion inertial length scales: $L \lesssim c/\omega _{pi}$ where
|
||||
$\omega _{pi} = 4\pi n_i e^2/m_i$.
|
||||
|
||||
The full set of Hall MHD equations is as follows:
|
||||
\begin{equation}
|
||||
\frac{\partial \rho }{\partial t} + \nabla \cdot \rho {\textbf{ V}}=0
|
||||
\label{continuity}
|
||||
\end{equation}
|
||||
\begin{equation}
|
||||
\frac{\partial \rho {\textbf{ V}}}{\partial t}+\nabla \cdot \left[ \rho {\textbf{
|
||||
VV}}+(P+B^2/8\pi)\underline{\underline{{\textbf{ I}}}}-{\textbf{ BB}}/4\pi \right] = 0
|
||||
\label{momentum}
|
||||
\end{equation}
|
||||
\[
|
||||
\frac{\partial \epsilon }{\partial t}+
|
||||
\nabla \cdot \left[ {\textbf{ V}}(\epsilon +P+B^2/8\pi ) -
|
||||
{\textbf{ B}}/4\pi ({\textbf{ V}} \cdot {\textbf{ B}})\right] +
|
||||
\]
|
||||
\begin{equation}
|
||||
\nabla \cdot \left[ {\textbf{ V}}_H(B^2/8\pi) -
|
||||
{\textbf{ B}}/4\pi ({\textbf{ V}}_H \cdot {\textbf{ B}})\right] = 0
|
||||
\label{energy}
|
||||
\end{equation}
|
||||
\begin{equation}
|
||||
\frac{\partial {\textbf{ B}}}{\partial t}=
|
||||
-c\nabla \times {\textbf{ E}} =
|
||||
\nabla \times \left[ ({\textbf{ V}} +
|
||||
{\textbf{ V}}_H) \times {\textbf{ B}} \right]
|
||||
\label{faraday}
|
||||
\end{equation}
|
||||
where
|
||||
$\epsilon =\rho V^2/2+P/(\gamma - 1)+B^2/8\pi$,
|
||||
$P/\rho ^\gamma$ = cnst,
|
||||
and ${\textbf{ V}}_H = -{\textbf{ J}}/ne$. The plasma pressure is obtained from
|
||||
\begin{equation}
|
||||
P = (\gamma - 1)(\epsilon - \rho V^2/2 - B^2/8\pi) \ .
|
||||
\label{pressure}
|
||||
\end{equation}
|
||||
We take $\gamma = 5/3$.
|
||||
In writing (\ref{continuity}) -- (\ref{faraday})
|
||||
the subscript $i$ has been dropped for simplicity, and the variable ${\textbf{ V}}_H$
|
||||
is defined as a `Hall velocity' to explicitly show where the Hall term enters
|
||||
the equations. Aside from the magnetic field induction equation
|
||||
(\ref{faraday}), the Hall term only enters the energy equation
|
||||
(\ref{energy}). Thus, the Hall term is a transport mechanism for the
|
||||
magnetic field but not for mass or momentum.
|
||||
|
||||
We point out that
|
||||
solving the energy equation to calculate the pressure is problematic
|
||||
in low $\beta$ plasmas because it involves subtracting two large numbers
|
||||
(i.e., $\epsilon$ and $B^2/8\pi$). An alternative to
|
||||
using the energy equation (\ref{energy}) is to use
|
||||
the adiabatic pressure equation
|
||||
\begin{equation}
|
||||
\frac{\partial P }{\partial t} + \nabla \cdot P {\textbf{ V}} =
|
||||
-(\gamma - 1)P\nabla \cdot {\textbf{ V}} \ .
|
||||
\label{pressureeq}
|
||||
\end{equation}
|
||||
However, a computational problem arises using (\ref{pressureeq}): the
|
||||
Rankine-Hugoniot jump conditions
|
||||
across a shock are not correct unless additional modifications
|
||||
are made (e.g., inclusion of an artificial viscosity); whereas
|
||||
the jump conditions are automatically satisfied using the total
|
||||
energy equation.
|
||||
|
||||
The Hall term introduces two new wave modes into the plasma system:
|
||||
whistler waves and Hall drift waves. It is important that these wave modes
|
||||
be identified and understood in developing a Hall simulation code
|
||||
because they determine the time step through the Courant condition.
|
||||
|
||||
The dispersion relations for these
|
||||
wave modes are easily derived in the electron magnetohydrodynamic
|
||||
(EMHD) limit: ${\textbf{ V}} = 0$. In this limit the ions are assumed to
|
||||
be a stationary, neutralizing background. The EMHD magnetic induction
|
||||
equation is
|
||||
\begin{equation}
|
||||
\frac{\partial {\textbf{ B}}}{\partial t}=
|
||||
\nabla \times ({\textbf{ V}}_H \times {\textbf{ B}}) =
|
||||
-\nabla \times
|
||||
({\textbf{ J}}/ne \times {\textbf{ B}}) \ .
|
||||
\label{faradayemhd}
|
||||
\end{equation}
|
||||
We rewrite (\ref{faradayemhd}) as follows to identify the
|
||||
origin of each wave mode
|
||||
\begin{equation}
|
||||
\frac{\partial {\textbf{ B}}}{\partial t}\ = \
|
||||
\underbrace
|
||||
{-\frac{1}{ne}\nabla \times ({\textbf{ J}} \times {\textbf{ B}})}_
|
||||
{\text{ \Large Whistler\ waves}} \ \
|
||||
\underbrace
|
||||
{\ +\ \frac{1}{n^2e}\nabla n \times ({\textbf{ J}} \times {\textbf{ B}})}_
|
||||
{\text{ \Large Hall\ drift\ waves}} \ .
|
||||
\label{faradayemhd2}
|
||||
\end{equation}
|
||||
The first term on the RHS of (\ref{faradayemhd2}) is responsible
|
||||
for the whistler wave, while the second term for the Hall drift wave.
|
||||
It is important to note that Hall drift waves only occur in inhomogeneous
|
||||
plasmas. We now discuss each wave mode in more detail.
|
||||
|
||||
\subsubsection{Whistler Waves}\index{Whistler waves}
|
||||
|
||||
We assume the following plasma configuration. The plasma is homogeneous
|
||||
and the ambient magnetic field is in the $z-$direction: ${\,athbf{ B}} =
|
||||
B_0 {\mathbf{\hat{e}}}_z$. The magnetic field is perturbed with
|
||||
$\delta B_x$ and $\delta B_y$ $\propto$ exp($ik_zz-i\omega t$).
|
||||
The linear dispersion equation is obtained from
|
||||
\begin{equation}
|
||||
\frac{\partial \delta{\mathbf{ B}}}{\partial t}\ = \
|
||||
-\frac{1}{ne}\nabla \times (\delta{\mathbf{ J}} \times {\mathbf{ B}}) \ .
|
||||
\label{whistler1}
|
||||
\end{equation}
|
||||
We linearize (\ref{whistler1}) to obtain
|
||||
\begin{equation}
|
||||
\omega \delta{\mathbf{ B}} = \frac{1}{ne}(k_zB\delta J_x\ {\mathbf{ \hat{e}}}_x +
|
||||
k_zB\delta J_y\ {\mathbf{ \hat{e}}}_y ) \ .
|
||||
\label{whistler2}
|
||||
\end{equation}
|
||||
Making use of Ampere's law (i.e., $\delta {\mathbf{ J}} =
|
||||
(c/4\pi )\nabla \times \delta {\mathbf{ B}})$ we obtain the coupled equations
|
||||
\begin{equation}
|
||||
\omega \delta B_x = -i\frac{ck_z^2B}{4\pi ne}\delta B_y
|
||||
\label{whistler3}
|
||||
\end{equation}
|
||||
\begin{equation}
|
||||
\omega \delta B_y = i\frac{ck_z^2B}{4\pi ne}\delta B_x \ .
|
||||
\label{whistler4}
|
||||
\end{equation}
|
||||
Finally, solving (\ref{whistler3}) and (\ref{whistler4}) the whistler
|
||||
wave dispersion relation is obtained
|
||||
\begin{equation}
|
||||
\omega = \frac{k_z^2B}{4\pi ne} = k_zV_A\left(\frac{k_zc}
|
||||
{\omega _{pi}}\right) \ .
|
||||
\label{whistler5}
|
||||
\end{equation}
|
||||
It is evident from the final form of the dispersion relation that
|
||||
the whistler wave phase velocity exceeds the Alfv\'{e}n velocity
|
||||
for wavelengths $\lambda _z < c/\omega _{pi}$. This makes it clear
|
||||
that the Hall term is important for scale sizes less than the
|
||||
ion inertial length as noted in the Introduction.
|
||||
|
||||
\subsubsection{Hall Drift Waves}\index{Hall drift waves}
|
||||
|
||||
We assume the following plasma configuration. The plasma density is
|
||||
inhomogeneous
|
||||
$n(x)$ and the ambient magnetic field is in the $z-$direction: ${\mathbf{ B}} =
|
||||
B_0 {\mathbf{ \hat{e}}}_z$. The ambient magnetic field is perturbed with
|
||||
$\delta B_z$ $\propto$ exp($ik_yy-i\omega t$).
|
||||
The linear dispersion equation is obtained from
|
||||
\begin{equation}
|
||||
\frac{\partial \delta {\mathbf{ B}}}{\partial t}\ =
|
||||
\frac{1}{n^2e}\nabla n \times (\delta {\mathbf{ J}} \times {\mathbf{ B}}) \ .
|
||||
\label{kmc1}
|
||||
\end{equation}
|
||||
We linearize (\ref{kmc1}) and find that
|
||||
\begin{equation}
|
||||
i\omega \delta B_z = \frac{1}{n^2e}\frac{\partial n}
|
||||
{\partial x}\delta J_xB \ .
|
||||
\label{kmc2}
|
||||
\end{equation}
|
||||
Noting that $\delta J_x = ik_y(c/4\pi )\delta B_z$, the following dispersion
|
||||
relation is obtained from (\ref{kmc2})
|
||||
\begin{equation}
|
||||
\omega = \frac{k_yB}{4\pi ne}\frac{1}{n}\frac{\partial n}{\partial x}
|
||||
= k_yV_A\left(\frac{c}{L_n\omega _{pi}}\right)
|
||||
\label{kmc3}
|
||||
\end{equation}
|
||||
where $L_n = (\partial ln\, n/\partial x)^{-1}$ is the density gradient
|
||||
scale length.
|
||||
Again, it is clear that the Hall term is important when $L_n < c/\omega _{pi}$.
|
||||
The Hall drift wave described by (\ref{kmc3}) is a magnetic drift wave that
|
||||
propagates in the ${\mathbf{ B}} \times \nabla n$ direction. A detailed analysis
|
||||
of this wave mode is presented in Refs. \cite{kingsepetal90} and \cite{huba91}.
|
||||
|
||||
In addition to the propagation of a linear wave mode, it has also
|
||||
been shown that shock-like solutions exist based on a nonlinear
|
||||
analysis of (\ref{faradayemhd}) \cite{fruchtmanrudakov92,%
|
||||
fruchtmanrudakov94}. Rudakov and Huba \cite{rudakovhuba02}
|
||||
found that a rapid, localized thinning of a current
|
||||
layer supported by a uni-directional magnetic field
|
||||
leads to the generation of a nonlinear, shock-like structure.
|
||||
This shock-like wave also propagates in the
|
||||
${\mathbf{ B}} \times \nabla n$ direction; it is self-supportive and can lead
|
||||
to a nonlocal thinning of the current layer and the release
|
||||
of magnetic energy.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
\subsection{Numerical Methods}
|
||||
|
||||
We describe in some detail the numerical techniques used in the
|
||||
NRL 3D Hall MHD code VooDoo to solve (\ref{continuity}) --
|
||||
(\ref{faraday}). The key points we address are
|
||||
the cell definition, the finite volume method, the time step scheme,
|
||||
the high order interpolation scheme, the partial donor cell flux limiter,
|
||||
the distribution function method, the calculation of the
|
||||
electric field, the Courant condition, and sub-cycling the
|
||||
Hall term for computational efficiency.
|
||||
|
||||
\subsubsection{Cell Definition}
|
||||
|
||||
The code uses a Cartesian, staggered mesh, known
|
||||
as the Yee grid, and is shown in Fig. \ref{3dmhd_cell}.
|
||||
The hydrodynamic variables
|
||||
mass density $\rho$, velocity ${\mathbf{ V}}$, and energy density $\epsilon$
|
||||
are defined at the cell center. The magnetic field ${\mathbf{ B}}$ is defined
|
||||
normal to the cell faces, and the electric field ${\mathbf{ E}}$ is defined
|
||||
along the cell edges. The advantage to using this grid is that
|
||||
$\nabla \cdot {\mathbf{ B}} = 0$ is satisfied to machine error.
|
||||
\begin{figure}
|
||||
\begin{center}
|
||||
\includegraphics[width=3in]{fig_chapter6/3dmhd_cell.pdf}
|
||||
\caption{Mesh used in the NRL 3D Hall code VooDoo.}
|
||||
\label{3dmhd_cell}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
|
||||
\subsubsection{Time Step Scheme}
|
||||
|
||||
The code uses a 2nd order Adams-Bashforth time stepping scheme.
|
||||
The time advancement scheme to update the variable $A$ from
|
||||
time $t$ to time $t+\Delta t$ is
|
||||
\begin{equation}
|
||||
A^{t+\Delta t} = A^t + \Delta t {\cal F}_A^{t+\Delta t/2}
|
||||
\label{tss1}
|
||||
\end{equation}
|
||||
where ${\cal F}_A^{t+\Delta t/2}$ is the total
|
||||
flux of $A$ through the cell faces at the half time step.
|
||||
The values of the variables
|
||||
at the half time step needed to calculate the flux {\cal F} are obtained by a
|
||||
linear extrapolation from the two previous time steps. Specifically,
|
||||
the half time step values are given by
|
||||
\begin{equation}
|
||||
A^{t+\Delta t/2} = A^t + \frac{\Delta t}{2\Delta t_0}
|
||||
\left(A^t - A^{t-\Delta t_0}\right)
|
||||
\label{tss2}
|
||||
\end{equation}
|
||||
where the time steps are shown schematically in Fig. \ref{adamsbashforth}.
|
||||
The code uses
|
||||
a variable time step so the full time step increments ($\Delta t_0$ and
|
||||
$\Delta t$) can be different.
|
||||
\begin{figure}
|
||||
\begin{center}
|
||||
\includegraphics[width=3in]{fig_chapter6/adamsbashforth.pdf}
|
||||
\caption{Schematic of the time step scheme to obtain variables
|
||||
at the half time step.}
|
||||
\label{adamsbashforth}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
|
||||
\subsubsection{Finite Volume Method}\index{Finite volume method}
|
||||
|
||||
The finite volume method updates the conserved variables mass,
|
||||
momentum, and energy by calculating the fluxes of these variables
|
||||
across the cell faces. This is more clearly understood by considering
|
||||
an example. The continuity equation is given by
|
||||
\begin{equation}
|
||||
\frac{\partial \rho }{\partial t}=-\nabla \cdot \rho {\mathbf{ V}} \ .
|
||||
\label{fvm1}
|
||||
\end{equation}
|
||||
This equation is integrated over a cell volume
|
||||
\begin{equation}
|
||||
\int\frac{\partial \rho }{\partial t}\ d^3x
|
||||
=-\int\nabla \cdot \rho {\mathbf{ V}}\ d^3x
|
||||
\label{fvm2}
|
||||
\end{equation}
|
||||
which can be written as
|
||||
\begin{equation}
|
||||
\frac{\partial \rho _T}{\partial t}=-\oint (\rho {\mathbf{ V}})\,%
|
||||
{\mathbf{ \cdot \,\hat n\,\,}}d^2x
|
||||
\label{fvm3}
|
||||
\end{equation}
|
||||
where $\rho _T=\int \rho \,d^3x$ is the mass in the cell,
|
||||
${\mathbf{ \hat{n}}}$ is the normal to the cell face, and we have used Gauss'
|
||||
law. The total mass is then advanced in time from $t$ to $t+\Delta t$ by
|
||||
\begin{equation}
|
||||
\rho _T^{t+\Delta t}=\rho _T^t-\Delta t\,\oint
|
||||
\underbrace{(\rho {\mathbf{ V}})^{t+\Delta t/2}}_{{\text{ flux\ }}{\mathbf{ F}}}
|
||||
{\mathbf{ \, \cdot \, \hat n\,\,}}d^2x
|
||||
\label{fvm4}
|
||||
\end{equation}
|
||||
where we have explicitly identified the mass flux term. The density
|
||||
at the updated time step is then $\rho^{t+\Delta t} =
|
||||
\rho_T^{t+\Delta t}/\int d^3x$.
|
||||
This same technique is also used to update the momentum and energy.
|
||||
Thus, the code must calculate the mass, momentum, and energy fluxes
|
||||
at each cell face.
|
||||
The general updating scheme for $A$ is
|
||||
\begin{equation}
|
||||
A^{t+\Delta t} = A^t - \Delta t\,\int {\mathbf{ F}}_A^{t+\Delta t/2}
|
||||
\cdot {\mathbf{ n}}\ d^2x
|
||||
\label{fvm5}
|
||||
\end{equation}
|
||||
where ${\mathbf{ F}}_A$ is the flux of $A$.
|
||||
|
||||
\subsubsection{Flux Calculation}
|
||||
|
||||
The code VooDoo uses a distribution function scheme to calculate the
|
||||
fluxes of mass, momentum, and energy at cell faces. The details of this
|
||||
method are described in Ref. \cite{hubalyon99}
|
||||
\index{Distribution function method} and will not be repeated
|
||||
here. Rather, we will present an overview of the method, and descriptions
|
||||
of the high order interpolation scheme and the partial donor cell flux
|
||||
limiter.
|
||||
|
||||
The calculation of the flux at a cell face is as follows; we
|
||||
use the one dimensional continuity equation as an example. The mass flux
|
||||
is defined as
|
||||
\begin{equation}
|
||||
F = \rho V = \rho \int dv\, v \,f(v)
|
||||
\label{fc1}
|
||||
\end{equation}
|
||||
where $f(v)$ is a distribution function that describes the plasma system
|
||||
(this will be discussed shortly). We need to calculate this quantity
|
||||
at a cell face $i+1/2$. The total flux $F$ is decomposed into two parts,
|
||||
a left flux $F_L$ and a right flux $F_R$, as follows
|
||||
\begin{equation}
|
||||
F_{i+1/2} = (\rho V)_{i+1/2} =
|
||||
(\rho V)_{i+1/2}^L + (\rho V)_{i+1/2}^R
|
||||
\label{fc2}
|
||||
\end{equation}
|
||||
where $F_L = (\rho V)_{i+1/2}^L$ and $F_R = (\rho V)_{i+1/2}^R$
|
||||
in Fig. \ref{flux1}. The interpretation of the left and right state
|
||||
fluxes is as follows. The left state flux $F_L$ is the contribution to the
|
||||
total flux from mass moving from cell $i$ into cell $i+1$; the right
|
||||
state flux $F_R$ is the contribution from mass moving from cell $i+1$
|
||||
into cell $i$. Using the distribution function method, these fluxes
|
||||
are defined as
|
||||
\begin{equation}
|
||||
F_L = \rho ^L \int_0^\infty dv\, v \,f^L(v)
|
||||
\label{fc3}
|
||||
\end{equation}
|
||||
and
|
||||
\begin{equation}
|
||||
F_R = \rho ^R \int_{-\infty}^0 dv\, v \,f^L(v)
|
||||
\label{fc4}
|
||||
\end{equation}
|
||||
so that the total flux at a cell interface is
|
||||
\begin{equation}
|
||||
F = F_R + F_L \ .
|
||||
\label{fc5}
|
||||
\end{equation}
|
||||
In (\ref{fc3}), only particles moving in the positive direction
|
||||
contribute to the flux $F_L$; hence, the integration limits are
|
||||
from 0 to $\infty$. Conversely, in (\ref{fc4}), only particles moving
|
||||
in the negative direction contribute to the flux $F_R$ and therefore the
|
||||
integration limits are from $-\infty$ to 0. Note that the fluxes
|
||||
are defined with variables in the left state $L$ and the
|
||||
right state $R$. The left and right state values are determined
|
||||
using a high order interpolation scheme and the partial donor cell
|
||||
method. The high order interpolation scheme defines the values
|
||||
at the cell face, and the partial donor cell method is then used to
|
||||
define the left and right states. We now elaborate on these points.
|
||||
\begin{figure}
|
||||
\begin{center}
|
||||
\includegraphics[width=2in]{fig_chapter6/flux1.pdf}
|
||||
\caption{Flux components $F_L$ and $F_R$ at a cell face $i+1/2$.}
|
||||
\label{flux1}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
|
||||
\subsubsection{Distribution Function Method}
|
||||
|
||||
The code VooDoo uses a distribution function method to calculate
|
||||
the fluxes of mass, momentum, and energy at cell interfaces.
|
||||
The question naturally arises, what is $f(v)$? This method is
|
||||
described in detail in Ref. \cite{hubalyon99}.
|
||||
\index{Distribution function method}
|
||||
|
||||
We define the following generalized transport equation
|
||||
\begin{equation}
|
||||
\frac{\partial \rho \left\langle \chi \right\rangle }{\partial t}+\nabla
|
||||
\cdot \rho \left\langle \chi {\mathbf{ v}}\right\rangle -\rho \left\langle {\mathbf{ a}}%
|
||||
\cdot \frac{\partial \chi }{\partial {\mathbf{ v}}}\right\rangle =0
|
||||
\label{dfm1}
|
||||
\end{equation}
|
||||
where
|
||||
\[
|
||||
\left\langle {\cal F}\right\rangle =\int d{\mathbf{ v}}\,f({\mathbf{ v}})\,{\cal F}
|
||||
\]
|
||||
\[
|
||||
{\mathbf{ a}} = \frac{\nabla \mathbf M}{8\pi \rho};
|
||||
\quad
|
||||
{\mathbf{ M}} = B_x^2\,{\mathbf{ e}}_x + B_y^2\,{\mathbf{ e}}_y + B_z^2\,{\mathbf{ e}}_z \ .
|
||||
\]
|
||||
The continuity equation is obtained from (\ref{dfm1}) by setting
|
||||
$\chi = m$, the momentum equation by setting $\chi = m{\mathbf{ v}}$, and
|
||||
the energy equation by setting $\chi = mv^2/2$.
|
||||
The question to be answered is the following. Can we find a distribution
|
||||
$f({\mathbf{ v}})$ such that, when substituted into the transport
|
||||
equation (\ref{dfm1}), the 3D MHD equations (\ref{continuity}) -
|
||||
(\ref{energy}) are recovered?
|
||||
|
||||
The following distribution function satisfies this requirement.
|
||||
\begin{equation}
|
||||
f=f_1+f_2 \label{dfm2}
|
||||
\end{equation}
|
||||
where
|
||||
\begin{equation}
|
||||
f_1=\frac{\exp (-u_1^2)}{\left( \pi v_{1x}^2\right) ^{1/2}}\frac{\exp
|
||||
(-v_1^2)}{\left( \pi v_{1y}^2\right) ^{1/2}}\frac{\exp (-w_1^2)}{\left( \pi
|
||||
v_{1z}^2\right) ^{1/2}} \label{dfm3}
|
||||
\end{equation}
|
||||
\begin{equation}
|
||||
f_2=-\left( u_2v_2+u_2w_2+v_2w_2\right) \frac{\exp (-u_2^2)}{\left( \pi
|
||||
v_{2x}^2\right) ^{1/2}}\frac{\exp (-v_2^2)}{\left( \pi v_{2y}^2\right) ^{1/2}%
|
||||
}\frac{\exp (-w_2^2)}{\left( \pi v_{2z}^2\right) ^{1/2}} \label{dfm4}
|
||||
\medskip
|
||||
\end{equation}
|
||||
\noindent and $u_\alpha=\left( v_x-V_x\right) /v_{\alpha x},
|
||||
\;v_\alpha =\left( v_y-V_y\right)/v_{\alpha y},
|
||||
\;w_\alpha=\left( v_z-V_z\right) /v_{\alpha z},
|
||||
\,v_{1x}^2=2C_s^2/\gamma
|
||||
+V_{Ay}^2+V_{Az}^2,
|
||||
\,v_{1y}^2=2C_s^2/\gamma
|
||||
+V_{Ax}^2+V_{Az}^2,
|
||||
\,v_{1z}^2=2C_s^2/\gamma
|
||||
+V_{Ax}^2+V_{Ay}^2,$
|
||||
\,$v_{2x}^2=4V_{Ax}^2,$
|
||||
\,$v_{2y}^2=4V_{Ay}^2,$
|
||||
\,$v_{2z}^2=4V_{Az}^2,$ and
|
||||
$C_s^2=\gamma P/\rho$.
|
||||
In (\ref{dfm2}), $f_1$ defines the diagonal terms in the MHD equations
|
||||
and $f_2$ defines the off-diagonal terms.
|
||||
|
||||
The point of this method is that the distribution function $f(v)$
|
||||
contains the hydrodynamic force (pressure) and all of the
|
||||
electromagnetic forces except those associated with ${\mathbf{ a}}$.
|
||||
Thus, by using $f(v)$ to calculate mass, momentum, and energy fluxes,
|
||||
most of the electromagnetic contribution is calculated directly,
|
||||
i.e., one does not have to solve the hydrodynamic and magnetic
|
||||
force components separately or differently.
|
||||
|
||||
\subsubsection{Magnetic Field Evolution}
|
||||
|
||||
The evolution of the magnetic field is governed by
|
||||
\begin{equation}
|
||||
\frac{\partial {\mathbf{ B}}}{\partial t}=
|
||||
-c\nabla \times {\mathbf{ E}} = -c\nabla \times \left[{\mathbf{ E}}_c
|
||||
+ {\mathbf{ E}}_H\right]
|
||||
\label{mfe1}
|
||||
\end{equation}
|
||||
where we define ${\mathbf{ E}}_c = -{\mathbf{ V}} \times {\mathbf{ B}}/c$
|
||||
and ${\mathbf{ E}}_H = -{\mathbf{ V}}_H \times {\mathbf{ B}}/c$
|
||||
with ${\mathbf{ V}}_H = -{\mathbf{ J}}/ne$. The electric field ${\mathbf{ E}}_c$
|
||||
is the convective electric field and ${\mathbf{ E}}_H$ is the Hall
|
||||
electric field. The general technique to solve (\ref{mfe1}) is
|
||||
as follows.
|
||||
The normal component of the field is integrated over a cell face
|
||||
\begin{equation}
|
||||
\int d{\mathbf A\cdot }\frac{\partial {\mathbf B}}{\partial t}=
|
||||
-c\int d{\mathbf %
|
||||
A\cdot \,}\nabla \times {\mathbf E}=-c\int {\mathbf E}\cdot \;d{\mathbf l}
|
||||
\label{mfe2}
|
||||
\end{equation}
|
||||
where $\int d{\mathbf{ l}}$ denotes a line integral around the cell face
|
||||
(see Fig. \ref{3dmhd_cell}). The advantage of using this technique
|
||||
to calculate the magnetic field is that is satisfies
|
||||
$\nabla \cdot {\mathbf{ B}} = 0$ to machine accuracy.
|
||||
|
||||
As a specific example, the magnetic flux
|
||||
in the $x$ direction at a cell interface is evolved using
|
||||
\begin{equation}
|
||||
\frac{\partial \Phi _x}{\partial t} = -cE_y\,dy-cE_z\,dz
|
||||
\label{mfe3}
|
||||
\end{equation}
|
||||
where $\Phi _x=B_x\,dydz$. The updated magnetic flux in the $x$
|
||||
direction is
|
||||
\begin{equation}
|
||||
\Phi _x^{t+\Delta t}=\Phi _x^t-c\Delta t\left( E_y\,dy+
|
||||
E_z\,dz\right) ^{t+\Delta t/2}\ . \label{mfe4}
|
||||
\end{equation}
|
||||
The convective and Hall electric fields are structurally very
|
||||
different and require different numerical techniques. We
|
||||
describe each field calculation separately.
|
||||
|
||||
\paragraph{Convective Electric Field}
|
||||
|
||||
The convective electric field in VooDoo is calculated using
|
||||
the distribution function method. This is most easily seen
|
||||
by considering a single component of the convective electric field
|
||||
\begin{equation}
|
||||
E_{cz} = -\frac{1}{c}(V_xB_y - V_yB_x)
|
||||
\label{cef1}
|
||||
\end{equation}
|
||||
which is written as
|
||||
\begin{equation}
|
||||
E_{cz} = -\frac{1}{c}\left(\int f({\mathbf{ v}})v_xB_y\,d^3v -
|
||||
\int f({\mathbf{ v}})v_yB_x\,d^3v\right) \ .
|
||||
\label{cef2}
|
||||
\end{equation}
|
||||
Thus, the calculation of ${\mathbf{ E}}_c$
|
||||
is based on the fact that ${\mathbf{ V}} = \int f({\mathbf{ v}}){\mathbf{ v}}\,d^3v$.
|
||||
We note that the actual implementation of this technique is fairly
|
||||
complicated; it is described in Ref. \cite{hubalyon99}.
|
||||
|
||||
\paragraph{Hall Electric Field}
|
||||
|
||||
The Hall electric field is
|
||||
\begin{equation}
|
||||
{\mathbf{ E}}_H = -\frac{1}{c}{\mathbf{ V}}_H \times {\mathbf{ B}}
|
||||
= \frac{1}{nec}{\mathbf{ J}} \times {\mathbf{ B}} \ .
|
||||
\label{hef1}
|
||||
\end{equation}
|
||||
Since the Hall electric field is solely a function of the
|
||||
magnetic field, the distribution function method cannot be
|
||||
used to solve for it. We use an upwinding
|
||||
scheme to solve for the Hall electric field. We will explain
|
||||
this method by using a simple example.
|
||||
\begin{figure}
|
||||
\begin{center}
|
||||
\includegraphics[width=2.5in]{fig_chapter6/ehall2b.pdf}
|
||||
\caption{Schematic of the upwinding scheme used to
|
||||
calculate one component of the Hall electric
|
||||
field.}
|
||||
\label{ehall2b}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
|
||||
We consider a single component of the Hall electric field
|
||||
\begin{equation}
|
||||
E_{Hz} = -\frac{1}{c}(V_{Hx}B_y-V_{Hy}B_x)
|
||||
\label{hef2}
|
||||
\end{equation}
|
||||
which we break up into two parts
|
||||
\begin{equation}
|
||||
E_{Hz}^{xy} = -V_{Hx}B_y \quad {\text{ and}\quad }
|
||||
E_{Hz}^{yx} = V_{Hy}B_x \ .
|
||||
\label{hef3}
|
||||
\end{equation}
|
||||
By analogy with the convective electric field, we interpret
|
||||
$B_y$ being convected at the Hall velocity $V_{Hx}$ and
|
||||
$B_x$ being convected at the Hall velocity $V_{Hy}$ in
|
||||
(\ref{hef3}).
|
||||
|
||||
We now focus on the component $E_{Hz}^{xy}$ which is shown
|
||||
in Fig. \ref{ehall2b}. In this figure $E_{Hz}^{xy}$
|
||||
and $V_{Hx}$ are defined along a cell edge
|
||||
(as shown in Fig. \ref{3dmhd_cell}) and $V_{Hx} > 0$.
|
||||
Also shown are the face-centered magnetic field $B_y$
|
||||
and the left ($B_{yL}$) and right ($B_{yR}$) states of
|
||||
$B_y$. The left and right states of $B_y$ are determined
|
||||
using the high order interpolation scheme and partial
|
||||
donor cell method previously described. The upwinding scheme
|
||||
to determine $E_{Hz}^{xy}$ is
|
||||
\begin{equation}
|
||||
E_{Hz}^{xy} =
|
||||
\left\{ \begin{array}{ll}
|
||||
V_{Hx}B_{yL} & \ \text{ for}\ V_{Hx} > 0 \\
|
||||
V_{Hx}B_{yR} & \ \text{ for}\ V_{Hx} < 0
|
||||
\end{array}
|
||||
\right.
|
||||
\label{hef4}
|
||||
\end{equation}
|
||||
The interpretation of (\ref{hef4}) is straightforward. If
|
||||
$V_{Hx} > 0$, as shown in Fig. \ref{ehall2b}, then the
|
||||
Hall term is convecting the magnetic field from left to
|
||||
right and the left state magnetic field is used, i.e.,
|
||||
the upwinded state. Conversely, if $V_{Hx} < 0$, then the
|
||||
right state magnetic field is used.
|
||||
|
||||
\subsubsection{Courant Condition}
|
||||
|
||||
The time step in an explicit code is controlled by a Courant condition
|
||||
\begin{equation}
|
||||
\Delta t < \frac{\Delta x}{V_{max}}
|
||||
\label{cc1}
|
||||
\end{equation}
|
||||
where $V_{max}$ is the maximum fluid or wave velocity in the system.
|
||||
Usually the Courant condition is set by wave speeds. The following
|
||||
velocities need to be considered in a Hall MHD code:
|
||||
\begin{itemize}
|
||||
\item Fluid flow: $V$
|
||||
\item Magnetosonic wave: $V_m = \sqrt{V_A^2+C_s^2}$
|
||||
\item Hall velocity: $V_H = -J/ne$
|
||||
\item Hall drift wave: $V_{hdw} = V_A^2/L_n\Omega _i$
|
||||
\item Whistler wave: $V_w = kV_A^2/\Omega _i$
|
||||
\end{itemize}
|
||||
where $V_A = B/(4\pi n_im_i)^{1/2}$ is the
|
||||
Alfv\'{e}n velocity, $C_s = (2T/m_i)^{1/2}$
|
||||
is the sound speed, $L_n = (\partial ln\, n/\partial x)^{-1}$ is
|
||||
the density gradient scale length, $\Omega _i = eB/m_ic$ is
|
||||
the ion cyclotron frequency, and $k$ is the wavenumber. We
|
||||
set $k = 2\pi /\Delta x$ to evaluate $V_w$ numerically.
|
||||
Thus, we use the following velocity in the Courant condition
|
||||
\begin{equation}
|
||||
V_{max} = \text{ max}(V+V_m+V_H+V_{hdw}+V_w) \ .
|
||||
\label{cc2}
|
||||
\end{equation}
|
||||
|
||||
In general, the Hall drift and whistler wave phase velocities determine
|
||||
the time step. For phenomena in which only the plasma dynamics
|
||||
in the plane transverse to the magnetic field is important, the
|
||||
Hall drift wave controls the time step; examples are plasma opening
|
||||
switches and sub-Alfv\'{e}nic plasma expansions. On other hand,
|
||||
for phenomena that require plasma dynamics along the magnetic field,
|
||||
the whistler wave phase velocity controls
|
||||
the time step; a prominent example is magnetic field line reconnection.
|
||||
|
||||
The whistler wave is particularly troublesome in modeling Hall
|
||||
MHD processes for two reasons. First, $V_w >> V_A$ so that
|
||||
the time step is significantly smaller than that used in ideal
|
||||
MHD simulations. Second, and most important, the whistler phase
|
||||
velocity is proportional to $k$ (or $1/\Delta x$ numerically) so that
|
||||
the shortest waves in the system have the highest phase velocity.
|
||||
This can generate spurious, short wavelength noise in Hall MHD
|
||||
simulations. This noise can be suppressed by adding an artificial
|
||||
hyper-resistivity to the magnetic induction equation
|
||||
or by numerically smoothing the Hall electric field.
|
||||
The latter is done in VooDoo using a 3-point smoothing algorithm
|
||||
\cite{birdsalllangdon91}.
|
||||
In addition, there is also a severe penalty in the time
|
||||
step when the resolution is increased. The time step is proportional
|
||||
to $(\Delta x)^2$ so that time step decreases by an additional
|
||||
factor of 2 when the resolution is doubled.
|
||||
|
||||
|
||||
\chapter{Hybridcodes}
|
||||
|
||||
A hybrid code in the context of plasma physics generally refers to a computational model in which some of the plasma species are treated kinetically and others as fluids, while the electric and magnetic fields can be considered as either electrostatic or electromagnetic. Most often in hybrid codes employed in space plasmas all the different ion species are treated kinetically using particle-in-cell methods, the electrons are modeled as a fluid with massless electrons, and Maxwell’s equations are solved in the radiation-free (i.e., no light waves) limit. It is in this more restricted domain that we discuss hybrid codes in this chapter. Even in this limited space, there is still freedom in how to treat the fast phenomena associated with electron dynamics. In space plasmas in particular, hybrid codes occupy a unique niche, intermediate between fluid codes that are most useful for modeling large portions of the solar wind or the interaction of the solar wind with the Earth’s magnetosphere and fully kinetic treatment of all the plasma components, i.e., all ion species and electrons, that are resolved down to the smallest electron scales. Fully kinetic codes are commonly referred to as PIC codes, because traditionally particle-in-cell methods have been used to treat the particle dynamics. Instead, hybrid codes model a portion of the solar wind-magnetosphere boundary or a small region in the solar wind or the magnetosphere on spatial and temporal scales on which ion dynamics dominates. The effects of the larger fluid scales can be modeled through boundary conditions, while the small-scale effects of electrons are added in through models for the electron pressure tensor, and high-frequency (e.g., electron-ion lower-hybrid or higher electron-electron) wave effects are included through a resistivity or other transport coefficients. But as computers have become larger and faster, fully kinetic codes can now model system sizes and time scales that previously were only accessible to hybrid codes, and hybrid codes in turn can now model systems large enough that could once only be studied by fluid models. Thus, as the domains of calculations with different physics models can overlap, having an assortment of hybrid models allows comparisons between hybrid-PIC and fluid-hybrid simulations to be done effectively in order to verify the validity of models, provide additional validation of codes, and give further insight into spacecraft data.
|
||||
|
||||
\section{Review of basic model and implementation}
|
||||
In this section we present a simplified hybrid model with massless electrons, which is still commonly used, that provides a framework for discussion of more complex adaptations later in the chapter. The basic physics model and the associated equations that are solved as a function of space and time are defined as follows. To be consistent with the hybrid model, the ions are treated kinetically using standard particle-in-cell methods. Each simulation ion (with position $\vec{x}_p$, velocity $\vec{v}_p$, charge $q_i$ and mass $m_i$), which represents many actual physical particles, is subject to the usual (non-relativistic) equations of motion in the electric $\vec E$ and magnetic $\vec B$ fields:
|
||||
\begin{align}
|
||||
m_i \diff{\vec{v}_p}{t} &= q_i (\vec E + \vec{v}_p\times\vec B)\\
|
||||
\diff{\vec{x}_p}{t} &= \vec{v}_p
|
||||
\end{align}
|
||||
where the fields have values given on a spatial grid, and are interpolated to the location of the simulation particle. The updated particle data for the ion charge density ($q_i n_i$) and current $\vec{J}_i = q_i n_i \vec{V}_i$, are collected on the grid, from which the number density ($n_i$) and flow velocity ($\vec{V}_i$) are determined for use later in calculating the electric field. (For simplicity, we assume a single ion species; for multiple species, one accumulates the data for each species separately and then adds them together to get the total ion charge density and current.)
|
||||
|
||||
In the standard hybrid model the electrons are treated as an massless fluid, although ``inertia-less'' is a more accurate description. Thus, the left side of the electron momentum equation is zero, resulting in:
|
||||
\begin{align}
|
||||
\diff{}{t} (n_e m_e \vec{V}_e) = 0 = -e n_e(\vec E + \vec{V}_e \times \vec{B})-\nabla \underline{\underline{\mathbf{P}}}_e + e n_e \eta \vec J \label{eq:winske3}
|
||||
\end{align}
|
||||
where $\vec{V}_e$ is the electron fluid velocity, $\underline{\underline{\mathbf{P}}}_e$ is the electron pressure tensor, $\vec J$ is the total current and $\eta$ is the resistivity. Even though we assume $m_e$ in Eq. \eqref{eq:winske3}, we still include the electron pressure term on the right hand side. This contributes to the electric field that insures that the plasma remains quasi-neutral, and thus eliminating Debye length effects, i.e.,
|
||||
\begin{align}
|
||||
e n_e = q_i n_i
|
||||
\end{align}
|
||||
where $e$ is the elementary charge. In Eq. \eqref{eq:winske3}, $\underline{\underline{\mathbf{P}}}_e$ is usually taken to be a scalar $\underline{\underline{\mathbf{P}}}_e = p_e \underline{\underline{\mathbf{1}}}$ but sometimes separate electron pressures along and transverse to the background magnetic field are included. The last term in Eq. \eqref{eq:winske3} is an optional resistive term. Usually $\eta$ is assumed to be a scalar with a constant value. If this term is included, there is a corresponding term in the ion equation motion to balance momentum exchange. This term is usually assumed small and is often used as a numerical means to reduce high-frequency fluctuations in the electromagnetic field, but in certain problems (e.g., magnetic reconnection), it can be physically significant, as a localized model for high frequency waves that initiate reconnection of field lines. We will discuss the pressure model and resistivity later in regard to numerical tests and specific applications.
|
||||
|
||||
The electric and magnetic fields in an electromagnetic hybrid model are treated in the low frequency approximation (i.e., Darwin model) that ignores light waves. Thus, we use Ampere’s law,
|
||||
\begin{equation}
|
||||
\nabla \times \vec B = \mu_0 \vec J = \mu_0 q_i n_i (\vec {V}_i - \vec {V}_e)
|
||||
\label{eq:winske5}
|
||||
\end{equation}
|
||||
and Faraday's law
|
||||
\begin{align}
|
||||
\diffp{\vec B}{t} = -(\nabla \times\vec E) \label{eq:winske6}
|
||||
\end{align}
|
||||
Eq. \ref{eq:winske6} is used to advance the magnetic field in time. Eq. \ref{eq:winske5} is used to eliminate the electron flow velocity in Eq. \ref{eq:winske3}, which then reduces to the equation for the electric field $\vec E$. In this low-frequency approximation, the electric field is thus not advanced in time, but instead is determined from the (updated) magnetic field, and ion density and flow velocity. Calculating the electric field at the next time step is the essential problem in all hybrid algorithms and different methods to accomplish this will be discussed throughout this chapter.
|
||||
|
||||
The numerical implementation of these equations in a hybrid code begins by choosing a spatial grid. Often, but not always, a rectangular grid is used. One must also decide on the location of fields and particle source terms on the grid. The standard approach is to use a Yee lattice as discussed before. Given the grid, the ion dynamics are done as in usual PIC codes.
|
||||
|
||||
The advance in time also follows PIC methodology and proceeds as follows. We start at time step $N$ (denoted by superscript), when the particle positions $\vec{x}_p^N$ and the electric field $\vec{E}^N$ and magnetic field $\vec{B}^N$ are known, while the particle velocities are a half time step behind, $\vec{v}_p^{N-1/2}$. This allows the particle positions and velocities to ``leapfrog'' in time. First, the particle velocities are advanced to the next level $N+1/2$ with time step $\Delta t$ in the equations of motion:
|
||||
\begin{align}
|
||||
\vec{v}_p^{N+1/2} = \vec{v}_p^{N-1/2} + \frac{q_i}{m_i}(\vec{E}^N + \vec{v}_p^N\times\vec{B}^N)\Delta t \label{eq:winske7}
|
||||
\end{align}
|
||||
And then the particle positions are similarly advanced to time level $N+1$
|
||||
\begin{align}
|
||||
\vec{x}_p^{N+1} = \vec{x}_p^B + \vec{v}_p^{N+1/2} \Delta t\label{eq:winske8}
|
||||
\end{align}
|
||||
In the process the ion current is collected at time step $N+1/2$ and the density at $N+1$. We also save the old value of the ion density $n_i^N$ for later use. We note that in Eq. \ref{eq:winske7}, $\vec{v}_p^N = 1/2 (\vec{v}_p^{N-1/2}+\vec{v}_p^{N+1/2})$, which can then be solved to get $\vec{v}_p^{N+1/2}$.
|
||||
|
||||
Next hte magnetic field $\vec{B}^N$ is advanced to $\vec{B}^{N+1/2}$ using $\vec{E}^N$ and Faraday's law, Eq. \ref{eq:winske6}:
|
||||
\begin{align}
|
||||
\vec{B}^{N+1/2} = \vec{B}^N - \frac{\Delta t}{2} (\nabla\times\vec E)
|
||||
\end{align}
|
||||
By solving the electron momentum Eq. \eqref{eq:winske3} for the electric field, we can evaluate $\vec{E}^{N+1/2}$:
|
||||
\begin{align}
|
||||
\vec{E}^{N+1/2} &= -\vec{V}_i^{N+1/2} \times \vec{B}^{N+1/2} - \frac{\vec{B}^{N+1/2}\times(\nabla\times\vec{B}^{N+1/2})}{\mu_0 q_i n_i^{N+1/2}}\label{eq:winske10}\\
|
||||
&= \vec{E}^{N+1/2}(\vec{B}^{N+1/2},\vec{V}_i^{N+1/2},n_i^{N+1/2})\nonumber
|
||||
\end{align}
|
||||
because we know the ion current $\vec{V}_i^{N+1/2}$ from collecting the new ion particle velocities $\vec{v}_p^{N+1/2}$, the ion density from averaging its old and new values, $n_i^{N+1/2} = 1/2 (n_i^N+n_i^{N+1})$ and $\vec{B}^{N+1/2}$ from Eq. \ref{eq:winske9}. On the far right side of Eq. \eqref{eq:winske10} we have explicitly written out the time levels of the appropriate variables needed to compute $\vec E$, for later reference. We have also assumed an adiabatic form for the scalar electron pressure:
|
||||
\begin{align}
|
||||
p_e = n_0 T_{e0}(n_e/n_0)^\gamma
|
||||
\end{align}
|
||||
where $T_{e0}(n_0)$ is a reference electron temperature (density), usually with $\gamma=5/3$ (adiabatic9, so that from Eq. \eqref{eq:winske4}, $p_e^N$ involves just knowing $n_i^N$.
|
||||
|
||||
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
|
||||
|
||||
\chapter{Vlasov simulations}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user