A live axisymmetric (r–z) simulation of a 3-cup stovetop moka pot. Heat the boiler, watch steam pressure drive water up through the coffee puck, and track the extraction. Tap the pot to probe any point.
Live readout
Brew settings
A moka pot is rotationally symmetric, so the flow is solved on a 2D meridional plane (radius r, height z) and mirrored for display. The grid is 32 × 110 cells at 1.25 mm, covering a 3-cup pot: 7.3 cm boiler with ~155 ml of water, a funnel tube and cone, a 13 g coffee bed (5.25 cm × 1.5 cm) between two perforated plates, the central column, and the upper chamber.
Incompressible Navier–Stokes in axisymmetric form on a staggered (MAC) grid, with a Brinkman–Darcy drag term in the coffee bed and plates:
∂u/∂t + (u·∇)u = −∇p/ρ + ν_eff ∇²u + gβ(T − T_ref) ẑ − (μ(T)/ρk) u ∇·u = 0 (axisymmetric: (1/r)∂(r u_r)/∂r + ∂u_z/∂z = 0)Advection is semi-Lagrangian (RK2 back-trace), the drag is implicit, and pressure is found each step with an MIC(0)-preconditioned conjugate-gradient solve. Hydrostatic pressure is removed analytically, so the solver handles gravity exactly. Viscosity varies with temperature (μ falls from 1.0 to 0.28 mPa·s between 20 and 100 °C), so hotter water flows through the puck more easily.
Three liquid surfaces move: the boiler water level, the wetting front climbing through the funnel, puck and column, and the coffee level in the upper chamber. Each one sets the pressure on the liquid next to it (ghost-fluid boundary condition). The boiler headspace is a lumped gas of trapped air plus saturated water vapour:
P_boiler = n_air R T_s / V_gas + P_sat(T_s)where T_s is the water surface temperature. Air expansion plus vapour pressure push the water up, and the headspace grows as the boiler empties. The pressure is coupled implicitly to the flow (an "air spring"), which keeps the U-tube oscillation between boiler and funnel stable.
The stove adds a uniform heat flux to the boiler floor. Liquid hotter than the local saturation temperature boils: the excess heat moves up to the next cell (subcooled nucleate boiling, shown as bubbles), and in the column and upper chamber the liquid flashes at the saturation temperature. The cold puck and basket take heat from the first water (local thermal equilibrium over about 1 s). Heat also crosses the thin funnel wall. The upper chamber walls and column draw heat out of the coffee, and its surface loses heat by evaporation.
Each bed cell holds soluble solids in two pools: fast ones (fines and surface, 70%) and slow ones (diffusion from inside the grains, 30%). They dissolve into the pore water at a rate set by how far the water is from saturation, and the rate doubles roughly every 23 °C:
∂S_i/∂t = −k_i e^{0.03(T−90)} (S_i/S_i0)(c_sat − c) ε ∂c/∂t + u·∇c = −Σ ∂S_i/∂tWhen the boiler level falls below the bottom of the funnel tube, gas breaks into the funnel. This "strombolian" phase pushes the last slug of liquid through the puck in a burst, then steam sputters out. The heater shuts off at that point.
| Grid / cell size | 32 × 110 · 1.25 mm |
| Bed porosity (flow / water uptake) | 0.45 / 0.70 |
| Bed permeability (fine → coarse) | 0.6 – 4×10⁻¹³ m² |
| Plate permeability | 5×10⁻¹¹ m² |
| Extractable solubles | 30% of dose |
| Rate constants k_f / k_s (90 °C) | 0.045 / 0.004 s⁻¹ |
| Effective viscosity / boiler heat diffusivity | 4×10⁻⁶ / 1×10⁻⁵ m²/s |
| Safety valve | 1.8 bar gauge |
This is a teaching-grade reduced model, not a validated design tool. The grid can't resolve turbulent convection in the boiler, so an effective (eddy) viscosity and diffusivity stand in for it. Vapour bubbles and the sputtering two-phase flow are modelled, not resolved. The puck doesn't swell or channel, and its permeability stays constant. Expect the trends (onset temperature, the pressure plateau, falling TDS, the final surge) to be right, and the absolute numbers only roughly.