modelSineInput
Extends from Buildings.Controls.Predictors.Validation.BaseClasses.PartialSimpleTestCase (Partial base class for simple test case of base load prediction).
Information
Model that demonstrates and tests the demand response model. Input to the model is a sinusoidal consumed electrical power which has been discretized using a sampler. Because of this discretization and because of the periodicity of the input signal, the baseline prediction model will be able to predict the load exactly. The baseline prediction model also takes as an input signal the day type, and a demand response signal. Every seventh day, there is a demand response signal.
After at least one initial working day and non-working days at
which no demand response is requested, the predicted power
client.PPre exactly matches the consumed power
client.PCon.
This model has been added to the library to verify and demonstrate the correct implementation of the baseline prediction model based on a simple input scenario.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.Time | tPeriod (from PartialSimpleTestCase) | 24*3600 | Period |
| Modelica.Units.SI.Time | tSample (from PartialSimpleTestCase) | 3600 | Sampling period |
| Integer | nPre (from PartialSimpleTestCase) | 12 | Number of time steps to predict |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| ElectricalLoad | baseLoad (from PartialSimpleTestCase) | Baseload prediction | |
| Modelica.Blocks.Sources.BooleanPulse | tri (from PartialSimpleTestCase) | Sample trigger | |
| Sources.DayType | dayType (from PartialSimpleTestCase) | Outputs the type of the day for each hour where load is to be predicted | |
| Modelica.Blocks.Logical.Not | notEventDay (from PartialSimpleTestCase) | Output true if it is not an event day | |
| Modelica.Blocks.Sources.Cosine | PBas | Measured power consumption | |
| Sampler | P | Sampler to turn PCon into a piece-wise constant signal. This makes it easier to verify the results | |
| Modelica.Blocks.Continuous.Integrator | integrator | Integrator to compute energy from power | |
| Modelica.Blocks.Sources.RealExpression | realExpression | ||
| Modelica.Blocks.Math.Add | PCon | Consumed power |
Revisions
-
September 24, 2015 by Michael Wetter:
ImplementedSamplerto avoid a translation warning becauseSampler.firstTriggerdoes not set thefixedattribute in MSL 3.2.1. -
March 20, 2014 by Michael Wetter:
First implementation.