Rest vom Numerik Kapitel
This commit is contained in:
+103
-31
@@ -947,7 +947,7 @@ inject electromagnetic waves to study their propagation. This can either be
|
||||
achieved by the means of an artifical current, acting as an antenna or by
|
||||
manipulating the electromagnetic field directly. More complicated inject
|
||||
schemes that allow for the injection of realistic laser pulses
|
||||
(\cite{Thiele_2016,}), of oblique waves with arbitray envelops
|
||||
(\cite{Thiele_2016}), of oblique waves with arbitray envelops
|
||||
(\cite{Perez_2018}) or of magnetized plasma without unwanted numerical noise
|
||||
(\cite{Kilian_2018}) are possible as well, but require a bit of care.
|
||||
|
||||
@@ -977,44 +977,116 @@ useful to calculate a breakdown of the energy content in the simulation in
|
||||
several rough categories, such as the energy in the electric field, the energy
|
||||
in the magnetic field and in the particles.
|
||||
|
||||
% radiation reaction
|
||||
% Pausch_2013.pdf verification of radiation diagnostics
|
||||
% Nerush_2017.pdf PiC including gamma ray priduction and pair production
|
||||
% Kalapotharakos_2018.pdf 3d pulsar magnetosphere, load balancing, radiation reaction force, testcases
|
||||
% Kalapotharakos_2018.pdf radiation test cases
|
||||
% Pausch_2018.pdf coherent and incoherent radiation from PiC
|
||||
|
||||
|
||||
Another obvious candidate for output are all the gridded quantities, such as
|
||||
electric and magnetic field as well as current density. These quantites do not
|
||||
require any extra calculation, but there size prohibits writing them out as
|
||||
text files. The two most widely used choices are dumping the memory of every
|
||||
MPI domain to a separate binary file or writing a global view to a structured
|
||||
format such as HDF5. The first choice has the advantage of very little
|
||||
overhead, even is a small header is included. The downside is that the separate
|
||||
views of the different doamins need to combined for further analysis. The
|
||||
overhead of creating many files in the same directory at once and the tedious
|
||||
file handling make this alternative an increasing poor choice once the
|
||||
simulation used more than a few hundred cores. Parallel I/O to HDF5 requires
|
||||
slightly more complicated I/O code and introduces some overhead, but allows for
|
||||
the inclusing of meta-data and easy loading into analysis tool, independend of
|
||||
programming language and CPU architecture.
|
||||
|
||||
Other field data that need to be computed just for diagnostic purposes such as
|
||||
the mass density, charge density, average bulk velocities, or components of the
|
||||
pressure tensor can also be good choices for grid based output. Even if many of
|
||||
these quantities are required it is typically cheaper to computer the
|
||||
diagnostics during the parallel simulation instead of dumping the full particle
|
||||
information and doing post-processing.
|
||||
|
||||
In many cases not all of the three-dimensional field data is required.
|
||||
Averaging over one or two dimensions to obtain line profiles or two-dimensional
|
||||
selections is an option. Alternatively lineouts or two-dimensional cuts can be
|
||||
useful. If points of interest are known beforehand or can easily be computed on
|
||||
the fly it is interesting to output time histories of those points at high
|
||||
cadance. If a global overview is needed, but not the full resolutions, it is
|
||||
possible to output a downsampled grid. Care should be taken to apply a digital
|
||||
low-pass filter -- such as a Kaiser window \cite{Kaiser_1980} -- before the
|
||||
decimation to avoid aliasing.
|
||||
|
||||
In some cases it is necessary to restart the code, either due to reaching a
|
||||
wallclock limit, or due to a compute node crashing (this is actually an
|
||||
increasing problems with supercomputers pushing the 10000 limit and
|
||||
mean-time-between-failures meassured in days at best). Also some analysis can
|
||||
only be performed as post-processing, either due to poor scalability or because
|
||||
it is actively being developed based on the simulation results. In this case,
|
||||
the pull particle information needs to be stored. Again direct binary dumps or
|
||||
higher-level self-desribing formats are the two main possibilities. Some codes
|
||||
even implement both, the high-level format for scientific analysis and binary
|
||||
dumps that are overwritten periodically as faster checkpoints that are only
|
||||
used for restarts.
|
||||
|
||||
Many other diagnostics have been developed and the following list of examples
|
||||
is certainly incomplete: one-dimensional histogramms of particle quantities
|
||||
such as speed or energy, two-dimensional cuts in phasespace showing e.g.
|
||||
$x-v_x$-densities, fourier transforms of other quantites such as
|
||||
$\tilde{B}(|k|)$, time averages of other quantities to remove high-frequency
|
||||
noise, trajectories of specially selected particles of interest, often together
|
||||
with local field quantities at the position of the tracer particles,
|
||||
reconstruction of the particle phasespace density on a six-dimensional grid,
|
||||
discrete estimates of the entropy based on a binned phasespace. The
|
||||
possibilities are endless here and a large fraction of the delevopment time of
|
||||
a mature code will be invested in probiding userfriendly, scalable, efficient
|
||||
diagnostics.
|
||||
|
||||
One special diagnostic that is of interest in astrophysical applications in the
|
||||
calculation of radiation spectra. This is different from the spectrum of the
|
||||
field inside the simulation domain that is limited to frequencies that are
|
||||
explicitly resolved. Often there is synchrotron or inverse-Compton radiation at
|
||||
much higher frequenies that can be calculated separately. See
|
||||
\cite{Pausch_2014,Pausch_2018} on how to implement and properly test such
|
||||
radiation diagnostics. Some recent codes include the production of gamma rays
|
||||
and electron-positron pairs \cite{Nerush_2017}. This is especially relevant for
|
||||
the nascent field of pulsar magnetosphere simulations, where the back reaction
|
||||
of the radiation processes on the energetic particles in the similation needs
|
||||
to be included \cite{Kalapotharakos_2018}.
|
||||
|
||||
\subsection*{Test Cases}
|
||||
% test
|
||||
% Jacobs_2009.pdf discontinuous galerkin PiC on unstructered mesh, bunch of test cases
|
||||
% Delamere_2011.pdf Hybrid simulations of KH in saturns magnetopause, test problem
|
||||
% Melzani_2013.pdf Apar-T, test problems
|
||||
% Amano_2014.pdf low-density hybrid code, modified ohms law, test problems
|
||||
% Kilian_2017.pdf plasma waves as a testcase
|
||||
% Shalaby_2017.pdf SHARP Pic code, high order, test problems
|
||||
% Kalapotharakos_2018.pdf radiation test cases
|
||||
% Munoz_2018.pdf CHIEF hybrid code, test cases
|
||||
|
||||
% material
|
||||
% Aastroem_1950.pdf plasma waves, dispersion relations, wave surfaces
|
||||
% Bernstein_1958.pdf Bernstein waves in magnetized plasma
|
||||
% Dougherty_1960.pdf Radio backscatter from plasma, thermal density fluctuations in plasma
|
||||
% Dawson_1961.pdf Landau Damping
|
||||
% Roennmark_1982.pdf numeric dispersion solver
|
||||
% Andre_1985.pdf dispersion surfaces, nice plots
|
||||
% Manfredi_1997.pdf long-time behaviour of Landau damping
|
||||
% Yoon_2017.pdf thermal excitation of electromagnetic fluctuations
|
||||
Unlike hydro codes that tend to develop negative densities or pressures when
|
||||
numerical problems occure Particle-in-Cell codes are relatively robust. This
|
||||
can be a good, but brings the risk of obtaining a plausible but wrong result.
|
||||
It is therefore important that the researcher employs a healthy scepticism
|
||||
towords the code and that the code is tested. Other communities have a large
|
||||
number of test cases for which analytic solutions are known, or at least
|
||||
results from other codes are available. In the Particle-in-Cell community
|
||||
effort into validation (making sure that the employed plasma model is adaquate
|
||||
and that the underlying assumptions are met), benchmarking (comparisson with
|
||||
other codes) and valdidation (testing proper implementation) are relativly new
|
||||
and rare. One of the reasons is that the number of test problems with known,
|
||||
analytic solutions is rather low.
|
||||
|
||||
But there some test cases that can be recommended. The paper by
|
||||
\cite{Jacobs_2006} introduced a discontinuous galerkin code on unstructured
|
||||
mesh, but also includes several useful test cases. The study of
|
||||
Kelvin-Helmholtz instability in saturns magnetopause in \cite{Delamere_2011}
|
||||
has been used by several hybrid codes. Code description paper such as the one
|
||||
for the Apart-T code \cite{Melzani_2013} or the SHARP code \cite{Shalaby_2017}
|
||||
lists several test problems that are solvable with that code and offers
|
||||
opportunity for benchmarking. Papers that investigate new hybrid codes such as
|
||||
\cite{Amano_2014,Munoz_2018} contain testproblems to demonstrate the new
|
||||
method, but many of them are also accessible to PiC codes. The paper by
|
||||
\cite{Kilian_2017} contains a list of wave modes and suggested parameters that
|
||||
are accessible to different plasma models that can be implemented by PiC codes.
|
||||
|
||||
% validation
|
||||
% Dimits_2000.pdf comparisson of fluid, gyrofluid and gyrokinetic codes
|
||||
% Falchetto_2008.pdf comparing tokamak simulation codes
|
||||
% Riva_2017.pdf verification of PiC simulation
|
||||
Physical setups for which analytic solutions exist include the study of plasma
|
||||
waves \cite{Aastroem_1950, Bernstein_1958, Andre_1985, Swanson_2003} and the
|
||||
thermal excitation of fluctuations oin density \cite{Dougherty_1960} or
|
||||
electromagnetic fields \cite{Akhiezer_1975, Yoon_2017}. For complicated
|
||||
distribution function that do not admit analytic solutions for the dispersion
|
||||
relation of plasma waves comparisson with numeric dispersion solver
|
||||
\cite{Roennmark_1982, Xie_2016} is useful. The study of Landau damping has a
|
||||
long tradition \cite{Dawson_1961} and can be useful to test the long term
|
||||
stability of the code \cite{Manfredi_1997}.
|
||||
|
||||
The comparison between different code types such as in \cite{Dimits_2000,
|
||||
Munoz_2015} can be useful to find the limits of applicability. This kind of
|
||||
comparison is especially popular in the Fusion power community
|
||||
\cite{Falchetto_2008}. The expected scaling behaviour when improving numerical
|
||||
resolution can also be used to test the code, even without outside reference
|
||||
simulations, as shown in \cite{Riva_2017}.
|
||||
|
||||
Reference in New Issue
Block a user