欢迎访问《核聚变与等离子体物理》官方网站,今天是 分享到:

核工业西南物理研究院 ›› 2024, Vol. 44 ›› Issue (1): 98-104.DOI: 10.16568/j.0254-6086.202401016

• 等离子体物理 • 上一篇    下一篇

基于Python的等离子体平衡重建程序设计及实现

鲍娜娜1, 2,黄  耀2,闫星廷*2, 3,魏世闻1,王梓昊1   

  1. (1. 安徽大学互联网学院,合肥230039;2. 中国科学院等离子体物理研究所,合肥230031;3. 中国科学技术大学物理学院,合肥230026)
  • 收稿日期:2021-08-23 修回日期:2023-04-23 出版日期:2024-03-15 发布日期:2024-03-14
  • 通讯作者: 闫星廷(1993-),男,陕西宝鸡人,博士研究生,从事核聚变与等离子体物理研究。
  • 作者简介:鲍娜娜(1993-),女,安徽阜阳人,博士,讲师,从事等离子体控制与计算机应用研究。
  • 基金资助:
    安徽省教育厅自然科学基金(KJ2020A0043);国家自然科学基金(11805236)

Design and implementation of plasma equilibrium reconstruction code based on Python

BAO Na-na1, 2, HUANG Yao2, YAN Xing-ting2, 3, WEI Shi-wen 1, WANG Zi-hao 1   

  1. (1. School of Internet, Anhui University, Hefei 230039; 2. Institute of Plasma Physics, Chinese Academy of Sciences, Hefei 230031; 3. School of Physics, University of Science and Technology of China, Hefei 230026)
  • Received:2021-08-23 Revised:2023-04-23 Online:2024-03-15 Published:2024-03-14

摘要: 基于Python环境,设计和编写了等离子体平衡重建算法(Py-EFIT)。利用NumPy和SciPy库求解平衡重建算法中矩阵的运算问题,运用Matplotlib库实现重建算法计算结果的可视化,基于交互式可视化设计包QT Designer,使用PyQt库设计并实现该程序的用户界面。Py-EFIT的测试结果显示等离子体平衡重建过程操作更加简单、直观,为托卡马克实验数据分析提供了一种有效的工具。

关键词: 托卡马克, 等离子体平衡重建, Python, PyQt, 用户界面

Abstract: Plasma equilibrium reconstruction algorithm is designed and implemented based on Python environment (Py-EFIT). NumPy and SciPy libraries are used to solve the scientific computation problems of matrix in equilibrium reconstruction algorithm, Matplotlib library is applied to realize the visualization of results, and a graphical user interface of Py-EFIT is designed and implemented based on interactive visualized design package QT Designer and PyQt library. The test results of Py-EFIT show that the operation of plasma equilibrium reconstruction has become simpler and more intuitive, which provides an effective tool for tokamak experimental data analysis.

Key words: Tokamak, Plasma equilibrium reconstruction, Python, PyQt, User interface

中图分类号: