This model computes the temperature boundary condition at the outer boundary of the borehole. It takes as an input the heat flow rate at the center of the borehole. This heat flow rate is averaged over the sample period. At each sampling interval, typically every one week, a new temperature boundary conditions is computed using the analytical solution to a line source heat transfer problem.
The computation of the temperature change of the boundary is computed using the function Buildings.Fluid.Geothermal.Boreholes.BaseClasses.temperatureDrop.
algorithm with equation.startTime to initial
algorithm section to avoid an error in OpenModelica.der(U) := Q_flow; from the algorithm section to
the equation section as this assignment does not conform to the
Modelica specification.equation section into algorithm
section to make sure that the equations in the when
block are ordered correctly.