functionshiftAggregationCells

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

Extends from Modelica.Icons.Function (Icon for functions).

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.

Inputs

TypeNameDefaultDescription
IntegeriNumber of aggregation cells
Modelica.Units.SI.HeatFlowRate[i]QAgg_flowVector of aggregated loads
Real[i]rCelAggregation cell widths
Modelica.Units.SI.Time[i]nuCell aggregation times
Modelica.Units.SI.TimecurTimCurrent simulation time

Outputs

TypeNameDefaultDescription
IntegercurCelCurrent occupied aggregation cell
Modelica.Units.SI.HeatFlowRate[i]QAggShi_flowShifted vector of aggregated loads

Revisions

  • July 15, 2018, by Michael Wetter:
    Added min=Modelica.Constants.small to rCel so that a tool can infer that this quantity is non-zero.
  • March 5, 2018, by Alex Laferrière:
    First implementation.