基于局域傅里叶基的二维MHD数值模拟与验证

Numerical simulation and validation of two-dimensional MHD based on local Fourier bases

  • 摘要: 本文基于条带化混合谱离散与投影分裂流程,给出二维MHD方程的数值模拟和验证。时间推进采用三阶Karniadakis(BDF3/AB3)半隐式分裂,按“显式预测–投影–扩散”流程分解每步计算。本文主要工作包括:(1)在速度投影与扩散求解链条中引入磁场演化方程;(2)建立磁扩散对应的Helmholtz 子问题,与速度扩散统一求解;空间离散上采用x向 MDLF/LFB 局域 FFT (快速傅里叶变换)与 \mathrmy 向全局 FFT 的混合谱离散,并以折叠延拓与界面匹配完成子域拼装。线性不可压 Alfvén 波算例表明相位与色散误差随时间保持稳定;Taylor–Green型结构衰减算例中,能准确复现动能/磁能衰减规律,严格满足 \nabla \cdot \bfu 与 \nabla \cdot \bfB 的无散约束。(3)通过小规模共享内存验证,并行测试结果表明,该方法的单步整体加速比可达2.5~5.0。

     

    Abstract:
    Background The numerical simution of two-dimensional magnetohydrodynamics(MHD) is of great importance for understanding the evolution of magnetic fields and fluid flows in various physical systems. However, accurate and efficient simulation of MHD problems still faces challenges in handling the coupling between velocity and magnetic fields, the divergence-free constraint, and the parallel scalability of the algorithm.
    Objective This paper aims to develop a two-dimensional magnetohydrodynamics (MHD) numerical method based on a local spectral method, and to evaluate its accuracy, stability, and parallel performance.
    Methods In time advancement, a third-order Karniadakis (BDF3/AB3) semi-implicit splitting scheme is adopted, and each calculation step is decomposed into an “explicit prediction–projection–diffusion” process. For spatial discretization, a hybrid spectral discretization is adopted, which combines local FFT (fast Fourier transform) of MDLF/LFB in the x-direction and global FFT in the y-direction, and the sub-domain assembly is completed by folding continuation and interface matching.
    Results 1)Introducing the magnetic field evolution into the chain of velocity projiection and diffusion solution.2) Establishing the Helmholtz sub-problem to magnetic diffusion and solving it together with velocity diffusion..For spatial discretization,a hybrid spectral discretization of local FFT(fast Fourier transform)of MDLF/LFB in the x-direction and global FFT in the y-direction is adopted,and the sub-domain assembly is completed by folding continuation and interface matching.The numerical example of the linear incompressible Alfvén wave shows that the phase and dispersion errors remain stable over time ;in the numerical example of the decay of the Taylor-Green type structure, The decay laws of kinetic enery/magnetic energy can be accurately reproduced, \nabla \cdot \bfu and \nabla \cdot \bfB the divergence-free constraints of and are strictly satisfied,.3)Verify through small-scale shared memory,the parallel test results show that the overall speed-up ratio of a single step of this method can reach 2.5-5.0.
    Conclusion The proposed method is effective for the numerical simulation of two-dimensional MHD. It can accurately reproduce the decay laws and maintain the divergence-free constraints, while achieving satisfactory parallel speed-up. The method provides a reliable approach for further large-scale MHD simulations.

     

/

返回文章
返回