diff --git a/main.tex b/main.tex index a9cf08a..766e36d 100644 --- a/main.tex +++ b/main.tex @@ -81,7 +81,7 @@ \include{numerics} -\include{implementation} +% \include{implementation} \include{application} diff --git a/numerics.tex b/numerics.tex index 4e1c059..59bf2c2 100644 --- a/numerics.tex +++ b/numerics.tex @@ -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}. diff --git a/pic.bib b/pic.bib index 5c719aa..b99c3a9 100644 --- a/pic.bib +++ b/pic.bib @@ -1369,3 +1369,304 @@ archivePrefix = {arXiv}, volume = "353", year = "2018", } + +@article{Kaiser_1980, + author = {J. {Kaiser} and R. {Schafer}}, + doi = {10.1109/TASSP.1980.1163349}, + issn = {0096-3518}, + journal = {IEEE Transactions on Acoustics, Speech, and Signal Processing}, + month = {February}, + number = {1}, + pages = {105-107}, + title = {On the use of the I0-sinh window for spectrum analysis}, + volume = {28}, + year = {1980}, +} + +@article{Pausch_2014, + author = "R. Pausch and A. Debus and R. Widera and K. Steiniger and A. Huebl and H. Burau and M. Bussmann and U. Schramm", + doi = "https://doi.org/10.1016/j.nima.2013.10.073", + issn = "0168-9002", + journal = "Nuclear Instruments and Methods in Physics Research Section A: Accelerators, Spectrometers, Detectors and Associated Equipment", + note = "Proceedings of the first European Advanced Accelerator Concepts Workshop 2013", + pages = "250 - 256", + title = "How to test and verify radiation diagnostics simulations within particle-in-cell frameworks", + volume = "740", + year = "2014", +} + +@article{Pausch_2018, + author = "R. Pausch and A. Debus and A. Huebl and U. Schramm and K. Steiniger and R. Widera and M. Bussmann", + doi = "https://doi.org/10.1016/j.nima.2018.02.020", + issn = "0168-9002", + journal = "Nuclear Instruments and Methods in Physics Research Section A: Accelerators, Spectrometers, Detectors and Associated Equipment", + note = "3rd European Advanced Accelerator Concepts workshop (EAAC2017)", + pages = "419 - 422", + title = "Quantitatively consistent computation of coherent and incoherent radiation in particle-in-cell codes—A general form factor formalism for macro-particles", + volume = "909", + year = "2018", +} + +@article{Kalapotharakos_2018, + author = {Constantinos Kalapotharakos and Gabriele Brambilla and Andrey Timokhin and Alice K. Harding and Demosthenes Kazanas}, + doi = {10.3847/1538-4357/aab550}, + journal = {The Astrophysical Journal}, + month = {apr}, + number = {1}, + pages = {44}, + publisher = {American Astronomical Society}, + title = {Three-dimensional Kinetic Pulsar Magnetosphere Models: Connecting to Gamma-Ray Observations}, + volume = {857}, + year = 2018, +} + +@article{Nerush_2017, + author = {E. N. Nerush and D. A. Serebryakov and I. Yu. Kostyukov}, + doi = {10.3847/1538-4357/aa9d1a}, + journal = {The Astrophysical Journal}, + month = {dec}, + number = {2}, + pages = {129}, + publisher = {American Astronomical Society}, + title = {Weibel Instability in Hot Plasma Flows with the Production of Gamma-Rays and Electron{\textendash}Positron Pairs}, + volume = {851}, + year = 2017, +} + +@article{Jacobs_2006, + author = "G.B. Jacobs and J.S. Hesthaven", + doi = "10.1016/j.jcp.2005.09.008", + issn = "0021-9991", + journal = "Journal of Computational Physics", + note = "", + number = "1", + pages = "96 - 121", + title = "High-order nodal discontinuous Galerkin particle-in-cell method on unstructured grids", + volume = "214", + year = "2006", +} + +@book{Aastroem_1950, + author = {{\AA}str{\"o}m, Ernst}, + publisher = {Almqvist \& Wiksell}, + series = {Arkiv f{\"o}r fysik}, + title = {On Waves in an ionized gas}, + year = {1950}, +} + +@article{Bernstein_1958, + author = {Bernstein, Ira B.}, + journal = {Phys. Rev.}, + month = {Jan}, + pages = {10--21}, + publisher = {American Physical Society}, + title = {Waves in a Plasma in a Magnetic Field}, + volume = {109}, + year = {1958}, + doi = {10.1103/PhysRev.109.10}, + issue = {1}, +} + +@article{Andre_1985, + author = {André,Mats}, + journal = {Journal of Plasma Physics}, + month = {2}, + pages = {1--19}, + title = {Dispersion surfaces}, + volume = {33}, + year = {1985}, + issue = {01}, + numpages = {19}, + doi = {10.1017/S0022377800002270}, + issn = {1469-7807}, +} + +@book{Swanson_2003, + author = {Swanson, D.G.}, + publisher = {Taylor \& Francis}, + series = {Series in Plasma Physics}, + title = {Plasma Waves, 2nd Edition}, + year = {2003}, + lccn = {2004296307}, + isbn = {9780750309271}, +} + +@article{Dougherty_1960, + author = {{Dougherty}, J.~P. and {Farley}, D.~T.}, + journal = {Royal Society of London Proceedings Series A}, + month = jun, + pages = {79--99}, + title = "{A Theory of Incoherent Scattering of Radio Waves by a Plasma}", + volume = 259, + year = 1960, + doi = {10.1098/rspa.1960.0212}, +} + +@techreport{Roennmark_1982, + author = {{Roennmark}, K.}, + month = jun, + title = "{Waves in homogeneous, anisotropic multicomponent plasmas (WHAMP)}", + year = 1982, +} + +@article{Dawson_1961, + author = "Dawson, John M.", + journal = "Physics of Fluids", + number = "7", + pages = "869--874", + title = "On Landau Damping", + volume = "4", + year = "1961", + doi = "http://dx.doi.org/10.1063/1.1706419", +} + +@article{Manfredi_1997, + author = {Manfredi, Giovanni}, + journal = {Physical Review Letters}, + month = {Oct}, + pages = {2815--2818}, + publisher = {American Physical Society}, + title = {Long-Time Behavior of Nonlinear Landau Damping}, + volume = {79}, + year = {1997}, + doi = {10.1103/PhysRevLett.79.2815}, + issue = {15}, + numpages = {4}, + url = {http://link.aps.org/doi/10.1103/PhysRevLett.79.2815} +} + +@article{Dimits_2000, + author = "Dimits, A. M. and Bateman, G. and Beer, M. A. and Cohen, B. I. and Dorland, W. and Hammett, G. W. and Kim, C. and Kinsey, J. E. and Kotschenreuther, M. and Kritz, A. H. and Lao, L. L. and Mandrekas, J. and Nevins, W. M. and Parker, S. E. and Redd, A. J. and Shumaker, D. E. and Sydora, R. and Weiland, J.", + number = "3", + journal = "Physics of Plasmas", + pages = "969--983", + title = "Comparisons and physics basis of tokamak transport models and turbulence simulations", + volume = "7", + year = "2000", + doi = "http://dx.doi.org/10.1063/1.873896", +} + +@article{Falchetto_2008, + author = {G L Falchetto and B D Scott and P Angelino and A Bottino and T Dannert and V Grandgirard and S Janhunen and F Jenko and S Jolliet and A^M +Kndl and B F McMillan and V Naulin and A H Nielsen and M Ottaviani and A G Peeters and M J Pueschel and D Reiser and T T Ribeiro and M^M +Rmanelli}, + journal = {Plasma Physics and Controlled Fusion}, + number = {12}, + pages = {124015}, + title = {The European turbulence code benchmarking effort: turbulence driven by thermal gradients in magnetically confined plasmas}, + volume = {50}, + year = {2008}, +} + +@article{Delamere_2011, + author = {Delamere, P. A. and Wilson, R. J. and Masters, A.}, + doi = {10.1029/2011JA016724}, + journal = {Journal of Geophysical Research: Space Physics}, + number = {A10}, + title = {Kelvin-Helmholtz instability at Saturn's magnetopause: Hybrid simulations}, + volume = {116}, + year = {2011} +} + +@article{Amano_2014, + author = "Takanobu Amano and Katsuaki Higashimori and Keisuke Shirakawa", + doi = "https://doi.org/10.1016/j.jcp.2014.06.048", + issn = "0021-9991", + journal = "Journal of Computational Physics", + pages = "197 - 212", + title = "A robust method for handling low density regions in hybrid simulations for collisionless plasmas", + volume = "275", + year = "2014", +} +@article{Munoz_2018, + author = "P.A. Muñoz and N. Jain and P. Kilian and J. Büchner", + doi = "https://doi.org/10.1016/j.cpc.2017.10.012", + issn = "0010-4655", + journal = "Computer Physics Communications", + pages = "245 - 264", + title = "A new hybrid code (CHIEF) implementing the inertial electron fluid equation without approximation", + volume = "224", + year = "2018", +} + +@article{Kilian_2017, + author = {Kilian, Patrick and Muñoz, Patricio A. and Schreiner, Cedric and Spanier, Felix}, + doi = {10.1017/S0022377817000149}, + journal = {Journal of Plasma Physics}, + number = {1}, + pages = {707830101}, + publisher = {Cambridge University Press}, + title = {Plasma waves as a benchmark problem}, + volume = {83}, + year = {2017}, +} + +@book{Akhiezer_1975, + author = "A.I. Akhiezer and I.A. Akhiezer and R.V. Polovin and A.G. Sitenko and K.N. Stepanov", + doi = "https://doi.org/10.1016/B978-0-08-017783-0.50007-5", + issn = "00748064", + publisher = "Pergamon", + series = "International Series in Natural Philosophy", + title = "Plasma Electrodynamics", + volume = "68", + year = "1975", +} + +@article{Yoon_2017, + author = {Yoon,Peter H. and López,Rodrigo A. }, + doi = {10.1063/1.4976321}, + journal = {Physics of Plasmas}, + number = {2}, + pages = {022117}, + title = {Spontaneous emission of electromagnetic fluctuations in magnetized plasmas}, + volume = {24}, + year = {2017}, +} + +@article{Munoz_2015, + author = {Muñoz,P. A. and Told,D. and Kilian,P. and Büchner,J. and Jenko,F. }, + doi = {10.1063/1.4928381}, + journal = {Physics of Plasmas}, + number = {8}, + pages = {082110}, + title = {Gyrokinetic and kinetic particle-in-cell simulations of guide-field reconnection. I. Macroscopic effects of the electron flows}, + volume = {22}, + year = {2015}, +} + +@article{Xie_2016, + author = {Huasheng Xie and Yong Xiao}, + doi = {10.1088/1009-0630/18/2/01}, + journal = {Plasma Science and Technology}, + month = {feb}, + number = {2}, + pages = {97--107}, + publisher = {{IOP} Publishing}, + title = {{PDRK}: A General Kinetic Dispersion Relation Solver for Magnetized Plasma}, + volume = {18}, + year = 2016, +} + +@article{Riva_2017, + author = {Riva,Fabio and Beadle,Carrie F. and Ricci,Paolo }, + doi = {10.1063/1.4977917}, + journal = {Physics of Plasmas}, + number = {5}, + pages = {055703}, + title = {A methodology for the rigorous verification of Particle-in-Cell simulations}, + volume = {24}, + year = {2017}, +} + +@article{Shalaby_2017, + author = {Mohamad Shalaby and Avery E. Broderick and Philip Chang and Christoph Pfrommer and Astrid Lamberts and Ewald Puchwein}, + doi = {10.3847/1538-4357/aa6d13}, + journal = {The Astrophysical Journal}, + month = {may}, + number = {1}, + pages = {52}, + publisher = {American Astronomical Society}, + title = {{SHARP}: A Spatially Higher-order, Relativistic Particle-in-cell Code}, + volume = {841}, + year = 2017, +}