HomeFeaturesExamplesTutorialsHelpTheoryVerificationPricingContact
BoreTherm / TutorialsTutorial 01 / 19
Workflow and theory · Design basics

2D design and sizing

The core of BoreTherm: how the inputs on the Design pages become a mean fluid temperature, how Calculation › Calculate checks a design and how Calculation › Size borehole length finds the required borehole length. The numbers are those of the example project: a small office building with a ground-source heat pump, 200 MWh/year space heating, 8 MWh/year domestic hot water (DHW) and 45 MWh/year cooling as monthly loads with peaks, on a 4 × 4 field of 16 boreholes of 150 m with 25 % monopropylene glycol (MPG) as the fluid, simulated over 25 years.

01 / The one idea

The one idea: the fluid temperature is the ground temperature minus two drops

BoreTherm, like the classic monthly design method, checks one temperature: the mean fluid temperature Tf, the mean of the inlet and outlet temperature of the heat-carrier fluid in the boreholes. It starts from the undisturbed ground temperature Tm and subtracts two drops. The ground around the field cools as heat is taken out over the years: the g-function, the dimensionless temperature response of the field to a constant heat rate, carries that history. Between the borehole wall and the fluid there is the effective borehole thermal resistance Rb* (pipes, grout and the heat exchange between the pipe legs). On top of the monthly base load comes a short peak at the end of each month.

−4−2024681012°C10.73 °Cundisturbedground, Tm−8.14 Kgroundresponse2.59 °Cboreholewall, Tb−1.59 Kboreholeq · Rb*1.00 °Cmean fluidTf, base load−3.42 Kpeak pulse6 h−2.41 °Clowest Tfat the peaklimit Tf,min = −3 °C
The coldest moment of the example at 150 m: the heating peak at the end of January in year 25. Ground response and borehole drop are the base load; the peak pulse lasts 6 hours and replaces the base load.
Borehole wall, end of month nTb = Tm + Σi≤n (qi − qi−1) · g(tn − ti−1) / (2πλ)
Mean fluid temperatureTf = Tb + qn · Rb*
Peak at the end of the monthTf,peak = Tf + (qp − qn) · [g(tp)/(2πλ) + Rb*]
Sizingsmallest H with Tf,min ≤ Tf(t) ≤ Tf,max

q is the heat rate per metre of borehole, q = Q / (N·H) for N boreholes of length H, positive when heat goes into the ground; λ is the thermal conductivity of the ground, and Tf,min, Tf,max are the design limits of the mean fluid temperature. Months are 730 h. A peak counts only when it is larger than the base load in its direction, and its energy is not added to the month. The loads are entered as building loads; the seasonal performance factor SPF of the heat pump (heat delivered per unit of electricity over the season) turns them into ground loads.

02 / The workflow

The workflow

Two questions are asked of the same model. Calculate: does this design keep the fluid inside the limits? Size borehole length: how long must the boreholes be, between the shortest and longest length allowed (Hmin, Hmax), so that it just does?

Enter the design (Design pages)ground, cross-section, layout, fluid & flow, loads, limitsIs the borehole length given,or is it the answer?giventhe answerCalculate (design check)Tf over the whole period at thegiven length; compare withthe limits Tf,min and Tf,maxSize borehole lengthshortest H in [Hmin, Hmax] thatkeeps Tf inside the limitsin every yearLimits met?yes → reportno → change the design, or run Size borehole lengthRequired borehole lengthApply length to project, thenCalculate, the result pages, the reportafter Applylength
Calculate is a check at a given length. Size borehole length is the same calculation repeated at trial lengths until the binding limit is met. Apply length takes the answer into the project.
Design (inputs, top to bottom in the navigation)Groundλ, C, Ts, q_geo→ Tm, α, tsBoreholecross-sectionpipes, grout → Rb, RaField layoutx, y, H, D, rb→ g-functionFluid & flowfluid, flow→ ṁcp, Re, Rb*Loadsmonthly MWh,peaks kW and hoursDesign limits& simulationTf limits, yearsCalculation › Calculate · Calculation › Size borehole lengthResultsResults summaryTm, Rb*, Tf min / max,limits, warningsMean fluid temperaturemonth by month: baseand peak temperaturesAnnual minimum / maximumone value per year:the trend over the yearsRequired borehole lengthH, total length, bindinglimit; Apply lengthLoads holds building loads; Heat pump › Setup turns them into ground loads (SPF).
The Design pages each feed one part of the model; Calculate and Size borehole length fill the Results pages. Ground: conductivity λ, volumetric heat capacity C, surface temperature Ts, geothermal heat flux qgeo, diffusivity α, time scale ts. D: depth of the borehole top, rb: borehole radius, ṁcp: capacity flow (mass flow × specific heat), Re: Reynolds number. Optional pages (Heat pump, 3D analysis, Costs) are not needed for a 2D design.
03 / How the calculation works

