modelLinearInputDayOfAdjustment

Demand response client with constant input for actual power consumption

Extends from Buildings.Controls.Predictors.Validation.LinearInput (Demand response client with actual power consumption being linear in the temperature).

Information

This model is identical to Buildings.Controls.Predictors.Validation.LinearInput, except that the demand respond client is configured to use the day-of adjustment.

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.RampTOut (from LinearInput)Outside temperature
Modelica.Blocks.Sources.ConstantPOffSet (from LinearInput)Offset for power
Modelica.Blocks.Math.AddPCon (from LinearInput)Consumed power
Modelica.Blocks.Math.UnitConversions.To_degCto_degC (from LinearInput)
Modelica.Blocks.Math.Adderr (from LinearInput)Prediction error
SamplerTSam (from LinearInput)Sampler to turn TOut into a piece-wise constant signal. This makes it easier to verify the results
Modelica.Blocks.Continuous.Integratorintegrator (from LinearInput)Integrator to compute energy from power
Modelica.Blocks.Sources.RealExpression[nPre - 1]TOutFut (from LinearInput)Prediction of future outside temperatures

Revisions

  • March 20, 2014 by Michael Wetter:
    First implementation.