Package with base classes for Buildings.Controls.Predictors.Examples
Information
This package contains base classes that are used to construct the models in
Buildings.Controls.Predictors.Validation.
Extends from Modelica.Icons.BasesPackage (Icon for packages containing base classes).
Package Content
Partial base class for simple test case of base load prediction
Information
Partial base class to build test for the load prediction.
This model has been added to the library to verify and demonstrate the correct implementation
of the load prediction model based on a simple input scenario.
Extends from Modelica.Icons.Example (Icon for runnable examples).
Parameters
Type | Name | Default | Description |
Time | tPeriod | 24*3600 | Period [s] |
Time | tSample | 3600 | Sampling period [s] |
Integer | nPre | 12 | Number of time steps to predict |
Modelica definition
partial model PartialSimpleTestCase
"Partial base class for simple test case of base load prediction"
extends Modelica.Icons.Example;
parameter Modelica.SIunits.Time tPeriod = 24*3600
"Period";
parameter Modelica.SIunits.Time tSample = 3600
"Sampling period";
parameter Integer nPre(min=1) = 12
"Number of time steps to predict";
ElectricalLoad baseLoad(
final nPre=nPre,
use_dayOfAdj=false,
predictionModel=Buildings.Controls.Predictors.Types.PredictionModel.Average)
"Baseload prediction";
Modelica.Blocks.Sources.BooleanPulse tri(
width=4/24*100/7,
period=7*tPeriod,
startTime=1.5*tPeriod)
"Sample trigger";
Sources.DayType dayType(nout=2)
"Outputs the type of the day for each hour where load is to be predicted";
Modelica.Blocks.Logical.Not notEventDay
"Output true if it is not an event day";
equation
connect(tri.y, notEventDay.u);
connect(notEventDay.y, baseLoad.storeHistory);
connect(dayType.y, baseLoad.typeOfDay);
end PartialSimpleTestCase;
Automatically generated Mon May 4 10:18:39 2015.