Buildings.Obsolete.Controls.OBC.CDL.Discrete
Package with obsolete discrete blocks
Information
Package that contains obsolete models for discrete controls.
Package Content
Name | Description |
---|---|
DayType | Block that outputs a signal that indicates week-day or week-end |
MovingMean | Discrete moving mean of a sampled input signal |
Examples | Collection of models that illustrate model use and test models |
Buildings.Obsolete.Controls.OBC.CDL.Discrete.DayType
Block that outputs a signal that indicates week-day or week-end
Information
This block outputs a signal that indicates the type of the day. It can for example be used to generate a signal that indicates whether the current time is a work day or a non-working day. The output signal is of type Buildings.Obsolete.Controls.OBC.CDL.Types.Day.
The parameter nout
determines how many days should be
sent to the output. For applications in which only the current day
is of interest, set nout=1
.
For applications in which the load is predicted for the next 24 hours,
set nout=2
in order to output the type of day for today and for
tomorrow.
The transition from one day type to another always happens when the simulation time is a multiple of 1 day. Hence, if the simulation starts for example at t=-3600 seconds, then the first transition to another day will be at t=0.
Parameters
Type | Name | Default | Description |
---|---|---|---|
Integer | nout | 2 | Number of days to output. Set to two for one day predictions |
Day | days[:] | {Buildings.Obsolete.Controls... | Array where each element is a day indicator |
Integer | iStart | 1 | Index of element in days at simulation start |
Connectors
Type | Name | Description |
---|---|---|
output DayTypeOutput | y[nout] | Type of the day for the current and the next (nout-1) days |
Modelica definition
Buildings.Obsolete.Controls.OBC.CDL.Discrete.MovingMean
Discrete moving mean of a sampled input signal
Information
Block that outputs the sampled moving mean value of an input signal. At each sampling instant, the block outputs the average value of the past n samples including the current sample.
At the first sample, the block outputs the first sampled input. At the next sample, it outputs the average of the past two samples, then the past three samples and so on up to n samples.
Extends from Modelica.Icons.ObsoleteModel (Icon for classes that are obsolete and will be removed in later versions).
Parameters
Type | Name | Default | Description |
---|---|---|---|
Integer | n | Number of samples over which the input is averaged | |
Time | samplePeriod | Sampling period of component [s] |
Connectors
Type | Name | Description |
---|---|---|
input RealInput | u | Continuous input signal |
output RealOutput | y | Discrete averaged signal |