arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.12160physics.plasm-ph
收藏

JAX-in-Cell:一种用于等离子体物理应用的可微粒子-网格代码

JAX-in-Cell: A Differentiable Particle-in-Cell Code for Plasma Physics Applications

University of Wisconsin--Madison(威斯康星大学麦迪逊分校)

Longyu Ma, Rogerio Jorge, Hongke Lu, Aaron Tran, Christopher Woolford

AI总结:

JAX-in-Cell 提供了一种基于 JAX 的可微 PIC 框架,用于等离子体物理中的高效计算与 AI 集成

摘要:

JAX-in-Cell 是一个完全电磁的、多物种的、相对论性的 1D3V 粒子-网格(PIC)框架,完全使用 JAX 实现。它提供了一种现代的、基于 Python 的替代方案,用于传统 PIC 框架。它利用即时编译和自动向量化技术,在 CPU、GPU 和 TPU 上实现与传统编译代码相当的性能。该框架弥合了教育脚本与生产代码之间的差距,提供了一个可微物理和 AI 集成的测试平台,使端到端的基于梯度的优化成为可能。该代码在 staggered Yee 网格上求解 Vlasov-Maxwell 系统,支持周期性、反射性和吸收边界条件,允许通过 Picard 迭代使用显式 Boris 解算器和隐式 Crank-Nicolson 方法以确保能量守恒。本文详细介绍了所采用的数值方法,验证了标准基准,并展示了其自动微分能力的应用。

英文摘要:

JAX-in-Cell is a fully electromagnetic, multispecies, and relativistic 1D3V Particle-in-Cell (PIC) framework implemented entirely in JAX. It provides a modern, Python-based alternative to traditional PIC frameworks. It leverages Just-In-Time compilation and automatic vectorization to achieve the performance of traditional compiled codes on CPUs, GPUs, and TPUs. The resulting framework bridges the gap between educational scripts and production codes, providing a testbed for differentiable physics and AI integration that enables end-to-end gradient-based optimization. The code solves the Vlasov-Maxwell system on a staggered Yee lattice with either periodic, reflective, or absorbing boundary conditions, allowing both an explicit Boris solver and an implicit Crank-Nicolson method via Picard iteration to ensure energy conservation. Here, we detail the numerical methods employed, validate against standard benchmarks, and showcase the use of its auto-differentiation capabilities.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