VMEC++的数值特性
The Numerics of VMEC++
AI总结:
VMEC++是首个针对Python友好的C++重写版本,提供零崩溃政策和热重启功能,显著提升执行效率并优化等离子体优化流程。
摘要:
VMEC++是用C++重写并针对Python友好的变分矩平衡代码(VMEC)的从头实现。VMEC是一种用于等离子体体和托卡马克的固定边界和自由边界理想磁流体力学平衡求解器。最初的VMEC实现由Steven P. Hirshman等人在20世纪80年代和90年代编写,其最新版Fortran实现(PARVMEC,https://github.com/ORNL-Fusion/PARVMEC)在等离子体优化系统中被广泛使用。我们的工作在多个关键方面改进了之前的实现:特别注意提供一种惯用的Python体验,从安装到实际使用;VMEC++有零崩溃政策;它支持经典INDATA格式的输入以及更友好的JSON文件。VMEC++的执行时间通常小于或等于之前的实现,通过利用其热重启功能可以显著减少收敛时间:通过提供一个VMEC++运行的输出作为后续运行的初始状态,VMEC++会使用之前收敛的平衡状态进行初始化。这可以大幅减少在许多相似磁配置上运行的时间,这在等离子体优化管道中通常会发生。另一方面,原始Fortran VMEC实现的一些功能尚未在VMEC++中可用,例如支持非等离子体体对称配置。本贡献首次公开了开源VMEC++包的内部数值特性。
英文摘要:
VMEC++ is a Python-friendly, from-scratch reimplementation in C++ of the Variational Moments Equilibrium Code (VMEC), a fixed- and free-boundary ideal-MHD equilibrium solver for stellarators and tokamaks. The first VMEC implementation was written by Steven P. Hirshman and colleagues in the 1980s and 1990s and its latest Fortran incarnation (PARVMEC, https://github.com/ORNL-Fusion/PARVMEC) is widely used in stellarator optimization systems. Our work improves on previous implementations with regard to various critical aspects: special care has been put in providing an idiomatic Python experience, from installation to actual usage; VMEC++ has a zero-crash policy; it supports inputs in the classic INDATA format as well as friendlier JSON files. VMEC++ execution times are typically less than or equal to previous implementations, and time to convergence can be decreased dramatically by leveraging its hot-restart feature: by providing the output of a VMEC++ run as initial state for a subsequent one, VMEC++ is initialized using the previously converged equilibrium. This can dramatically decrease runtimes when running on many similar magnetic configurations as it typically happens in stellarator optimization pipelines. On the flip side, some features of the original Fortran VMEC implementation are not yet available in VMEC++, such as support for non-stellarator-symmetric configurations. This contribution presents the internal numerics of the open-source VMEC++ package publicly for the first time.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。