functionaggregationCellTimes
Function which builds the time and cell width vectors for aggregation
Extends from Modelica.Icons.Function (Icon for functions).
Information
Simultaneously constructs both the nu vector, which is the
aggregation time of each cell, and the rCel vector, which
is the temporal size of each cell normalized with the time resolution of load
aggregation tLoaAgg.
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | i | Size of time vector | |
| Real | lvlBas | Base for growth between each level, e.g. 2 | |
| Integer | nCel | Number of cells of same size per level | |
| Modelica.Units.SI.Time | tLoaAgg | Time resolution of load aggregation | |
| Modelica.Units.SI.Time | timFin | Total simulation max length |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.Time[i] | nu | Time vector nu of size i | |
| Real[i] | rCel | Cell width vector of size i |
Revisions
-
July 15, 2018, by Michael Wetter:
Addedmin=Modelica.Constants.smalltotLoaAggso that a tool can infer that this quantity is non-zero. -
March 5, 2018, by Alex Laferrière:
First implementation.