diff --git a/nummeth-ws22/fig_chapter3/2galaxies.png b/nummeth-ws22/fig_chapter3/2galaxies.png new file mode 100644 index 0000000..d326044 Binary files /dev/null and b/nummeth-ws22/fig_chapter3/2galaxies.png differ diff --git a/nummeth-ws22/fig_chapter3/2galaxies_tree.png b/nummeth-ws22/fig_chapter3/2galaxies_tree.png new file mode 100644 index 0000000..ea959a9 Binary files /dev/null and b/nummeth-ws22/fig_chapter3/2galaxies_tree.png differ diff --git a/nummeth-ws22/fig_chapter3/quadtree.png b/nummeth-ws22/fig_chapter3/quadtree.png new file mode 100644 index 0000000..abea4b2 Binary files /dev/null and b/nummeth-ws22/fig_chapter3/quadtree.png differ diff --git a/nummeth-ws22/fig_chapter4/boris_push.pdf b/nummeth-ws22/fig_chapter4/boris_push.pdf new file mode 100644 index 0000000..c14877b Binary files /dev/null and b/nummeth-ws22/fig_chapter4/boris_push.pdf differ diff --git a/nummeth-ws22/fig_chapter4/boris_push.svg b/nummeth-ws22/fig_chapter4/boris_push.svg new file mode 100644 index 0000000..b135d7e --- /dev/null +++ b/nummeth-ws22/fig_chapter4/boris_push.svg @@ -0,0 +1,3214 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + B + + + + + + E + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/nummeth-ws22/fig_chapter4/currentassignment_esirkepov.pdf b/nummeth-ws22/fig_chapter4/currentassignment_esirkepov.pdf new file mode 100644 index 0000000..418ad81 Binary files /dev/null and b/nummeth-ws22/fig_chapter4/currentassignment_esirkepov.pdf differ diff --git a/nummeth-ws22/fig_chapter4/currentassignment_naive.pdf b/nummeth-ws22/fig_chapter4/currentassignment_naive.pdf new file mode 100644 index 0000000..8c0c2d1 Binary files /dev/null and b/nummeth-ws22/fig_chapter4/currentassignment_naive.pdf differ diff --git a/nummeth-ws22/fig_chapter4/currentassignment_umeda.pdf b/nummeth-ws22/fig_chapter4/currentassignment_umeda.pdf new file mode 100644 index 0000000..719e2fe Binary files /dev/null and b/nummeth-ws22/fig_chapter4/currentassignment_umeda.pdf differ diff --git a/nummeth-ws22/fig_chapter4/formfaktor_CIC_S.png b/nummeth-ws22/fig_chapter4/formfaktor_CIC_S.png new file mode 100644 index 0000000..2618a06 Binary files /dev/null and b/nummeth-ws22/fig_chapter4/formfaktor_CIC_S.png differ diff --git a/nummeth-ws22/fig_chapter4/formfaktor_CIC_density.png b/nummeth-ws22/fig_chapter4/formfaktor_CIC_density.png new file mode 100644 index 0000000..ffbe09d Binary files /dev/null and b/nummeth-ws22/fig_chapter4/formfaktor_CIC_density.png differ diff --git a/nummeth-ws22/fig_chapter4/formfaktor_PQS_S.png b/nummeth-ws22/fig_chapter4/formfaktor_PQS_S.png new file mode 100644 index 0000000..baeb798 Binary files /dev/null and b/nummeth-ws22/fig_chapter4/formfaktor_PQS_S.png differ diff --git a/nummeth-ws22/fig_chapter4/formfaktor_PQS_density.png b/nummeth-ws22/fig_chapter4/formfaktor_PQS_density.png new file mode 100644 index 0000000..3df4b36 Binary files /dev/null and b/nummeth-ws22/fig_chapter4/formfaktor_PQS_density.png differ diff --git a/nummeth-ws22/fig_chapter4/formfaktor_TSC_S.png b/nummeth-ws22/fig_chapter4/formfaktor_TSC_S.png new file mode 100644 index 0000000..6b443ac Binary files /dev/null and b/nummeth-ws22/fig_chapter4/formfaktor_TSC_S.png differ diff --git a/nummeth-ws22/fig_chapter4/formfaktor_TSC_density.png b/nummeth-ws22/fig_chapter4/formfaktor_TSC_density.png new file mode 100644 index 0000000..beed029 Binary files /dev/null and b/nummeth-ws22/fig_chapter4/formfaktor_TSC_density.png differ diff --git a/nummeth-ws22/fig_chapter4/interpolation.png b/nummeth-ws22/fig_chapter4/interpolation.png new file mode 100644 index 0000000..ae55ddb Binary files /dev/null and b/nummeth-ws22/fig_chapter4/interpolation.png differ diff --git a/nummeth-ws22/fig_chapter4/interpolation.svg b/nummeth-ws22/fig_chapter4/interpolation.svg new file mode 100644 index 0000000..516d370 --- /dev/null +++ b/nummeth-ws22/fig_chapter4/interpolation.svg @@ -0,0 +1,632 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + x + y + 3 + 4 + 5 + 15 + 16 + 17 + + + + + + Bz + + Bz + + Bz + + Bz + + + + + + + + + diff --git a/nummeth-ws22/fig_chapter4/rotation_m24.png b/nummeth-ws22/fig_chapter4/rotation_m24.png new file mode 100644 index 0000000..a893e66 Binary files /dev/null and b/nummeth-ws22/fig_chapter4/rotation_m24.png differ diff --git a/nummeth-ws22/fig_chapter4/rotation_nsfd.png b/nummeth-ws22/fig_chapter4/rotation_nsfd.png new file mode 100644 index 0000000..b64eebd Binary files /dev/null and b/nummeth-ws22/fig_chapter4/rotation_nsfd.png differ diff --git a/nummeth-ws22/fig_chapter4/rotation_o4.png b/nummeth-ws22/fig_chapter4/rotation_o4.png new file mode 100644 index 0000000..235446b Binary files /dev/null and b/nummeth-ws22/fig_chapter4/rotation_o4.png differ diff --git a/nummeth-ws22/fig_chapter4/rotation_yee.png b/nummeth-ws22/fig_chapter4/rotation_yee.png new file mode 100644 index 0000000..cb6bc94 Binary files /dev/null and b/nummeth-ws22/fig_chapter4/rotation_yee.png differ diff --git a/nummeth-ws22/literatur.bib b/nummeth-ws22/literatur.bib new file mode 100644 index 0000000..ed82aaa --- /dev/null +++ b/nummeth-ws22/literatur.bib @@ -0,0 +1,1795 @@ +@BOOK{Hockney_1981, + author = {{Hockney}, R.~W. and {Eastwood}, J.~W.}, + title = "{Computer Simulation Using Particles}", +booktitle = {Computer Simulation Using Particles, New York: McGraw-Hill, 1981}, +publisher = {McGraw-Hill, New York}, + year = 1981, +} + +@ARTICLE{2014CoPhC.185.1981S, + author = {{Schreiner}, C. and {Spanier}, F.}, + title = "{Wave-particle-interaction in kinetic plasmas}", + journal = {Computer Physics Communications}, +archivePrefix = "arXiv", + eprint = {1404.0499}, + primaryClass = "astro-ph.SR", + keywords = {Energetic particles, Heliosphere, Scattering, Solar wind plasma, Wave-particle-interaction}, + year = 2014, + month = jul, + volume = 185, + pages = {1981-1986}, + doi = {10.1016/j.cpc.2014.03.028}, + adsurl = {http://esoads.eso.org/abs/2014CoPhC.185.1981S}, + adsnote = {Provided by the SAO/NASA Astrophysics Data System} +} + +@ARTICLE{2016ApJ...833..223I, + author = {{Ivascenko}, A. and {Lange}, S. and {Spanier}, F. and {Vainio}, R. + }, + title = "{Determining Pitch-angle Diffusion Coefficients from Test Particle Simulations}", + journal = {\apj}, +archivePrefix = "arXiv", + eprint = {1610.03240}, + primaryClass = "physics.space-ph", + keywords = {diffusion, magnetohydrodynamics: MHD, methods: numerical, scattering, turbulence}, + year = 2016, + month = dec, + volume = 833, + eid = {223}, + pages = {223}, + doi = {10.3847/1538-4357/833/2/223}, + adsurl = {http://esoads.eso.org/abs/2016ApJ...833..223I}, + adsnote = {Provided by the SAO/NASA Astrophysics Data System} +} + +@ARTICLE{2013A&A...553A.129L, + author = {{Lange}, S. and {Spanier}, F. and {Battarbee}, M. and {Vainio}, R. and + {Laitinen}, T.}, + title = "{Particle scattering in turbulent plasmas with amplified wave modes}", + journal = {\aap}, +archivePrefix = "arXiv", + eprint = {1303.7463}, + primaryClass = "astro-ph.SR", + keywords = {Sun: particle emission, magnetohydrodynamics (MHD), Sun: coronal mass ejections (CMEs), turbulence, acceleration of particles}, + year = 2013, + month = may, + volume = 553, + eid = {A129}, + pages = {A129}, + doi = {10.1051/0004-6361/201220804}, + adsurl = {http://esoads.eso.org/abs/2013A%26A...553A.129L}, + adsnote = {Provided by the SAO/NASA Astrophysics Data System} +} + +@ARTICLE{2012ApJ...750..150W, + author = {{Wisniewski}, M. and {Spanier}, F. and {Kissmann}, R.}, + title = "{Diffusion of Energetic Particles in Turbulent Magnetohydrodynamic Plasmas}", + journal = {\apj}, +archivePrefix = "arXiv", + eprint = {1203.0933}, + primaryClass = "astro-ph.HE", + keywords = {cosmic rays, diffusion, plasmas, turbulence}, + year = 2012, + month = may, + volume = 750, + eid = {150}, + pages = {150}, + doi = {10.1088/0004-637X/750/2/150}, + adsurl = {http://esoads.eso.org/abs/2012ApJ...750..150W}, + adsnote = {Provided by the SAO/NASA Astrophysics Data System} +} + +@BOOK{2002cra..book.....S, + author = {{Schlickeiser}, R.}, + title = "{Cosmic Ray Astrophysics}", + keywords = {COSMIC RAY ASTROPHYSICS, PLASMA, cosmic rays, particle astrophysics, plasma waves}, +booktitle = {Cosmic ray astrophysics / Reinhard Schlickeiser, Astronomy and Astrophysics Library; Physics and Astronomy Online Library.~Berlin: Springer.~ISBN 3-540-66465-3, 2002, XV + 519 pp.}, + year = 2002, + adsurl = {http://esoads.eso.org/abs/2002cra..book.....S}, + adsnote = {Provided by the SAO/NASA Astrophysics Data System} +} + +@ARTICLE{1999PhPl....6..751B, + author = {{Biskamp}, D. and {Schwarz}, E. and {Zeiler}, A. and {Celani}, A. and + {Drake}, J.~F.}, + title = "{Electron magnetohydrodynamic turbulence}", + journal = {Physics of Plasmas}, + keywords = {Plasma dynamics and flow, Plasma turbulence, Transport properties, Elementary processes in plasmas}, + year = 1999, + month = mar, + volume = 6, + pages = {751-758}, + doi = {10.1063/1.873312}, + adsurl = {http://esoads.eso.org/abs/1999PhPl....6..751B}, + adsnote = {Provided by the SAO/NASA Astrophysics Data System} +} + + +@ARTICLE{2006ApJ...644..631F, + author = {{Fisk}, L.~A. and {Gloeckler}, G. and {Zurbuchen}, T.~H.}, + title = "{Acceleration of Low-Energy Ions at the Termination Shock of the Solar Wind}", + journal = {\apj}, + keywords = {Acceleration of Particles, Interplanetary Medium, Shock Waves}, + year = 2006, + month = jun, + volume = 644, + pages = {631-637}, + doi = {10.1086/503535}, + adsurl = {http://esoads.eso.org/abs/2006ApJ...644..631F}, + adsnote = {Provided by the SAO/NASA Astrophysics Data System} +} + + +@ARTICLE{2017JPlPh..83b7002C, + author = {{Cerri}, S.~S. and {Franci}, L. and {Califano}, F. and {Landi}, S. and + {Hellinger}, P.}, + title = "{Plasma turbulence at ion scales: a comparison between particle in cell and Eulerian hybrid-kinetic approaches}", + journal = {Journal of Plasma Physics}, +archivePrefix = "arXiv", + eprint = {1703.02443}, + primaryClass = "physics.plasm-ph", + keywords = {astrophysical plasmas, magnetized plasmas, space plasma physics,}, + year = 2017, + month = apr, + volume = 83, + number = 2, + eid = {705830202}, + pages = {705830202}, + doi = {10.1017/S0022377817000265}, + adsurl = {http://esoads.eso.org/abs/2017JPlPh..83b7002C}, + adsnote = {Provided by the SAO/NASA Astrophysics Data System} +} + +@ARTICLE{2017ApJ...847...28G, + author = {{Gro{\v s}elj}, D. and {Cerri}, S.~S. and {Ba{\~n}{\'o}n Navarro}, A. and + {Willmott}, C. and {Told}, D. and {Loureiro}, N.~F. and {Califano}, F. and + {Jenko}, F.}, + title = "{Fully Kinetic versus Reduced-kinetic Modeling of Collisionless Plasma Turbulence}", + journal = {\apj}, +archivePrefix = "arXiv", + eprint = {1706.02652}, + primaryClass = "physics.plasm-ph", + keywords = {plasmas, solar wind, turbulence}, + year = 2017, + month = sep, + volume = 847, + eid = {28}, + pages = {28}, + doi = {10.3847/1538-4357/aa894d}, + adsurl = {http://esoads.eso.org/abs/2017ApJ...847...28G}, + adsnote = {Provided by the SAO/NASA Astrophysics Data System} +} + +@ARTICLE{2017PhRvL.118e5103Z, + author = {{Zhdankin}, V. and {Werner}, G.~R. and {Uzdensky}, D.~A. and + {Begelman}, M.~C.}, + title = "{Kinetic Turbulence in Relativistic Plasma: From Thermal Bath to Nonthermal Continuum}", + journal = {Physical Review Letters}, +archivePrefix = "arXiv", + eprint = {1609.04851}, + primaryClass = "physics.plasm-ph", + year = 2017, + month = feb, + volume = 118, + number = 5, + eid = {055103}, + pages = {055103}, + doi = {10.1103/PhysRevLett.118.055103}, + adsurl = {http://esoads.eso.org/abs/2017PhRvL.118e5103Z}, + adsnote = {Provided by the SAO/NASA Astrophysics Data System} +} + + +@ARTICLE{2018arXiv180804430C, + author = {{Chen}, L.~E. and {Bott}, A.~F.~A. and {Tzeferacos}, P. and + {Rigby}, A. and {Bell}, A. and {Bingham}, R. and {Graziani}, C. and + {Katz}, J. and {Koenig}, M. and {Li}, C.~K. and {Petrasso}, R. and + {Park}, H.-S. and {Ross}, J.~S. and {Ryu}, D. and {Ryutov}, D. and + {White}, T.~G. and {Reville}, B. and {Matthews}, J. and {Meinecke}, J. and + {Miniati}, F. and {Zweibel}, E.~G. and {Sarkar}, S. and {Schekochihin}, A.~A. and + {Lamb}, D.~Q. and {Froula}, D.~H. and {Gregori}, G.}, + title = "{Stochastic transport of high-energy particles through a turbulent plasma}", + journal = {arXiv e-prints}, +archivePrefix = "arXiv", + eprint = {1808.04430}, + primaryClass = "physics.plasm-ph", + keywords = {Physics - Plasma Physics, Astrophysics - Astrophysics of Galaxies, Astrophysics - High Energy Astrophysical Phenomena}, + year = 2018, + month = aug, + adsurl = {http://esoads.eso.org/abs/2018arXiv180804430C}, + adsnote = {Provided by the SAO/NASA Astrophysics Data System} +} + +@ARTICLE{2018PhRvL.121y5101C, + author = {{Comisso}, L. and {Sironi}, L.}, + title = "{Particle Acceleration in Relativistic Plasma Turbulence}", + journal = {Physical Review Letters}, +archivePrefix = "arXiv", + eprint = {1809.01168}, + primaryClass = "astro-ph.HE", + year = 2018, + month = dec, + volume = 121, + number = 25, + eid = {255101}, + pages = {255101}, + doi = {10.1103/PhysRevLett.121.255101}, + adsurl = {http://esoads.eso.org/abs/2018PhRvL.121y5101C}, + adsnote = {Provided by the SAO/NASA Astrophysics Data System} +} + + +@ARTICLE{2019PhPl...26a2306G, + author = {{Gonz{\'a}lez}, C.~A. and {Parashar}, T.~N. and {Gomez}, D. and + {Matthaeus}, W.~H. and {Dmitruk}, P.}, + title = "{Turbulent electromagnetic fields at sub-proton scales: Two-fluid and full-kinetic plasma simulations}", + journal = {Physics of Plasmas}, +archivePrefix = "arXiv", + eprint = {1809.00985}, + primaryClass = "physics.plasm-ph", + year = 2019, + month = jan, + volume = 26, + number = 1, + eid = {012306}, + pages = {012306}, + doi = {10.1063/1.5054110}, + adsurl = {http://esoads.eso.org/abs/2019PhPl...26a2306G}, + adsnote = {Provided by the SAO/NASA Astrophysics Data System} +} + +@ARTICLE{2018ApJ...858L..19G, + author = {{Grete}, P. and {O'Shea}, B.~W. and {Beckwith}, K.}, + title = "{As a Matter of Force{\mdash}Systematic Biases in Idealized Turbulence Simulations}", + journal = {\apjl}, +archivePrefix = "arXiv", + eprint = {1803.05481}, + primaryClass = "physics.flu-dyn", + keywords = {magnetohydrodynamics: MHD, methods: numerical, turbulence}, + year = 2018, + month = may, + volume = 858, + eid = {L19}, + pages = {L19}, + doi = {10.3847/2041-8213/aac0f5}, + adsurl = {http://esoads.eso.org/abs/2018ApJ...858L..19G}, + adsnote = {Provided by the SAO/NASA Astrophysics Data System} +} + +@ARTICLE{2018arXiv180605741G, + author = {{Groselj}, D. and {Chen}, C.~H.~K. and {Mallet}, A. and {Samtaney}, R. and + {Schneider}, K. and {Jenko}, F.}, + title = "{Kinetic Turbulence in Astrophysical Plasmas: Waves and/or Structures?}", + journal = {arXiv e-prints}, +archivePrefix = "arXiv", + eprint = {1806.05741}, + primaryClass = "physics.plasm-ph", + keywords = {Physics - Plasma Physics, Astrophysics - Solar and Stellar Astrophysics, Physics - Space Physics}, + year = 2018, + month = jun, + adsurl = {http://esoads.eso.org/abs/2018arXiv180605741G}, + adsnote = {Provided by the SAO/NASA Astrophysics Data System} +} + + +@ARTICLE{2019ApJ...870...52P, + author = {{Papini}, E. and {Franci}, L. and {Landi}, S. and {Verdini}, A. and + {Matteini}, L. and {Hellinger}, P.}, + title = "{Can Hall Magnetohydrodynamics Explain Plasma Turbulence at Sub-ion Scales?}", + journal = {\apj}, +archivePrefix = "arXiv", + eprint = {1810.02210}, + primaryClass = "physics.plasm-ph", + keywords = {magnetic reconnection, plasmas, solar wind, turbulence }, + year = 2019, + month = jan, + volume = 870, + eid = {52}, + pages = {52}, + doi = {10.3847/1538-4357/aaf003}, + adsurl = {http://esoads.eso.org/abs/2019ApJ...870...52P}, + adsnote = {Provided by the SAO/NASA Astrophysics Data System} +} + +@ARTICLE{2018ApJ...864L..21P, + author = {{Parashar}, T.~N. and {Matthaeus}, W.~H. and {Shay}, M.~A.}, + title = "{Dependence of Kinetic Plasma Turbulence on Plasma {$\beta$}}", + journal = {\apjl}, +archivePrefix = "arXiv", + eprint = {1807.11371}, + primaryClass = "physics.space-ph", + keywords = {plasmas, solar wind, turbulence }, + year = 2018, + month = sep, + volume = 864, + eid = {L21}, + pages = {L21}, + doi = {10.3847/2041-8213/aadb8b}, + adsurl = {http://esoads.eso.org/abs/2018ApJ...864L..21P}, + adsnote = {Provided by the SAO/NASA Astrophysics Data System} +} + +@article{Yee_1966, + author = {Kane Yee}, + journal = {Antennas and Propagation, IEEE Transactions on}, + month = {May}, + number = 3, + pages = { 302-307}, + title = {Numerical solution of inital boundary value problems involving Maxwell's equations in isotropic media}, + volume = 14, + year = 1966, + issn = {0018-926X}, +} + +@article{Friedman_1990, + author = "Alex Friedman", + journal = "Journal of Computational Physics", + number = "2", + pages = "292--312", + title = "A second-order implicit particle mover with adjustable damping", + volume = "90", + year = "1990", + doi = "10.1016/0021-9991(90)90168-Z", + issn = "0021-9991", +} + +@article{Hadi_1997, + author = {Hadi, M.F. and Piket-May, M.}, + journal = {Antennas and Propagation, IEEE Transactions on}, + month = {Feb}, + number = {2}, + pages = {254-264}, + title = {A modified FDTD (2, 4) scheme for modeling electrically large structures with high-phase accuracy}, + volume = {45}, + year = {1997}, + doi = {10.1109/8.560344}, + issn = {0018-926X}, +} + +@article{Greenwood_2004, + author = "Andrew D. Greenwood and Keith L. Cartwright and John W. Luginsland and Ernest A. Baca", + journal = "Journal of Computational Physics", + number = "2", + pages = "665 -- 684", + title = "On the elimination of numerical Cerenkov radiation in PIC simulations", + volume = "201", + year = "2004", + doi = "10.1016/j.jcp.2004.06.021", + issn = "0021-9991", +} + +@article{Cole_2002, + author = {Cole, J.B.}, + journal = {Antennas and Propagation, IEEE Transactions on}, + number = {9}, + pages = {1185-1191}, + title = {High-accuracy Yee algorithm based on nonstandard finite differences: new developments and verifications}, + volume = {50}, + year = {2002}, + doi = {10.1109/TAP.2002.801268}, + ISSN = {0018-926X}, +} + +@inproceedings{Karkkainen_2006, + address = {Chamonix, France}, + author = {Kärkkäinen, Mikko and Gjonaj, Erion and Lau, Thomas and Weiland, Thomas}, + booktitle = {Proceedings of ICAP 2006}, + pages = 35, + publisher = {Joint Accelerator Conferences Website}, + title = {Low-Dispersion Wake Field Calculation Tools}, + volume = 1, + year = 2006, +} + +@article{Vay_2011, + author = {Vay, J.-L. and Geddes, C.G.R. and Cormier-Michel, E. and Grote, D.P.}, + journal = {Journal of Computational Physics}, + number = 15, + pages = {5908 - 5929}, + title = {Numerical methods for instability mitigation in the modeling of laser wakefield accelerators in a Lorentz-boosted frame}, + volume = 230, + year = 2011, + doi = {10.1016/j.jcp.2011.04.003}, + issn = {0021-9991}, +} + +@article{Shlager_1993, + author = {Shlager, K.~L. and Maloney, J.~G. and Ray, S.~L. and Peterson, A.~F.}, + journal = {IEEE Transactions on Antennas and Propagation}, + month = {Dec.}, + publisher = {IEEE}, + title = {Relative accuracy of several finite-difference time-domain methods in two and three dimensions}, + volume = {41}, + year = {1993}, + doi = {10.1109/8.273296}, + issue = {12}, + page = {1732--1737}, +} + +@article{Garcia_1996, + author = {Garcia, S.G. and Hung-Bao, T.M. and Martin, R.G. and Olmedo, B.G.}, + journal = {IEEE Transactions on Microwave Theory and Techniques}, + month = {December}, + note = {0018-9480(96)08486-4}, + number = {12}, + pages = {2195 -- 2206}, + title = {On the Application of Finite Methods in Time Domain to Anisotropic Dielectric Waveguides}, + volume = {44}, + year = {1996}, + doi = {10.1109/22.556447}, + issn = {0018-9480}, +} + +@article{Finkelstein_2006, + author = "Bezalel Finkelstein and Raphael Kastner", + journal = "Journal of Computational Physics ", + number = "1", + pages = "422--438", + title = "Finite difference time domain dispersion reduction schemes ", + volume = "221", + year = "2007", + doi = "10.1016/j.jcp.2006.06.016", + issn = "0021--9991", +} + +@article{Yang_2006, + author = {Yang, B. and Balanis, C.~A.}, + journal = {Antennas and Wireless Propagation Letters, IEEE}, + month = {Dec}, + number = {1}, + pages = {450--453}, + title = {Least Square Method to Optimize the Coefficients of Complex Finite-Difference Space Stencils}, + volume = {5}, + year = {2006}, + doi = {10.1109/LAWP.2006.885012}, + ISSN = {1536--1225}, +} + +@article{Hadi_2007, + author = {Hadi, M.~F.}, + journal = {Antennas and Propagation, IEEE Transactions on}, + month = {Aug}, + number = {8}, + pages = {2287--2293}, + title = {A Finite Volumes-Based 3-D Low Dispersion FDTD Algorithm}, + volume = {55}, + year = {2007}, + doi = {10.1109/TAP.2007.901996}, + ISSN = {0018-926X}, +} + +@article{Smith_2012, + author = {Smith, W.~S. and Razmadze, A. and Xuan-Min Shao and Drewniak, J.~L.}, + journal = {Antennas and Propagation, IEEE Transactions on}, + month = {Dec}, + number = {12}, + pages = {5787--5800}, + title = {A Hierarchy of Explicit Low-Dispersion FDTD Methods for Electrically Large Problems}, + volume = {60}, + year = {2012}, + doi = {10.1109/TAP.2012.2209860}, + ISSN = {0018-926X}, +} + +@Article{Meierbachtol_2015, + author = {C. S. {Meierbachtol} and A. D. {Greenwood} and J. P. {Verboncoeur} and B. {Shanker}}, + doi = {10.1109/TPS.2015.2487522}, + journal = {IEEE Transactions on Plasma Science}, + month = {Nov}, + number = {11}, + pages = {3778-3793}, + title = {Conformal Electromagnetic Particle in Cell: A Review}, + volume = {43}, + year = {2015}, + ISSN = {0093-3813}, +} + +@article{Rabina_2014, + author = {R{\"a}bin{\"a}, Jukka}, + journal = {Jyv{\"a}skyl{\"a} studies in computing}, + number = {200}, + publisher = {University of Jyv{\"a}skyl{\"a}}, + title = {On a numerical solution of the Maxwell equations by discrete exterior calculus}, + year = {2014}, +} + +@article{Na_2018, + author = "Dong-Yeop Na and Ben-Hur V. Borges and Fernando L. Teixeira", + doi = "10.1016/j.jcp.2018.09.024", + issn = "0021-9991", + journal = "Journal of Computational Physics", + pages = "249 - 275", + title = "Finite element time-domain body-of-revolution Maxwell solver based on discrete exterior calculus", + volume = "376", + year = "2019", +} + +@article{Godfrey_1974, + author = {Godfrey, Brendan B}, + journal = {Journal of Computational Physics}, + number = {4}, + pages = {504--521}, + publisher = {Elsevier}, + title = {Numerical Cherenkov instabilities in electromagnetic particle codes}, + volume = {15}, + year = {1974}, +} + +@phdthesis{Fang_1989, + address = {Berkely}, + author = {Fang, Jiayuan}, + month = 12, + school = {University pof California}, + title = {Time Domain finite difference computation for Maxwell's equations}, + year = 1989, +} + +@article{Pukhov_1999, + author = {Pukhov, A.}, + journal = {Journal of Plasma Physics}, + number = {3}, + pages = {425–433}, + publisher = {Cambridge University Press}, + title = {Three-dimensional electromagnetic relativistic particle-in-cell code VLPL (Virtual Laser Plasma Lab)}, + volume = {61}, + year = {1999}, +} + +@article{Lehe_2013, + author = {Lehe, R. and Lifschitz, A. and Thaury, C. and Malka, V. and Davoine, X.}, + doi = {10.1103/PhysRevSTAB.16.021301}, + issue = {2}, + journal = {Phys. Rev. ST Accel. Beams}, + month = {Feb}, + pages = {021301}, + publisher = {American Physical Society}, + title = {Numerical growth of emittance in simulations of laser-wakefield acceleration}, + volume = {16}, + year = {2013}, +} + +@article{Blinne_2018, + author = "Alexander Blinne and David Schinkel and Stephan Kuschel and Nina Elkina and Sergey G. Rykovanov and Matt Zepf", + doi = "10.1016/j.cpc.2017.10.010", + issn = "0010-4655", + journal = "Computer Physics Communications", + pages = "273 - 281", + title = "A systematic approach to numerical dispersion in Maxwell solvers", + volume = "224", + year = "2018", +} + +@inproceedings{Haber_1973, + author = {Haber, I and Lee, R and Klein, H and Boris, J}, + booktitle = {Proc. Sixth Conf. Num. Sim. Plasmas, Berkeley, CA}, + pages = {46--48}, + title = {Advances in electromagnetic simulation techniques}, + year = {1973} +} + +@article{Vay_2013, + author = "Jean-Luc Vay and Irving Haber and Brendan B. Godfrey", + doi = "10.1016/j.jcp.2013.03.010", + issn = "0021-9991", + journal = "Journal of Computational Physics", + pages = "260 - 268", + title = "A domain decomposition method for pseudo-spectral electromagnetic simulations of plasmas", + volume = "243", + year = "2013", +} + +@article{Li_2017, + author = "Fei Li and Peicheng Yu and Xinlu Xu and Frederico Fiuza and Viktor K. Decyk and Thamine Dalichaouch and Asher Davidson and Adam Tableman and Weiming An and Frank S. Tsung and Ricardo A. Fonseca and Wei Lu and Warren B. Mori", + doi = "10.1016/j.cpc.2017.01.001", + issn = "0010-4655", + journal = "Computer Physics Communications", + pages = "6 - 17", + title = "Controlling the numerical Cerenkov instability in PIC simulations using a customized finite difference Maxwell solver and a local FFT based current correction", + volume = "214", + year = "2017", +} + +@article{Jalas_2017, + author = {Jalas,S. and Dornmair,I. and Lehe,R. and Vincenti,H. and Vay,J.-L. and Kirchen,M. and Maier,A. R. }, + doi = {10.1063/1.4978569}, + journal = {Physics of Plasmas}, + number = {3}, + pages = {033115}, + title = {Accurate modeling of plasma acceleration with arbitrary order pseudo-spectral particle-in-cell methods}, + volume = {24}, + year = {2017}, +} + +@article{Yu_2016, + author = "Peicheng Yu and Xinlu Xu and Asher Davidson and Adam Tableman and Thamine Dalichaouch and Fei Li and Michael D. Meyers and Weiming An and Frank S. Tsung and Viktor K. Decyk and Frederico Fiuza and Jorge Vieira and Ricardo A. Fonseca and Wei Lu and Luis O. Silva and Warren B. Mori", + doi = "10.1016/j.jcp.2016.04.014", + issn = "0021-9991", + journal = "Journal of Computational Physics", + pages = "747 - 759", + title = "Enabling Lorentz boosted frame particle-in-cell simulations of laser wakefield acceleration in quasi-3D geometry", + volume = "316", + year = "2016", +} + +@article{Hockney_1966, + author = {R. W. Hockney}, + journal = {Physics of Fluids}, + number = {9}, + pages = {1826--1835}, + publisher = {American Institute of Physics}, + title = {Computer Experiment of Anomalous Diffusion}, + volume = {9}, + year = {1966}, + doi = {10.1063/1.1761939}, +} + +@article{Cohen_1989, + author = "Bruce I. Cohen and A. Bruce Langdon and Dennis W. Hewett and Richard J. Procassini", +journal = "Journal of Computational Physics", + number = "1", + pages = "151 - 168", + title = "Performance and optimization of direct implicit particle simulation", + volume = "81", + year = "1989", + doi = "10.1016/0021-9991(89)90068-5", + issn = "0021-9991", +} + +@book{Birdsall_2005, + author = {C. K. {Birdsall} and A. B. {Langdon}}, + edition = {First}, + month = oct, + publisher = {New York: Taylor and Francis}, + title = {Plasma physics via computer simulation}, + year = 2005, + isbn = {0750310251}, +} + +@article{Darwin_1920, + author = {Darwin, Charles~Galton}, + journal = {Philosophical Magazine Series 5}, + title = {The dynamical motions of charged particles}, + year = {1920}, + volume = {39}, + doi = {10.1080/14786440508636066}, + issue = {233}, + page = {537--551}, +} + +@article{Krause_2007, + author = {Todd B. Krause and A. Apte and P. J. Morrison}, + journal = {Physics of Plasmas}, + number = {10}, + pages = {102112}, + publisher = {AIP}, + title = {A unified approach to the Darwin approximation}, + volume = {14}, + year = {2007}, + doi = {10.1063/1.2799346}, + eid = {102112}, +} + +@article{Eremin_2013, + author = {Denis Eremin and Torben Hemke and Ralf Peter Brinkmann and Thomas Mussenbrock}, + journal = {Journal of Physics D: Applied Physics}, + number = {8}, + pages = {084017}, + title = {Simulations of electromagnetic effects in high-frequency capacitively coupled discharges using the Darwin approximation}, + volume = {46}, + year = {2013}, +} + +@article{Besse_2007, + author = {Besse, Nicolas and Mauser, Norbert and Sonnendrücker, Eric}, + journal = {International Journal of Applied Mathematics and Computer Science}, + month = oct, + number = 3, + pages = {361--374}, + title = {Numerical Approximation of Self-Consistent Vlasov Models for Low-Frequency Electromagnetic Phenomena}, + volume = 17, + year = 2007, + doi = {10.2478/v10006-007-0030-3}, +} + +@article{Gitomer_1972, + author = {Gitomer,S. J. }, + doi = {10.1063/1.1693791}, + journal = {The Physics of Fluids}, + number = {10}, + pages = {1861-1863}, + title = {Numerical Simulation of the Harris Instability with Collisions}, + volume = {15}, + year = {1972}, +} + +@article{Xie_2014, + author = {Huasheng Xie and Jia Zhu and Zhiwei Ma}, + doi = {10.1088/0031-8949/89/10/105602}, + journal = {Physica Scripta}, + month = {aug}, + number = {10}, + pages = {105602}, + publisher = {{IOP} Publishing}, + title = {Darwin model in plasma physics revisited}, + volume = {89}, + year = 2014, +} + +@article{Birdsall_1968, + author = "Birdsall, Charles~K. and Fuss, Dieter", + journal = "Journal of Computational Physics", + number = "2", + pages = "141 - 148", + title = "Clouds-in-Clouds, Clouds-in-Cells Physics for Many-Body Plasma Simulation", + volume = "135", + year = "1968", + doi = "10.1006/jcph.1997.5723", + issn = "0021-9991", +} + +@article{Shadwick_2009, + author = {B. A. Shadwick and C. B. Schroeder}, + editor = {Carl B. Schroeder and Wim Leemans and Eric Esarey}, + title = {Physical Fidelity in Particle-In-Cell Modeling of Small Debye-Length Plasmas}, + publisher = {AIP}, + year = {2009}, + journal = {AIP Conference Proceedings}, + volume = {1086}, + number = {1}, + pages = {321-327}, + doi = {10.1063/1.3080926}, +} + +@article{Kruer_1973, + author = "W.L Kruer and J.M Dawson and B Rosen", + journal = "Journal of Computational Physics", + number = "1", + pages = "114 - 129", + title = "The dipole expansion method for plasma simulation", + volume = "13", + year = "1973", + doi = "10.1016/0021-9991(73)90129-0", + issn = "0021-9991", +} + +@article{Ruyten_1993, + author = "Wilhelmus M. Ruyten", + journal = "Journal of Computational Physics", + note = "", + number = "2", + pages = "224 -- 232", + title = "Density-Conserving Shape Factors for Particle Simulations in Cylindrical and Spherical Coordinates", + volume = "105", + year = "1993", + doi = "10.1006/jcph.1993.1070", + issn = "0021-9991", +} + +@article{Abe_1986, + author = "Hirotade Abe and Natsuhiko Sakairi and Ryohei Itatani and Hideo Okuda", + journal = "Journal of Computational Physics ", + number = "2", + pages = "247--267", + title = "High-order spline interpolations in the particle simulation ", + volume = "63", + year = "1986", + doi = "10.1016/0021-9991(86)90193-2", + issn = "0021--9991", +} + +@article{Munoz_2014, + author = {{Mu{\~n}oz}, P.~A. and {Kilian}, P. and {B{\"u}chner}, J.}, + journal = {Physics of Plasmas}, + month = nov, + number = 11, + pages = {112106}, + title = "{Instabilities of collisionless current sheets revisited: The role of anisotropic heating}", + volume = 21, + year = 2014, + doi = {10.1063/1.4901033}, +} + +@article{Langdon_1970, + author = "A.Bruce Langdon", + doi = "10.1016/0021-9991(70)90024-0", + issn = "0021-9991", + journal = "Journal of Computational Physics", + number = "2", + pages = "247 - 267", + title = "Effects of the spatial grid in simulation plasmas", + volume = "6", + year = "1970", +} + +@article{Horky_2017, + author = {Hork\'y, M. and Miloch, W. J. and Delong, V. A.}, + doi = {10.1103/PhysRevE.95.043302}, + issue = {4}, + journal = {Phys. Rev. E}, + month = {Apr}, + pages = {043302}, + publisher = {American Physical Society}, + title = {Numerical heating of electrons in particle-in-cell simulations of fully magnetized plasmas}, + volume = {95}, + year = {2017}, +} + +@article{Eastwood_1974, + author = "J.W Eastwood and R.W Hockney", + doi = "10.1016/0021-9991(74)90044-8", + issn = "0021-9991", + journal = "Journal of Computational Physics", + number = "4", + pages = "342 - 359", + title = "Shaping the force law in two-dimensional particle-mesh models", + volume = "16", + year = "1974", +} + +@article{Matsuda_1975, + author = {Matsuda,Y. and Okuda,H. }, + doi = {10.1063/1.861092}, + journal = {The Physics of Fluids}, + number = {12}, + pages = {1740-1747}, + title = {Collisions in multi‐dimensional plasma simulations}, + volume = {18}, + year = {1975}, +} + +@article{Sokolov_2013, + author = "Igor V. Sokolov", + doi = "10.1016/j.cpc.2012.09.015", + issn = "0010-4655", + journal = "Computer Physics Communications", + number = "2", + pages = "320 - 328", + title = "Alternating-order interpolation in a charge-conserving scheme for particle-in-cell simulations", + volume = "184", + year = "2013", +} + +@article{Bowers_2008, + author = {Bowers,K. J. and Albright,B. J. and Yin,L. and Bergen,B. and Kwan,T. J. T. }, + doi = {10.1063/1.2840133}, + journal = {Physics of Plasmas}, + number = {5}, + pages = {055703}, + title = {Ultrahigh performance three-dimensional electromagnetic relativistic kinetic plasma simulation}, + volume = {15}, + year = {2008}, +} + +@inproceedings{Kilian_2013, + author = {{Kilian}, P. and {Ganse}, U. and {Spanier}, F.}, + booktitle = {Numerical Modeling of Space Plasma Flows (ASTRONUM2012)}, + editor = {{Pogorelov}, N.~V. and {Audit}, E. and {Zank}, G.~P.}, + month = apr, + pages = {208}, + series = {Astronomical Society of the Pacific Conference Series}, + title = "{Different Choices of the Form Factor in Particle-in-Cell Simulations}", + volume = 474, + year = 2013, +} + +@article{Wu_2018, + author = {Wu,Wentao and Qin,Hong }, + doi = {10.1063/1.5038039}, + journal = {Physics of Plasmas}, + number = {10}, + pages = {102107}, + title = {Reducing noise for PIC simulations using kernel density estimation algorithm}, + volume = {25}, + year = {2018}, +} + +@inproceedings{Boris_1970, + address = "Washington DC", + author = "J. P. Boris", + booktitle = "Proceedings of the Fourth Conference on the Numerical Simulation of Plasmas, Washington DC", + editor = "J. Boris and R. Shanny", + pages = "3--67", + publisher = "Naval Research Laboratory", + title = "Relativistic Plasma Simulation---Optimization of a Hybrid Code", + year = "1970", +} + +@article{Vay_2008, + author = {{Vay}, {J.-L.}}, + journal = {Physics of Plasmas}, + month = may, + number = 5, + pages = {056701-+}, + title = {Simulation of beams or plasmas crossing at relativistic velocity}, + volume = 15, + year = 2008, + doi = {10.1063/1.2837054}, +} + +@article{Hyman_1997, + author = {Hyman,Andrew T. }, + doi = {10.1119/1.18529}, + journal = {American Journal of Physics}, + number = {3}, + pages = {195-198}, + title = {Relativistic charged-particle motion in a constant field according to the Lorentz force law}, + volume = {65}, + year = {1997}, +} + +@article{Umeda_2018, + author = "Takayuki Umeda", + doi = "10.1016/j.cpc.2018.03.019", + issn = "0010-4655", + journal = "Computer Physics Communications", + pages = "1 - 4", + title = "A three-step Boris integrator for Lorentz force equation of charged particles", + volume = "228", + year = "2018", +} + +@article{Ripperda_2018, + author = {B. Ripperda and F. Bacchini and J. Teunissen and C. Xia and O. Porth and L. Sironi and G. Lapenta and R. Keppens}, + doi = {10.3847/1538-4365/aab114}, + journal = {The Astrophysical Journal Supplement Series}, + month = {mar}, + number = {1}, + pages = {21}, + publisher = {American Astronomical Society}, + title = {A Comprehensive Comparison of Relativistic Particle Integrators}, + volume = {235}, + year = 2018, +} + +@article{Zenitani_2018, + author = {Zenitani,Seiji and Umeda,Takayuki}, + doi = {10.1063/1.5051077}, + journal = {Physics of Plasmas}, + number = {11}, + pages = {112110}, + title = {On the Boris solver in particle-in-cell simulation}, + volume = {25}, + year = {2018}, +} + +@article{Higuera_2017, + author = {Higuera,A. V. and Cary,J. R. }, + doi = {10.1063/1.4979989}, + journal = {Physics of Plasmas}, + number = {5}, + pages = {052104}, + title = {Structure-preserving second-order integration of relativistic charged particle trajectories in electromagnetic fields}, + volume = {24}, + year = {2017}, +} + +@article{Marder_1987, + author = {{Marder}, B.}, + journal = {Journal of Computational Physics}, + month = jan, + pages = {48}, + title = "{A Method for Incorporating Gauss' Law into Electromagnetic PIC Codes}", + volume = 68, + year = 1987, + doi = {10.1016/0021-9991(87)90043-X}, +} + +@article{Villasenor_1992, + author = "John Villasenor and Oscar Buneman", + doi = "10.1016/0010-4655(92)90169-Y", + journal = "Computer Physics Communications", + number = "2--3", + pages = "306 -- 316", + title = "Rigorous charge conservation for local electromagnetic field solvers", + volume = "69", + year = "1992", + issn = "0010-4655", +} + +@article{Esirkepov_2001, + author = {T. Zh. Esirkepov}, + journal = {Computer Physics Communications}, + number = 2, + pages = {144 - 153}, + title = {Exact charge conservation scheme for Particle-in-Cell simulation with an arbitrary form-factor}, + volume = 135, + year = 2001, + doi = {10.1016/S0010-4655(00)00228-9}, + issn = {0010-4655}, +} + +@article{Umeda_2003, + author = "T Umeda and Y Omura and T Tominaga and H Matsumoto", + journal = "Computer Physics Communications", + note = "", + number = "1", + pages = "73 - 85", + title = "A new charge conservation method in electromagnetic particle-in-cell simulations", + volume = "156", + year = "2003", + doi = "10.1016/S0010-4655(03)00437-5", + issn = "0010-4655", +} + +@article{Moon_2015, + author = "Haksu Moon and Fernando L. Teixeira and Yuri A. Omelchenko", + doi = "10.1016/j.cpc.2015.04.014", + issn = "0010-4655", + journal = "Computer Physics Communications", + pages = "43 - 53", + title = "Exact charge-conserving scatter–gather algorithm for particle-in-cell simulations on unstructured grids: A geometric perspective", + volume = "194", + year = "2015", +} + +@article{Eastwood_1991, + author = "James W. Eastwood", + doi = "10.1016/0010-4655(91)90036-K", + issn = "0010-4655", + journal = "Computer Physics Communications", + number = "2", + pages = "252 - 266", + title = "The virtual particle electromagnetic particle-mesh method", + volume = "64", + year = "1991", +} + +@article{Halton_1964, + author = {Halton, J. H.}, + title = {Algorithm 247: Radical-inverse quasi-random point sequence}, + journal = {Commun. ACM}, + volume = {7}, + number = {12}, + month = dec, + year = {1964}, + pages = {701--702}, + doi = {10.1145/355588.365104}, + publisher = {ACM}, + address = {New York, NY, USA}, + issn = {0001-0782}, +} + +@article{Byers_1970, + author = {Jack A. Byers and Mahesh Grewal}, + journal = {Physics of Fluids}, + number = {7}, + pages = {1819-1830}, + publisher = {AIP}, + title = {Perpendicularly Propagating Plasma Cyclotron Instabilities Simulated with a One-Dimensional Computer Model}, + volume = {13}, + year = {1970}, + doi = {10.1063/1.1693160}, +} + +@article{Melzani_2013, + author = {{Melzani}, Micka{\"e}l and {Winisdoerffer}, Christophe and + {Walder}, Rolf and {Folini}, Doris and {Favre}, Jean M. and + {Krastanov}, Stefan and {Messmer}, Peter}, + doi = {10.1051/0004-6361/201321557}, + journal = {Astronomy and Astrophysics}, + month = "Oct", + pages = {A133}, + title = "{Apar-T: code, validation, and physical interpretation of particle-in-cell results}", + year = "2013", + volume = {558}, +} + +@article{Zenitani_2015, + author = {Zenitani,Seiji}, + doi = {10.1063/1.4919383}, + journal = {Physics of Plasmas}, + number = {4}, + pages = {042116}, + title = {Loading relativistic Maxwell distributions in particle simulations}, + volume = {22}, + year = {2015}, +} + +@article{Cartwright_2000, + author = "K.L. Cartwright and J.P. Verboncoeur and C.K. Birdsall", + journal = "Journal of Computational Physics", + number = "2", + pages = "483--513", + title = "Loading and Injection of Maxwellian Distributions in Particle Simulations ", + volume = "162", + year = "2000", + doi = "10.1006/jcph.2000.6549", + issn = "0021-9991", +} + +@article{Lapenta_1994, + author = {Giovanni Lapenta and Jeremiah U. Brackbill}, + journal = {Journal of Computational Physics }, + number = {1}, + pages = {213 - 227}, + title = {Dynamic and Selective Control of the Number of Particles in Kinetic Plasma Simulations }, + volume = {115}, + year = {1994}, + doi = {10.1006/jcph.1994.1188}, + issn = {0021-9991}, +} + +@article{Shon_2001, + author = "C.H. Shon and H.J. Lee and J.K. Lee", + journal = "Computer Physics Communications ", + number = "3", + pages = "322 - 329", + title = "Method to increase the simulation speed of particle-in-cell (PIC) code ", + volume = "141", + year = "2001", + doi = "10.1016/S0010-4655(01)00417-9", + issn = "0010-4655", +} + +@article{Welch_2007, + author = "D.R. Welch and T.C. Genoni and R.E. Clark and D.V. Rose", + journal = "Journal of Computational Physics ", + number = "1", + pages = "143 - 155", + title = "Adaptive particle management in a particle-in-cell code ", + volume = "227", + year = "2007", + doi = "10.1016/j.jcp.2007.07.015", + issn = "0021-9991", +} + +@article{Faghihi_2017, + author = {{Faghihi}, Danial and {Carey}, Varis and {Michoski}, Craig and + {Hager}, Robert and {Janhunen}, Salomon and {Chang}, Choong-Seock and + {Moser}, Robert}, + title = "{Moment Preserving Constrained Resampling with Applications to Particle-in-Cell Methods}", + journal = {arXiv e-prints}, + keywords = {Physics - Plasma Physics}, + year = "2017", + month = "Feb", + eid = {arXiv:1702.05198}, + pages = {arXiv:1702.05198}, +archivePrefix = {arXiv}, + eprint = {1702.05198}, + primaryClass = {physics.plasm-ph}, +} + +@inproceedings{Martin_2012, + address = {Zaragoza, Spain}, + author = {Martin, {Robert Scott} and Cambier, Jean-Luc}, + booktitle = {28th International Symposium on Rarefied Gas Dynamics}, + month = {9 -- 13 July}, + publisher = {AIP Publishing}, + series = {AIP Conference Proceedings}, + title = {Moment preserving adaptive particle weights using octree velocity distributions for PIC simulations}, + year = {2012}, + doi = {10.1063/1.4769634}, + page = {872--879}, +} + +@article{Vranic_2015, + author = "M. Vranic and T. Grismayer and J.L. Martins and R.A. Fonseca and L.O. Silva", + doi = "10.1016/j.cpc.2015.01.020", + issn = "0010-4655", + journal = "Computer Physics Communications", + pages = "65 - 73", + title = "Particle merging algorithm for PIC codes", + volume = "191", + year = "2015", +} + +@article{Drouin_2018, + author = {{Drouin}, Mathieu}, + title = "{An exact particle splitting algorithm for PIC codes}", + journal = {arXiv e-prints}, + keywords = {Physics - Computational Physics}, + year = "2018", + month = "May", + eid = {arXiv:1805.06540}, + pages = {arXiv:1805.06540}, +archivePrefix = {arXiv}, + eprint = {1805.06540}, + primaryClass = {physics.comp-ph}, +} + +@article{Bruhwiler_2001, + author = {Bruhwiler, David and Giacone, Rodolfo and Cary, John and Verboncoeur, John and Mardahl, Peter and Esarey, Eric and Leemans, W and Shadwick, B}, + journal = {Physical Review Special Topics Accelerators and Beams}, + number = {10}, + pages = {1--13}, + publisher = {American Physical Society}, + title = {Particle-in-cell simulations of plasma accelerators and electron-neutral collisions}, + volume = {4}, + year = {2001}, +} + +@article{Liao_1984, + author = {{Liao}, Z. P. and {Wong}, H. L. and {Yang}, B. P. and {Yuan}, Y. F.}, + journal = "Scienta Sinica (series A)", + pages = "1063 -- 1076", + title = "A transmitting boundary for transient wave analyses", + volume = "17", + year = "1984", +} + +@book{Taflove_2000, + address = {Boston, London}, + author = {{Taflove}, Allan and {Hagness}, Susan C.}, + edition = {2}, + publisher = {Artech House, Inc.}, + title = {Computational Electrodynamics: The Finite-Differences Time-Domain Method}, + year = {2000}, + isbn = {1-58053-076-1}, +} + +@article{Berenger_1994, + author = {Berenger, Jean-Pierre}, + journal = {Journal of Computational Physics}, + number = {2}, + pages = {185--200}, + title = {A Perfectly Matched Layer for the Absorption of Electromagnetic-Waves}, + volume = {114}, + year = {1994}, +} + + +@article{Berenger_2007, + author = {Berenger, Jean-Pierre}, + journal = {Synthesis Lectures on Computational Electromagnetics}, + number = {1}, + pages = {1-117}, + title = {Perfectly Matched Layer (PML) for Computational Electromagnetics}, + volume = {2}, + year = {2007}, + doi = {10.2200/S00030ED1V01Y200605CEM008}, +} + +@article{Daughton_2006, + author = "Daughton, William and Scudder, Jack and Karimabadi, Homa", + journal = "Physics of Plasmas", + number = "7", + title = "Fully kinetic simulations of undriven magnetic reconnection with open boundary conditions", + volume = "13", + year = "2006", + eid = 072101, + doi = "10.1063/1.2218817" +} + +@article{Klimas_2008, + author = {{Klimas}, A. and {Hesse}, M. and {Zenitani}, S.}, + journal = {Physics of Plasmas}, + month = aug, + number = 8, + pages = {082102}, + title = "{Particle-in-cell simulation of collisionless reconnection with open outflow boundaries}", + volume = 15, + year = 2008, + doi = {10.1063/1.2965826}, +} + +@article{Mur_1981, + author = {Mur, Gerrit}, + journal = {IEEE transactions on Electromagnetic Compatibility}, + number = {4}, + pages = {377--382}, + publisher = {IEEE}, + title = {Absorbing boundary conditions for the finite-difference approximation of the time-domain electromagnetic-field equations}, + year = {1981}, +} + +@article{Pasik_1999, + author = "Michael F Pasik and David B Seidel and Raymond W Lemke", + doi = "10.1006/jcph.1998.6107", + issn = "0021-9991", + journal = "Journal of Computational Physics", + number = "1", + pages = "125 - 132", + title = "A Modified Perfectly Matched Layer Implementation for Use in Electromagnetic PIC Codes", + volume = "148", + year = "1999", +} + +@article{Ohtani_2009, + author = {Hiroaki Ohtani and Ritoku Horiuchi}, + doi = {10.1585/pfr.4.024}, + journal = {Plasma and Fusion Research}, + number = { }, + pages = {024-024}, + title = {Open Boundary Condition for Particle Simulation in Magnetic Reconnection Research}, + volume = {4}, + year = {2009}, +} + +@article{Thiele_2016, + author = "Illia Thiele and Stefan Skupin and Rachel Nuter", + doi = "10.1016/j.jcp.2016.06.004", + issn = "0021-9991", + journal = "Journal of Computational Physics", + pages = "1110 - 1119", + title = "Boundary conditions for arbitrarily shaped and tightly focused laser pulses in electromagnetic codes", + volume = "321", + year = "2016", +} + +@Article{Perez_2018, + author = {{P{\'e}rez}, Fr{\'e}d{\'e}ric and {Grech}, Mickael}, + title = "{Oblique-incidence, arbitrary-profile wave injection for electromagnetic simulations}", + journal = {arXiv e-prints}, + keywords = {Physics - Computational Physics}, + year = "2018", + month = "Sep", + eid = {arXiv:1809.04435}, + pages = {arXiv:1809.04435}, +archivePrefix = {arXiv}, + eprint = {1809.04435}, + primaryClass = {physics.comp-ph}, +} + +@article{Kilian_2018, + author = "Patrick Kilian and Felix Spanier", + doi = "10.1016/j.jcp.2017.10.012", + issn = "0021-9991", + journal = "Journal of Computational Physics", + pages = "258 - 263", + title = "Simulating the injection of magnetized plasma without electromagnetic precursor wave", + 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 = "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 = "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 = "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}, +} + +@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 = "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 = "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 = "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 = "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, +} + +@book{Burgess_2015, + author = {Burgess, David and Scholer, Manfred}, + collection = {Cambridge Atmospheric and Space Science Series}, + doi = {10.1017/CBO9781139044097}, + place = {Cambridge}, + publisher = {Cambridge University Press}, + series = {Cambridge Atmospheric and Space Science Series}, + title = {Collisionless Shocks in Space Plasmas: Structure and Accelerated Particles}, + year = {2015}, +} + +@ARTICLE{2017ApJ...848...81S, + author = {{Shalaby}, M. and {Broderick}, A.~E. and {Chang}, P. and {Pfrommer}, C. and + {Lamberts}, A. and {Puchwein}, E.}, + title = "{Importance of Resolving the Spectral Support of Beam-plasma Instabilities in Simulations}", + journal = {\apj}, +archivePrefix = "arXiv", + eprint = {1704.00014}, + primaryClass = "astro-ph.HE", + keywords = {instabilities, methods: numerical, plasmas, relativistic processes}, + year = 2017, + month = oct, + volume = 848, + eid = {81}, + pages = {81}, + doi = {10.3847/1538-4357/aa8b17}, + adsurl = {http://esoads.eso.org/abs/2017ApJ...848...81S}, + adsnote = {Provided by the SAO/NASA Astrophysics Data System} +} + +@ARTICLE{1971PhFl...14..830M, + author = {{Morse}, R.~L. and {Nielson}, C.~W.}, + title = "{Numerical Simulation of the Weibel Instability in One and Two Dimensions}", + journal = {Physics of Fluids}, + year = "1971", + month = "Apr", + volume = {14}, + pages = {830-840}, + doi = {10.1063/1.1693518}, + adsurl = {https://ui.adsabs.harvard.edu/abs/1971PhFl...14..830M}, + adsnote = {Provided by the SAO/NASA Astrophysics Data System} +} + +@ARTICLE{2009ApJ...699..990B, + author = {{Bret}, A.}, + title = "{Weibel, Two-Stream, Filamentation, Oblique, Bell, Buneman...Which One Grows Faster?}", + journal = {\apj}, + keywords = {cosmic rays, gamma rays: bursts, instabilities, shock waves, Astrophysics - High Energy Astrophysical Phenomena, Physics - Plasma Physics}, + year = "2009", + month = "Jul", + volume = {699}, + pages = {990-1003}, + doi = {10.1088/0004-637X/699/2/990}, +archivePrefix = {arXiv}, + eprint = {0903.2658}, + primaryClass = {astro-ph.HE}, + adsurl = {https://ui.adsabs.harvard.edu/abs/2009ApJ...699..990B}, + adsnote = {Provided by the SAO/NASA Astrophysics Data System} +} + +@ARTICLE{2010LPB....28..491B, + author = {{Bret}, Antoine}, + title = "{Collisional and collisionless beam plasma instabilities}", + journal = {Laser and Particle Beams}, + year = "2010", + month = "Sep", + volume = {28}, + pages = {491-495}, + doi = {10.1017/S0263034610000480}, + adsurl = {https://ui.adsabs.harvard.edu/abs/2010LPB....28..491B}, + adsnote = {Provided by the SAO/NASA Astrophysics Data System} +} + +@ARTICLE{2010ApJ...720.1318B, + author = {{Burkart}, Thomas and {Elbracht}, Oliver and {Ganse}, Urs and + {Spanier}, Felix}, + title = "{The Influence of the Mass Ratio on the Acceleration of Particles by Filamentation Instabilities}", + journal = {\apj}, + keywords = {acceleration of particles, galaxies: jets, instabilities, methods: numerical, plasmas, Astrophysics - High Energy Astrophysical Phenomena, Astrophysics - Cosmology and Extragalactic Astrophysics}, + year = "2010", + month = "Sep", + volume = {720}, + pages = {1318-1324}, + doi = {10.1088/0004-637X/720/2/1318}, +archivePrefix = {arXiv}, + eprint = {1007.1876}, + primaryClass = {astro-ph.HE}, + adsurl = {https://ui.adsabs.harvard.edu/abs/2010ApJ...720.1318B}, + adsnote = {Provided by the SAO/NASA Astrophysics Data System} +} + +@ARTICLE{2018PhPl...25f2125M, + author = {{Moreno}, Q. and {Dieckmann}, M.~E. and {Ribeyre}, X. and {Jequier}, S. and + {Tikhonchuk}, V.~T. and {d'Humi{\`e}res}, E.}, + title = "{Impact of the electron to ion mass ratio on unstable systems in particle-in-cell simulations}", + journal = {Physics of Plasmas}, + keywords = {Physics - Plasma Physics}, + year = "2018", + month = "Jun", + volume = {25}, + eid = {062125}, + pages = {062125}, + doi = {10.1063/1.5027913}, +archivePrefix = {arXiv}, + eprint = {1803.02190}, + primaryClass = {physics.plasm-ph}, + adsurl = {https://ui.adsabs.harvard.edu/abs/2018PhPl...25f2125M}, + adsnote = {Provided by the SAO/NASA Astrophysics Data System} +} + +@ARTICLE{2016A&A...585A.132K, + author = {{Kempf}, A. and {Kilian}, P. and {Spanier}, F.}, + title = "{Energy loss in intergalactic pair beams: Particle-in-cell simulation}", + journal = {\aap}, + keywords = {plasmas, galaxies: active, galaxies: jets, quasars: general, gamma rays: general, Astrophysics - High Energy Astrophysical Phenomena, Physics - Plasma Physics}, + year = "2016", + month = "Jan", + volume = {585}, + eid = {A132}, + pages = {A132}, + doi = {10.1051/0004-6361/201527521}, +archivePrefix = {arXiv}, + eprint = {1512.00662}, + primaryClass = {astro-ph.HE}, + adsurl = {https://ui.adsabs.harvard.edu/abs/2016A&A...585A.132K}, + adsnote = {Provided by the SAO/NASA Astrophysics Data System} +} + +@ARTICLE{2010Sci...328...73N, + author = {{Neronov}, Andrii and {Vovk}, Ievgen}, + title = "{Evidence for Strong Extragalactic Magnetic Fields from Fermi Observations of TeV Blazars}", + journal = {Science}, + keywords = {ASTRONOMY, Astrophysics - High Energy Astrophysical Phenomena}, + year = "2010", + month = "Apr", + volume = {328}, + pages = {73}, + doi = {10.1126/science.1184192}, +archivePrefix = {arXiv}, + eprint = {1006.3504}, + primaryClass = {astro-ph.HE}, + adsurl = {https://ui.adsabs.harvard.edu/abs/2010Sci...328...73N}, + adsnote = {Provided by the SAO/NASA Astrophysics Data System} +} + +@ARTICLE{2014ApJ...787...49S, + author = {{Sironi}, Lorenzo and {Giannios}, Dimitrios}, + title = "{Relativistic Pair Beams from TeV Blazars: A Source of Reprocessed GeV Emission rather than Intergalactic Heating}", + journal = {\apj}, + keywords = {gamma rays: general, instabilities, intergalactic medium, plasmas, radiation mechanisms: non-thermal, Astrophysics - High Energy Astrophysical Phenomena, Astrophysics - Cosmology and Nongalactic Astrophysics}, + year = "2014", + month = "May", + volume = {787}, + eid = {49}, + pages = {49}, + doi = {10.1088/0004-637X/787/1/49}, +archivePrefix = {arXiv}, + eprint = {1312.4538}, + primaryClass = {astro-ph.HE}, + adsurl = {https://ui.adsabs.harvard.edu/abs/2014ApJ...787...49S}, + adsnote = {Provided by the SAO/NASA Astrophysics Data System} +} + diff --git a/nummeth-ws22/skript.tex b/nummeth-ws22/skript.tex index f15a291..df2ca3e 100644 --- a/nummeth-ws22/skript.tex +++ b/nummeth-ws22/skript.tex @@ -28,9 +28,9 @@ \sisetup{range-phrase=-} \sisetup{range-units=single} %Literatur -\usepackage{biblatex} +\usepackage{natbib} \usepackage{csquotes}%recommended to ensure that quoted texts are typeset according to the rules of the main language -\bibliography{./literatur.bib} + %Sonstiges %\usepackage{microtype}%bessere abstände zur vermeidung von underfull boxes etc. \usepackage[framemethod=tikz]{mdframed}%merkboxen @@ -1043,20 +1043,1588 @@ The Euler scheme requires very small time steps (this is bad\dots) A first improvement to such a scheme is the so called \emph{Leapfrog}: We define positions at time $t^n, t^{n+1}, t^{n+2},\dots$ and velocities at $t^{n-1/2}, t^{n+1/2}, t^{n+3/2},\dots$ \begin{align} - \vec{r}^n &= \vec{r}^{n-1}+\Delta t \cdot + \vec{r}^n &= \vec{r}^{n-1}+\Delta t \cdot \vec{v}^{n-1/2} \\ + \vec{v}^{n+1/2} &= \vec{v}^{n-1/2} + \Delta t \cdot \vec{a}^n \end{align} +The initial condition is $\vec{v}^{1/2} = \vec{v}^{0} + 1/2 \Delta t \cdot \vec{a}^0$. The shift between position and velocity by a half timestep changes the stability drastically and makes the whole scheme 2nd order. But what does that mean? + +\section{Numerics - the general idea} + +Let us assume the following +\begin{itemize} + \item $u^n$ is the numerical solution of a given problem at time $t^n$ + \item $u_e^n$ is the exact solution of a given problem at time $t^n$ (which is unknown for any interesting problem) + \item $L$ is the operator of a numerical scheme (this is typically a linear operator that yiels $u^{n+1} = L u^n$ +\end{itemize} + +From these definitions we may now derive the following terms (the norm $||\dots||$ is typically the $L_2$ norm, but that does not matter too much) + +\subsection{Consistency and order} + +For a numerical solution we may define +\begin{align} + || u^n - u^n_e|| = \epsilon(\Delta x, \Delta t) = \mathcal{O}((\Delta x)^p, (\Delta t)^q) +\end{align} +In order for a numerical scheme to be \emph{consistent} the numerical solution must converge to the exact solution, when $\Delta x$ and $\Delta t$ go to 0. The constants $p$ and $q$ are called the order of the scheme. + +The \emph{local truncation error} +\begin{align} + LTE = u_e^{n+1} - L u_e^n +\end{align} +is also defined. It is a measure on the amount of deviation one step produces. + +\subsection{Stability} + +If we look at +\begin{align} + || L u_e^n - L u^n|| \leq k ||u_e^n -u^n|| +\end{align} +we see that there should be a bound on growth of the error of a numerical scheme. Using harmonic analysis (which we will do later), one can determine this growth factor. In real life it means that the ``energy'' of the numerical solution should not grow without physical cause. In fact the $L_2$ norm is related to the energy. + +\subsection{Convergence} + +A numerical scheme that has consistency and stability is called \emph{convergent}. + +\section{Return to N-body} + +We have discussed the Leapfrog scheme as a solution for the N-body problem. Can we do better than the 2nd order there? Easily: We can use the Hermite scheme +\begin{align} + \vec{r}^{n+1} &= \vec{r}^n +\frac{1}{2}(\vec{v}^n + \vec{v}^{n+1}) \Delta t + \frac{1}{12}(\vec{a}^n - \vec{a}^{n+1})(\Delta t)^2\\ + \vec{v}^{n+1} &= \vec{v}^n +\frac{1}{2}(\vec{a}^n + \vec{a}^{n+1}) \Delta t + \frac{1}{12}(\vec{j}^n - \vec{j}^{n+1})(\Delta t)^2 +\end{align} +where $j$ is the so called jerk +\begin{align} + \vec{j} = \diff{^3}{t^3} \vec r +\end{align} +which can be calculated as +\begin{align} + \vec{j}^n = \sum_{i\neq j} \left( \frac{\vec{v}_j^n-\vec{v}_i^n}{\vec{r}_{ij}^3} - 3 \frac{(\vec{r}_j^n \cdot \vec{v}_j^n)\vec{r}_j^n}{\vec{r}_{ij}^5} \right) +\end{align} +This scheme is of higher order than the Leapfrog. That itself is not too interesting. It is much more interesting to figure out, how this scheme is derived and how it works. + +Before we go into the derivation, here are some definitions +\begin{align} + \vec s = \diff{^4}{t^4} \vec r, \quad \vec c = \diff{^4}{t^4} \vec c, \quad \vec p = \diff{^6}{t^6} \vec r +\end{align} +Now we can go into the Taylor expansion of the position +\begin{align} + \vec{r}^{n+1} &= \vec{r}^n + \vec{v}^n \Delta t + \frac{1}{2} \vec{a}(\Delta t)^2 + \frac{1}{6}\vec{j}^n(\Delta t)^3 + \frac{1}{24} \vec{s}^n (\Delta t)^4 + \frac{1}{120} \vec{c}^n (\Delta t)^5\\ + \vec{v}^{n+1} &= \vec{v}^n + \vec{a}^n \Delta t + \frac{1}{2} \vec{j}(\Delta t)^2 + \frac{1}{6}\vec{s}^n(\Delta t)^3 + \frac{1}{24} \vec{c}^n (\Delta t)^4 \\ + \vec{a}^{n+1} &= \vec{a}^n + \vec{j}^n \Delta t + \frac{1}{2} \vec{s}(\Delta t)^2 + \frac{1}{6}\vec{c}^n(\Delta t)^3\\ + \vec{j}^{n+1} &= \vec{j}^n + \vec{s}^n \Delta t + \frac{1}{2} \vec{c}(\Delta t)^2 +\end{align} +Now one can eliminate $\vec{c}^n$ and $\vec{s}^n$ +\begin{align} + \vec{s}^n &= 6 (\vec{a}^{n+1}-\vec{a}^n)(\Delta t)^{-2} - 2(\vec{j}^{n+1}+2\vec{j}^n)(\Delta t)^{-1}\\ + \vec{c}^n &= -12(\vec{a}^{n+1}-\vec{a}^n)(\Delta t)^{-3} +6(\vec{j}^{n+1}+\vec{j}^n)(\Delta t)^{-2}\\ + \Rightarrow \vec{v}^{n+1} &= \vec{v}^n +\frac{1}{2}(\vec{a}^n + \vec{a}^{n+1}) \Delta t + \frac{1}{12}(\vec{j}^n - \vec{j}^{n+1})(\Delta t)^2 +\end{align} + +So what do we learn from this? One can perform a Taylor expansion to higher order (every good physicist should do that!) and solve for the updated values at $t^{n+1}$. On the one hands a looks a bit lengthy, but solvable. That first impression is so wrong! + +In order to solve the equations for the next time step we need knowledge about quantities from that future time. This is not too uncommon, there are actually many applications for such \emph{implicit} schemes and as a rule of thumb implicit schemes are far more stable. + +How do we solve these implicit equations then? There are basically two approaches: +\begin{itemize} + \item We can treat the equation as a matrix equation (the numerical scheme in discretized quantities can be viewed as a linear operator), which can inverted. There are exact and approximate inversion techniques, the latter being the faster. + \item We can use predictor/corrector schemes, where we take a guess for the next time step and then correct this approximation. +\end{itemize} +We will discuss matrix methods later (especially in the context of the Poisson equation). Let's shortly discuss how such a predictor-corrector scheme looks like (there are several different types on the market with slightly different properties). + +Predictor +\begin{align} + \vec{v}_p^{n+1} &= \vec{v}^n + \vec{a}^n \Delta t + \frac{1}{2} \vec{j}^n (\Delta t)^2\\ + \vec{r}_p^{n+1} &= \vec{r}^n + \vec{v}^n \Delta t + \frac{1}{2} \vec{a}^n (\Delta t)^2 +\frac{1}{6}\vec{j}^n(\Delta t)^3 +\end{align} +where we can now calculate the acceleration and jerk using these predicted values +\begin{align} + \vec{a}_p^{n+1} = \vec{a}(t^{n+1},\vec{r}_p^{n+1}),\quad \vec{a}_p^{n+1} = \vec{j}(t^{n+1},\vec{r}_p^{n+1},\vec{v}_p^{n+1}) +\end{align} + +Now we can apply the corrector +\begin{align} + \vec{v}_c^{n+1} &= \vec{v}_p^{n+1} + \frac{1}{6} \ddot\vec{a}^n(\Delta t)^3 + \frac{1}{24}\dddot{\vec{a}}(\Delta t)^4\\ + \vec{r}_c^{n+1} &= \vec{r}_p^{n+1} + \frac{1}{24} \ddot\vec{a}^n (\Delta t)^4 + \frac{1}{120}\dddot{\vec{a}}(\Delta t)^5 +\end{align} +with +\begin{align} + \frac{1}{2} \ddot\vec{a}^n &= -3 \frac{\vec{a}^n-\vec{a}^{n+1}_p}{(\Delta t)^2}-\frac{\dot\vec{a}^n+\dot\vec{a}_p^{n+1}}{\Delta t}\\ + \frac{1}{6} \dddot{\vec{a}}^n &= 2 \frac{\vec{a}^n-\vec{a}^{n+1}_p}{(\Delta t)^3}-\frac{\dot\vec{a}^n+\dot\vec{a}_p^{n+1}}{(\Delta t)^2} +\end{align} + +\section{The Barnes-Hut algorithm} + +We have started solving the N-body problem in probably the most naive way: Using a forward-Euler step with direct forces between each particle pair. This is unstable - which has been resolved using Leapfrog or higher-order schemes - but we are still left with a $\mathcal{O}(N^2)$ algorithm. + +One idea to resolve this problem is to simplify the interactions: Far away clusters of masses cannot be distinguished from a single mass point. So why not use the center of mass?\footnote{Some of the following text is stolen from Wikipedia. As we are not diving too deep into the matter the description there is sufficient.} + +The ``Barnes–Hut simulation'' (named after Josh Barnes and Piet Hut) is an approximation algorithm for performing an N-body simulation. It is notable for having $\mathcal{O}(n \log n)$ compared to a direct-sum algorithm which would be $\mathcal{O}(N^2)$. + +The simulation volume is usually divided up into cubic cells via an octree (in a three-dimensional space), so that only particles from nearby cells need to be treated individually, and particles in distant cells can be treated as a single large particle centered at the cell's center of mass. This can dramatically reduce the number of particle pair interactions that must be computed. + +\subsection{The Barnes–Hut tree} +In a three-dimensional N-body simulation, the Barnes–Hut algorithm recursively divides the $N$ bodies into groups by storing them in an octree (or a quadtree in a 2D simulation). Each node in this tree represents a region of the three-dimensional space. + +\begin{figure} + \begin{center} + \pgfimage[width=.8\textwidth]{fig_chapter3/quadtree} + \end{center} + \caption{A quadtree representation of 100 particles using the Barnes-Hut algorithm} +\end{figure} + +The topmost node represents the whole space, and its eight children represent the eight octants of the space. The space is recursively subdivided into octants until each subdivision contains 0 or 1 bodies (some regions do not have bodies in all of their octants). + +There are two types of nodes in the octree: internal and external nodes. An external node has no children and is either empty or represents a single body. Each internal node represents the group of bodies beneath it, and stores the center of mass and the total mass of all its children bodies. + +\begin{figure} + \begin{center} + \pgfimage[width=.45\textwidth]{fig_chapter3/2galaxies}\hspace{5mm} \pgfimage[width=.45\textwidth]{fig_chapter3/2galaxies_tree} + \end{center} + \caption{Mass distribution of two neighbouring galaxies and the representation using the Barnes-Hut tree} +\end{figure} +\subsection{Calculating the force acting on a body} +To calculate the net force on a particular body, the nodes of the tree are traversed, starting from the root. If the center of mass of an internal node is sufficiently far from the body, the bodies contained in that part of the tree are treated as a single particle whose position and mass is respectively the center of mass and total mass of the internal node. If the internal node is sufficiently close to the body, the process is repeated for each of its children. + +Whether a node is or isn't sufficiently far away from a body, depends on the quotient $s/d$, where $s$ is the width of the region represented by the internal node, and $d$ is the distance between the body and the node's center of mass. The node is sufficiently far away when this ratio is smaller than a threshold value $\Theta$. The parameter $\Theta$ determines the accuracy of the simulation; larger values of $\Theta$ increase the speed of the simulation but decreases its accuracy. If $\Theta = 0$, no internal node is treated as a single body and the algorithm degenerates to a direct-sum algorithm. -- N-Body -- Stabilität, Genauigkeit, Konvergenz -- Fast Multipole -- Barnes-Hut -- Poisson-Gleichung +\section{Fast Multipole Method} + +Another approach at getting around the pairwise evaluation of interactions is the Fast Multipole Method. Multipole expansions are already known from electrodynamics lectures: Instead of calculating the interaction of a single charge with a complex charge distribution spherical harmonics are calculated for that charge distribution and the interaction with the leading terms can be calculated. + +The potential of a cell with masses can be written as +\begin{align} + \Phi(\vec r) &= \sum_{l=0}^\inf \sum_{m=-l}^l \frac{M_l^m}{} Y_{lm}(\Theta,\varphi)\\ + M_l^m &= \sum_{i=1}^k m_i \rho_i^l Y_{lm}^* (\alpha_i,\beta_i) +\end{align} +where $\rho, \alpha, \beta$ are the positions within the cell. + +Now one starts with an idea similar to Barnes-Hut: The mass distribution is split into a tree. Depending on the distance we have either multipole-multipole or local interaction. With intelligent tree splitting and cluster finding this method can drive the complexity of the problem down to $\mathcal{O}(N)$. + +The Fast Multipole Method is considered one of the top 10 algorithms. For plasma simulations, however, its use is extremely limited as charge shielding is dominating. + +\section{Poisson equation} + +The next chapter will focus on the Particle-in-Cell method, which is a \emph{Particle-Mesh-Method}. It should be pointed out that the gravitational problem can also be solved using a PM-approach: Instead of calculating the force between particle pairs we can work out the gravitational potential of masses +\begin{align} +\nabla \vec g &=-\nabla \cdot (\nabla \Phi_\mathrm m(\vec r)) = -4 \pi \cdot G \cdot \rho_\mathrm m(\vec r)\\ \Leftrightarrow +\Delta \Phi_\mathrm m(\vec r)& = 4 \pi \cdot G \cdot \rho_\mathrm m(\vec r) +\end{align} + +This opens up two questions: +\begin{itemize} + \item How do we figure out $\rho_\mathrm{m}$? + \item How do we solve the Poisson equation? +\end{itemize} +The first question will be addressed in great depth in the next chapter - for now we will just assume the so-called \emph{Nearest Grid Point} method: On a grid the mass of particle will be deposited at the nearest point of the mesh. + +The second question is far more complicated. It all starts with a discretization of the Poisson equation. Using the finite difference numerical method to discretize the 2-dimensional Poisson equation (assuming a uniform spatial discretization, $\Delta x=\Delta y$) on a $m\times n$ grid gives the following formula: +\begin{align} +{\nabla}^2 u )_{ij} &= \frac{1}{\Delta x^2} (u_{i+1,j} + u_{i-1,j} + u_{i,j+1} + u_{i,j-1} - 4 u_{ij}) = g_{ij} +\end{align} +This will result in an $mn \times mn$ linear system: +\begin{align} + A\mathbf{u} = \mathbf{b} +\end{align} +where +\begin{align} +A = +\begin{bmatrix} + ~D & -I & ~0 & ~0 & ~0 & \cdots & ~0 \\ + -I & ~D & -I & ~0 & ~0 & \cdots & ~0 \\ + ~0 & -I & ~D & -I & ~0 & \cdots & ~0 \\ + \vdots & \ddots & \ddots & \ddots & \ddots & \ddots & \vdots \\ + ~0 & \cdots & ~0 & -I & ~D & -I & ~0 \\ + ~0 & \cdots & \cdots & ~0 & -I & ~D & -I \\ + ~0 & \cdots & \cdots & \cdots & ~0 & -I & ~D +\end{bmatrix}, +\end{align} +$ I $ is the $m \times m$ identity matrix, and $D$, also $m \times m$, is given by: +\begin{align} +D = +\begin{bmatrix} + ~4 & -1 & ~0 & ~0 & ~0 & \cdots & ~0 \\ + -1 & ~4 & -1 & ~0 & ~0 & \cdots & ~0 \\ + ~0 & -1 & ~4 & -1 & ~0 & \cdots & ~0 \\ + \vdots & \ddots & \ddots & \ddots & \ddots & \ddots & \vdots \\ + ~0 & \cdots & ~0 & -1 & ~4 & -1 & ~0 \\ + ~0 & \cdots & \cdots & ~0 & -1 & ~4 & -1 \\ + ~0 & \cdots & \cdots & \cdots & ~0 & -1 & ~4 +\end{bmatrix}, +\end{align} +and $\mathbf{b}$ is defined by +\begin{align} +\mathbf{b} = +-\Delta x^2 \begin{bmatrix} g_{11} , g_{21} , \ldots , g_{m1} , g_{12} , g_{22} , \ldots , g_{m2} , \ldots , g_{mn} \end{bmatrix}^\mathsf{T} +\end{align} + +For further discussions it is helpful to break this down to the 1D Poisson equation +\begin{align} +\frac{1}{(\Delta x)^2} \begin{pmatrix} +-2 & 1 & & & \\ +1 & -2 & 1& & \\ + & & \ddots & &\\ + & & & 1 & -2 +\end{pmatrix} +\begin{pmatrix} +u_1 \\ u_2 \\ \vdots \\ u_N +\end{pmatrix} +\begin{pmatrix} +f_0 \\ f_1 \\ \vdots \\ f_{N-1} +\end{pmatrix} +\end{align} + +One can of course try to solve for the inverse of the matrix, but that is insane in terms of computation time. Instead one wants to go for an iterative solver to yield an approximate solution. The Gauss-Seidel algorithm is such a technique for solving a square system of $n$ linear equations with unknown $x$: + +\begin{align}A\mathbf x = \mathbf b .\end{align} + +It is defined by the iteration +\begin{align} +L_* \mathbf{x}^{(k+1)} = \mathbf{b} - U \mathbf{x}^{(k)}, +\end{align} +where $\mathbf{x}^{(k)}$ is the $k$th approximation or iteration of $\mathbf{x}$, $\mathbf{x}^{(k+1)}$> is the next or $k + 1$ iteration of $\mathbf{x}$, and the matrix $A$ is decomposed into a lower triangular component $L_*$, and a strictly upper triangular component $U$ i.e., $A = L_* + U$ + +In more detail, write out $A$, $x$ and $b$ in their components: + +\begin{align} +A=\begin{bmatrix} a_{11} & a_{12} & \cdots & a_{1n} \\ a_{21} & a_{22} & \cdots & a_{2n} \\ \vdots & \vdots & \ddots & \vdots \\a_{n1} & a_{n2} & \cdots & a_{nn} \end{bmatrix}, +\qquad \mathbf{x} = \begin{bmatrix} x_{1} \\ x_2 \\ \vdots \\ x_n \end{bmatrix} , +\qquad \mathbf{b} = \begin{bmatrix} b_{1} \\ b_2 \\ \vdots \\ b_n \end{bmatrix}. +\end{align} + +Then the decomposition of $A$ into its lower triangular component and its strictly upper triangular component is given by: + +\begin{align} +A& =L_*+U +\qquad \text{where} \qquad \\ +L_* &= \begin{bmatrix} a_{11} & 0 & \cdots & 0 \\ a_{21} & a_{22} & \cdots & 0 \\ \vdots & \vdots & \ddots & \vdots \\a_{n1} & a_{n2} & \cdots & a_{nn} \end{bmatrix},\\ + U &= \begin{bmatrix} 0 & a_{12} & \cdots & a_{1n} \\ 0 & 0 & \cdots & a_{2n} \\ \vdots & \vdots & \ddots & \vdots \\0 & 0 & \cdots & 0 \end{bmatrix}. +\end{align} + +The system of linear equations may be rewritten as: +\begin{align} +L_* \mathbf{x} = \mathbf{b} - U \mathbf{x} +\end{align} + +The Gauss–Seidel method now solves the left hand side of this expression for $x$, using previous value for $x$ on the right hand side. Analytically, this may be written as: +\begin{align} +\mathbf{x}^{(k+1)} = L_*^{-1} \left(\mathbf{b} - U \mathbf{x}^{(k)}\right). +\end{align} +However, by taking advantage of the triangular form of $L_*$, the elements of $x^{k+1}$ can be computed sequentially using forward substitution: +\begin{align} +x^{(k+1)}_i = \frac{1}{a_{ii}} \left(b_i - \sum_{j=1}^{i-1}a_{ij}x^{(k+1)}_j - \sum_{j=i+1}^{n}a_{ij}x^{(k)}_j \right),\quad i=1,2,\dots,n. +\end{align} + +How does this very theoretical approach now look like when applied to the Poisson equation \chapter{Particle-in-Cell} + + +While plasmas with a nonthermal component could be described using numerical standard techniques for hyperbolic conservation laws, the so-called Particle-in-Cell (PiC) technique has become the standard technique for many plasma simulations. + +PiC is a versatile and extremely easy to implement method, which is the main factor behind its popularity. The relatively low computational cost is the next point making PiC such a common choice. Unfortunately this simplicity leads often to carelessness in implementation and simulation design. + +This chapter shall give a brief introduction to the physics of kinetic plasmas, the setup of PiC codes, implementation details and the design of simulations of various physical effects. + +\section{Numerical Implementation} +\label{sec:num} +Particle-in-Cell codes are semi-Lagrangian in that they follow a Lagrangian +description of phase space samples represented as macro particles coupled to +electromagnetic fields described in an Eulerian way on a grid. Connecting the +two parts correctly is crucial in the numerical implementation, but let us +start with the relatively simple step of evolving the electric and magnetic +fields on the grid for one time step. The simulation grid can resolve one, two or three dimensions, but typically vector quantities such as fields vectors or particle velocities retain all three components. + +\subsection{Field Solvers} +\label{sec:num:field} +This subsection discusses how electromagnetic fields are calculated from +source terms (moments of the distribution function of all charged particle +species). The source are assumed to be known on a uniform grid of rectangular +cells. How the source terms are calculated is discussed in section +\ref{subsec:num:depostion}. Non-rectangular grids are discussed in the +review \cite{Meierbachtol_2015}. + + +%In this subsection we will assume that the source terms that are based on +%moments of the distribution function of all charged species are known on the +%grid. How this is actually accomplished will be discussed in the next +%subsection. We will further more assume that we have a uniform grid of +%rectangular or cubic cells. Triangular or tetrahedral cells are much more +%complicated to deal with and are typically only used when a body-fitted mesh +%around or inside a metal body is needed. More details can be found in the +%review \cite{Meierbachtol_2015}. + +Particle-in-Cell codes commonly use a finite difference formulation based on +the electromagnetic fields (as opposed to scalar electrostatic potential and +magnetic vector potential). The typical arrangement of field samples is then +given by the Yee lattice described in \cite{Yee_1966}. Component of the +electric field $E_i$ are located at the mid points of edges pointing in +coordinate direction $x_i$ whereas magnetic flux components $B_i$ are located +at the center of cell phases with have normal vectors pointing in direction +$x_i$, as shown in Figure~\ref{fig:num:rot_yee}. +%In principle the two dual subgrids could be interchanged, but this +%arrangement neatly follows the view of electromagnetism as a discrete exterior +%calculus, where the electric field is a one-form that naturally lives on cell +%edges. The magnetic flux is represented by two-forms assigned to cell phases. +%This view of computational electrodynamics is rather recent but has proven +%useful when designing field solvers on unstructured grids \cite{Rabina_2014, Na_2018}. + +The staggered arrangement of components +%looks complicated as first and the reader might fear that it will require a lot of re-interpolation. +is non-trivial and it looks as if interpolation is needed to calculate derivatives +at the correct positions. +But the contrary is true as we will see in a moment. We start our consideration from +Maxwell's equation in CGS units. These are still customarily used in +Particle-in-Cell codes as they make the magnitude of electric and magnetic +components similar. Since we treat all material effects due to the plasma +explicitly by having particles react to the fields $\vec{E}$ and $\vec{H}$, +we can use them interchangeably with the respective flux densities $\vec{D}$ +and $\vec{B}$. +\begin{align} + \nabla \times \vec{E} &= - \frac{1}{c} \frac{\partial \vec{B}}{\partial t} \label{eq:num:faraday}\\ + \nabla \times \vec{B} &= \phantom{-} \frac{1}{c} \frac{\partial \vec{E}}{\partial t} + \frac{4 \pi}{c} \vec{\jmath} \label{eq:num:ampere} \\ + \nabla \cdot \vec{E} &= 4 \pi\,\rho \label{eq:num:gauss}\\ + \nabla \cdot \vec{B} &= 0 \label{eq:num:monopol} +\end{align} +Gauss's Law in Eq.~\eqref{eq:num:gauss} is the corner stone for electrostatic +Particle-in-cell codes, but we will ignore it for now. Its equivalent for the +magnetic field, Eq.~\eqref{eq:num:monopol}, that describes the absence of +monopoles is mostly relevant as an initial condition. Faraday's Law and Ampere's +law can be rewritten as evolution equations: +\begin{align} + \frac{\partial \vec{B}}{\partial t} &= -c \, \nabla \times \vec{E} \label{eq:num:Bevolution} \\ + \frac{\partial \vec{E}}{\partial t} &= \phantom{-} c \nabla \times \vec{B} - \frac{4 \pi}{c} \vec{\jmath} \label{eq:num:Eevolution} +\end{align} +The time evolution given by these equations will not violate Eqs.~\eqref{eq:num:gauss} and \eqref{eq:num:monopol} if they were satisfied initially. +Eqs.~\eqref{eq:num:Bevolution} and \eqref{eq:num:Eevolution} imply that the curl of the electric field does not have to be known at +the location of the electric field, but rather at the location of the dual, +magnetic field. + +\begin{figure}[h!] + \centering + \begin{subfigure}{0.4\hsize} + \centering + \includegraphics[width=3cm]{fig_chapter4/rotation_yee.png} + \caption{Finite difference approximation in Yee scheme} + \label{fig:num:rot_yee} + \end{subfigure} + \begin{subfigure}{0.4\hsize} + \centering + \includegraphics[width=3.5cm]{fig_chapter4/rotation_o4.png} + \caption{Finite difference approximation in simplest $4^{th}$ order scheme} + \label{fig:num:rot_o4} + \end{subfigure} + \caption{$2^{nd}$ and $4^{th}$ order Finite-Difference Time-Domain schemes} +\end{figure} + +%%\begin{figure}[h!] + %%\centering + %%\includegraphics[width=0.5\hsize]{fig_chapter4/rotation_yee.png} + %%\caption{Finite difference approximation in Yee scheme} + %%\label{fig:num:rot_yee} +%%\end{figure} +%% +%%As figure \ref{fig:num:rot_yee} illustrates, there is an elegant finite +%%difference approximation for the curl of the electric field at the location of +%%the magnetic flux, based on the four edges that surround the magnetic flux at +%%the center of the face. If we write this approximation carefully it reads +%%\begin{align} + %%\left(\nabla \times \vec{E}\right)_x&(i\Delta{x},(j+1/2)\Delta{y},(k+1/2)\Delta{z}) \approx \nonumber \\ + %%&\frac{E_y(i\Delta{x},(j+1/2)\Delta{y},k\Delta{z}) - E_y(i\Delta{x},(j+1/2)\Delta{y},(k+1)\Delta{z})}{\Delta{z}} + \nonumber \\ + %%&\frac{E_z(i\Delta{x},(j+1)\Delta{y},(k+1/2)\Delta{z}) - E_z(i\Delta{x},j\Delta{y},(k+1/2)\Delta{z})}{\Delta{y}} \quad . \label{eq:num:rot_yee_long} +%%\end{align} +%%This expression is of course rather unwieldy, so customarily the edge length as +%%well as the offsets required to center components along edges and on faces are +%%suppressed and Eq.~\eqref{eq:num:rot_yee_long} is simply written as +%%\begin{equation} + %%\left(\nabla \times \vec{E}\right)_x(i,j,k) \approx + %%\frac{E_y(i,j,k) - E_y(i,j,k+1)}{\Delta{z}} + + %%\frac{E_z(i,j+1,k) - E_z(i,j,k)}{\Delta{y}} \quad . \label{eq:num:rot_yee} +%%\end{equation} +%%When presented with such an expression the reader needs to know that the use of +%%the electric field at locations $k\Delta{z}$ and $(k+1)\Delta{z}$ implies that +%%the magnetic flux (where the curl is used) is located at $(k+1/2)\Delta{z}$. +%%This can make reading papers tedious, but is much more compact and closer to +%%the actual implementation where the array indices into the arrays holding the +%%values of the field components are naturally integers. +%% + +The classical solution to store electric and magnetic fields on the grids that yields the curl of the fields at the required position is the Yee grid. Here e.g. $B_y$ is stored at cell face $(i+1/2,j,k+1/2)$, while $E_y$ is stored at $(i,j+1/2,k)$\footnote{The grid cells have edge length $\Delta{x}$, $\Delta{y}, \Delta{z}$ and any position can be given as $\vec{x} = \left(i\cdot\Delta{x}, j\cdot\Delta{y}, k\cdot\Delta{z}\right)$.}. Not only does this process result in curls calculated at the correct position without interpolation, but the curl is calculated in second order immediately. + +The temporal derivative in Eqs.~\eqref{eq:num:Bevolution} and \eqref{eq:num:Eevolution} can be solved using the second-order spatial derivatives. The customary +solution is to leap-frog the fields, i.e. use the curl of the electric field at +time $t\Delta{t}$ to update the magnetic field from time $(t-1/2)\Delta{t}$ to +$(t+1/2)\Delta{t}$ and then use the curl of the magnetic field at that time to +update the electric field to $(t+1)\Delta{t}$. This leads to a scheme that is +also second order accurate in time. The timestep $\Delta{t}$ can not be larger than the CFL limit $\Delta{t} < \sqrt{\Delta{x}^2 + \Delta{y}^2 + \Delta{z}^2} / c$ to avoid instability. + +To update the particle position and +location it is useful to have electric and magnetic fields at the position of +the particle at the same time. The solution to this is to split the update of +the magnetic field and use +\begin{align} + \vec{B}^{t\phantom{+1/2}} &= \vec{B}^{t-1/2} - \frac{1}{2} c \cdot \Delta t \cdot \nabla \times \vec{E}^{t} \label{eq:num:B1update} \quad ,\\ + \vec{B}^{t+1/2} &= \vec{B}^{t\phantom{-1/2}} - \frac{1}{2} c \cdot \Delta t \cdot \nabla \times \vec{E}^{t} \label{eq:num:B2update} \quad ,\\ + \vec{E}^{t+1\phantom{/2}} &= \vec{E}^{t\phantom{-1/2}} + c \cdot \Delta t \cdot \nabla \times \vec{B}^{t+1/2} - 4 \pi \Delta t \cdot \vec{\jmath}^{t+1/2} \label{eq:num:Eupdate} \quad . +\end{align} + +This solver is the most common method and is accurate to second order with respect to a given current. Since small numbers of macroparticles lead to an increased noise, solvers are sought after to remove the noise. Increasing particles numbers is typically not an option as the noise level decreases as $1/\sqrt{N}$. Either the source term $\vec{\jmath}^{t+1/2}$ can be filtered or the noise can be damped. The latter is possible since noise is concentrated at high $k$ values. This low-pass filtering is described in \cite{Friedman_1990} and changes Eqs.~\eqref{eq:num:B1update} and \eqref{eq:num:B2update}. + +%%This solver works well and is implemented in many codes. However the +%%electromagnetic fields can be rather noisy in Particle-in-cell simulations. +%%There is a limited number of options to combat this. Increasing the number of +%%macro particles to bring it close to the number of physical particles works, +%%but is rather expensive as the noise level only goes down as $1/\sqrt{N}$. +%%Another commonly used method is to filter the the source term +%%$\vec{\jmath}^{t+1/2}$. +%%%FIXME do that below and reference here +%%The third option is to make use of the fact that most of that noise is +%%concentrated at high $k$ and modify the field solver to damp those modes. This +%%is exactly what the method described in \cite{Friedman_1990} does. It replaces +%%Eqs.~\eqref{eq:num:B1update} and \eqref{eq:num:B2update} by +%%\begin{align} + %%\vec{B}^{t+1/2} &= \vec{B}^{t-1/2} - c \cdot \Delta t \cdot \nabla \times \left[\left(1+\frac{\theta}{4}\right)\vec{E}^t-\frac{1}{2}\vec{E}^{t-1}+\left(\frac{1}{2}-\frac{\theta}{4}\right)\vec{\bar{E}}^{t-2}\right]\quad , \label{eq:num:Bupfriedman}\\ + %%\vec{\bar{E}}^{t-2} &= \left(1-\frac{\theta}{2}\right)\vec{E}^{t-1} + \frac{\theta}{2}\vec{\bar{E}}^{t-3} \quad . +%%\end{align} +%%If desired Eq.~\eqref{eq:num:Bupfriedman} can be split into two steps to get +%%access to $\vec{B}^t$. The method allows tuneable damping by selecting $\theta$ +%%between 0 and 1 at the extra expense of storing and updating $\vec{\bar{E}}$. +%%The damping rate $\gamma$ is given by +%%\begin{equation} + %%\gamma\Delta{t} = - \frac{8\,\theta}{(2-\theta)^2} \left(\frac{c\,\Delta{t}}{\Delta{x}}\right)^4\sin^4\left(\frac{k\,\Delta{x}}{2}\right) \quad . +%%\end{equation} + +The one instability that plagues electromagnetic Particle-in-Cell codes and is +the main driver to go beyond the simple and robust field solver described above +is the Numerical Cherenkov Instability (NCI). This long known instability (see +\cite{Godfrey_1974}) occurs when particles move close to the speed of light +and couple to light waves. In reality this only happens when the influence of +a medium reduces the speed of light below the vacuum value and particle can +reach the local phase velocity. Numerically this can happen when the numerical +scheme introduces a dispersion error which reduces the speed of light. The +Maxwell solver presented above does that, especially for short wavelength +comparable to the length of the cell edges. + +%\begin{figure}[h!] +% \centering +% \includegraphics[width=0.25\hsize]{fig_chapter4/rotation_o4.png} +% \caption{Finite difference approximation in simplest $4^{th}$ order scheme} +% \label{fig:num:rot_o4} +%\end{figure} + +In other applications of finite-difference time-domain (FDTD) schemes the +solution would typically be to use a higher order approximation of the discrete +curl operator. Fig.~\ref{fig:num:rot_o4} shows how the straight forward +extension to $4^{th}$ order in space would look like. +% The equivalent to Eq.~\eqref{eq:num:rot_yee} reads +The right hand side of Eq.~\eqref{eq:num:Bevolution} now reads +\begin{align} + \left(\nabla \times \vec{E}\right)_x(i,j,k) \approx & \frac{27}{24}\frac{E_y(i,j,k) - E_y(i,j,k+1)}{\Delta{z}} \nonumber \\ + & - \frac{E_y(i,j,k-1) - E_y(i,j,k+2)}{\Delta{z}} \nonumber \\ + & + \frac{27}{24}\frac{E_z(i,j+1,k) - E_z(i,j,k)}{\Delta{y}} \nonumber \\ + & - \frac{E_z(i,j+2,k) - E_z(i,j-1,k)}{\Delta{y}} \label{eq:num:rot_o4} +\end{align} +in this case. Also the temporal derivatives can be approximated in fourth order +\cite{Fang_1989}. For typical PiC simulations with marginal stable time steps +the gain in accuracy is negligible compared to the computational cost. + + +%It is also possible to make the approximation of the temporal +%derivative accurate to $4{th}$ order in the timestep $\Delta{t}$ as shown in +%\cite{Fang_1989}. The problem is that Particle-in-Cell simulation tend to use +%space and time steps that are just sufficient to get stable results. Using +%substantially smaller steps is usually prohibitively expensive. This means that +%$\lambda/\Delta{x}$ or $\omega \Delta{t}$ tend to be close to unity and the +%difference between second and fourth order is small. + +The way forward has therefore been to use schemes that are still ``only'' +second order, but with a small constant in front of the error term. Many such +non-standard finite-difference (NSFD) schemes have been investigated over the +years. + +%\begin{figure}[h!] +% \centering +% \includegraphics[width=0.25\hsize]{fig_chapter4/rotation_m24.png} +% \caption{Finite difference approximation in M24 scheme} +% \label{fig:num:rot_m24} +%\end{figure} + +\begin{figure}[h!] + \centering + \begin{subfigure}{0.4\hsize} + \centering + \includegraphics[width=2.84cm]{fig_chapter4/rotation_m24.png} + \caption{Finite difference approximation in M24 scheme} + \label{fig:num:rot_m24} + \end{subfigure} + \begin{subfigure}{0.4\hsize} + \centering + \includegraphics[width=6cm]{fig_chapter4/rotation_nsfd.png} + \caption{Finite difference approximation in Cole-Karkkainen schemes} + \label{fig:num:rot_ck} + \end{subfigure} + \caption{Non-standard Finite-Difference Time-Domain schemes} +\end{figure} + + +%\begin{figure}[h!] + %\centering + %\includegraphics[width=0.25\hsize]{fig_chapter4/rotation_m24.png} + %\caption{Finite difference approximation in M24 scheme} + %\label{fig:num:rot_m24} +%\end{figure} + +One such scheme, proposed by \cite{Hadi_1997} under the name ``M24'' makes use +of the grid locations used by the standard Yee scheme, the locations used by +the fourth order scheme and additional locations that close a larger loop +around the mid point. The relative weights of the three loops are in principle +arbitrary, subject to the constraint that they have to sum to one. The +remaining two free parameters can be tuned to optimize the dispersion +properties of the scheme. The original paper suggests some values, but more +interesting is \cite{Greenwood_2004} that shows how these parameters can be +chosen to reduce NCI. + +%\begin{figure}[h!] +% \centering +% \includegraphics[width=0.5\hsize]{fig_chapter4/rotation_nsfd.png} +% \caption{Finite difference approximation in Cole-Karkkainen schemes} +% \label{fig:num:rot_ck} +%\end{figure} + +So far all schemes only used grid locations at $i\Delta{x}$, but +\cite{Cole_2002} shows that using $(i\pm1)\Delta{x}$ can be useful, at least +for a narrow range of frequencies propagating on the grid. Subsequently +\cite{Karkkainen_2006} extended that to broad bandwidth. +Fig.\ref{fig:num:rot_ck} illustrates all the grid locations that are used in this +family of schemes. Choosing different relative weights between the different +grid locations allows to tune for different optimization goals. An overview is +given in \cite{Vay_2011}. +%Of course the development did not stop at this point, but to keep the page number limited, the interested reader is referred to \cite{Shlager_1993, Garcia_1996, Pukhov_1999, Finkelstein_2006, Yang_2006, Hadi_2007, Smith_2012, Lehe_2013, Blinne_2018} as entry points to further reading on this fascinating topic. + +%%Das ist fast eine halbe Seite an Referenzen, die sich daraus ergeben... + +% Shlager_1993.pdf Dispersion error of FDTD schemes +% Garcia_1996.pdf construction of high order FDTD in anisotropic dielectrica +% Pukhov_1999.pdf Laser-Plasma simulation with tuned Maxwell solver, open boundaries +% Finkelstein_2006.pdf M24 scheme for low dispersion FDTD +% Yang_2006.pdf nummerically tuned FDTD solvers +% Hadi_2007.pdf finite volume based low dispersion FDTD +% Smith_2012.pdf low-dispersion and low-anisotropy FDTD +% Jung_2013.pdf optimized 2,4 FDTD scheme +% Lehe_2013.pdf NCI suppression with tuned FDTD +% Blinne_2018.pdf optimized FTDT stencils + +A different approach is the pseudo-spectral solution of the field equations. +As known from e.g. hydrodynamics the partial differential equations in real space +are converted to ordinary equations in Fourier space. This eliminates finite stencils, +but requires a global FFT \cite{Haber_1973, Jalas_2017}. For constant current density +Maxwell's equations can be integrated analytically in time leading to pseudo-spectral +analytic time domain (PDATD) schemes that are completely free of numerical dispersion. +Since global parallel FFTs require a lot of communication and can limited scalability, there +have been some attempts to avoid them and instead use local FFTs to build field +solvers (\cite{Vay_2013}). + +%An old idea that has recently gained traction again is to try field solvers +%that are not based on FDTD schemes, but based on solving Maxwell's equations in +%the spectral domain (\cite{Haber_1973, Jalas_2017}). This requires global FFTs +%to convert the fields between real space and the spectral domain. The upside +%is that there is no need to use a finite stencil that approximates the curl to +%some low order. Instead the differential operator can be expressed as a +%multiplication by $\imath k$ which gives rise to the class of pseudo-spectral +%time domain solvers which have basically infinite stencil order. Under the +%assumption of fixed source terms, i.e. constant current density, is is +%additionally possible to integrate Maxwell's equation analytically in time and +%derive pseudo-spectral analytic time domain (PDATD) schemes that are completely +%free of numerical dispersion. Since global FFTs require a lot of communication +%and can limited scalability, there have been some attempts to avoid them and +%instead use local FFTs to build field solvers (\cite{Vay_2013}) or correction +%methods for more conservative FDTD schemes (\cite{Yu_2016, Li_2017}). + +% Jalas_2017.pdf pseudo spectral analytic time domain +% Li_2017.pdf local FFT correction to FTDT to remove NCI +% Yu_2017.pdf yee-fft +% Na_2018b.pdf diagnosing NCI on general meshes + +% electrostatic +%%If all particle motion is slow compared to the speed of light life is much +%%easier. Not only do all NCI related problems go away, but it might be possible +%%to remove light waves completely from the plasma model and to reduce +%%computational expense. The straight forward way to do this is the electrostatic +%%plasma model, where the electric field is not updated using an evolution +%%equation based on Amperes Law (Eq.~\eqref{eq:num:Eevolution}), but is directly +%%calculated from Gauss Law (Eq.~\eqref{eq:num:gauss}). This of course limits the +%%electric field to is longitudinal, curl-free component. Bases on +%%Eq.~\eqref{eq:num:Bevolution} this tell us that the magnetic field will not +%%evoluve in time, but is restricted to an initial magnetic field that stays +%%constant in time. Intuitively that makes sense as very slow (comparted to the +%%speed of light) particle motion implies very small currents. Historically some +%%of the first Particle-in-Cell codes were electrostatic (see e.g. +%%\cite{Hockney_1966, Gitomer_1972}) and very also the first to be expressed in +%%implicit form (\cite{Cohen_1989}). Numerically there is several options to +%%solve Eq.~\eqref{eq:num:gauss}. In one spatial dimension direct integration is +%%possible, in higher dimension two methods are worth considering. A basic +%%spectral solver is simple to implementr and the book \cite{Birdsall_2005} has a +%%good overview of the more subtil design trade-off one can make. The other +%%option is a multigrid solver. This is somewhat harder to implement but has the +%%possibility for better parallelisation for large systems, when the FFTs are +%%communication limited. + +For the limit of very small particle velocities (as compared to the speed of light) the situation becomes much simpler. This is the electrostatic limit, where electric fields are calculated using Gauss Law (Eq.~\eqref{eq:num:gauss}) and magnetic fields are no longer time dependent. This of course limits the electric field to its longitudinal, curl-free component. Historically some of the first Particle-in-Cell codes were electrostatic (see e.g. \cite{Hockney_1966, Gitomer_1972}). Gauss Law can be solved in higher dimensions using either spectral solvers \cite{Birdsall_2005} or multigrid solvers. + + +% darwin +%%Between the electrostatic and electromagnetic plasma model that is rarely +%%considered, but can be very effective and successfull in its domain of +%%application. In the Darwin approximation \cite{Darwin_1920}, effects up to +%%order $\mathcal{O}((v/c)^2)$ are retained, which allows for magnetic field +%%fluctuations but removes light waves. Alternatively it can be though of the +%%approximation where the time retardation due to the finite speed of light is +%%removed. Aquivalently the divergence-free part of the displacement current is +%%removed, which explicitly removes lightwaves from the problem. Interestingly +%%all these approximation turn out to be identically as demonstrated by +%%\cite{Krause_2007}. Some codes have been implemented in this approximation (see +%%e.g. \cite{Eremin_2013}). The approximation does however change the natural of +%%the system of differential equations to elliptic, requiring a global field +%%solve in every time step. This makes the timestep more expensive and can limit +%%scalability. Thus the Darwin approximation only results in a net speed up if +%%the time step covers a much longer duration then the CFL limit for an +%%electromagnetic code. Another limitation to keep in mind is that some low +%%frequency modes that are not ordered out are still modified as demonstrated by +%%\cite{Xie_2014}. +%% +%%The Vlasov-Poiswell model that only retains effects up to $\mathcal{O}(v/c)$ +%%can be formulated in a consistent manner (see \cite{Besse_2007}), but is rarely +%%used in practice. + +Besides the domain of electrostatic and electromagnetic models there is another intermediate regime called Darwin approximation \cite{Darwin_1920} which includes magnetodynamic effects up to order $\mathcal{O}((v/c)^2)$, but which does not consider light waves. This equivalent to removing the divergence-free part of the displacement current. While time resolution constraints are relaxed since the speed of light is no longer present, the differential equations representing the electromagnetic field are now elliptic requiring a global field solver. + +\subsection{Interpolation} +\label{sec:num:interpol} +The previous section only discussed Eulerian quantities on the regular grid. +But the electromagnetic fields act on the Lagrangian particles, which requires +knowledge of the field strength at the location of the particle, not just at +the regular grid locations. This crucial switch in view point is done by means +of an interpolation that we will discuss next. + +\begin{figure}[h!] + \centering + \includegraphics[width=0.25\hsize]{fig_chapter4/interpolation.png} + \caption{Interpolation using the overlap between the cell and the particle, weighted by the shape function} + \label{fig:num:interpolation} +\end{figure} + +Fig.~\ref{fig:num:interpolation} illustrates how the interpolation from grid +quantities (magnetic field $B_z$ in this case) to the particle location is +done. As discussed in the last scetion the numerical macroparticle represents +a sample of the phase space with finite extent and a macro factor, or (statistical) weight given by the number of physical particles it represents. +%The computational macro-particle represents a large number of physical +%particles and is thus seen as a chunk of phase space with a density +%distribution over a finite extend. +The fraction of the phase space volume that is located in the cell is used as +a interpolation weight for the field strength contribution from that cell. +%The fraction of particle that fall in the cell are used as a weight to multiply +%the field strength at the center of that cell. +Contributions from different +cells are then added up to compute the mean +magnetic field strength at the particle location. In a single dimension, this calculation can be expressed by +\begin{equation} +\bar{B}_z(x_p) = \sum_{i} B_z((i+1/2)\Delta{x}) \cdot \int_{i\Delta{x}}^{(i+1)\Delta{x}} S(x - x_p)\, \mathrm{d}x \quad . +\end{equation} +Since this calculation is required for all particles and all field components +in each timestep, the integral over the shape function $S$ is not performed +numerically, but rather done analytically ahead of time to obtain the weight +function $W$: +\begin{equation} +W(x) = \int_{-\Delta{x}/2}^{\Delta{x}/2} S(x - x'), \mathrm{d}x' \quad . +\end{equation} +Using this and suppressing the explicit location of the gridded quantity in the +cell we can write the two-dimensional interpolation as +\begin{equation} +\bar{B}_z(\vec{x}_p) = \sum_{i,j} B_z(i,j) \cdot W\left(x_p-(i+1/2)\Delta{x}\right) \cdot W\left(y_p - (j+1/2)\Delta{y}\right) \label{eq:num:Bzinterpol}\quad . +\end{equation} + +Many different choices for the shape function $S$ are possible and different +codes make different design choices here. Some properties are however required. +The shape function does not include the statistical weight of the macro particle, but rather has to be normalized, i.e. +$\int_{-\infty}^{\infty}S(x)\,\mathrm{d}x = 1$ and should be symmetric, i.e. +$S(-x) = S(x)$. To allow efficient evaluation of +Eq.~\eqref{eq:num:Bzinterpol}, the shape function should have compact support, +i.e. be non-zero only up to some small $x_{max}$. + +The \textit{Nearest Grip Point} or NGP scheme is the minimal example satisfying +all requirements: The shape function is the $\delta$-function $S(x) = \delta(x)$. +This choice is simple to implement and computationally cheap, but the field that +particles see is non-contiguous and the current induced by particles using this +shape function switches from one cell to another when an interface is crossed. + +%In principle all these properties are satisfied by a $\delta$-function. This +%use of $S(x) = \delta(x)$ is also referred to as \textit{Nearest Grip Point} or +%NGP scheme. Computationally it is very cheap, as no interpolation or summation +%has to be done, we just assume that the field at the particle location is +%identical to nearest available field on a grid location. The downside however is +%that the field that particles see is non-contiguous and the current induced by +%particles using this shape function switches from one cell to another when an +%interface is crossed. This leads to a high level of numerically induced +%fluctuations in the source terms and consequently the fields. + +The Cloud-in-Cell +%efficiently the +algorithm by \cite{Birdsall_1968} was a major step forward in the performance +and usefulness of Particle-in-Cell codes. Here +each particle is viewed as a cloud of constant density and with the same size +as a grid cell (but freely movable relative to the grid). The shape and weight function +that generate that view are given by +\begin{equation} + S_{CIC}(x) = +\begin{cases} + 1 & |x|\leq 1/2 \\ + 0 & \text{else} +\end{cases},\quad W_{CIC}(x) = +\begin{cases} + 1-|x| & |x|\leq 1 \\ + 0 & \text{else} +\end{cases} +\end{equation} +and illustrated in Fig.~\ref{fig:num:S_CIC}. +%The associated weight function $W_{CIC}$ is +%straight forward to calculate and given by +%\begin{equation} + %W_{CIC}(x) = \left\{ +%\begin{array}{ll} + %1-|x| & |x|\leq 1 \\ + %0 & \mathrm{else} +%\end{array} +%\right. +%\end{equation} + +\begin{figure}[h!] + \centering + \begin{subfigure}{0.25\hsize} + \centering + \includegraphics[width=\hsize]{fig_chapter4/formfaktor_CIC_S.png} + \caption{Cloud-in-Cell \phantom{andere zeile}} + \label{fig:num:S_CIC} + \end{subfigure} + \begin{subfigure}{0.25\hsize} + \centering + \includegraphics[width=\hsize]{fig_chapter4/formfaktor_TSC_S.png} + \caption{Triangular Shaped Cloud} + \label{fig:num:S_TSC} + \end{subfigure} + \begin{subfigure}{0.25\hsize} + \centering + \includegraphics[width=\hsize]{fig_chapter4/formfaktor_PQS_S.png} + \caption{Piecewise Quadratic Shape} + \label{fig:num:S_PQS} + \end{subfigure} + \\ + \begin{subfigure}{0.25\hsize} + \centering + \includegraphics[width=\hsize]{fig_chapter4/formfaktor_CIC_density.png} + \caption{Cloud-in-Cell \phantom{andere zeile}} + \label{fig:num:density_CIC} + \end{subfigure} + \begin{subfigure}{0.25\hsize} + \centering + \includegraphics[width=\hsize]{fig_chapter4/formfaktor_TSC_density.png} + \caption{Triangular Shaped Cloud} + \label{fig:num:density_TSC} + \end{subfigure} + \begin{subfigure}{0.25\hsize} + \centering + \includegraphics[width=\hsize]{fig_chapter4/formfaktor_PQS_density.png} + \caption{Piecewise Quadratic Shape} + \label{fig:num:density_PQdensity} + \end{subfigure} + \caption{Different shape functions in 1d and 2d} + \label{fig:num:shape_function} +\end{figure} + +This simple shape function is not only a major step forward, but has the added +benefit of generating an entire family of shape function of increasing order, +by using the weight function $W$ for the previous order as the shape function +$S$ of the new, higher order. The next step after CIC in this chain is called +\textit{triangular shaped cloud} or TSC. This shape function has the advantage +of being continuous. This implies that the Fourier transform of it falls faster +towards higher $k$. +%As \cite{Langdon_1970} showed this corresponded to reduced +%aliasing of higher $k$ to low $k$ that can be represented by the Eulerian grid +%and consequently a reduction of the finite grid instability. This numerical +%instability heats the plasma when the numerical grid does not resolve the Debye +%length and can outgrow the physical processes the simulation is supposed to +%study. Using higher order shape function suppress the instability and allows +%the use of (slightly) larger grid cells or alternatively a better conservation +%of the plasma thermal energy at identical resolution \cite{Shadwick_2009}. A +%similar problem exists when the cell size does not resolve the gyro radius of +%electrons, as shown by \cite{Horky_2017}, and again higher order shape function +%can help. The downside is that the finite support of the shape function is +%larger and more grid cells are involved in both the interpolation of the fields +%to the particle location as well as the deposition. +In \cite{Langdon_1970} it has been shown that this decreases aliasing of high $k$. +This in turn decreases the finite grid instability - a numerical artifact that occurs, +when the numerical grid does not resolve the Debye length and that artificially heats +the plasma. The use of higher order shape functions improves the conservation of +thermal energy\cite{Shadwick_2009}. + +Higher order shape function from the same family such as \textit{Piecewise +Quadratic Shape} PQS illustrated in Fig.~\ref{fig:num:S_PQS} have been used. +Higher order have an increasing number of continuous derivatives and therefore +quicker drop off in Fourier space, but at the cost of each particle interacting +with an increasing number of cells. The smoother fields generated by higher +order shape functions reduce unphysical binary forces between nearby particles +and therefore numerical collisionality \cite{Eastwood_1974,Matsuda_1975}. +%The EPOCH code \cite{} might be the most widely used code to +%use high order shape function. +Otherwise order beyond TSC are not used widely +enough that a consensus as to their names has emerged. + +%Historically another family of shape function was used, the so-called +%subtracted dipole shapes, see \cite{Kruer_1973} for more detail. If the code +%uses cylindrical or spherical coordinates one can either use unmodified shape +%function in ``index space'' that look cartician, just like the grids we discuss +%here. Or one can take into account that grid cells become smaller and +%eventually have a singularity as they approach $r=0$ and follow the approach by +%\cite{Ruyten_1993} to obtain a correct density representation, even at the +%symmetry axis. + +%So far only interpolation in one dimension has been discussed or interpolation +%that treats all dimensions the same. +So far only dimension-by-dimension interpolation has been discussed. +This construction leads to codes that +conserve total momentum. Alternatively it is possible to combine shape function +of different orders to obtain a code that conserves total energy +\cite{Sokolov_2013}. A good example of this is the VPIC code (description in +\cite{Bowers_2008}) that mixed NGP and CIC shape functions. Magnetic field +components $B_i$ are interpolated using linear interpolation in the $x_i$ +coordinate and NGP in the other two coordinates. Electric field components +$E_i$ use NGP in the $x_i$ coordinate and CIC for the other two directions. +%The use of only six locations to obtain the local magnetic field and twelve for +%the electric field allows to handle larger numbers of particles efficiently. +%The downside is of course that hundreds or thousands of particles per species +%are required to bring down the noise level. +The low-level interpolation unfortunately requires very high particle numbers +to reach acceptable noise levels. + +Since many different choices for shape functions are possible, many +comparisons have been made \cite{Abe_1986,Kilian_2013,Munoz_2014}. No universal +winner has emerged and it is advisable to test +different shape function to make sure that physical results are insensitive to +the choices made. A recent idea by \cite{Wu_2018} is to use adaptive width per +particle and update them during the course of the simulation to reduce overall +noise. +%Other schemes that pick or modify the width of the shape function to +%reduce known numerical problems might follow. + +\subsection{Particle Motion} +\label{sec:num:particle} + + +Once the electromagnetic fields have been interpolated to the location of the +particle, it is necessary to update the position and velocity of the particle +accordingly. Since the first publication of the particle push by +\cite{Boris_1970} basically all codes use this method, possibly with minor +adjustments. + +Similar to the leap-frog procedure for the electromagnetic fields the particle's position and velocity are updated according to +\begin{align} + \vec{v}(t+\Delta{t}/2) &= \vec{v}(t-\Delta{t}/2) + \vec{F}(x(t),v(t))\cdot\Delta{t}/m \quad , \label{eq:num:velupdate}\\ + \vec{x}(t+\Delta{t})\phantom{/2} &= \vec{x}(t)\phantom{-\Delta{t}/2}\,\,\, + \vec{v}(t+\Delta{t}/2)\cdot\Delta{t} \quad . \label{eq:num:posupdate} +\end{align} + +When the force depends only on position, this can be solved straightforwardly. +For velocity dependent forces - magnetic fields are the most important case - +there is dependence on $\vec{x}(t)$, which is not known. The interpolation +$\vec{v}(t) \approx 1/2\left(\vec{v}(t-\Delta{t}/2)+\vec{v}(t+\Delta{t}/2)\right)$, but +this leads to an implicit dependence of Eq.~\eqref{eq:num:velupdate} on +$\vec{v}(t+\Delta{t}/2)$ on both sides. + +% +%Without magnetic field, when the force $\vec{F}$ only depends on the particle +%position $x(t)$, this is straight forward to solve. If there is however a +%magnetic field, the Lorentz force introduces a dependence on the velocity +%$\vec{v}(t)$ that we do not know. The straight forward next step is to approximate +%the velocity at this point in time by $\vec{v}(t) \approx +%1/2\left(\vec{v}(t-\Delta{t}/2)+\vec{v}(t+\Delta{t}/2)\right)$, but now +%Eq.~\eqref{eq:num:velupdate} has new new velocity $\vec{v}(t+\Delta{t}/2)$ on +%both sides. The Boris push allows us to solve this implicit equation without +%matrix inversion or iteration. + +%The Boris push allows us to solve this implicit equation without matrix inversion or iteration. Since different modifications of the Boris push differ in how they handle the +%relativistic case it is worthwhile to switch from velocities $\vec{v}$ to the +%relativistic momentum per rest mass $\vec{u} = \vec{p}/m = \gamma\vec{v}$. +%This quantity does not suffer from the problem that it has a fixed upper value +%and thus we avoid the loss of precision due to the finite resolution of +%floating point numbers close to the speed of light. +%Eqs.~\eqref{eq:num:velupdate} and \eqref{eq:num:posupdate} then read + +The Boris push allows us to solve this directly and efficiently. The computation efficiency is important since typical simulations contain many more particles than grid cells. + +In order to account for relativistic +versions, the formulation shall be done using relativistic momentum per rest mass $\vec{u} = \vec{p}/m = \gamma\vec{v}$. Here $\gamma$ is the Lorentz factor of the macro particle. +This quantity does not suffer from the problem that it has a fixed upper value +and thus we avoid the loss of precision due to the finite resolution of +floating point numbers close to the speed of light. +Eqs.~\eqref{eq:num:velupdate} and \eqref{eq:num:posupdate} then read +\begin{align} + \vec{u}(t+\Delta{t}/2) &= \vec{u}(t-\Delta{t}/2) + \vec{F}(x(t),v(t))\cdot\Delta{t}/m \quad , \\ + \gamma(t+\Delta{t}/2) &= \sqrt{1 + \frac{\vec{u}(t+\Delta{t}/2) \cdot \vec{u}(t+\Delta{t}/2)}{c^2}} \\ + \vec{x}(t+\Delta{t})\phantom{/2} &= \vec{x}(t)\phantom{-\Delta{t}/2}\,\,\, + \vec{u}(t+\Delta{t}/2)\cdot\Delta{t}/\gamma(t+\Delta{t}/2) \quad , \\ + \vec{F}(x(t),v(t)) &= \frac{q}{m} \left(\vec{E}(x(t)) + \vec{v}(t) \times \vec{B}(x(t))\right) \quad . +\end{align} + +\begin{figure}[h!] + \centering + \includegraphics[width=0.4\hsize]{fig_chapter4/boris_push.pdf} + \caption{Velocity diagram of the Boris push: The red arrows indicate the change in velocity $q/m \vec{E}(t) \Delta{t}/2$ from the acceleration by the electric field $E(t)$ at the beginning and end of the Boris push. The vector $\vec{\Omega}$ is a normalized magnetic field $\vec{B}$ such that a cross product with it produces half the final rotation. This allows the construction of $\vec{v}_2$ and the final accurate solution.} + \label{fig:num:boris_push} +\end{figure} + +The major insight that allows to solve the problem is that the magnetic field +can only change the direction of the velocity vector. It is therefore possible +to construct a suitable rotation using geometric considerations. The effect of +the electric field is purely an acceleration in the direction of the electric +field. To maintain reversibility in time and second order accuracy it is split +into two equal parts performed before and after handling the magnetic field. Using this insight we can perform the following steps: +\begin{align} + \vec{u}_1 &= \vec{u}(t-\Delta{t}/2) + \frac{q}{m}\vec{E}(t)\frac{\Delta{t}}{2} \\ + \vec{\Omega} &= \tan{\left(\frac{q}{\gamma\,m}|B(t)|\frac{\Delta{t}}{2}\right)}\frac{\vec{B}}{|\vec{B}|} \label{eq:num:tanrotation} \\ + \vec{t} &= \frac{2}{1 + \vec{\Omega}\cdot\vec{\Omega}} \vec{\Omega}\\ + \vec{u}_2 &= \vec{u}_1 + \vec{u}_1 \times \vec{\Omega} \\ + \vec{u}_3 &= \vec{u}_1 + \vec{u}_2 \times \vec{t} \\ + \vec{u}(t+\Delta{t}/2) &= \vec{u}_3 + \frac{q}{m}\vec{E}(t)\frac{\Delta{t}}{2} +\end{align} + +It is worth noting that the original algorithm by Boris contains the $\tan$ in +Eq.~\eqref{eq:num:tanrotation} and the suggestion to expand it at least up to +fourth order if it is too expensive to compute $\tan$ to machine precision. However many codes since then have made the +approximation $\vec{\Omega} \approx q/(\gamma\,m)\,\vec{B}(t)\,\Delta{t}/2$, +This produces only the correct gyro radius, not the correct gyro angle. + +The Lorentz factor $\gamma$ in Eq.~\eqref{eq:num:tanrotation} is approximated by +$\gamma = \sqrt{1 + \vec{u}_1\cdot\vec{u}_1 / c^2}$, which according to +\cite{Vay_2008} can lead to spurious forces. +%and he suggests a more complicated expression. +% +% He therefor suggests to use +% \begin{align} +% \vec{u}_1 &= \vec{u}(t-\Delta{t}/2) + \frac{q}{m}\vec{E}(t)\frac{\Delta{t}}{2} \\ +% \vec{\tau} &= \frac{q}{m}\vec{B}(t)\frac{\Delta{t}}{2} \\ +% \vec{u}' &= \vec{u}_2 + \frac{q}{m}\vec{E}(t)\frac{\Delta{t}}{2} \\ +% u^{*} &= \left(\vec{u}' \cdot \vec{\tau}\right) / c \\ +% \gamma' &= \sqrt{1 + \frac{\vec{u}' \cdot \vec{u}'}{c^2}} \\ +% \sigma &= \gamma'^2 - \vec{\tau} \cdot \vec{\tau} \\ +% \gamma &= \sqrt{\frac{\sigma+\sqrt{\sigma^2 + 4(\vec{\tau}\cdot\vec{\tau} + u^{*2})}}2{}}\\ +% s &= \frac{1}{1 + \vec{\tau}\cdot\vec{\tau}}\\ +% \vec{u}(t+\Delta{t}/2) &= s\left( \vec{u}' + (\vec{u}' \cdot \vec{\tau})\vec{\tau} + \vec{u}' \times \vec{\tau}\right) +% \end{align} +% +Other modifications of the Boris push, such as \cite{Higuera_2017} and +\cite{Umeda_2018} exist as well. Some comparison between different variants +can be found in \cite{Ripperda_2018} or \cite{Zenitani_2018}. + +% All of these algorithm assume that the electric and magnetic fields do not +% change during the time step $\Delta{t}$, nor is the field reinterpolated to the +% changing position of the particle. The particle therefore effectively +% experiences a constant and homogeneous field. The solution to the (relativistic) +% equation of motion is in principle known analytically (see e.g. +% \cite{Hyman_1997}), but no particle pusher based on this analytic solution is +% in widespread use. + +\subsection{Deposition and Filtering} +\label{subsec:num:depostion} + + +Now that the electromagnetic field has acted on the particle we need to +calculate -- in the case of an electrostatic code -- the charge density +distribution resulting from the new locations of the particles, or -- in the +case of an electromagnetic code -- the current density distribution. This +requires interpolation from the particle locations back to the grid and is typically the most expensive operation in the simulation code. As +\cite{Birdsall_2005} shows it is desirable to use the same interpolation method +for both the interpolation from the grid to the particle location as well as +the deposition of the particle quantities $\rho$ and $\vec{\jmath}$ onto the +grid to avoid spurious self-forces. + +The deposition of $\rho(t+\Delta{t})$ based on the newly calculated +$\vec{x}(t+\Delta{t})$ is straight forward and simply given by +\begin{equation} + \rho(i\Delta{x},j\Delta{y}) = \sum_{p} q_p W(x_p - i\Delta{x}) \cdot W(y_p - j\Delta{y}) \quad . +\end{equation} +The sum is taken over all particles, multiplying their charge with the weight +function based on the distance between the particle position +$\vec{x}_p(t+\Delta{t})$ and the origin of the grid cell, where the charge +density is located. +%One might be tempted to locate the charge density at the +%center of the cell, to allow for the nice interpretation as the charge +%contained in the cell, but typically the field solver calculates the +%electrostatic potential at the location where the charge density is located. +%Picking the corners of the cell allows to use a straight forward finite +%difference approximation to calculate the electric field at the midpoint of +%the edges. +It is advisable to store the charge density at the cell corners. + +Calculating the current $\vec{\jmath}(t+\Delta{t}/2)$ based on the old location +$\vec{x}(t)$, the new location $\vec{x}(t+\Delta{t})$ and the velocity +$\vec{v}(t+\Delta{t}/2)$ is slightly more complicated. + +\begin{figure}[htbp] + \begin{center} + \includegraphics[width=0.5\textwidth]{fig_chapter4/currentassignment_naive.pdf} + \caption{Naive current deposition for a charged particle moving as indicated by the black arrow and deposition current density onto the grid as shown in green. Solid black lines indicate grid cells, dashed line illustrate midplanes of cell faces.} + \label{fig:num:currentassignment_naive} + \end{center} +\end{figure} + +The current carried by a particle with charge $q_p$ moving at velocity +$\vec{v}(t+\Delta{t}/2)$ is given by $\vec{\jmath} = q_p +\vec{v}(t+\Delta{t}/2)$ and it is located around the position at this time, +$\vec{x}(t+\Delta{t}/2)$ that can be approximated by +$\left(\vec{x}(t)+\vec{x}(t+\Delta{t})\right)/2$. +Fig.~\ref{fig:num:currentassignment_naive} illustrates that this current can +simply be interpolated onto the grid using the weight functions, just as for +the charge density. The current on a cell edge is then simply the charge +flowing through the associated cell face over the course of a time step. + +The problem with this straightforward procedure is that the current deposited +in this way does not satisfies the discrete continuity equation given by +\begin{align} +&\frac{\rho(i\Delta{x},j\Delta{y},t+\Delta{t})-\rho(i\Delta{x},j\Delta{y},t)}{\Delta{t}} \nonumber \\ +&\quad + \frac{j_x((i+1/2)\Delta{x},j\Delta{y},t+\Delta{t}/2) - j_x((i-1/2)\Delta{x},j\Delta{y},t+\Delta{t}/2)}{\Delta{x}} \nonumber \\ +&\quad + \frac{j_y(i\Delta{x},(j+1/2)\Delta{y},t+\Delta{t}/2) - j_y(i\Delta{x},(j-1/2)\Delta{y},t+\Delta{t}/2)}{\Delta{y}} = 0 \quad . +\end{align} + +Since this current enters Maxwell's equations as a source term it will lead to +an electric field that does not actually satisfy Gauss' Law. In other words the +curl-free component of the electric field in an electromagnetic code using this +current deposition scheme will differ from the electric field in an +electrostatic code with the same particle distribution. This is clearly not +desirable and different methods have been used to correct the problem. One is to +deposit the charge density separately and to solve a Poisson equation to get +the longitudinal part of the electric field correct. Computationally cheaper +and very effective is to make use of the fact that the electric field is nearly +correct and to clean up the remaining error using a correction scheme, such as +the one by \cite{Marder_1987}. + +This problem is solved all-together by current deposition schemes that +deposit a current that satisfies the discrete continuity equation directly. +The first of these so called \textit{charge conserving} schemes is by +\cite{Eastwood_1991}, +%\footnote{this paper is probably better known for the novel +%Maxwell solver described therein, not the current deposition algorithm.} +but several others have been developed since. The deposition in these schemes is +slightly more expensive than in the naive algorithm, but the need to remove +violations of Gauss' Law is completely eliminated. + +Somewhat more widely implemented in the scheme by \cite{Villasenor_1992}. The +downside of this scheme is the need to treat the particle motion differently +depending how many cell interfaces the particle interacts with. Since this +scheme needs to branch to different algorithms its use especially on GPU is +disadvantageous as branching computationally more expensive there.Additionally +this scheme is tedious to extend to shape functions beyond CIC. + +% \begin{figure}[htbp] +% \begin{center} +% \includegraphics[width=0.5\textwidth]{currentassignment_esirkepov.pdf} +% \caption{Current deposition using the algorithm by \cite{Esirkepov_2001}. The particle motion is decomposed into axis-parallel segments that are individually weighted.} +% \label{fig:num:currentassignment_esirkepov} +% \end{center} +% \end{figure} + +\begin{figure}[h!] + \centering + \begin{subfigure}{0.4\hsize} + \centering + \includegraphics[width=\textwidth]{fig_chapter4/currentassignment_esirkepov.pdf} + \caption{Current deposition using the algorithm by \cite{Esirkepov_2001}. The particle motion is decomposed into axis-parallel segments that are individually weighted.} + \label{fig:num:currentassignment_esirkepov} + \end{subfigure} + \begin{subfigure}{0.4\hsize} + \centering + \includegraphics[width=\textwidth]{fig_chapter4/currentassignment_umeda.pdf} + \caption{Current deposition using the Zig-Zag algorithm by \cite{Umeda_2003}. As the particle closes from one cell to another + %(across the solid black line indicating the cell interface) + , its trajectory is modified to go via the midpoint.} + \label{fig:num:currentassignment_umeda} + \end{subfigure} + \caption{Charge conserving current deposition} +\end{figure} + + +A scheme that works with arbitrary shape functions (as long as they are products +of separate one-dimensional shape functions) and without the need for different +treatment of special cases is the current deposition by \cite{Esirkepov_2001}. +Fig.~\ref{fig:num:currentassignment_esirkepov} illustrates the current density +that is deposited using this algorithm for the same particle move as used in +Fig.~\ref{fig:num:currentassignment_naive}. The reader can verify that the +total current is identical, but the distribution onto the different grid points +is different. In this algorithm the motion of the particle is decomposed into +separate displacements parallel to the grid axis that are weighted +individually. Readers that are interested in implementing this algorithm are +referred back to the excellent original paper. + +The other widely used scheme +%in modern codes +is the Zig-Zag scheme described in +\cite{Umeda_2003}. In this scheme particles can only cross between cells at the +midpoint of the interface. A particle that does not naturally go through that +point has its motion split into a motion from the starting position to the mid +point, followed by a separate motion from the midpoint to the final location, +resulting in a Zig-Zag trajectory %that gave the scheme it's name. +as illustrated in Fig.~\ref{fig:num:currentassignment_umeda}% illustrates this motion and the + ~resulting current for the same particle trajectory as used before. +%Finding the midpoints for the fraction of particles that does not stay in the same cell +%requires some conditional code, but the upside is that the current deposition +%inside each cell is slightly simpler. Overall the computational cost and +%noise-properties between the two deposition schemes is similar. +Although the method requires some code depending on conditional branching the +computational cost and noise-properties between the two later deposition schemes +is similar. + +% \begin{figure}[htbp] +% \begin{center} +% \includegraphics[width=0.5\textwidth]{currentassignment_umeda.pdf} +% \caption{Current deposition using the Zig-Zag algorithm by \cite{Umeda_2003}. As the particle closes from one cell to another (across the solid black line indicating the cell interface), it's trajectory is modified to go via the midpoint.} +% \label{fig:num:currentassignment_umeda} +% \end{center} +% \end{figure} +% +%Even in the case of unstructured grids, a charge-conserving current deposition +%method has been developed by \cite{Moon_2015}, that makes use of the +%discrete exterior algebra in its derivation. + +Once the current is deposited on the grid it can be filtered to remove unwanted +noise. The noise level in PiC simulations is exacerbated by the artificially lowered number of macro particles. The paper by \cite{Vay_2011} has an introduction to some digital filters +and the associated terminology. Many codes simply use one or more passes of a +simple binomial filter to reduce high frequency fluctuations, but it is +possible to tune filters specifically to the problem at hand and get much +better performance. + +\subsection{Initialization and Particle Handling} + +\label{subsec:num:init} + +%We can now covered how the particle based source terms are incorporated in the +%evolution of the gridded electromagnetic quantities, how those act on the +%particles and how new source terms are deposited onto the grid based on the +%updated particle properties. An important part that is still undescribed is the +%setup of the initial conditions. For the field quantities on the grid these are +%usually simply set base on analytic expression for known equilibria. Most of +%them only require an initial magnetic field and have vanishing electric field. +%Creating the initial particle population is a little bit more complicated and +%can have an important influence on the noise level in the simulation. +%The difficulty is to create a number of particles that represent the desired +%distribution function $f(\vec{x},\vec{v},t_0)$. We will approach this problem +%step by step. + +So far we have described how the temporal evolution of particles and fields and +their interaction are done in PiC codes. Yet the initial conditions have to be +prescribed. For field quantities this is a straight forward procedure: Analytic +expressions for equilibria are used (typically the magnetic field is given and the +electric is assumed to be zero). Reproducing the desired +distribution function $f(\vec{x},\vec{v},t_0)$ is more complicated and the method +used may have a measurable impact on the noise level. + + +The easiest and not uncommon case is a constant spatial density +and a non-relativistic Maxwellian velocity distribution. In this +case we can pick the initial position of the particle at random using +\begin{equation} + \vec{x} = \left(L_x\cdot \mathcal{U}(0,1), L_y \cdot \mathcal{U}(0,1), L_z \cdot \mathcal{U}(0,1)\right) \quad, +\end{equation} +where the random generator function $\mathcal{U}$ produces three independent (pseudo-)random numbers, uniformly distributed between zero and one. The expected number of \textit{particles per cell} (\textit{ppc}) is Poisson distributed as we have a discrete probability distribution with independent probability. Since the number of macroparticles is significantly smaller than the number of real particles, the statistical density fluctuations are higher in the simulation than in the reality. One easy step to remedy this to some extent is to create exactly the expected number of macro particles per cell and only choose +the position inside the cell at random. This also makes it easy to represent +spatially changing densities, by computing the number of particles in each cell +from a known analytic function $n(\vec{x})$. This works well as long as the +scale length $l_n = n / \frac{\partial\, n}{\partial{x}}$ is large compared to +the cell size $\Delta{x}$. + +For uniform densities there is also the possibility to use \textit{low +discrepancy series} such as the Halton sequence \cite{Halton_1964}. This +sequence distributes particles more uniformly in the +simulation domain. This reduces the noise level as +$\mathcal{O}(1/N)$ with the particle number. Adding more particles would reduce the noise level only like $\mathcal{O}(1/\sqrt{N})$ . This \textit{quiet start} has been successfully used e.g. in the study of instabilities. %(see \cite{Byers_1970} for an example). + +The non-relativistic Maxwellian distribution is simply the composition of three +velocity components that individually follow a normal distribution: +\begin{equation} + \vec{v} = \left(\mathcal{N}(u_x, v_{th}), \mathcal{N}(u_y, v_{th}), \mathcal{N}(u_z,v_{th})\right) \quad. +\end{equation} +$\mathcal{N}(\mu,\sigma)$ produces a random number from a normal +distribution with mean $\mu$ and standard deviation $\sigma$. The mean can be +the average drift velocity of that species (and can depend on position and +particle species, e.g. in the setup of a current sheet) and the standard +deviation is set by the thermal speed +\begin{equation} + v_{th} = \sqrt{\frac{k_B T}{m}} \quad . +\end{equation} +Note that there is a second popular definition of the thermal speed that +includes a factor of square root two. When comparing with other codes and results this is a +point worth double-checking. Different species of different masses will have +different thermal speeds at the same temperature. +%The extension of this method +%to include species of different temperatures for different species or spatial +%directions is straight forward. + +%Some early simulations used other methods to approximate a Maxwellian +%distribution, but on modern machines the generation of $\mathcal{N}$ using the +%Box-Muller method or the ziggurat algorithm is sufficiently fast that a +%straight-forward approach performs well. This is both thanks to the fast +%evaluation of $\log$ and trigonometric functions and to the increased +%performance of the underlying generators producing pseudo-random integers. + +If the drift speed $\vec{u}$ approaches relativistic speeds, but the thermal +speeds are still sufficiently low, some accuracy can be gained by generating a +non-drifting distribution and boosting it with a Lorentz boost. If the thermal +speed is large as well, it is necessary to generate a proper Maxwell-J\"uttner +distribution. This used to be problematic and many older codes neglect this, +however this leads to problematic deviations from the correct distribution as +demonstrated in \cite{Melzani_2013}. Fortunately an efficient algorithm is +described in \cite{Zenitani_2015}. + +Sometimes it is desired to generate new particles from a given distribution +during initialization, but also later in the simulation, e.g. to fill a portion +of newly expanded simulation space or to inject plasma through an inflow +boundary. This is possible, but some subtleties need to be considered due to the +interaction with existing fields in the domain \cite{Cartwright_2000}. + +% particle splitting and merging +In many simulations particles are created once and afterwards their number +never changes. It can however be useful to split particles into particles with +smaller macrofactor. in regions of (phase-)space, where there is a low number +of particles, to get better statistics and reduce noise. Many of those particles +however leave the interesting region again and need to be merged together again +to avoid a ballooning of the computational cost. + +Splitting particles in a way that conserves mass, momentum and energy is +straight forward, as we can simply pick a source particle, split it into two +equal parts of half the statistical weight and displace them slightly from the +center mass to ensure that the following plasma dynamics will transport them +separately. Some care can be taken that the displacement does not change the +energy in the electromagnetic fields. +%, but even without that the naive algorithm works well. +The main problem is particle merging, as we will never find two +particles of exactly equal velocities close to each other. Combining two +particles of unequal speeds however can not conserve both momentum and energy +at the same time. +%A first solution was offered by \cite{Shon_2001}, combining several particles +%into several new particles to conserve charge density, momentum and energy. +In simulations where many new particles are created the algorithm by +\cite{Welch_2007} that estimates the distribution function from $N \gg 2$ +particles and replaces them with $M$ ($2 \ll M < N$) new particles can be +useful. The method of \cite{Faghihi_2017} extends this to include also the +stress tensor. If we do not want to redraw the complete particle population, +e.g. because we want to preserve features in phase space that are not well +described by the first few fluid moments, it is necessary to find particles of +similar speeds. The method by \cite{Martin_2012} to find such particle pairs or +groups can be useful for this task. The method by \cite{Vranic_2015} aims to +merge $N$ existing particles into two new particles while conserving charge, +momentum and energy. +%If the reason for splitting particles is mesh-refinement +%in one of the rare AMR codes, the method by \cite{Drouin_2018} can help with +%splitting, but merging remains a problem. + +%Handling of dynamic particle numbers in a way that covers phase space well, is +%numerically efficient and conserves all global quantities remains a problem, +%despite all the described attempts and many others in recent year. + +\subsection{Boundary Conditions} + +\label{subsec:num:boundary} + +As mentioned before it might be desirable to create new particles at the +boundary and proper care has to be taken for to match the existing fields +there. This is a general problem with boundary conditions in Particle-in-cell +codes. One has to handle both the fields and the particles there and should do +so in a consistent way to avoid problems. + +Numerically easiest are periodic boundary conditions where the cell at the +upper end of a coordinate is logically wrapped around (for $N$ cells cell number 0 is right of cell $N-1$) to be just below the +lower end of the coordinate. Particles that leave through one side are +reinjected unmodified at the other end. Periodic boundary conditions mimic +infinite space reasonably well, as there are no fixed walls or ends to the +simulations. The periodic nature of the simulation does however select a finite +number of modes %-- out of the infinite possibilities that exist in free space -- +that have an integer number of wavelengths in the simulation box. The number of grid +limits the mode number and the spectrum. + +%If the number of grid cells is small, so is the number of allowed wave modes and the +%quantization of the spectrum can have visible, undesirable effects. + +%Another set of boundary conditions that are reasonably popular is a version of +%Dirichlet boundary conditions for some field components. More specifically the +%normal component of the magnetic field is held fixed in time and the two +%tangential components of the electric field are set to zero. Geometrically this +%affects the three field components that are located at that face of the unit +%cell. The two magnetic field components on the perpendicular faces and the +%electric field on the edge normal to the boundary are not needed at the +%boundary and are not modified by evolved freely, same as in the interior of the +%domain. Vanishing electric field, even in the presence of an electric current +%is typical for a \textit{perfect electric conductor} (PEC). This boundary +%therefore mimics a metal wall with vanishing resistivity. If a realistic metal +%boundary is required, much more effort is needed. This boundary condition does +%reflect impinging electromagnetic waves. + +Also popular are Dirichlet boundary conditions for some field components: The +normal component of the magnetic field is held fixed in time and the two +tangential components of the electric field are set to zero. Geometrically this +affects the three field components that are located at that face of the unit +cell. The two magnetic field components on the perpendicular faces and the +electric field on the edge normal to the boundary are not needed at the +boundary and are evolved freely, same as in the interior of the +domain. Vanishing electric field, even in the presence of an electric current +is typical for a \textit{perfect electric conductor} (PEC). This boundary +therefore mimics a metal wall with vanishing resistivity. If a realistic metal +boundary is required, much more effort is needed. This boundary condition does +reflect impinging electromagnetic waves. The PEC boundary is therefore often +coupled with a reflecting boundary condition for particles. When a particle +ends outside the boundary at the end +of the timestep, both the component of the position normal to the wall, as well +as the normal component of the velocity are flipped. This process is identical to specular +reflection when reaching the boundary. + +More complicated boundary conditions for particles might absorb the particle or +emit one or more new particles drawn from some distribution function, possibly +depending on the energy of the incoming particle. This can simulate more or +less realistic metal wall including effects such as wall charging or secondary +electron emission. + +While physically not a boundary condition, moving simulation domains are often +implemented in terms of boundary conditions. One example is the moving window +in the XOOPIC code \cite{Bruhwiler_2001}. Here the Eulerian mesh is not moving, +but instead new grid cells are created on one side and populated with +background magnetic field and fresh thermal particles. On the other side the +grid is truncated and particles are removed. If the window happens to move at the +speed of light -- common in simulation that follow the path of a laser pulse +through a plasma (see e.g. \cite{Yu_2016}) -- no perturbation caused by the +downstream boundary can reach the interior of the simulation domain, greatly +simplifying the implementation. If the window is moving slower, a boundary that +absorbs waves and does not reflect them back into the interior is needed at +the lower end of the moving window. + + +This brings us to the topic of absorbing boundary conditions. These have been a +problem for a long time. Initially Liao boundary conditions \cite{Liao_1984} +and Mur \cite{Mur_1981} have been used. These boundary condition are described +in detail in the great book on FDTD methods by \cite{Taflove_2000}. The problem +with these boundary conditions is that they +rely on fixed waves speeds. The presence of the plasma changes the wave speed. +%from the speed of light to a lower speed that might depend on wavelength, +%incident angle and plasma parameters such as the magnetizations +This makes it very hard to absorb all wave modes that reach the boundary sufficiently well. + +A great step forward was the development of the \textit{Perfectly Matched +Layer} (PML) by \cite{Berenger_1994}. This layer is technically not a boundary +condition, but rather a region of space with modified permeability and +permittivity. These material properties are chosen such that the impedance of +the material is identical to the adjacent free space. Therefore the refractive +index does not change from free space to the material layer and no waves are +reflected. Inside the material the wave is however damped, attenuating before +it reaches the actual boundary. There a simple boundary condition such as PEC +can be chosen. Any wave that does reach the boundary and gets reflected is +attenuated a second time on the way out, greatly improving performance of this +scheme. +%Several different formulations of PML have been developed such as +%split-PML (where each electric and magnetic field component inside the boundary +%is split into two independent, unphysical fields that are damped separately), +%uniaxial PML (UPML) and more general stretched-coordinate PML wave been +%developed. +One implementation known as convolutional PML (CPML) has been used +successfully in multiple cases. The book \cite{Berenger_2007} explains the +different methods and their connections. + +%Even before the development of these methods was completed, PML conditions were +%used in Particle-in-Cell simulations, see e.g. \cite{Pasik_1999, Pukhov_1999}. +PML boundary conditions are often combined with boundaries that absorb +outgoing particles and replace them in some scheme to simulate the presence of a +thermal plasma bath outside the simulation domain that can act as the source of +unperturbed upstream. This has been used in the simulation of +magnetic reconnection, where the removal of plasma in the outflow regions and +the injection of fresh upstream with not-yet-reconnected magnetic flux allows +for the study of larger systems (see \cite{Daughton_2006, +Klimas_2008, Ohtani_2009}). + +%Besides the injection of thermal plasma on the boundary +It is also possible to +inject electromagnetic waves to study their propagation. This can either be +achieved by the means of an artificial current, acting as an antenna or by +manipulating the electromagnetic field directly. More complicated injection +schemes that allow for the injection of realistic laser pulses +(\cite{Thiele_2016}), of oblique waves with arbitrary 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. + +% Eliasson_2002.pdf outflow condition for Fourier transformed Vlasov-poison system + +\subsection{Diagnostics} +\label{subsec:num:diag} + +Designing and using a Particle-in-Cell code is interesting by itself, the ultimate +goal is to produce output that can be used to gain understanding of the +physical system. This requires the calculation of diagnostic quantities and +storing them in a way that persists beyond the duration of the simulation. +%As tempting as it might be to simply save the complete state of the simulation and +%use later post-processing to produce higher-level diagnostics and plots, it is +%usually a bad idea from a performance standpoint. +Simply storing the full state of the simulation is typically impossible for +performance reasons. +Whenever possible the simulation code should calculate diagnostics as close +to the final plots and output only them. After all, a simple histogram for +a velocity distribution might only be a few kilobytes, where the dump of all +particles is several terabytes. Saving the simulation state for later analysis or restart might still be necessary but should be performed as rarely as possible. + +There are of course many high-level diagnostics and it is impossible to cover +all of them. This section will therefore mostly cover general-purpose output +that can be postprocessed further. To gain high-level insight into the +simulation at low I/O cost it is often 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. The diagnostic is also very valuable to check conservation of total energy in a PiC code that conserves momentum by construction. + +Another obvious candidate for output are gridded quantities, such as electric +and magnetic field as well as current density. These quantities do not +require any extra calculation. 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\footnote{other formats are available, +but HDF5 is widely supported by many post-processing tools}. The first choice +has the advantage of low overhead as nearly no metadata is saved. The downside +is that the separate views of the different domains need to be combined for +further analysis. The overhead of creating many files at once and the tedious +file handling make this alternative a poor choice for 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 inclusion of meta-data and easy +loading into analysis tool, independent 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 compute 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 line-outs 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 +cadence. 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 simulation, either due to reaching a +wallclock limit, or due to a compute node crashing. 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 full particle information needs to be stored. Again direct binary dumps or +higher-level self-describing 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 histograms of particle quantities +(speed, energy), two-dimensional cuts in phase space showing e.g. +$x-v_x$-densities, Fourier transforms of other quantities 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 phase space density on a six-dimensional grid, +discrete estimates of the entropy based on a binned phase space. The +possibilities are endless here and a large fraction of the development time of +a mature code will be invested in providing user friendly, scalable, efficient +diagnostics. + +One special diagnostic that is of interest in astrophysical applications is 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 frequencies that can be calculated separately. See +\cite{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 simulation needs +to be included \cite{Kalapotharakos_2018}. + +\subsection{Test Cases} + +\label{subsec:num:test} + +Compared to fluid codes that easily develop instabilities e.g. through +negative densities or numerical instabilities, PiC codes are rather robust. +This numerical stability is sometimes mistaken as physical plausibility. +It is therefore important that the researcher employs a healthy skepticism +towards the code and that the code is tested. Other communities like the +fluid simulation community. 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 validation efforts (making +sure that the employed plasma model is adequate and that the underlying +assumptions are met), benchmarking (comparison with other codes) and +validation (testing proper implementation) are relatively new +and rare. One of the reasons is that the number of test problems with known, +analytic solutions is rather small. + + +%Unlike hydro codes that tend to develop negative densities or pressures when +%numerical problems occur 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 skepticism +%towards 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 adequate +%and that the underlying assumptions are met), benchmarking (comparison with +%other codes) and validation (testing proper implementation) are relatively 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 Saturn's 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. + +But there are 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 Saturn's magnetopause \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 test problems 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. + +Physical setups for which analytic solutions exist include the study of plasma +waves \citep{Aastroem_1950, Bernstein_1958, Andre_1985, Swanson_2003} and the +thermal excitation of fluctuations in density \citep{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 comparison 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 behavior when improving numerical +resolution can also be used to test the code, even without outside reference +simulations, as shown in \cite{Riva_2017}. + + + \chapter{Hyperbolische Erhaltungssätze} - Finite Differenzen @@ -1073,9 +2641,8 @@ A first improvement to such a scheme is the so called \emph{Leapfrog}: We define \chapter{Lattice-Boltzmann} - -\nocite{*} -\printbibliography +\bibliographystyle{natdin} +\bibliography{./literatur.bib} \end{document}