Radhika Achikanath Chirakkara, Christoph Federrath, Amit Seta
{"title":"AHKASH: a new Hybrid particle-in-cell code for simulations of astrophysical collisionless plasma","authors":"Radhika Achikanath Chirakkara, Christoph Federrath, Amit Seta","doi":"arxiv-2409.12151","DOIUrl":null,"url":null,"abstract":"We introduce $\\texttt{A}$strophysical $\\texttt{H}$ybrid-$\\texttt{K}$inetic\nsimulations with the $\\texttt{flASH}$ code ($\\texttt{AHKASH}$) -- a new Hybrid\nparticle-in-cell (PIC) code developed within the framework of the multi-physics\ncode $\\texttt{FLASH}$. The new code uses a second-order accurate Boris\nintegrator and a predictor-predictor-corrector algorithm for advancing the\nHybrid-kinetic equations, using the constraint transport method to ensure that\nmagnetic fields are divergence-free. The code supports various interpolation\nschemes between the particles and grid cells, with post-interpolation smoothing\nto reduce finite particle noise. We further implement a $\\delta f$ method to\nstudy instabilities in weakly collisional plasmas. The new code is tested on\nstandard physical problems such as the motion of charged particles in uniform\nand spatially varying magnetic fields, the propagation of Alfv\\'en and whistler\nwaves, and Landau damping of ion acoustic waves. We test different\ninterpolation kernels and demonstrate the necessity of performing\npost-interpolation smoothing. We couple the $\\texttt{TurbGen}$ turbulence\ndriving module to the new Hybrid PIC code, allowing us to test the code on the\nhighly complex physical problem of the turbulent dynamo. To investigate\nsteady-state turbulence with a fixed sonic Mach number, it is important to\nmaintain isothermal plasma conditions. Therefore, we introduce a novel cooling\nmethod for Hybrid PIC codes and provide tests and calibrations of this method\nto keep the plasma isothermal. We describe and test the `hybrid precision'\nmethod, which significantly reduces (by a factor $\\sim1.5$) the computational\ncost, without compromising the accuracy of the numerical solutions. Finally, we\ntest the parallel scalability of the new code, showing excellent scaling up to\n10,000~cores.","PeriodicalId":501369,"journal":{"name":"arXiv - PHYS - Computational Physics","volume":"4 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-09-18","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - PHYS - Computational Physics","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2409.12151","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
We introduce $\texttt{A}$strophysical $\texttt{H}$ybrid-$\texttt{K}$inetic
simulations with the $\texttt{flASH}$ code ($\texttt{AHKASH}$) -- a new Hybrid
particle-in-cell (PIC) code developed within the framework of the multi-physics
code $\texttt{FLASH}$. The new code uses a second-order accurate Boris
integrator and a predictor-predictor-corrector algorithm for advancing the
Hybrid-kinetic equations, using the constraint transport method to ensure that
magnetic fields are divergence-free. The code supports various interpolation
schemes between the particles and grid cells, with post-interpolation smoothing
to reduce finite particle noise. We further implement a $\delta f$ method to
study instabilities in weakly collisional plasmas. The new code is tested on
standard physical problems such as the motion of charged particles in uniform
and spatially varying magnetic fields, the propagation of Alfv\'en and whistler
waves, and Landau damping of ion acoustic waves. We test different
interpolation kernels and demonstrate the necessity of performing
post-interpolation smoothing. We couple the $\texttt{TurbGen}$ turbulence
driving module to the new Hybrid PIC code, allowing us to test the code on the
highly complex physical problem of the turbulent dynamo. To investigate
steady-state turbulence with a fixed sonic Mach number, it is important to
maintain isothermal plasma conditions. Therefore, we introduce a novel cooling
method for Hybrid PIC codes and provide tests and calibrations of this method
to keep the plasma isothermal. We describe and test the `hybrid precision'
method, which significantly reduces (by a factor $\sim1.5$) the computational
cost, without compromising the accuracy of the numerical solutions. Finally, we
test the parallel scalability of the new code, showing excellent scaling up to
10,000~cores.