Rain soaks into a layered hillside, fills a gravel aquifer under a clay lid, and drains to the river. Switch on the wells and watch the water table sink.
The science
Darcy's law. q = −K ∇h: water flows from high head to low head; the pore velocity is v = q/n. Gravel (K ≈ 300 m/day) carries water ~10⁴ times faster than clay (K ≈ 0.01 m/day). Values are typical textbook magnitudes [verify against a source such as Freeze & Cherry or USGS tables].
Governing equation. S ∂h/∂t = ∂/∂x(Kx ∂h/∂x) + ∂/∂z(Kz ∂h/∂z) + W on a 100 × 40 grid (4 m × 1.5 m cells), implicit Euler in time, conjugate-gradient solves, vertical anisotropy Kx/Kz = 10 (assumed). Wells and recharge are sources W per metre of width.
Water table. Cells above the water table are partly or fully dry: their conductance is scaled by the saturated fraction and their storage is the specific yield Sy; saturated (confined) cells use the specific storage Ss·Δz. A full cell re-wets the cell above it. This is the common MODFLOW-style wet/dry heuristic: it is not Richards' equation and ignores capillary rise and the unsaturated zone.
Confined vs unconfined. Where the clay lid covers the gravel, the head rises above the gravel top (confined, artesian pressure); to the left, where no clay exists, the gravel is unconfined and rain reaches it directly.
Wells. A pumping well lowers the head near its screen (drawdown); the steady radial solution is Thiem s = Q/(2πT)·ln(R/r) and the transient one is Theis s = Q/(4πT)·W(u). In this 2D section pumping is a line sink per metre of width, so the cone is a wedge, not a bowl; the radial formulas are verified separately.
Baseflow. The groundwater flux into the river through its bank is the baseflow that keeps rivers running in dry weather; lowering heads near the river reduces it.
Simplifications. 2D section, homogeneous layers (plus one fracture zone), no dispersion or chemistry, fixed-head boundaries on the left and at the river, rain applied directly to the top wet cell, vertical scale exaggerated ×3 for display.