Performs the temporal and spatial superposition operations to
obtain the temperature change at the wall of a borehole segment at
the current time step. The spatial superposition of one load
aggregation cell is the matrix-vector product of the
kappa[:,:,k] step response matrix (at a cell k) and
the vector of aggregated loads of all borehole segments in cell k,
QAgg_flow[:,k]. The temporal superposition is the sum of the
contributions of all load aggregation cells. To avoid unnecessary
calculations, the current aggregation cell in the simulation is
used to truncate the values from the vectors that are not
required.
This is a vectorized implementation of Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.LoadAggregation.temporalSuperposition.
function temporalSuperposition extends Modelica.Icons.Function; input Integer i "Number of aggregation cells"; input Integer nSeg "Number of segments"; input Modelica.Units.SI.HeatFlowRate QAgg_flow[nSeg, i] "Array of aggregated loads"; input Modelica.Units.SI.ThermalResistance kappa[nSeg, nSeg, i] "Weighting factors for each aggregation cell"; input Integer curCel "Current occupied aggregation cell"; output Modelica.Units.SI.TemperatureDifference deltaTb[nSeg] "Delta T at wall"; end temporalSuperposition;