modelSineInput

Demand response client with sinusoidal input for actual power consumption

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

TypeNameDefaultDescription
Modelica.Units.SI.TimetPeriod (from PartialSimpleTestCase)24*3600Period
Modelica.Units.SI.TimetSample (from PartialSimpleTestCase)3600Sampling period
IntegernPre (from PartialSimpleTestCase)12Number of time steps to predict

Components

TypeNameDefaultDescription
ElectricalLoadbaseLoad (from PartialSimpleTestCase)Baseload prediction
Modelica.Blocks.Sources.BooleanPulsetri (from PartialSimpleTestCase)Sample trigger
Sources.DayTypedayType (from PartialSimpleTestCase)Outputs the type of the day for each hour where load is to be predicted
Modelica.Blocks.Logical.NotnotEventDay (from PartialSimpleTestCase)Output true if it is not an event day
Modelica.Blocks.Sources.CosinePBasMeasured power consumption
SamplerPSampler to turn PCon into a piece-wise constant signal. This makes it easier to verify the results
Modelica.Blocks.Continuous.IntegratorintegratorIntegrator to compute energy from power
Modelica.Blocks.Sources.RealExpressionrealExpression
Modelica.Blocks.Math.AddPConConsumed power

Revisions

  • September 24, 2015 by Michael Wetter:
    Implemented Sampler to avoid a translation warning because Sampler.firstTrigger does not set the fixed attribute in MSL 3.2.1.
  • March 20, 2014 by Michael Wetter:
    First implementation.