HomeFeaturesExamplesTutorialsHelpTheoryVerificationPricingContact
BoreTherm / TutorialsTutorial 17 / 19
Workflow and theory · Advanced physics

Full FEM with groundwater flow and heat

In Full FEM, a direct 3D finite element (FEM) simulation of the ground, the fully coupled thermo-hydraulic (TH) ground computes the groundwater flow from heads, lets it carry heat and lets the cold water change the flow. This document shows how one coupled time step works and how Size with 3D finds the length. The numbers are those of the example project: one 40 m single-U borehole in a sand-and-gravel aquifer (a water-bearing layer; ground 2.6 W/(m·K), 9 °C, groundwater flowing east at about 3.1 m/a), from which a heat pump extracts a constant 1.5 kW for 1 year (monthly loads).

01 / The one idea

The one idea: the water moves the heat, and the heat moves the water

In a Simple ground, heat moves only by conduction (plus a prescribed, constant groundwater velocity, if one is entered). In the fully coupled TH ground BoreTherm also computes the groundwater itself: the pressure (head), the Darcy flow q (the volume of water per second through one square metre of ground) from the head gradient, and the heat the water carries. The coupling works both ways. The borehole cools the water near it; cold water is heavier and more viscous, so the flow changes; the changed flow carries the heat differently.

Ground temperature Tcooled by the boreholeWater propertiescold water: heavier ρ(T), slower μ(T)Groundwater flow qDarcy: head gradient + buoyancyHeat transportadvection (ρc)w q·∇T + conductionBoreholetakes heat outper elementK(T) = k ρ₀ g / μ(T)water fluxes between the nodesnew TEvery time step repeats this loop until T and the head stop changing (the example: 2.2 iterations per step).
The two-way coupling. A one-way model would compute the flow once and keep it; the coupled ground recomputes it in every iteration of every time step.
Darcy flow (head form)q = −K(T) (∇h − Δρr(T) eg)
Hydraulic conductivityK(T) = k ρ0 g / μ(T)
Water balanceSs ∂h/∂t − nβ ∂T/∂t + ∇·q = Qw
Heat transportC ∂T/∂t + (ρc)w q·∇T − ∇·(Λ∇T) = borehole heat

h is the hydraulic head (the water pressure as the height of a water column), k the permeability, Δρr = (ρ(T) − ρ0)/ρ0 the buoyancy, Ss the specific storage, n the porosity, β the thermal expansion of the water, Λ the conductivity of the saturated ground (plus dispersion). A temperature front drifts with the heat transport velocity vT = q (ρc)w/C, about 1.9 times the Darcy velocity here.

02 / The workflow

The workflow

The coupled ground is the right choice when the flow comes from the hydraulic situation (heads, wells, layers of different permeability) or when the temperature changes the water enough to matter. A single known Darcy velocity is handled by the Simple ground, in 2D and 3D. The 2D design is BoreTherm’s standard calculation (Calculation › Calculate and Calculation › Size borehole length), with the ground response from g-functions, the dimensionless temperature response of the field to a constant heat rate.

Groundwater flow thatmatters at the site?noSimple ground (conduction only)the 2D design is the referenceyesOne known Darcy velocity,temperature effects small?yesSimple ground + Darcy velocity (Ground page)2D: moving line source;Full FEM: prescribed horizontal flownoFull FEM, Ground = Fully coupled THflow from heads, wells and layers;cold water heavier and more viscousMaterials + Groundwater flow pageshydraulic data, water laws, boundariesCompute groundwater flowcheck the velocity and the water balanceRun full 3D simulationFull FEM results, Darcy velocity, plumeLimits met?noSize with 3D…every trial length is a full 3D runyesthe 3D model confirms the designA Ground-page Darcy velocity can beconverted: Darcy velocity to headgradient… (v = K·i, one undo step).
Check the background flow before the long 3D run: it takes seconds and shows the velocity and the water balance.
main pathFull FEM › Physics & runGround = Fully coupled TH;coupling; Run full 3DFull FEM › MaterialsHydraulic, Transport andFluid (water laws) tabsFull FEM › Groundwater flowboundaries, gradient, wells;Compute groundwater flowResults › Full FEM resultscoupling, water balance;head and Darcy in 3DFull FEM › Transientboreholes: fluid, pipesand grout store heatSize with 3D…on Physics & run; applythe length: one undo stepGround pagea Darcy velocity there isconverted to a gradient3D analysis pageplan map of the plume,2D / 3D tabv = K·ifieldsCalculate, Size borehole length, optimisation and studies stay 2D; the 2D design does not see a flow given by heads.
Selecting Fully coupled TH on Physics & run adds the Groundwater flow page; Materials gets its Hydraulic, Transport and Fluid tabs.
  • Materials: per layer the porosity, K horizontal / vertical (stored as the permeability k) and the specific storage; the dispersivities; the pore water: λw, (ρc)w, the density law (Linear = buoyancy) and the viscosity law (Vogel). Values in italics are assumed (pre-filled).
  • Groundwater flow: top, bottom and sides as No flow, Prescribed head or Prescribed flux; the regional head gradient on the head faces and its direction (counter-clockwise from east); wells; the initial state (at rest, or the steady flow). Compute groundwater flow shows the head or the Darcy velocity in a plan map.
  • Physics & run › Coupling: iterations per step (25), relaxation (1 = none), temperature and pressure tolerances (10⁻⁴ K, 1 Pa). The defaults are converged.
