.Buildings.Fluid.Geothermal.ZonedBorefields.BaseClasses.HeatTransfer.shiftAggregationCells

Performs the shifting operation for load aggregation and determines the current cell

Information

Performs the shifting operation which propagates the thermal load history towards the more distant aggregation cells, and then sets the current cell's value at 0. Additionally, this function also outputs the last filled load aggregation cell.

This is a vectorized implementation of Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.LoadAggregation.shiftAggregationCells, which applies load aggregation on a vector of aggregated load histories.

Interface

function shiftAggregationCells
  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] "Vector of aggregated loads";
  input Real rCel[i](each min = Modelica.Constants.small) "Aggregation cell widths";
  input Modelica.Units.SI.Time nu[i] "Cell aggregation times";
  input Modelica.Units.SI.Time curTim "Current simulation time";
  output Integer curCel "Current occupied aggregation cell";
  output Modelica.Units.SI.HeatFlowRate QAggShi_flow[nSeg, i] "Shifted vector of aggregated loads";
end shiftAggregationCells;

Revisions


Generated at 2025-04-18T18:20:08Z by OpenModelicaOpenModelica 1.25.0 using GenerateDoc.mos