How the calculation works

Calculate: one simulation at a fixed length

1 Ground at mid-depthTm = Ts + q_geo (H/2) / λα = λ / C, ts = H² / (9α)2 Borehole resistancefluid, Re, Nu → Rp; multipole→ Rb, Ra; with ṁcp → Rb*3 g-functionfinite line sources, segments,uniform wall temperature (UBWT)6 Extremes and checksannual min / max of base andpeaks, all years; inlet, freezing5 SuperpositionTb = Tm + Σ Δq g / (2πλ)Tf = Tb + q Rb*; peak at month end4 Ground loadsbuilding loads × SPF factors→ q per metre, base and peaksResults summary, Mean fluid temperature, Annual minimum / maximum
The order of simulate() for monthly loads. Nu: Nusselt number, Rp: pipe resistance. Hourly loads replace step 5 by an hourly convolution (FFT or load aggregation) and take the peaks from the hours themselves.

Size borehole length: the search for the required length

1 Exact g-functionsat 5 lengths spreadgeometrically over [Hmin, Hmax]2 Bracket the rootf(H) > 0 at Hmin, f(H) ≤ 0 at Hmax(else: already met / not met)3 Brent’s methodon the interpolated g (cubicin ln H), Tm and Rb* exact4 Exact confirmationsimulate with the exactg-function at the rootf ≤ 0 and withinthe tolerance?5 Newton stepsecant throughthe exact pointsnonext exact run (at most 5)yes → required length H, binding limit, Tf at HIf the exact and interpolated roots differ by more than 5 %, the search is repeated with the exact g-function at every step.
Every trial length is a complete simulation. The g-function depends on H (B/H, D/H, rb/H, with B the borehole spacing), so it is computed exactly at five lengths and interpolated in between; Tm and Rb* are recomputed at every trial length. Brent’s method is a bracketing root finder.

Size borehole length does not optimise the layout: it finds the root of f(H) = max(Tf,min,limit − Tf,min(H), Tf,max(H) − Tf,max,limit), the violation of the worse limit. All years count unless Check the limits in the last year only (the rule of the classic monthly method) is set.

04 / The theory behind the numbers

The theory behind the numbers

The g-function: the memory of the ground

g-function of the 4 × 4 field, H = 150 m−14−12−10−8−6−4−2004812162024ln(t / ts)g6 h peak: g = 1.251 month: g = 3.641 year: g = 7.4525 years: g = 21.95ts = H² / (9α)67 years for H = 150 mln(t / ts) = 0the field reaches its long-term stateg grows by ln tearly: each borehole alonelater: steeperthe boreholes heat each other
The dimensionless step response of the example field, from the result file. A step of q W/m changes the wall temperature by q · g / (2πλ). The heating peak uses the value at its duration, the monthly base loads the values at whole months.

The g-function is computed from finite line sources, segment by segment, with the same wall temperature in all boreholes (UBWT, as Eskilson’s g-functions). With λ = 2.6 W/(m K), 1 W/m held for 25 years gives 1.34 K at the wall; for 6 hours only 0.08 K.

Rb*: the borehole between wall and fluid

The multipole method, an analytical solution for the pipes in the grout, gives the borehole resistance Rb (all legs at one fluid temperature) and the internal resistance Ra (between the down- and the up-going leg); ṁcp is the capacity flow of one borehole. The fluid warms on its way down and back, so the legs exchange heat with each other. The uniform-heat-flux form of the classic monthly method adds that short circuit: Rb* = 0.1151 + (150/1988)² / (3 · 0.4397) = 0.1194 m K/W. It grows with H², so a longer borehole is a little less effective per metre, and Size borehole length recomputes it at every length.

Base load, peaks and years

Year 25, month by monthJFMAMJJASOND−4048121620Tf,max limit 20Tf,min limit −3cooling peakbase (month end)heating peakmonth°CAnnual minimum / maximum1510152025−4048121620highest Tf of the yearlowest Tf of the yearyear°C
Left: the last year at 150 m, month-end base temperature and the two peak temperatures. Right: the coldest and warmest value of every year.
The counter-intuitive part. The coldest year is the last one, the warmest the first. The office takes more heat from the ground than it returns, so the ground around the field cools year after year: the annual minimum falls from 2.46 °C in year 1 to −2.41 °C in year 25 and is below 0 °C in 20 of the 25 years. A design checked over a few years only would look far too safe. The maximum, set by the cooling peak of July, is highest in year 1 (16.03 °C), when the ground is still warm.
05 / How each result is derived

