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

TypeNameDefaultDescription
IntegeriSize of time vector
ReallvlBasBase for growth between each level, e.g. 2
IntegernCelNumber of cells of same size per level
Modelica.Units.SI.TimetLoaAggTime resolution of load aggregation
Modelica.Units.SI.TimetimFinTotal simulation max length

Outputs

TypeNameDefaultDescription
Modelica.Units.SI.Time[i]nuTime vector nu of size i
Real[i]rCelCell width vector of size i

Revisions

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