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
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | i | Number of aggregation cells | |
| Modelica.Units.SI.HeatFlowRate[i] | QAgg_flow | Vector of aggregated loads | |
| Real[i] | rCel | Aggregation cell widths | |
| Modelica.Units.SI.Time[i] | nu | Cell aggregation times | |
| Modelica.Units.SI.Time | curTim | Current simulation time |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | curCel | Current occupied aggregation cell | |
| Modelica.Units.SI.HeatFlowRate[i] | QAggShi_flow | Shifted vector of aggregated loads |
Revisions
-
July 15, 2018, by Michael Wetter:
Addedmin=Modelica.Constants.smalltorCelso that a tool can infer that this quantity is non-zero. -
March 5, 2018, by Alex Laferrière:
First implementation.