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.
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.
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | i | Number of aggregation cells | |
| Integer | nSeg | Number of segments | |
| Modelica.Units.SI.HeatFlowRate[nSeg,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[nSeg,i] | QAggShi_flow | Shifted vector of aggregated loads |
Revisions
-
February 2024, by Massimo Cimmino:
First implementation.