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

Research output: Working paperPreprintAcademic

4 Downloads (Pure)

Abstract

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.

Original languageEnglish
PublisherSocial Science Research Network (SSRN)
Number of pages16
Publication statusPublished - 22 Oct 2024

Keywords

  • Finite-difference scheme
  • Parallelization
  • Porous media
  • Convection

Fingerprint

Dive into the research topics of 'AFiD-Darcy: A finite difference solver for numerical simulations of convective porous media flows'. Together they form a unique fingerprint.

Cite this