How each result is derived

ResultHow BoreTherm derives itExample at 150 m
Undisturbed ground TmTs + qgeo · (H/2) / λ (mid-depth of the active length)9.0 + 0.06 · 75 / 2.6 = 10.73 °C; at 143.7 m: 10.66 °C
Time scale tsH² / (9α), α = λ / C67 years
Borehole resistances Rb, Ramultipole method (order 3), pipe film by GnielinskiRb 0.1151, Ra 0.4397 m K/W; Reynolds number 4958
Effective resistance Rb*Rb + (H/ṁcp)² / (3Ra), ṁcp of one boreholeṁcp = 1988 W/K → 0.1194 m K/W; at 143.7 m: 0.1190
Ground load, Januaryheat · (SPF−1)/SPF + DHW · (SPF−1)/SPF, per 730 h; peak · (SPF−1)/SPFbase −31.9 kW = −13.28 W/m; peak −73.7 kW = −30.70 W/m
Base temperature, January of year 25Tm + Σ Δq g / (2πλ) + q Rb*10.73 − 8.14 − 1.59 = 1.00 °C
Peak temperature+ (qp − q) [g(tp)/(2πλ) + Rb*], field g at tpg(6 h) = 1.253: −3.42 K → −2.41 °C
Lowest / highest Tfmin / max of base and peaks over all months and years−2.41 °C (year 25, January) / 16.03 °C (year 1, July)
Lowest inlet temperatureTf + Q / (2ṁcp), field flow; freezing check−3.57 °C, margin 6.2 K to −9.8 °C
Required length (Size borehole length)smallest H with every Tf inside the limits143.72 m, total 2299.5 m; binding: Tf,min

SPF on Heat pump › Setup: heating 3.8, DHW 2.8, cooling 5.0: ground factors 0.737, 0.643 and 1.20. The table repeats the code’s arithmetic with the result file’s g-function; the sum reproduces the reported temperature.

06 / The example in numbers

The example in numbers

StepWhat happensResult
Open the example project4 × 4 field, 6 m spacing, 150 m, single-U PE 32 × 2.9, 25 % MPG, 25 yearslimits −3 / 20 °C
Calculatedesign check at 150 mTf −2.41 … 16.03 °C, limits met
Size borehole length12 simulations, 2 with the exact g-function; binding limit: minimum fluid temperature143.7 m per borehole, 2299 m in total; Tf −3.00 … 16.18 °C, inlet down to −4.16 °C
Apply length to projectall boreholes get the sized length; Edit → Undo restores 150 mone undo step
Trial lengths in the order tried123456789101112080160240320simulationH [m]● interpolated g● exact g-functionLowest Tf near the root (zoom)130134138142146150−4.5−4.0−3.5−3.0−2.5−2.0H [m]Tf,min [°C]H = 143.72 mlimit −3 °C
Size borehole length on the example. Left: the trial lengths in the order the search tried them (at 20 m Tf,min is −63 °C). Right: the lowest fluid temperature at the trial lengths near the root. The interpolated root, 143.63 m, was 0.006 K below the limit with the exact g-function, so one Newton step moved to 143.72 m.

Shortening the boreholes from 150 m to 143.7 m lowers Tf,min from −2.41 to −3.00 °C: about 0.09 K per metre. The binding month is still the heating peak of January in the last year.

07 / Limits to keep in mind

Limits to keep in mind

  • Monthly loads assume a constant load within each month plus one peak at its end. Several cold days in a row are not in the model; hourly loads resolve them.
  • The limits apply to the mean fluid temperature. In heating the inlet is colder (the example: −3.57 °C at 150 m). Keep the freezing margin, or switch on the inlet limit.
  • One g-function for the whole field (UBWT): every borehole has the same wall and fluid temperature. Sizing keeps the positions and gives all boreholes the same length (unequal lengths keep their proportions).
  • Tm depends on H through the geothermal flux. With cooling-dominated loads Tf,max can then fail at both short and very long lengths; BoreTherm scans the range and warns when the violation does not fall with H.
  • The steady borehole model gives the fluid no heat capacity: Tf follows a load step at once. For short peaks this is conservative; the short-time and dynamic borehole models remove it (hourly loads).
  • The compatibility option for the classic monthly method (Design limits & simulation) switches convection, peak response and last-year sizing to that method’s choices; the defaults check every year and use the field g-function for the peaks.

Numbers calculated with BoreTherm. Theory: BoreTherm theory manual.