Skip to content
All apps

Porous Media: Density Fingering

About this app

Density-driven flow in a porous medium (Darcy-Boussinesq, computed live on a 512² grid): a heavy phase above a light one is unstable — whether the front merely smears diffusively or breaks into narrow fingers is decided by the Rayleigh number. Two scenarios: unstable layering and CO₂ injection at the ceiling (the mechanism of convective dissolution in CO₂ storage); views for concentration, stream function and speed, tapping perturbs the front locally.

The physics

In a porous medium such as sandstone, fluid creeps through tiny pores, and its velocity follows Darcy’s law. When a denser fluid lies on top of a lighter one, the layering is unstable. Whether the interface only blurs by diffusion or breaks up into narrow fingers is decided by the Rayleigh number Ra = k·Δρ·g·H/(φ·μ·D), with permeability k, density difference Δρ, layer height H, porosity φ, viscosity μ and diffusivity D. It compares buoyancy-driven flow with diffusion. Above a critical value, small disturbances of the front grow exponentially into fingers that mix much faster than diffusion alone.

What the app shows

The app solves the Darcy–Boussinesq model live on a 512 × 512 grid on the GPU, with a CPU fallback. Two scenarios are available: an unstable layering and CO₂ injection at the top. The second illustrates convective dissolution: CO₂ dissolves in the brine of an aquifer, the water becomes denser and sinks in fingers. You can view concentration, stream function or speed, and a numerics panel explains the Poisson solver (red–black SOR), semi-Lagrangian transport with MacCormack correction and mass conservation.

Things to try

Start with a low Rayleigh number: the front only blurs slowly. Push Ra up and restart, and the same layering now “rains” down in many narrow fingers. Tap or drag in the field to drop in a blob of the dense fluid; at high Ra it immediately grows into a finger. Switch to the stream-function view to see the convection cells between the fingers. The colours of both fluids can be chosen freely.

Frequently asked questions

What is viscous or density-driven fingering?
Fingering is an instability at the boundary between two fluids in a porous medium. In density-driven fingering the heavier fluid sits on top; small bulges in the front sink faster and grow into narrow fingers. In viscous fingering a less viscous fluid displaces a more viscous one, with a similar result.
What does the Rayleigh number mean in porous media?
The Rayleigh number (also called the Rayleigh–Darcy number) compares buoyancy-driven flow with diffusion. At low Ra diffusion dominates and the interface smears out evenly. Above a critical value convection sets in and the front breaks up into fingers.
Why does fingering matter for CO₂ storage?
When CO₂ is injected into a saline aquifer, it dissolves into the brine at the top and makes the water denser. This heavy layer above lighter water sinks in fingers and carries the dissolved CO₂ downwards. This convective dissolution greatly speeds up the permanent trapping of CO₂ in the deep water.
What can I adjust in the porous media app?
You set the Rayleigh number, choose between the layering and CO₂ injection scenarios, and switch between concentration, stream function and speed views. Tapping or dragging disturbs the front locally. A numerics panel explains how the simulation works, and the fluid colours are adjustable.

Subject: Physics

More from Physics

A VisuApp by heyprof: interactive, free in your browser, no sign-up. What is a VisuApp? · All apps