The one idea: size every layout that fits, then compare
Size borehole length (menu Calculation › Size borehole length) answers one question: how long must the boreholes of this layout be? The optimizer (Optimize, menu Calculation › Optimize) asks the same question for every layout that fits the plot and keeps the best answers. Each candidate is sized so that the mean fluid temperature Tf (the average of the fluid temperatures entering and leaving the boreholes) just stays inside the design limits Tmin and Tmax. The building, the ground, the borehole design and the limits are the same for all candidates; only the layout, the length H of each borehole and the cost differ.
smallest H with f(H) = max(Tmin − Tf,min(H), Tf,max(H) − Tmax) ≤ 0L = Σ Hi = N · HC = C0 + cbh · N + cm · L + ct · Ltrenchminimise L, or C, or the life-cycle heat costTf,min and Tf,max are the lowest and highest Tf over the simulated period. H must lie between the borehole length min and max of the setup (60 and 250 m here). A layout that cannot meet the limits inside that range is not a candidate.
The workflow
Use the optimizer when the layout is still open. Two choices shape the search: where the boreholes may go, and what counts as “best”.
In the program the optimizer is one dialog and one results page:
- Optimize…, menu Calculation. Region: rectangular plot or site plan. Plot and geometry: plot length and width, borehole distance min and max, layout spacing step (0 = automatic), borehole length min and max, boreholes min and max. Layout types: single, line, L, double L, U, open rectangle, rectangle, circle, hexagonal, concentric rings. Site plan: fills: grid, staggered, row-wise, perimeter, angle step. Objective and Keep best.
- Optimization candidates (Results): rank, layout, n1, n2, boreholes, min. distance, layout spacing, H, total length, drilled length, trench, cost, minimum and maximum mean fluid temperature. Click a header to sort.
- Apply to project asks “Replace the layout with …?”, then sets the layout type, n1, n2 and the spacing, regenerates the field and gives every borehole the length H. Inclination and rotation are cleared. It is one undo step, and the Field layout page opens. A site plan candidate becomes a custom field.
How the search works
- Enumerate. For each ticked type and each spacing of the grid (min, min + step, …, max) every n1 × n2 whose extent fits the plot, in either orientation. The rotation does not change the thermal response, and mirror images (4 × 3 and 3 × 4) are tried once. Spacing step 0 means a coarse 5 m grid first.
- Screen. Every layout is sized in parallel with a fast g-function (equivalent boreholes, Prieto and Cimmino 2021) and a coarser tolerance. The g-function is the dimensionless temperature response of the whole field to a constant heat rate; it carries the interaction between the boreholes. Layouts whose boreholes would intersect are rejected. A layout that cannot meet the limits within the length range is dropped.
- Refine (automatic spacing only): the 10 best are tried again at ±1, 2, 3 and 4 m spacing.
- Rank by the objective. Equal values are ordered by the other measure (cost or length), then by the borehole count.
- Exact sizing of the best keep best + keep best/5 + 5 layouts with the project’s own g-function method and tolerance. Their order can change, so they are sorted again and the best keep best are shown.
Every candidate is a vertical, unrotated field with the default connection: all boreholes in parallel, or strings of boreholes in series. The optimizer always uses the analytic g-function; with the FEM (finite-element) engine, size the chosen layout afterwards.
What decides the ranking
Two effects compete. Boreholes that stand further apart disturb each other less, so the field needs fewer metres. But the trench gets longer, and the plot runs out. The chart repeats the sizing of three rectangles of the candidate list for spacings from 4 to 14 m (a parametric study that sizes the length at each spacing).
The shape matters too. With the same 12 boreholes at 8 m, the long 6 × 2 field needs 1968 m and the compact 4 × 3 field 2018 m: in a block more boreholes have neighbours on several sides. More boreholes do not help either: the 4 × 4 field at 8 m needs shorter boreholes but more metres in total.
How each result is derived
The cost uses the project’s Borefield costs settings. The example project has none, so the four prices of the optimization setup apply: 5,000 EUR fixed, 800 EUR per borehole, 45 EUR per metre and 60 EUR per trench metre. The detailed model gives a step function (depth surcharges, manifold sizes); the search needs no gradient, so it works the same.
The columns of the Optimization candidates page, with rank 1 of the example:
| Column | How BoreTherm derives it | Rank 1 (Rectangle 6 × 2, 8 m) |
|---|---|---|
| Layout, n1, n2, Boreholes | the enumerated shape; Boreholes = n1 · n2 for a rectangle | Rectangle 6 × 2, 12 |
| Min. distance / Layout spacing | closest pair of heads / spacing that generated the layout | 8.0 / 8.0 m |
| H [m] | smallest length in 60 … 250 m that keeps Tf within both limits (Brent’s method, exact g-function) | 164.0 m |
| Total length | Σ H = N · H | 12 × 164.01 = 1968.2 m |
| Drilled | Σ (D + H + foot length); D = buried depth, foot = drilled below H | 1968.2 + 12 × 4 = 2016.2 m |
| Trench | minimum spanning tree of the borehole heads; for a grid (N − 1) · B | (12 − 1) × 8 = 88 m |
| Cost | fixed + per borehole · N + per metre · total length + per trench metre · trench; net, here without contingency or VAT | 5,000 + 800 × 12 + 45 × 1968.2 + 60 × 88 = 108,447 EUR |
| Mean fluid temperature min / max | extremes of the sized simulation over the whole period | −3.00 °C / 17.82 °C: Tf,min is the binding limit |
The example in numbers
- No line is a candidate: 12 boreholes in a line at 6 m are 66 m long, longer than the plot.
- All candidates are sized to Tf,min = −3 °C: heating decides. Tf,max stays below 17.8 °C.
- The objective changes the order. By length, the 5 × 3 field at 8 m (2102 m) ranks 4th and beats the 4 × 3 field at 6 m (2135 m). By cost it ranks 6th: three more boreholes and 46 m more trench.
- After Apply to project and Calculate the simulation gives Tf,min = −3.00 °C and Tf,max = 17.82 °C: the candidate’s values. The exact sizing used the project’s own settings.
Limits to keep in mind
- The result is the best of the layouts tried, within the bounds you set. It is not a proof of a global optimum. Custom and inclined layouts are not generated; apply a candidate, then edit it.
- A candidate at a bound (spacing max, plot edge, count limit, length max) means the bound decided. Check whether it can move.
- Screening uses a fast g-function and a 0.5 m tolerance. Layouts outside the best keep best + keep best/5 + 5 of the screening are never sized exactly; for close calls raise Keep best.
- The cost is an estimate from unit prices, not a quote. The simple model has five unit prices (fixed, per borehole, per metre, per circuit, per trench metre); a ranking by cost is only as good as those prices.
- Candidates have equal lengths and are evaluated with the default connection; explicit strings of the project are not carried over. Check the circuits after Apply to project.
- The life-cycle objective needs the heating-system comparison with exactly one enabled ground-source heat pump variant, and monthly building loads.
- The optimizer uses the analytic g-function only. With the FEM engine, size the applied layout again with Size borehole length.
Numbers calculated with BoreTherm. Costs are illustrative.