AFiD-Darcy: A finite difference solver for numerical simulations of convective porous media flows

被引:0
|
作者
De Paoli, Marco [1 ,2 ,3 ,4 ]
Yerragolam, Guru Sreevanshu [1 ,2 ,3 ]
Lohse, Detlef [1 ,2 ,3 ]
Verzicco, Roberto [1 ,2 ,3 ,5 ,6 ]
机构
[1] Univ Twente, Phys Fluids Grp, POB 217, NL-7500 AE Enschede, Netherlands
[2] Univ Twente, Max Planck Ctr Complex Fluid Dynam, POB 217, NL-7500 AE Enschede, Netherlands
[3] Univ Twente, JM Burgers Ctr Fluid Dynam, POB 217, NL-7500 AE Enschede, Netherlands
[4] TU Wien, Inst Fluid Mech & Heat Transfer, A-1060 Vienna, Austria
[5] Univ Roma Tor Vergata, Dipartimento Ingn Ind, I-00133 Rome, Italy
[6] Gran Sasso Sci Inst, I-67100 Laquila, Italy
关键词
Finite-difference scheme; Convection; Porous media; Parallelization; LARGE-EDDY SIMULATIONS; TURBULENT-FLOW; SOLUTAL-CONVECTION; TRANSPORT; ERRORS;
D O I
10.1016/j.cpc.2025.109579
中图分类号
TP39 [计算机的应用];
学科分类号
081203 ; 0835 ;
摘要
We present an efficient solver for massively-parallel simulations of convective, wall-bounded and incompressible porous media flows. The algorithm consists of a second-order finite-difference pressure-correction scheme, allowing the use of an efficient FFT-based solver in problems with different boundary conditions. The parallelization method is implemented in a two-dimensional pencil-like domain decomposition, which enables efficient parallel large-scale simulations. The original version of the code presented by van der Poel et al. (2015) [35] has been modified to solve the Darcy equation for the momentum transport, representative of porous media flows driven by buoyancy. Two schemes are implemented to treat the diffusive term of the advection-diffusion equation, namely a fully implicit and semi-implicit formulation. Despite exhibiting a higher computational cost per time step, the fully implicit scheme allows an efficient simulation of transient flows, leading to a smaller time- to-solution compared to the semi-implicit scheme. The implementation was verified against different canonical flows, and the computational performance was examined. To show the code's capabilities, the maximal driving strength explored has been doubled as compared to state-of-art simulations, corresponding to an increase of the associated computational effort of about 8 to 16 times. Excellent strong scaling performance is demonstrated for both schemes developed and for domains with more than 1010 spatial degrees of freedom. Program summary Program Title: AFiD-Darcy CPC Library link to program files: https://doi.org/10.17632/xhx3gzpj6n.1 Developer's repository link: https://github.com/depaolimarco/AFiD-Darcy Licensing provisions: CC BY 4.0 Programming language: Fortran 90, MPI External routines: FFTW3, HDF5 Nature of problem: Solving two- and three-dimensional Darcy equation coupled with a scalar field in a box bounded between two walls in one-direction and with periodic boundary conditions in the other two directions. Solution method: Second order finite difference method for spatial discretization, third order Runge-Kutta scheme in combination with Crank-Nicolson for the implicit terms for time advancement, two dimensional pencil distributed MPI parallelization. Implicit and semi-implicit formulations for the solution of the diffusive terms in the scalar transport equation.
引用
收藏
页数:13
相关论文
共 50 条
  • [1] On the convective and absolute nature of instabilities in finite difference numerical simulations of open flows
    Cossu, C
    Loiseleux, T
    JOURNAL OF COMPUTATIONAL PHYSICS, 1998, 144 (01) : 98 - 108
  • [2] AFiD-MHD: A finite difference method for magnetohydrodynamic flows
    Bader, Shujaut H.
    Zhu, Xiaojue
    JOURNAL OF COMPUTATIONAL PHYSICS, 2025, 523
  • [3] Discontinuous finite volume element method for Darcy flows in fractured porous media
    Li, Rui
    Zhang, Yongchao
    Wu, Jianhua
    Chen, Zhangxin
    JOURNAL OF COMPUTATIONAL AND APPLIED MATHEMATICS, 2021, 381 (381)
  • [4] MIMETIC FINITE DIFFERENCE APPROXIMATION OF FLOWS IN FRACTURED POROUS MEDIA
    Antonietti, Paola F.
    Formaggia, Luca
    Scotti, Anna
    Verani, Marco
    Verzott, Nicola
    ESAIM-MATHEMATICAL MODELLING AND NUMERICAL ANALYSIS-MODELISATION MATHEMATIQUE ET ANALYSE NUMERIQUE, 2016, 50 (03): : 809 - 832
  • [5] A FFT-based finite-difference solver for massively-parallel direct numerical simulations of turbulent flows
    Costa, Pedro
    COMPUTERS & MATHEMATICS WITH APPLICATIONS, 2018, 76 (08) : 1853 - 1862
  • [6] On Darcy-Forchheimer Flows in Porous Media
    Lychagin, V. V.
    LOBACHEVSKII JOURNAL OF MATHEMATICS, 2022, 43 (10) : 2793 - 2796
  • [7] Henry Darcy and fluid flows in porous media
    Marle, C. M.
    OIL & GAS SCIENCE AND TECHNOLOGY-REVUE D IFP ENERGIES NOUVELLES, 2006, 61 (05): : 599 - 609
  • [8] NUMERICAL SIMULATIONS OF REVERSIBLE REACTIVE FLOWS IN HOMOGENEOUS POROUS MEDIA
    Alhumade, H.
    Azaiez, J.
    JOURNAL OF POROUS MEDIA, 2014, 17 (04) : 359 - 372
  • [9] ANALYSIS OF A MIMETIC FINITE DIFFERENCE APPROXIMATION OF FLOWS IN FRACTURED POROUS MEDIA
    Formaggia, Luca
    Scotti, Anna
    Sottocasa, Federica
    ESAIM-MATHEMATICAL MODELLING AND NUMERICAL ANALYSIS-MODELISATION MATHEMATIQUE ET ANALYSE NUMERIQUE, 2018, 52 (02): : 595 - 630
  • [10] FINITE-DIFFERENCE METHODS FOR MODELING POROUS-MEDIA FLOWS
    DAS, B
    STEINBERG, S
    WEBER, S
    SCHAFFER, S
    TRANSPORT IN POROUS MEDIA, 1994, 17 (02) : 171 - 200