An interactive primer

Thermo·Hydro·Mechanical
Processes in Porous Media

How heat, water and stress talk to each other inside soils and rocks — the physics behind geothermal energy, nuclear waste disposal, CO₂ storage and landslides. With live simulations you can play with.

T · Heat H · Fluid M · Stress
Start exploring ↓

01 · The stage

What is a porous medium?

Zoom into any soil or rock and you find a solid skeleton of grains or crystals threaded by an interconnected network of pores, usually filled with water (sometimes air, oil, gas or ice). Three physical worlds share this one space — a temperature field, a fluid pressure field, and a stress field — and they cannot help interacting.

One material, three fields

Heat (T) Flow (H) Load (M) solid grains + connected pore water = a porous medium

Continuum theories of porous media don't track individual grains. They average over a representative elementary volume (REV) — a patch large enough to contain many pores, small enough to act like a "point" of the large-scale problem. The key averaged quantity is the porosity

$$ n \;=\; \frac{V_{\text{pores}}}{V_{\text{total}}}, \qquad e \;=\; \frac{n}{1-n} \;\; \text{(void ratio)} $$

Typical values: dense sand \(n \approx 0.3\), soft clay \(n \approx 0.5{-}0.7\), granite \(n \approx 0.01\). If water fills only part of the pore space we also track the degree of saturation \(S_w\); this primer mostly assumes full saturation (\(S_w = 1\)).

live Porosity playground

Grow or shrink the grains of an idealised grain pack and watch porosity — and, far more dramatically, permeability — respond. Permeability follows the Kozeny–Carman scaling \(k \propto \frac{n^3}{(1-n)^2}\,d^2\): a modest porosity change moves permeability by orders of magnitude.

solid
pores
porosity n
relative permeability k/k₀

Idealised 2-D packing — real soils sit between \(n\approx0.25\) and \(0.7\). The reference \(k_0\) is taken at \(n=0.4\).

02 · T — Thermal

Heat in the ground

Temperature in a porous medium changes by conduction through grains and pore water, and by advection — heat hitching a ride on moving groundwater. Radiation is negligible underground. The competition between the two transport modes shapes everything from geothermal reservoirs to the frost depth under a road.

Conduction: Fourier's law

Heat flows down the temperature gradient,

$$ \mathbf{q}_T \;=\; -\,\lambda_{\mathrm{eff}}\,\nabla T $$

where \(\lambda_{\mathrm{eff}}\) is an effective conductivity of the grain–water composite (quartz ≈ 7, water ≈ 0.6, dry air ≈ 0.025 W·m⁻¹·K⁻¹ — which is why moisture content matters so much). Energy conservation gives the heat equation, extended with an advective term when pore water moves with Darcy flux \(\mathbf{q}\):

$$ (\rho c)_{\mathrm{eff}}\,\frac{\partial T}{\partial t} \;=\; \nabla\!\cdot\!\big(\lambda_{\mathrm{eff}}\nabla T\big) \;-\; \rho_f c_f\,\mathbf{q}\cdot\nabla T \;+\; Q_T $$

with the volume-averaged heat capacity \((\rho c)_{\mathrm{eff}} = n\,\rho_f c_f + (1-n)\,\rho_s c_s\).

Who wins — conduction or advection?

The Péclet number compares the two over a length \(L\):

$$ \mathrm{Pe} \;=\; \frac{\rho_f c_f\, q\, L}{\lambda_{\mathrm{eff}}} $$

\(\mathrm{Pe}\ll 1\): temperature spreads as a smooth diffusive halo. \(\mathrm{Pe}\gg 1\): a sharp thermal front marches with the flow. Rock thermal diffusivity is tiny (\(\kappa \sim 10^{-6}\,\mathrm{m^2/s}\)): the annual surface temperature wave dies out a few metres down, and a heat pulse needs decades to conduct 30 m — but flowing groundwater can carry it there in months.

live Conduction vs. advection

A 1-D column is held hot at the left end. Increase seepage velocity and watch the gentle diffusive halo turn into a sharp advancing thermal front. The simulation solves \(\partial_t T + v\,\partial_x T = \alpha\,\partial_x^2 T\) live.

