arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.18304astro-ph.GAastro-ph.HEastro-ph.IMphysics.plasm-phphysics.space-ph
收藏

一种在QUOKKA代码中实现GPU加速的混合坐标系多群辐射流体力学新数值方法

A novel numerical method for mixed-frame multigroup radiation-hydrodynamics with GPU acceleration implemented in the QUOKKA code

Chong-Chong He, Benjamin D. Wibking, Mark R. Krumholz

AI总结:

本文提出一种在QUOKKA代码中实现GPU加速的混合坐标系多群辐射流体力学新数值方法,采用分段幂律近似处理群内频率依赖,确保能量动量精确守恒,计算复杂度随群数线性扩展,并通过数值测试验证其优势。

摘要:

辐射流体力学(RHD)的混合坐标系公式——其中辐射量在惯性坐标系中计算,而物质量在共动坐标系中计算——具有优势,因为它们允许采用能将能量和动量守恒到机器精度的算法,并且能更自然地与自适应网格技术结合,因为与纯共动坐标系方法不同,它们不面临每次细化或粗化网格单元时辐射量都必须变换坐标系的问题。然而,在混合坐标系公式中实现多群RHD面临挑战,因为处理频率依赖的相互作用和辐射边界的多普勒频移十分复杂。在本文中,我们介绍一种新的多群RHD方法,该方法将混合坐标系公式与群内频率依赖的分段幂律近似相结合。此方法确保总能量和动量的精确守恒,同时有效管理群边界的洛伦兹变换和群平均不透明度的计算。我们的方法利用了物质-辐射耦合的局域性,使得N_g个频率群的源项可以用简单方程处理,其雅可比矩阵为N_g + 1大小的稀疏矩阵,可以以O(N_g)复杂度求逆。这导致计算复杂度随N_g线性扩展,并且所需通信不超过纯流体力学更新,使其对大规模并行和基于GPU的系统极为高效。我们在GPU加速的RHD代码QUOKKA中实现了我们的方法,并证明其通过了广泛的数值测试,包括保持渐近扩散极限。我们证明分段幂律方法在处理快速变化的不透明度方面,在适度的频率分辨率下,相比传统的不透明度平均方法具有显著优势。

英文摘要:

Mixed-frame formulations of radiation-hydrodynamics (RHD), where the radiation quantities are computed in an inertial frame but matter quantities are in a comoving frame, are advantageous because they admit algorithms that conserve energy and momentum to machine precision and combine more naturally with adaptive mesh techniques, since unlike pure comoving-frame methods they do not face the problem that radiation quantities must change frame every time a cell is refined or coarsened. However, implementing multigroup RHD in a mixed-frame formulation presents challenges due to the complexity of handling frequency-dependent interactions and the Doppler shift of radiation boundaries. In this paper, we introduce a novel method for multigroup RHD that integrates a mixed-frame formulation with a piecewise powerlaw approximation for frequency dependence within groups. This approach ensures the exact conservation of total energy and momentum while effectively managing the Lorentz transformation of group boundaries and evaluation of group-averaged opacities. Our method takes advantage of the locality of matter-radiation coupling, allowing the source term for $N_g$ frequency groups to be handled with simple equations with a sparse Jacobian matrix of size $N_g + 1$, which can be inverted with $O(N_g)$ complexity. This results in a computational complexity that scales linearly with $N_g$ and requires no more communication than a pure hydrodynamics update, making it highly efficient for massively parallel and GPU-based systems. We implement our method in the GPU-accelerated RHD code QUOKKA and demonstrate that it passes a wide range of numerical tests, including preserving the asymptotic diffusion limit. We demonstrate that the piecewise powerlaw method shows significant advantages over traditional opacity averaging methods for handling rapidly variable opacities with modest frequency resolution.

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

↑