This function uses spline interpolation to construct the
weighting factors vector kappa using the aggregation
times nu and the temperature step reponse (a
time-series in the form of a matrix) of the borefield as an
input.
function aggregationWeightingFactors extends Modelica.Icons.Function; input Integer i "Size of aggregation vector"; input Integer nTimTot "Size of g-function time table"; input Modelica.Units.SI.ThermalResistance TStep[nTimTot, 2] "Time matrix with TStep"; input Modelica.Units.SI.Time nu[i] "Aggregation time vector nu"; output Modelica.Units.SI.ThermalResistance kappa[i] "Weighting factors vector"; end aggregationWeightingFactors;