icoPackedParticleFoam#
Description#
icoPackedParticleFoam is a transient WashOpenFOAM solver designed for incompressible, laminar flow of Newtonian fluids through homogeneous porous media.
Unlike the DarcyBrinkmanFoam solver, this solver explicitly includes the fluid advection (convective) term, making it a full Navier-Stokes equation augmented with a drag source term. The 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:
Navier-Stokes Equation with Porous Drag:
where:
\(\nabla \cdot (\mathbf{U} \mathbf{U})\) is the fluid advection term.
\(\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 icoPackedParticleFoam, 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 icoPackedParticleFoam;
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 advection term (div(phi,U)), the viscous Laplacian (laplacian(nu,U)), and the implicit source term (Sp(nu*a2,U)).
Tutorials#
Example tutorial cases demonstrating icoPackedParticleFoam are available in:
tutorials/incompressible/icoPackedParticleFoam/flowPastSphere: Simulation of laminar flow past a packed sphere with explicit convective transport.