Verification of long wavelength electromagnetic modes with a gyrokinetic-fluid hybrid model in the XGC code
Robert Hager, Jianying Lang, Choong-Seock Chang, Seung-Hoe Ku, Yang, Chen, Scott E. Parker, Mark F. Adams

TL;DR
This paper extends the XGC1 gyrokinetic PIC code to include a hybrid model with fluid electrons, enabling verification of long wavelength electromagnetic modes like shear Alfvén and tearing modes in different magnetic geometries.
Contribution
It introduces a gyrokinetic-fluid hybrid model in XGC1 for electromagnetic mode verification, combining gyrokinetic ions with fluid electrons.
Findings
Successful verification of shear Alfvén waves.
Verification of resistive tearing modes.
Application in cylindrical and toroidal geometries.
Abstract
As an alternative option to kinetic electrons, the gyrokinetic total-f particle-in-cell (PIC) code XGC1 has been extended to the MHD/fluid type electromagnetic regime by combining gyrokinetic PIC ions with massless drift-fluid electrons analogous to Chen and Parker, Physics of Plasmas 8, 441 (2001). Two representative long wavelength modes, shear Alfv\'en waves and resistive tearing modes, are verified in cylindrical and toroidal magnetic field geometries.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
This article has been submitted to Physics of Plasmas. After publication, it can be found at http://pop.aip.org
Verification of long wavelength electromagnetic modes with a gyrokinetic-fluid hybrid model in the XGC code
Robert Hager
Princeton Plasma Physics Laboratory
P.O. Box 451, Princeton, NJ 08543, USA
Jianying Lang
Intel Corporation
2200 Mission College Blvd. Santa Clara, CA 95054, USA
C.S. Chang
Princeton Plasma Physics Laboratory
P.O. Box 451, Princeton, NJ 08543, USA
S. Ku
Princeton Plasma Physics Laboratory
P.O. Box 451, Princeton, NJ 08543, USA
Y. Chen
University of Colorado
2000 Colorado Avenue, Boulder, CO 80309, USA
S. E. Parker
University of Colorado
2000 Colorado Avenue, Boulder, CO 80309, USA
M. F. Adams
Lawrence Berkeley National Laboratory
1 Cyclotron Road, Berkeley, CA 94720, USA
Abstract
As an alternative option to kinetic electrons, the gyrokinetic total-f particle-in-cell (PIC) code XGC1 has been extended to the MHD/fluid type electromagnetic regime by combining gyrokinetic PIC ions with massless drift-fluid electrons analogous to Chen and Parker, Physics of Plasmas 8, 441 (2001). Two representative long wavelength modes, shear Alfvén waves and resistive tearing modes, are verified in cylindrical and toroidal magnetic field geometries.
This article describes the verification of two important MHD/fluid type, long-wavelength, electromagnetic modes after the addition of an optional kinetic-fluid hybrid model to the gyrokinetic particle-in-cell code XGC1 Ku, Chang, and Diamond (2009). This work complements – as a more economical alternative – the fully implicit, fully kinetic electromagnetic formulation, that is also being developed for XGC1 Ku et al. (2016a).
The importance of MHD/fluid type electromagnetic modes in magnetically confined fusion devices, which operate regularly at moderate to high (the ratio of thermodynamic to magnetic pressure), is widely recognized. Examples are neoclassical tearing modes Connor et al. (1988), sawtooth oscillations von Goeler, Stodiek, and Sauthoff (1974), and edge localized modes Huysmans (2005). Gyrokinetic electromagnetic codes such as GYRO Candy and Waltz (2003); Candy (2005), GS2 Kotschenreuther, Rewoldt, and Tang (1995), GENE Pueschel, Kammerer, and Jenko (2008), GEM Parker, Chen, and Kim (2000); Chen and Parker (2001, 2003) have been available with increasing physics capability for more than a decade and have also been used to study those modes. However, their application to long wavelength MHD/fluid type instabilities has been difficult, especially for PIC codes, due to the so called “cancellation problem” Cummings (1995); Mishchenko, Hatzky, and Könies (2004). Recently, several methods to overcome the cancellation problem with kinetic electrons have been developed for particle codes: the control variate method Hatzky, Könies, and Mishchenko (2007), a special splitting of the vector potential Mishchenko et al. (2014a, b) (used e.g. by the EUTERPE code), and split-weight methods Lee et al. (2001); Chen and Parker (2003) (used in GEM, and being further developed in GTS Startsev et al. (2016)). The XGC1 code Ku, Chang, and Diamond (2009) recently demonstrated fully kinetic electromagnetic capability without cancellation problem Ku et al. (2016a) using a fully implicit electromagnetic scheme based on the work by Chen and Chacón Chen and Chacón (2014, 2015); Chacón and Chen (2016). These methods are computationally expensive for long wave length MHD/fluid type modes even without the cancellation problem. The cheapest way to study these modes is to use fluid electrons instead of electron particles.
Long wavelength electromagnetic physics in the global edge region have so far been studied with fluid and MHD codes (some of them with ad-hoc kinetic ion effect) such as BOUT++ Dudson et al. (2009); Liu et al. (2014), M3D Fu et al. (2006); Breslau, Park, and Jardin (2006), M3D-C1 Ferraro and Jardin (2009); Ren et al. (2015), and JOREK Czarny and Huysmans (2008); Huysmans et al. (2010), which neglect important effects that drive the plasma to a non-thermal equilibrium. Since kinetic ion effects on fluid/MHD modes as well as microturbulence are expected to be important in the plasma edge region, e.g. for the physics of edge localized modes (ELMs), kinetic ballooning modes (KBM) and others, we will improve the fluid and MHD approach by coupling gyrokinetic ions to the massless electron fluid hybrid model utilized in the GEM code Parker, Chen, and Kim (2000); Chen and Parker (2001). Although the fluid treatment of the electrons drops some important effects such as the trapped electron mode (TEM), it is still attractive because its implementation is rather straightforward without the cancellation issue, low fluid/MHD modes are important for ELM activity, and it is economical with computing time.
The fluid-kinetic hybrid version of the XGC1 code used for this report combines gyrokinetic ions in the f formalism Ku, Chang, and Diamond (2009) (which, if done correctly, can be made identical to the total-f formalism Ku et al. (2016b)) with massless drift-fluid electrons Chen and Parker (2001); Chen et al. (2015). The electron density continuity equation is given by:
[TABLE]
where is the axisymmetric background magnetic field, is the perturbed magnetic field, , and is the component of the perturbed vector potential along the background magnetic field; is the vacuum permeability; is the parallel ion fluid flow; is the perturbed ion guiding center distribution function; is the electron density; is the equilibrium current density; is the perturbed iso-thermal electron pressure, and is the drift. We also used the relation . The time evolution of the perturbed vector potential is given by the definition of the electric field and Ohm’s law,
[TABLE]
Here, , is the background electron pressure, and . Finally, the gyrokinetic Poisson equation in the long wave length limit is
[TABLE]
where is the ion electric susceptibility, is the ion gyro radius, is the ion Debye length, and is the Alfvén speed. The ion density is , where indicates gyro-averaging.
The massless electron approximation is valid in the limit or , where .
Both explicit and implicit time integrators have been implemented. A second order Runge-Kutta (RK2) method has been utilized for the time integration of the combined particle-fluid system for many of the results discussed in this work. In the first step, and are evaluated using, , and . Then the particles are pushed for a half time step to evaluate and . In the second step, we evaluate and then push the particles for a full time step to obtain , and .
Implicit time stepping methods have been implemented using the PETSc TS framework Balay et al. (2016a, b, 1997) to overcome the restrictions on the time step of explicit methods. The particle terms and are treated as non-linear contributions to the system of electron fluid equations and are fully integrated into PETSc’s nonlinear solver residual, but only the electron fluid terms are included in the Jacobian. The Newton method is used to solve the non-linear equations, which requires one particle push per evaluation of the residual.
For the verification of shear Alfvén wave physics, we use a minimal system that supports this mode: linearized equations versions of (1)-(3) with the closure . In addition, we neglect the terms related to the curvature and drift in Eq. (1). It is straightforward to prove in cylindrical geometry that the dispersion relation of the resulting reduced system yields . The first verification test of the shear Alfvén dispersion relation was conducted in cylindrical geometry with concentric, circular flux-surfaces with minor radius , constant safety factor , , and . The simulation was initialized with a global perturbation of centered around containing toroidal mode numbers and poloidal mode numbers . With this large scale variation in the radial and poloidal direction, the low resistivity does not influence the real frequency much but still serves as a check for the resistive dissipation of the reduced shear Alfvén wave system (with ). The time step for this simulation was , where . The total duration of the simulation is .
Figure 1 shows the shear Alfvén spectrum obtained from this simulation. The parallel wave number was determined as . The mode frequency is the median of the intensity for each value of and the error bars indicate the decay length of the mode intensity around its median. The increasing width of the error bars at indicates decreasing overall intensity due to the low toroidal and poloidal mode numbers used to initialize the simulation. The steps in the frequency spectrum are an artifact of the interpolation of the intensity from space to a common scale.
Similar tests in toroidal geometry have been performed in a slightly modified version of the standard cyclone geometry, with , , , constant , and keV. The density is varied between and to achieve values of between % and %. The time step is and the total simulation time is . Figure 2 a) shows a poloidal wave number scan () of the frequency of the shear Alfvén wave. The numerical frequencies agree very well with the (approximate) analytical result , where is the parallel connection length for one poloidal circuit. The deviations are caused by the variation of the field line pitch along magnetic field lines. We find that is independent of as expected because only the density was varied in this test.
Since the kinetic-fluid hybrid approach is especially useful for the simulation of low-n tearing modes, we benchmarked the tearing mode in cylindrical and toroidal geometry against the GEM code Chen et al. (2015) and M3D-K Cai and Fu (2012), respectively. We do not consider the effect of kinetic ions in this benchmark. The only term added to the electron fluid equations compared to the terms kept in the shear Alfvén case is the kink drive in Eq. (1) to be consistent with GEM’s eigenvalue solver Chen et al. (2015).
For the benchmark against the GEM code, we use the case described in Ref. Chen et al., 2015: concentric, circular flux-surfaces in cylindrical geometry, m, m (), T, , , , and constant density . Since the electron fluid equations used for this benchmark have no temperature dependence, we can use a constant temperature profile eV, which yields the same on-axis of and relative domain size as in Ref. Chen et al., 2015. The resonant surface for the tearing mode is at corresponding to the normalized poloidal magnetic flux . In order to be able to resolve the resonance layer of the tearing mode also at low resistivity, the radial resolution of our computational mesh varies between mm around the resonant surface to a maximum of mm far from the resonant surface. The relations between the normalized resistivity and growth rate used in Ref. Chen et al., 2015 and the corresponding values and in SI-units are and , where is the proton mass. The results of a resistivity scan of the growth rate of the tearing mode in this geometry is shown in Fig. 3. The growth rates evaluated with XGC1 show excellent agreement with the growth rates computed with GEM’s eigenvalue solver that uses the MHD approximation for the ion polarization density (Fig. 3 in Ref. Chen et al., 2015). We did not include an XGC1 data point for because of the very strict resolution requirements of about m or less for this low resistivity. Using the Crank-Nicolson method, the implicit time integrator could speed up these simulation by a factor of more than 10. For a time step of could be used.
For the benchmark against M3D-K in toroidal geometry, we use a Grad-Shafranov equilibrium generated with the FLOW code Guazzotto et al. (2004) with a fixed circular boundary, m, m, T, , , and constant and eV, so that and . The resonant surface of the tearing mode is located at . The radial resolution of the computational mesh is mm between approximately and and up to cm away from the tearing layer. For the normalized resistivity of used in Ref. Cai and Fu, 2012 and the corresponding normalization relations, we obtain a resistivity in SI units of . The XGC1 growth rate calculation used a time step of and ran for a total time of approximately . Figures 4 a)-d) show the mode structure of the growing mode, which exhibit the usual tearing structure. For comparison with Ref. Cai and Fu, 2012, we use reduced MHD quantities, the perturbed current , and the velocity stream function .
The growth rate we obtain from the XGC1 calculation is and compares well to Ref. Cai and Fu, 2012. The relative difference between the XGC1 and the M3D-K result %.
In order to add gyrokinetic ion effects to electromagnetic fluid/MHD instabilities, the gyrokinetic edge turbulence code XGC1 has been modified by replacing the kinetic electrons by massless drift-fluid electrons Parker, Chen, and Kim (2000); Chen and Parker (2001). Explicit and implicit time integration methods have been implemented and tested. We verified shear Alfvén wave physics against the analytical solution and benchmarked the massless fluid model for resistive tearing modes against the codes GEM and M3D-K. The hybrid model in XGC will be further developed into a total-f code with the aim of studying the onset of edge localized modes across the magnetic separatrix surface. Verification of the kinetic version of peeling-ballooning modes, and kinetic ballooning modes will be reported in a subsequent paper.
The authors would like to thank Guoyong Fu, Stephen Abbott, and Eduardo D’Azevedo for fruitful discussions. Support for this work was provided through the Scientific Discovery through Advanced Computing (SciDAC) program funded by the U.S. Department of Energy Office of Advanced Scientific Computing Research and the Office of Fusion Energy Sciences. Notice: This manuscript has been authored by Princeton University under Contract No. DE-AC02-09CH11466 with the U.S. Department of Energy. The publisher, by accepting the article for publication, acknowledges that the United States Government retains a non- exclusive, paid-up, irrevocable, world-wide license to publish or reproduce the published form of this manuscript, or allow others to do so, for United States Government purposes.
- Ku, Chang, and Diamond (2009) S. Ku, C. Chang, and P. Diamond, Nucl. Fusion 49, 115021 (2009).
- Ku et al. (2016a) S.-H. Ku, R. Hager, C. Chang, L. Chacón, and G. Chen, in B. Am. Phys. Soc. (American Physical Society, 2016) p. GP10.00112.
- Connor et al. (1988) J. W. Connor, S. C. Cowley, R. J. Hastie, T. C. Hender, A. Hood, and T. J. Martin, The Physics of Fluids 31, 577 (1988).
- von Goeler, Stodiek, and Sauthoff (1974) S. von Goeler, W. Stodiek, and N. Sauthoff, Phys. Rev. Lett. 33, 1201 (1974).
- Huysmans (2005) G. T. A. Huysmans, Plasma Phys. Contr. F. 47, B165 (2005).
- Candy and Waltz (2003) J. Candy and R. E. Waltz, J. Comput. Phys. 186, 545 (2003).
- Candy (2005) J. Candy, Phys. Plasmas 12, 072307 (2005).
- Kotschenreuther, Rewoldt, and Tang (1995) M. Kotschenreuther, G. Rewoldt, and W. Tang, Comput. Phys. Commun. 88, 128 (1995).
- Pueschel, Kammerer, and Jenko (2008) M. J. Pueschel, M. Kammerer, and F. Jenko, Phys. Plasmas 15, 102310 (2008).
- Parker, Chen, and Kim (2000) S. E. Parker, Y. Chen, and C. C. Kim, Comput. Phys. Commun. 127, 59 (2000).
- Chen and Parker (2001) Y. Chen and S. Parker, Phys. Plasmas 8, 441 (2001).
- Chen and Parker (2003) Y. Chen and S. E. Parker, J. Comput. Phys. 189, 463 (2003).
- Cummings (1995) J. C. Cummings, Gyrokinetic simulation of finite-beta and self-generated sheared-flow effects on pressure-gradient-driven instabilities, Phd thesis, Princeton University (1995).
- Mishchenko, Hatzky, and Könies (2004) A. Mishchenko, R. Hatzky, and A. Könies, Phys. Plasmas 11, 5480 (2004).
- Hatzky, Könies, and Mishchenko (2007) R. Hatzky, A. Könies, and A. Mishchenko, J. Comput. Phys. 225, 568 (2007).
- Mishchenko et al. (2014a) A. Mishchenko, M. Cole, R. Kleiber, and A. Könies, Phys. Plasmas 21, 052113 (2014a).
- Mishchenko et al. (2014b) A. Mishchenko, A. Könies, R. Kleiber, and M. Cole, Phys. Plasmas 21, 092110 (2014b).
- Lee et al. (2001) W. W. Lee, J. L. V. Lewandowski, T. S. Hahm, and Z. Lin, Phys. Plasmas 8, 4435 (2001).
- Startsev et al. (2016) E. Startsev, W.-L. Lee, W. Wang, and Z. Lu, in B. Am. Phys. Soc. (American Physical Society, 2016) p. BM9.00002.
- Chen and Chacón (2014) G. Chen and L. Chacón, Comput. Phys. Commun. 185, 2391 (2014).
- Chen and Chacón (2015) G. Chen and L. Chacón, Comput. Phys. Commun. 197, 73 (2015).
- Chacón and Chen (2016) L. Chacón and G. Chen, J. Comput. Phys. 316, 578 (2016).
- Dudson et al. (2009) B. Dudson, M. Umansky, X. Xu, P. Snyder, and H. Wilson, Comput. Phys. Commun. 180, 1467 (2009).
- Liu et al. (2014) Z. X. Liu, X. Q. Xu, X. Gao, T. Y. Xia, I. Joseph, W. H. Meyer, S. C. Liu, G. S. Xu, L. M. Shao, S. Y. Ding, G. Q. Li, and J. G. Li, Phys. Plasmas 21, 090705 (2014).
- Fu et al. (2006) G. Y. Fu, W. Park, H. R. Strauss, J. Breslau, J. Chen, S. Jardin, and L. E. Sugiyama, Phys. Plasmas 13, 052517 (2006).
- Breslau, Park, and Jardin (2006) J. A. Breslau, W. Park, and S. C. Jardin, Journal of Physics: Conference Series 46, 97 (2006).
- Ferraro and Jardin (2009) N. Ferraro and S. Jardin, J. Comput. Phys. 228, 7742 (2009).
- Ren et al. (2015) X. Ren, M. Chen, X. Chen, C. Domier, N. Ferraro, G. Kramer, N. L. Jr., C. Muscatello, R. Nazikian, L. Shi, B. Tobias, and E. Valeo, Journal of Instrumentation 10, P10036 (2015).
- Czarny and Huysmans (2008) O. Czarny and G. Huysmans, J. Comput. Phys. 227, 7423 (2008).
- Huysmans et al. (2010) G. Huysmans, S. Pamela, M. Beurskens, M. Becoulet, and E. van der Plas, in Proceedings of the 23rd IAEA Fusion Energy Conference, Daejeon, South Korea (2010) pp. 11–16.
- Ku et al. (2016b) S. Ku, R. Hager, C. Chang, J. Kwon, and S. Parker, J. Comput. Phys. 315, 467 (2016b).
- Chen et al. (2015) Y. Chen, J. Chowdhury, S. E. Parker, and W. Wan, Phys. Plasmas 22, 042111 (2015).
- Balay et al. (2016a) S. Balay, S. Abhyankar, M. F. Adams, J. Brown, P. Brune, K. Buschelman, L. Dalcin, V. Eijkhout, W. D. Gropp, D. Kaushik, M. G. Knepley, L. C. McInnes, K. Rupp, B. F. Smith, S. Zampini, H. Zhang, and H. Zhang, “PETSc Web page,” http://www.mcs.anl.gov/petsc (2016a).
- Balay et al. (2016b) S. Balay, S. Abhyankar, M. F. Adams, J. Brown, P. Brune, K. Buschelman, L. Dalcin, V. Eijkhout, W. D. Gropp, D. Kaushik, M. G. Knepley, L. C. McInnes, K. Rupp, B. F. Smith, S. Zampini, H. Zhang, and H. Zhang, “PETSc users manual,” Tech. Rep. ANL-95/11 - Revision 3.7 (Argonne National Laboratory, 2016).
- Balay et al. (1997) S. Balay, W. D. Gropp, L. C. McInnes, and B. F. Smith, in Modern Software Tools in Scientific Computing, edited by E. Arge, A. M. Bruaset, and H. P. Langtangen (Birkhäuser Press, 1997) pp. 163–202.
- Cai and Fu (2012) H. Cai and G. Fu, Phys. Plasmas 19, 072506 (2012).
- Guazzotto et al. (2004) L. Guazzotto, R. Betti, J. Manickam, and S. Kaye, Phys. Plasmas (1994-present) 11, 604 (2004).
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Ku, Chang, and Diamond (2009) S. Ku, C. Chang, and P. Diamond, Nucl. Fusion 49 , 115021 (2009).
- 2Ku et al. (2016 a) S.-H. Ku, R. Hager, C. Chang, L. Chacón, and G. Chen, in B. Am. Phys. Soc. (American Physical Society, 2016) p. GP 10.00112.
- 3Connor et al. (1988) J. W. Connor, S. C. Cowley, R. J. Hastie, T. C. Hender, A. Hood, and T. J. Martin, The Physics of Fluids 31 , 577 (1988) . · doi ↗
- 4von Goeler, Stodiek, and Sauthoff (1974) S. von Goeler, W. Stodiek, and N. Sauthoff, Phys. Rev. Lett. 33 , 1201 (1974) . · doi ↗
- 5Huysmans (2005) G. T. A. Huysmans, Plasma Phys. Contr. F. 47 , B 165 (2005) . · doi ↗
- 6Candy and Waltz (2003) J. Candy and R. E. Waltz, J. Comput. Phys. 186 , 545 (2003).
- 7Candy (2005) J. Candy, Phys. Plasmas 12 , 072307 (2005) . · doi ↗
- 8Kotschenreuther, Rewoldt, and Tang (1995) M. Kotschenreuther, G. Rewoldt, and W. Tang, Comput. Phys. Commun. 88 , 128 (1995) . · doi ↗
