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.SIunits.ThermalResistance TStep[nTimTot, 2] "Time matrix with TStep"; input Modelica.SIunits.Time nu[i] "Aggregation time vector nu"; output Modelica.SIunits.ThermalResistance kappa[i] "Weighting factors vector"; end aggregationWeightingFactors;