AFiD-MHD: A finite difference method for magnetohydrodynamic flows

被引:0
|
作者
Bader, Shujaut H. [1 ]
Zhu, Xiaojue [1 ]
机构
[1] Max Planck Inst Solar Syst Res, D-37077 Gottingen, Germany
关键词
ROTATING SPHERICAL-SHELL; HEAT-TRANSFER; INNER-CORE; CONVECTION; MAGNETOCONVECTION; SIMULATION; GEODYNAMO; CODE; EQUATIONS; MODELS;
D O I
10.1016/j.jcp.2024.113658
中图分类号
TP39 [计算机的应用];
学科分类号
081203 ; 0835 ;
摘要
In this work, we present a three-dimensional (3D) finite difference solver for magnetohydrodynamic flows under the assumption of Boussinesq convection in a plane layer. Following the approach of Verzicco and Orlandi (J. Comput. Phys., vol. 123, 1996) for non-magnetic flows, the components of the velocity and magnetic vector fields are discretized on a staggered grid using a conservative second-order centered finite difference scheme. The equations in the primitive variables are advanced in time with a fractional-step third-order Runge-Kutta (RK3) scheme, in combination with the Crank-Nicolson scheme for the implicit terms. At the end of every time step, the divergence free condition on the magnetic field is imposed via a scalar divergence-cleaning step with a modified, staggered stencil that involves the projection of the magnetic field computed by the finite difference scheme onto the subspace of divergence free fields. It is shown that the projection method has minimal impact on the order of accuracy of the base scheme. Additionally, in an alternative implementation, the solenoidality of the magnetic field is also ensured by recasting the induction equation in terms of a vector potential, and the application of the Coulomb gauge which assumes the vector potential to be divergence free. The method is also able to handle the governing equations in the quasi-static limit; where a strong imposed magnetic field simplifies the system of equations to an explicit computation of the Lorentz body force. The solver is parallelized using MPI where the domain is pencil-decomposed in the two periodic directions. Based on this parallelization, only the diffusive terms with the derivatives in the wall-normal direction are treated implicitly. In the case of plane layer dynamo simulations, the code is validated for perfectly conducting and pseudovacuum BCs at different Rayleigh (Ra), Prandtl (Pr), magnetic Prandtl (Pm) and Ekman (Ek) numbers. In addition to that, validation for the cases of two-dimensional and three-dimensional quasi-static magnetoconvection close and away from the onset of convection is also demonstrated.
引用
收藏
页数:21
相关论文
共 50 条
  • [31] APPLICATION OF FINITE-DIFFERENCE METHOD IN THE PREDICTION OF LAMINAR AND TURBULENT PLANE FLOWS
    KAMARAJ, G
    GANESAN, V
    SEETHARAMU, KN
    INDIAN JOURNAL OF TECHNOLOGY, 1987, 25 (02): : 47 - 52
  • [32] Finite difference lattice Boltzmann method for modeling dam break debris flows
    Kefayati, Gholamreza
    Tolooiyan, Ali
    Dyson, Ashley P.
    PHYSICS OF FLUIDS, 2023, 35 (01)
  • [33] Compact Schemes for Multiscale Flows with Cell-Centered Finite Difference Method
    Jin, Yao
    Liao, Fei
    Cai, Jinsheng
    JOURNAL OF SCIENTIFIC COMPUTING, 2020, 85 (01)
  • [34] A compact finite difference method on staggered grid for Navier-Stokes flows
    Zhang, K. K. Q.
    Shotorban, B.
    Minkowycz, W. J.
    Mashayek, F.
    INTERNATIONAL JOURNAL FOR NUMERICAL METHODS IN FLUIDS, 2006, 52 (08) : 867 - 881
  • [35] A finite element model for magnetohydrodynamic squeeze-film flows
    Wagner, Jordan R.
    Higgs, C. Fred, III
    PHYSICS OF FLUIDS, 2018, 30 (12)
  • [36] Grad-Div Stabilized Finite Element Method for Magnetohydrodynamic Flows at Low Magnetic Reynolds Numbers
    Rong, Yao
    Shi, Feng
    Li, Yi
    Zhang, Yuhong
    JOURNAL OF MATHEMATICAL FLUID MECHANICS, 2025, 27 (02)
  • [37] Characteristic Boundary Conditions for Numerical Magnetohydrodynamic (MHD) Simulation of Solar and Laboratory Plasma Flows
    Wu, S. T.
    Wang, A. H.
    Cassibry, Jason
    NUMERICAL MODELING OF SPACE PLASMA FLOWS ASTRONUM-2009, 2010, 429 : 294 - +
  • [38] NUMERICAL SOLUTION OF MAGNETOHYDRODYNAMIC FLOW PROBLEM USING RADIAL BASIS FUNCTION BASED FINITE DIFFERENCE METHOD
    Jeyanthi, M. P.
    Ganesh, S.
    Doss, L. J. T.
    Prabhu, A.
    DIGEST JOURNAL OF NANOMATERIALS AND BIOSTRUCTURES, 2020, 15 (04) : 1175 - 1187
  • [39] Modified finite difference schemes for geophysical flows
    Jones, Don A.
    MATHEMATICS AND COMPUTERS IN SIMULATION, 2016, 124 : 60 - 68
  • [40] FINITE-DIFFERENCE MODELING OF ANISOTROPIC FLOWS
    KEYHANI, M
    POLEHN, RA
    JOURNAL OF HEAT TRANSFER-TRANSACTIONS OF THE ASME, 1995, 117 (02): : 458 - 464