Péclet number
regime
time (–)0

Dimensionless units: domain length = 1, boundary temperature = 1.

03 · H — Hydraulic

Water through the labyrinth

In 1856 Henry Darcy, designing the fountains of Dijon, discovered that flow through sand is simply proportional to the head difference driving it. That single linear law still underpins all of groundwater hydrology and reservoir engineering.

Darcy's law

$$ \mathbf{q} \;=\; -\,\frac{k}{\mu}\,\big(\nabla p \;-\; \rho_f\,\mathbf{g}\big) $$

\(\mathbf{q}\) is the Darcy flux (discharge per unit cross-section, m/s); the actual water particles move faster, at the seepage velocity \(v_s = q/n\). The material property is the intrinsic permeability \(k\) (m²), a pure geometry of the pore network; dividing by viscosity \(\mu\) brings in the fluid. Hydrogeologists often lump them into the hydraulic conductivity \(K = k\rho_f g/\mu\) (m/s) and write \(q = -K\nabla h\) with head \(h\).

Permeability is the most variable material property in all of geoscience — 13 orders of magnitude separate clean gravel (\(K\sim10^{-1}\) m/s) from intact clay (\(K\sim10^{-13}\) m/s). That contrast is exactly why clay is used as a barrier around nuclear waste and beneath landfills.

Mass balance & storage

Conservation of fluid mass turns Darcy's law into a diffusion equation for pressure:

$$ S_s\,\frac{\partial h}{\partial t} \;=\; \nabla\!\cdot\!\big(K\,\nabla h\big) + Q $$

The specific storage \(S_s\) measures how much water a unit volume releases per unit head drop — by decompressing the water and by squeezing the skeleton. Storage is where hydraulics first shakes hands with mechanics.

live Darcy's experiment

Two reservoirs, a soil column, a head difference Δh. Choose a material and tilt the hydraulic grade line. The travel-time readout is honest — the dot speeds are log-compressed so clay doesn't appear frozen.

K
gradient i = Δh/L
Darcy flux q
time to cross 1 m

Column length L = 1 m. Seepage velocity \(v_s = Ki/n\).

04 · M — Mechanical

Stress, strain and the magic of effective stress

The single most important idea in geomechanics fits in one line. Terzaghi (1925) and later Biot realised that a saturated medium feels not the total stress applied to it, but the part left over after pore water pressure has pushed back.

The effective stress principle

$$ \boldsymbol{\sigma}' \;=\; \boldsymbol{\sigma} \;-\; \alpha\,p\,\mathbf{I} $$

