Bulletin of the American Physical Society
65th Annual Meeting of the APS Division of Plasma Physics
Monday–Friday, October 30–November 3 2023; Denver, Colorado
Session CO09: MFE: Computational Techniques and Whole Device Modeling
2:00 PM–4:48 PM,
Monday, October 30, 2023
Room: Governor's Square 16
Chair: Syun'ichi Shiraiwa, Princeton Plasma Physics Laboratory
Abstract: CO09.00004 : Compile-time Symbolic Solver for the Gyrokinetic-MHD Hybrid Code GMEC*
2:36 PM–2:48 PM
Presenter:
Peiyou Jiang
(IFTS of Zhejiang University)
Authors:
Peiyou Jiang
(IFTS of Zhejiang University)
Guoyong Fu
(IFTS of Zhejiang University)
The Compile-time Symbolic Solver (CSS) is developed to generate finite difference code from vector equations directly. CSS is a C++20 template metaprogramming code. It expands vector equations into components form at compile-time, and it supports numerical differentiations of any order. It supports numerical grid systems of arbitrary dimension together with parallelization. CSS employs hybrid TBB and MPI parallelization. CSS supports both explicit and implicit equations with arbitrary boundary conditions.
We use CSS to generate the MHD part of the Gyrokinetic-MHD Hybrid Code GMEC which uses field-align coordinates with the shifted metric, and then use it to simulate ideal ballooning modes for both an analytical circular equilibrium and a VMEC equilibrium. The simulation results agree well with those of the eigenvalue code MAS. The n=20 case costs only 40 seconds using 224 cores. We have also used CSS to implement the fluid equations for ITG modes and simulated ITG successfully. Details of CSS and numerical results will be presented.
*the National MCF Energy R&D Program of China (No. 2019YFE03050001)
Follow Us |
Engage
Become an APS Member |
My APS
Renew Membership |
Information for |
About APSThe American Physical Society (APS) is a non-profit membership organization working to advance the knowledge of physics. |
© 2024 American Physical Society
| All rights reserved | Terms of Use
| Contact Us
Headquarters
1 Physics Ellipse, College Park, MD 20740-3844
(301) 209-3200
Editorial Office
100 Motor Pkwy, Suite 110, Hauppauge, NY 11788
(631) 591-4000
Office of Public Affairs
529 14th St NW, Suite 1050, Washington, D.C. 20045-2001
(202) 662-8700