DarcyBrinkmanFoam#
Description#
DarcyBrinkmanFoam is a transient WashOpenFOAM solver designed for incompressible, laminar flow of Newtonian fluids through homogeneous porous media.
The solver uses the Darcy-Brinkman equation—omitting the fluid advection term—to simulate flow through porous media. If the fluid advection term is necessary for your simulation, please refer to the icoPackedParticleFoam solver instead. Resistance from the packed particle matrix is incorporated via an Ergun-based drag model that captures both viscous and inertial pressure losses.
Mathematical Formulation#
The solver tracks the time evolution of the fluid velocity field U and the kinematic pressure field p, subjected to a resistance from a stationary porous matrix characterised by its solid volume fraction (alphas).
Continuity Equation:
Darcy-Brinkman Equation:
where:
\(\mathbf{U}\) is the fluid velocity vector.
\(p\) is the kinematic pressure (pressure divided by density).
\(\nu\) is the fluid kinematic viscosity.
\(\beta\) is the porous resistance (drag) coefficient.
Ergun Drag Formulation:
The inverse permeability or drag coefficient \(\beta\) is computed implicitly using the Ergun equation based on the local void fraction and velocity magnitude:
where:
\(\alpha_s\) is the solid volume fraction (
alphas).\(\epsilon = (1 - \alpha_s)\) is the void fraction (porosity).
\(d_p\) is the characteristic particle diameter (
dp).
Usage#
To configure DarcyBrinkmanFoam, you must define the velocity, pressure, solid volume fraction, and the associated transport properties.
1. Required Fields (0/ directory)
U: The fluid velocity vector field.p: The kinematic pressure field.alphas: The solid volume fraction. Must be bounded between 0 (pure fluid) and a maximum packing limit.
2. Transport Properties (constant/transportProperties)
You must define the kinematic viscosity (nu), fluid density (rho), and the characteristic particle diameter (dp) used in the Ergun equation.
// constant/transportProperties
nu nu [0 2 -1 0 0 0 0] 1e-05;
rho rho [1 -3 0 0 0 0 0] 1000;
dp dp [0 1 0 0 0 0 0] 0.002;
3. Solver Configuration (system/controlDict)
// system/controlDict
application DarcyBrinkmanFoam;
startFrom startTime;
startTime 0;
stopAt endTime;
endTime 10;
deltaT 0.001;
writeControl timeStep;
writeInterval 100;
4. Discretisation Schemes (system/fvSchemes)
Ensure appropriate numerical schemes are selected for the time derivative (ddt(U)), the viscous Laplacian (laplacian(nu,U)), and the implicit source term (Sp(nu*a2,U)).
Tutorials#
Example tutorial cases demonstrating DarcyBrinkmanFoam are available in:
tutorials/incompressible/DarcyBrinkmanFoam/flowPastSphere: Simulation of laminar flow past a porous sphere using Darcy-Brinkman drag formulation.