Deformation and strength are governed by the effective stress \(\boldsymbol{\sigma}'\) carried by the grain skeleton — not by the total stress \(\boldsymbol{\sigma}\). The Biot coefficient \(\alpha\) (= 1 for soils, 0.5–0.9 for rocks) measures how efficiently pore pressure unloads the skeleton. Shear strength follows Mohr–Coulomb,

$$ \tau_f \;=\; c' \;+\; \sigma'_n \tan\varphi' $$

so raising pore pressure weakens the ground without touching the load. That one sentence explains rainfall-triggered landslides, injection-induced earthquakes and quicksand.

Equilibrium and constitutive law

Quasi-static equilibrium and small-strain kinematics close the mechanical problem:

$$ \nabla\!\cdot\!\boldsymbol{\sigma} + \rho\,\mathbf{g} = \mathbf{0}, \qquad \boldsymbol{\varepsilon} = \tfrac{1}{2}\big(\nabla\mathbf{u} + \nabla\mathbf{u}^{\mathsf T}\big), \qquad \boldsymbol{\sigma}' = \mathbb{C} : \boldsymbol{\varepsilon} $$

\(\mathbb{C}\) may be linear elasticity for small perturbations, or an elasto-plastic / critical-state model (Cam-Clay, Mohr–Coulomb) when soils yield. Density here is the bulk value \(\rho = n\rho_f + (1-n)\rho_s\).

live Stress in a soil column

Drag the water table up and down in a 10 m soil profile and watch total stress \(\sigma_v\), pore pressure \(u\) and effective stress \(\sigma_v' = \sigma_v - u\) rearrange. Lowering the water table (pumping!) increases effective stress — which is why Venice, Mexico City and Jakarta sank when their aquifers were drained.

σₕ at 10 m
u at 10 m
σ′ₕ at 10 m

Unit weights: 18 kN/m³ above, 20 kN/m³ below the water table; capillarity ignored.

05 · T ⇄ H ⇄ M

The coupling triangle

None of the three fields lives alone. Heat moves water, water carries heat; pressure unloads the skeleton, deformation squeezes water out; heating stresses the rock, shearing makes heat. Six arrows — and the loops they form are where the most dramatic geomechanics happens.

Click an arrow or a vertex.

The THM triangle

Each vertex is a physical field; each arrow is a family of coupling mechanisms. Click an arrow to see how one field drives another — and notice the loops: T→H→M and back again. Feedback loops are what make these systems rich, and occasionally dangerous.

A feedback loop in the wild

During earthquake slip: shearing (M) generates frictional heat (T); heat pressurises trapped pore water (H); pressure drops the effective normal stress and hence friction (M) — the fault self-lubricates and slip runs away. The same T→H→M loop, run slowly, governs clay barriers around nuclear waste.

H ⇄ M archetype: consolidation

Load a saturated clay layer and, at the first instant, the water takes the entire load as excess pore pressure — water is nearly incompressible and has nowhere to go. Then it slowly drains, handing the load over to the skeleton, which compresses: the building settles for years. Terzaghi's 1925 theory reduces this to a pressure diffusion problem:

$$ \frac{\partial u_e}{\partial t} \;=\; c_v\,\frac{\partial^2 u_e}{\partial z^2}, \qquad c_v = \frac{k}{\gamma_w\, m_v}, \qquad T_v = \frac{c_v\,t}{H^2} $$

The spring analogy says it all:

load Δσ water = pore pressure u spring = skeleton σ′ valve = permeability tight valve (clay) → slow hand-over from u to σ′

live Terzaghi consolidation

Left: excess-pressure isochrones in a clay layer drained at the top, sealed at the base (thin curves: \(T_v\) = 0.05–0.7). Right: degree of consolidation — i.e. settlement so far — versus log time. Press play and watch the pressure drain from the top down.

Tₖ
consolidation U

Exact series solution. Rule of thumb: U = 50% at \(T_v \approx 0.197\), 90% at 0.848.

T → H → M archetype: thermal pressurisation

Heat saturated clay and the pore water wants to expand about ten times more than the pore space holding it. If the water can drain, nothing much happens. If it cannot — low permeability, fast heating — pressure must rise, by up to \(\Lambda \sim 0.1{-}1\ \mathrm{MPa/^\circ C}\). The rising pressure then eats into effective stress: heat has reached all the way to mechanics without anyone applying a load.

$$ \frac{\partial p}{\partial t} \;=\; c\,\nabla^2 p \;+\; \Lambda\,\frac{\partial T}{\partial t} $$

The race is between the hydraulic diffusivity \(c\) (drainage) and the thermal diffusivity \(\kappa\) (heating). For clays \(c/\kappa \lesssim 1\): pressurisation wins. This is a first-order design question for nuclear-waste repositories — and the engine of the earthquake feedback loop above.

In the demo, the dashed curve is the undrained limit \(p = \Lambda\,T\): with a tight medium the live pressure curve hugs it; open the permeability and pressure drains away mid-flight.

live Heating a clay barrier

A hot canister sits at the left wall (x = 0, sealed); the far boundary is drained. Two coupled diffusion equations are solved live: temperature (orange) and the pore pressure it generates (blue).

c/κ
peak p vs undrained limit
regime

Dimensionless: κ = 1, T₀ = 1. Changing a slider restarts the heating episode.

06 · The full system

Three balance laws, one coupled system

Linear momentum, fluid mass, and energy — each balance law "owns" one field, and the coloured terms are the couplings sneaking the other two fields in. This is Biot's poroelasticity extended with heat: the standard model behind every modern THM simulator.

Momentum balance → solves for displacement u

$$ \nabla\!\cdot\!\Big(\, \boldsymbol{\sigma}'(\mathbf{u}) \;\textcolor{#4cc9f0}{-\;\alpha\, p\,\mathbf{I}} \;\textcolor{#ff9e64}{-\;3K\alpha_T\,\Delta T\,\mathbf{I}} \,\Big) \;+\; \rho\,\mathbf{g} \;=\; \mathbf{0} $$

Fluid mass balance → solves for pressure p

$$ \frac{1}{M_b}\frac{\partial p}{\partial t} \;\textcolor{#54d68c}{+\;\alpha\,\frac{\partial \varepsilon_v}{\partial t}} \;\textcolor{#ff9e64}{-\;\beta_m\,\frac{\partial T}{\partial t}} \;=\; \nabla\!\cdot\!\Big[ \frac{k}{\,\textcolor{#ff9e64}{\mu(T)}\,}\big(\nabla p - \rho_f\,\mathbf{g}\big) \Big] \;+\; Q_f $$

Energy balance → solves for temperature T

$$ (\rho c)_{\mathrm{eff}}\,\frac{\partial T}{\partial t} \;\textcolor{#4cc9f0}{+\;\rho_f c_f\,\mathbf{q}\cdot\nabla T} \;=\; \nabla\!\cdot\!\big(\lambda_{\mathrm{eff}}\,\nabla T\big) \;+\; Q_T $$
thermal coupling term hydraulic coupling term mechanical coupling term

Symbols

\(\boldsymbol{\sigma}',\ \varepsilon_v\)
effective stress; volumetric strain of the skeleton
\(\alpha,\ M_b\)
Biot coefficient and Biot (storage) modulus
\(K,\ \alpha_T\)
drained bulk modulus; linear thermal expansion coefficient
\(\beta_m\)
differential thermal expansivity of fluid + pore space, \(n\beta_f+(\alpha-n)\beta_s\)
\(k,\ \mu(T)\)
intrinsic permeability; fluid viscosity (drops ~3× from 10 to 90 °C)
\(\rho_f c_f,\ (\rho c)_{\mathrm{eff}}\)
fluid and bulk volumetric heat capacities
\(\lambda_{\mathrm{eff}},\ \mathbf{q}\)
effective thermal conductivity; Darcy flux
\(Q_f,\ Q_T\)
fluid source; heat source

How they're solved

Eleven scalar unknowns (3 displacements, pressure, temperature + stresses via the constitutive law), three mutually coupled PDEs, material nonlinearity, and time scales from seconds to millennia: THM problems are solved numerically, almost always with finite elements or finite volumes, either monolithically (one big Newton solve per step) or staggered (fields exchanged iteratively).

Research and industry codes include OpenGeoSys, CODE_BRIGHT, TOUGH–FLAC, COMSOL and MOOSE/FALCON; the international DECOVALEX project has benchmarked them against field heater tests since 1992.

Extensions you'll meet in practice: partial saturation (Richards flow, suction), phase change (freezing, boiling), chemistry (THMC), and large-strain or dynamic formulations.

07 · Why it matters

THM in the wild

surface bentonite + host rock

Nuclear waste disposal

Canisters heat the clay buffer for thousands of years: T drives pore-pressure spikes and resaturation (H), swelling and stress changes (M). Safety cases — for 100 000+ years — stand or fall on coupled THM predictions.

Geothermal energy

Cold injection water contracts hot rock (T→M), opening fractures and changing permeability (M→H) — boosting output but risking induced seismicity. Enhanced geothermal systems are THM engineering by definition.

caprock buoyant CO₂ plume

CO₂ storage

Injection raises pore pressure across kilometres (H), dropping effective stress on faults and the caprock (M); cold CO₂ adds thermal stresses near the well (T). Containment is a THM question asked at the megatonne scale.

active layer ice-rich permafrost

Permafrost & frozen ground

Warming turns ice to water (T→H) and dissolves the cement holding the soil together (→M): foundations tilt, slopes fail, coastlines retreat. Freezing runs the loop backwards — frost heave lifts roads every winter.