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 条
  • [41] Gradient Discretization of Hybrid Dimensional Darcy Flows in Fractured Porous Media
    Brenner, Konstantin
    Groza, Mayya
    Guichard, Cindy
    Lebeau, Gilles
    Masson, Roland
    FINITE VOLUMES FOR COMPLEX APPLICATIONS VII - ELLIPTIC, PARABOLIC AND HYPERBOLIC PROBLEMS, FVCA 7, 2014, 78 : 527 - 535
  • [42] A discretization and multigrid solver for a Darcy–Stokes system of three dimensional vuggy porous media
    Todd Arbogast
    Mario San Martin Gomez
    Computational Geosciences, 2009, 13 : 331 - 348
  • [43] High order compact finite difference methods for non-Fickian flows in porous media
    Zhao, Xuan
    Li, Ziyan
    Li, Xiaoli
    COMPUTERS & MATHEMATICS WITH APPLICATIONS, 2023, 136 : 95 - 111
  • [44] A FFT-accelerated multi-block finite-difference solver for massively parallel simulations of incompressible flows
    Costa, Pedro
    COMPUTER PHYSICS COMMUNICATIONS, 2022, 271
  • [45] A multiscale direct solver for the approximation of flows in high contrast porous media
    Akbari, Hani
    Engsig-Karup, Allan P.
    Ginting, Victor
    Pereira, Felipe
    JOURNAL OF COMPUTATIONAL AND APPLIED MATHEMATICS, 2019, 359 : 88 - 101
  • [46] Turbulence modeling for flows in wall bounded porous media: An analysis based on direct numerical simulations
    Jin, Y.
    Kuznetsov, A. V.
    PHYSICS OF FLUIDS, 2017, 29 (04)
  • [47] Lattice Boltzmann simulations of oscillating flows in porous media
    Meng, Fankong
    Li, Zhixin
    Qinghua Daxue Xuebao/Journal of Tsinghua University, 2008, 48 (11): : 1993 - 1996
  • [48] Development of an OpenFOAM solver for numerical simulations of shell-and-tube heat exchangers based on porous media model
    He, Shaopeng
    Wang, Mingjun
    Tian, Wenxi
    Qiu, Suizheng
    Su, G. H.
    APPLIED THERMAL ENGINEERING, 2022, 210
  • [49] Parallel numerical modeling of hybrid-dimensional compositional non-isothermal Darcy flows in fractured porous media
    Xing, F.
    Masson, R.
    Lopez, S.
    JOURNAL OF COMPUTATIONAL PHYSICS, 2017, 345 : 637 - 664
  • [50] A TWO-GRID BLOCK-CENTERED FINITE DIFFERENCE METHOD FOR DARCY-FORCHHEIMER FLOW IN POROUS MEDIA
    Rui, Hongxing
    Liu, Wei
    SIAM JOURNAL ON NUMERICAL ANALYSIS, 2015, 53 (04) : 1941 - 1962