03 / How a coupled time step works

How a coupled time step works

The time stepping is that of every Full FEM run (backward Euler, steps of 60 s × 2k, step doubling against the step tolerance). What the coupled ground adds is an iteration inside each step between the flow and the heat (a staggered Picard iteration):

1 Start of the stepaccepted T, head, columns;lagged flow if ΔT ≤ 0.5 K2 Water propertiesρ(T) and μ(T) per elementat its mean temperature3 Hydraulic stephead: storage, buoyancy,thermal expansion4 Transport operatorwater fluxes between nodes →advection + streamline diff.5 Thermal stepground + transient boreholes+ loop control → new Tconverged?|ΔT| ≤ 10⁻⁴ K, |Δp| ≤ 1 Padefect ≤ 10⁻⁸no → Anderson mix, next iterate (at most 25)yes → the step is checked by step doubling (error ≤ tolerance) and acceptedNot converged after 25 iterates: nothing is kept, the step is repeated with half the length; after 6 failures in a row the run stops.
The coupled step. Anderson acceleration mixes the last iterates; the lagged flow skips the hydraulic solve when the temperature hardly changed since the last step.
  1. Water properties per element at the mean temperature of its nodes: density (buoyancy) and viscosity.
  2. Hydraulic step: the head at every node, with storage, the buoyancy load and the thermal expansion of the stored water. Head faces keep their head: the reference head plus the regional gradient, hydrostatic in depth.
  3. Water fluxes between neighbouring nodes. They balance the water of every node exactly, so the heat they carry is conserved by construction.
  4. Thermal step with the new flow: advection, conduction, dispersion and a streamline diffusion that acts only along the flow (it keeps the solution free of wiggles; it adds or removes no heat). The transient boreholes (a borehole model whose fluid, pipes and grout store heat) and the loop control are part of this step.
  5. Convergence when the temperatures change by less than 10⁻⁴ K, the pressures by less than 1 Pa, and the hydraulic equations hold for the new temperatures. Then the step is accepted (or rejected by the step doubling).
04 / The theory

The theory: the domain, the plume and the steady state

The model block has hydraulic boundaries as well as thermal ones. In the example the top and the sides are Prescribed head with a gradient of 0.00044, the bottom is No flow, and the run starts from the steady flow. The mesh is extended downstream so that the plume stays inside the block.

Vertical section along the flowPlan view, schematic (Plan map tab)extended9.8 mdownstreamtop: Head (water table at the surface)bottom: No flowHead: h higherHead: h lowerboreholei = 0.00044:h falls to the eastcooled ground, shifted downstreamflow 0° = eastBHE
The water enters on the upstream side at the initial temperature and leaves downstream with the heat it took up. The plume is the cooled ground behind the borehole (BHE: borehole heat exchanger).
Fluid temperature per month, Full FEM (coupled TH + transient boreholes)123456789101112−6−4−202month°Climit 2 °C2D −5.253D −5.13K × 10: −2.923D monthly mean3D month endK × 10, month end2D design (Calculate)
The example, 1.5 kW extraction all year; Tf is the mean fluid temperature (the mean of inlet and outlet). With the aquifer of the example the fluid keeps cooling all year and ends 0.12 K warmer than in 2D. With ten times the permeability the water supplies the heat: the temperature levels off after about three months.
How much the groundwater changes the design. At 3.1 m/a the flow brings heat to the borehole, but slowly: after one year the 3D run is only 0.12 K warmer than the 2D design (flow and borehole storage together). The 2D design of this project sees no groundwater at all (the flow comes from heads, and the Ground page’s Darcy velocity is 0). Ten times the permeability gives ten times the flow, 31 m/a: the ground reaches a steady state in which the water replaces the heat taken, and Tf,min rises to −2.92 °C. Between these two velocities the groundwater goes from a detail to the deciding factor of the design.
Lowest Tf against the borehole length657075808590123borehole length H [m]Tf,min [°C]limit 2 °C2D sizing trials3D runs (Size with 3D)Size with 3D: the four full runs1. H = 75.95 mTf,min 2.10 °C2. H = 66.04 mTf,min 0.84 °C3. H = 75.13 mTf,min 2.01 °C4. H = 74.88 mTf,min 1.98 °C1: the 2D size (75.95 m) is feasible in 3D,2: so try 15 % shorter: too short,3, 4: Brent’s method between them, to 0.5 m.Result: 75.13 m (−1.1 %)
Left: Tf,min rises with the length; the 3D runs lie slightly above the 2D curve. Right: the four runs of Size with 3D. Each is a full coupled 3D simulation from the undisturbed ground.
05 / How each result is derived

