Paperlane

no. 21 · Tuesday 24 November 2026

Fast Gradient-Based Framework for Spatial and Length Optimization of Geothermal Borehole Fields

Oliver Heinzel, Smajil Halilovic, Thomas Hamacher and Michael Ulbrich

math.OC · 39 pp

Abstract

Common analytical design tools for Borehole Heat Exchanger (BHE) fields size the total drilling length for a given layout but do not optimize the positions of the boreholes. We introduce a framework (OptiGeoS) for the simultaneous, gradient-based optimization of the borehole length and the continuous borehole positions under groundwater advection. It couples the Moving Finite Line Source model with local BHE equations and evaluates the temporal convolutions by Fast Fourier Transforms. The gradients with respect to the length and the positions are computed analytically. A flow-dependent Centroidal Voronoi Tessellation confines each borehole to its own cell, which enforces the spatial separation and provides advection-informed layouts. Under purely conductive conditions, the fluid temperature extremes of the forward model for a single borehole lie between those of EED and GHEtool, which differ by $0.32\,\mathrm{K}$. For a field of 120 boreholes, the hourly outlet temperature agrees with that of EED with an RMSE of $0.28\,\mathrm{K}$, while the peak temperatures deviate by up to $2\,\mathrm{K}$. For 25 boreholes simulated hourly over 20 years, one forward simulation takes less than $0.5\,\mathrm{s}$ and a full optimization about $8\,\mathrm{min}$ on a laptop CPU. In a case study with groundwater advection, the optimized layout requires $16.2\,\%$ less borehole length than a fixed grid. It reduces the length increase caused by the advected thermal plume from $20.9\,\%$ to $1.4\,\%$.

comments
39 pages
fields
Optimization and Control