How each result is derived

All values for the example, Full FEM with the coupled TH ground and full transient boreholes.

ResultHow BoreTherm derives itExample
Water viscosity μ(T)Vogel: 2.414·10⁻⁵ Pa·s · 10^(247.8 K / (T + 133.15 K))1.300 mPa·s at 10 °C; 1.319 at the start (9.46 °C)
Hydraulic conductivity Kk ρ₀ g / μ(T); the page shows K at the reference temperature and stores k3·10−11 m² × 999.7 × 9.81 / μ = 2.26·10−4 m/s
Regional Darcy velocity qK · i on the Head faces; computed by Compute groundwater flow (the steady flow)2.23·10−4 × 4.44·10−4 = 9.9·10−8 m/s; reported 9.9·10−8 m/s = 3.1 m/a
Heat transport velocity vTq (ρc)w / C: how fast a temperature front drifts9.9·10−8 × 4.18 / 2.2 = 1.9·10−7 m/s ≈ 5.9 m/a
Block extension downstreamthe mesh follows the drift of the heat over the run (estimated before the flow is computed, from K and the gradient)9.8 m (K × 10: 97.8 m)
Coupling iterationsper accepted step until the increments and the hydraulic defect are converged651 / 300 steps = 2.2, at most 3
Water balancewater imbalance of all nodes / water throughput of the run1·10−13
Energy balance(heat in − stored − heat through the faces) / throughput5·10−15
Tf,min, Tf,max of the yearmonthly loads: the lowest and highest month-end mean fluid temperature, as in the 2D design−5.13 / −2.75 °C
Effect of flow and storageTf,min (3D) − Tf,min (2D)−5.13 − (−5.25) = +0.12 K
Required length, Size with 3Dstart at the 2D size; steps of 15 %; Brent’s method to max(tolerance, 0.5 m); 4–16 full runs75.95 m (2D) → 75.13 m in 4 runs
06 / Limits to keep in mind

Limits to keep in mind

  • Assumed inputs: here the porosity, specific storage, water density, reference temperature of the water laws are pre-filled values. The results page and the report list them; replace them with site data before relying on a coupled result.
  • Mesh: Coarse in the example, for speed. With K × 10 the element Péclet numbers (advection over conduction) reach 25.6 (91.7 % of the volume above 2): the solution stays stable, but the plume is smeared. Repeat a design with Medium (benchmark B8: Coarse and Medium differ by 0.055 K).
  • Physics: saturated, single-phase flow; no freezing of the ground or the brine; no unsaturated zone; constant brine properties. The water balance is a volume balance with the reference density (Boussinesq form).
  • 2D design: Calculate, Size borehole length, optimisation and studies stay 2D. They see a groundwater flow only as the Darcy velocity of the Ground page; the coupled ground refuses that velocity (convert it to a head gradient).
  • Domain: when more than 5 % of the borehole heat crosses the sides and the bottom, a note asks for a larger block. Near the borehole the radial sub-grid (a fine grid at the wall) is conductive; a note warns when the local flow is fast for it.
  • Run time: every step iterates flow and heat (here 2.2 iterations) and Size with 3D needs several full runs. Physics & run estimates the time before you start.

Numbers calculated with BoreTherm. Theory: BoreTherm theory manual; benchmarks B6 / B7 (flow, transport, buoyancy), B9 (coupled TH + transient boreholes), B11 (3D sizing).