Buildings.Controls.OBC.CDL.Continuous.Validation
Collection of models that validate the continuous blocks of the CDL
Information
This package contains models that validate the blocks in Buildings.Controls.OBC.CDL.Continuous.
The examples plot various outputs, which have been verified against analytical solutions. These model outputs are stored as reference data to allow continuous validation whenever models in the library change.
Package Content
Name  Description 

Abs  Validation model for the absolute block 
Add  Validation model for the add block 
AddParameter  Validation model for the AddParameter block 
Atan  Validation model for the Atan block 
Atan2  Validation model for the Atan2 block 
Average  Validation model for the Average block 
ChangeSign  Validation model for the ChangeSign block 
Cos  Validation model for the Cos block 
Derivative  Validation model for the Derivative block 
Division  Validation model for the Division block 
Exp  Validation model for the Exp block 
Feedback  Validation model for the Feedback block 
Gain  Validation model for the Gain block 
Greater  Validation model for the Greater block 
GreaterEqual  Validation model for the GreaterEqual block 
GreaterEqualThreshold  Validation model for the GreaterEqualThreshold block 
GreaterThreshold  Validation model for the GreaterThreshold block 
Hysteresis  Validation model for the Hysteresis block 
HysteresisWithHold  Validation model for the HysteresisWithHold block 
IntegratorWithReset  Test model for integrator with reset 
Less  Validation model for the Less block 
LessEqual  Validation model for the LessEqual block 
LessEqualThreshold  Validation model for the LessEqualThreshold block 
LessThreshold  Validation model for the LessThreshold block 
LimPID  Test model for LimPID controller 
Limiter  Validation model for the Limiter block 
Line  Validation model for the Line block 
Log  Validation model for the Log block 
Log10  Validation model for the Log10 block 
Max  Validation model for the Max block 
Min  Validation model for the Min block 
Modulo  Validation model for the Modulo block 
MovingMean  Validation model for the MovingMean block 
MovingMean_nonZeroStart  Validation model for the MovingMean block 
MultiMax  Validation model for the MultiMax block 
MultiMin  Validation model for the MultiMin block 
MultiSum  Model to validate the application of MultiSum block 
NumberOfRequests  Validation model for the NumberOfRequests block 
Product  Validation model for the Product block 
Round  Validation model for the Round block 
Sin  Validation model for the Sin block 
SlewRateLimiter  Validation model for the SlewRateLimiter block 
Sort  Validation model for the Sort block 
Sqrt  Validation model for the Sqrt block 
Tan  Validation model for the Tan block 
Buildings.Controls.OBC.CDL.Continuous.Validation.Abs
Validation model for the absolute block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Continuous.Abs. The input varies from 1 to +1.
Modelica definition
Buildings.Controls.OBC.CDL.Continuous.Validation.Add
Validation model for the add block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Continuous.Add.
The input u1
varies from 2 to +2, input u2
varies from 1 to +1.
Modelica definition
Buildings.Controls.OBC.CDL.Continuous.Validation.AddParameter
Validation model for the AddParameter block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Continuous.AddParameter.
The input u
varies from 2 to +2.
Modelica definition
Buildings.Controls.OBC.CDL.Continuous.Validation.Atan
Validation model for the Atan block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Continuous.Atan.
The input u
varies from 2 to +2.
Modelica definition
Buildings.Controls.OBC.CDL.Continuous.Validation.Atan2
Validation model for the Atan2 block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Continuous.Atan2.
The input u1
varies from 2 to +2,
The input u2
varies from +1 to +3.
Modelica definition
Buildings.Controls.OBC.CDL.Continuous.Validation.Average
Validation model for the Average block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Continuous.Average.
The input u1
varies from 2.0 to +6.0, input u2
varies from +1.5 to +4.5
Modelica definition
Buildings.Controls.OBC.CDL.Continuous.Validation.ChangeSign
Validation model for the ChangeSign block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Continuous.ChangeSign.
The input u
varies from 1.5 to +1.5.
Modelica definition
Buildings.Controls.OBC.CDL.Continuous.Validation.Cos
Validation model for the Cos block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Continuous.Cos.
The input u
varies from 0.0 to +6.283.
Modelica definition
Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative
Validation model for the Derivative block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Continuous.Derivative.
The input u
varies from 0.0 to +5*6.283.
Modelica definition
Buildings.Controls.OBC.CDL.Continuous.Validation.Division
Validation model for the Division block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Continuous.Division.
The input u1
varies from 2 to +2, input u2
varies from +1 to +3.
Modelica definition
Buildings.Controls.OBC.CDL.Continuous.Validation.Exp
Validation model for the Exp block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Continuous.Exp.
The input u
varies from 0.0 to +2.
Modelica definition
Buildings.Controls.OBC.CDL.Continuous.Validation.Feedback
Validation model for the Feedback block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Continuous.Feedback.
The input u1
varies from 2 to +2, input u2
varies from 1 to +1.
Modelica definition
Buildings.Controls.OBC.CDL.Continuous.Validation.Gain
Validation model for the Gain block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Continuous.Gain.
The input u
varies from 0.0 to +2.
Modelica definition
Buildings.Controls.OBC.CDL.Continuous.Validation.Greater
Validation model for the Greater block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Continuous.Greater.
Modelica definition
Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterEqual
Validation model for the GreaterEqual block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Continuous.GreaterEqual.
Modelica definition
Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterEqualThreshold
Validation model for the GreaterEqualThreshold block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Continuous.GreaterEqualThreshold.
Modelica definition
Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold
Validation model for the GreaterThreshold block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Continuous.GreaterThreshold.
Modelica definition
Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis
Validation model for the Hysteresis block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Continuous.Hysteresis.
Modelica definition
Buildings.Controls.OBC.CDL.Continuous.Validation.HysteresisWithHold
Validation model for the HysteresisWithHold block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Continuous.HysteresisWithHold.
The hold durations are configured as follows:

true
hold duration timetrueHoldDuration=0
,false
hold duration timefalseHoldDuration=0
. 
true
hold duration timetrueHoldDuration=30
,false
hold duration timefalseHoldDuration=30
. 
true
hold duration timetrueHoldDuration=30
,false
hold duration timefalseHoldDuration=300
. Thefalse
hold period covers the instance when it should be on. 
true
hold duration timetrueHoldDuration
=150,false
hold duration timefalseHoldDuration=30
. Thetrue
hold period covers the instance when it should be off.
Modelica definition
Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset
Test model for integrator with reset
Information
This model tests the implementation of Buildings.Controls.OBC.CDL.Continuous.IntegratorWithReset with and without reset, and with different start values and reset values.
The integrator intWitRes1
is triggered by a sample trigger
which becomes true at t=0, while intWitRes2
is triggered
by a boolean pulse with is true at t=0.
Hence, intWitRes1
starts with y(0)=y_reset
while
intWitRes2
starts with y(0)=y_start
.
Modelica definition
Buildings.Controls.OBC.CDL.Continuous.Validation.Less
Validation model for the Less block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Continuous.Less.
Modelica definition
Buildings.Controls.OBC.CDL.Continuous.Validation.LessEqual
Validation model for the LessEqual block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Continuous.LessEqual.
Modelica definition
Buildings.Controls.OBC.CDL.Continuous.Validation.LessEqualThreshold
Validation model for the LessEqualThreshold block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Continuous.LessEqualThreshold.
Modelica definition
Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold
Validation model for the LessThreshold block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Continuous.LessThreshold.
Modelica definition
Buildings.Controls.OBC.CDL.Continuous.Validation.LimPID
Test model for LimPID controller
Information
Validation test for the block Buildings.Controls.OBC.CDL.Continuous.LimPID.
The model limPIDOri
is the original
implementation of the controller from the Modelica
Standard Library. The models limPID
is the implementations from the Buildings library.
Modelica definition
Buildings.Controls.OBC.CDL.Continuous.Validation.Limiter
Validation model for the Limiter block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Continuous.Limiter.
The input u
varies from 0.0 to +2.
Modelica definition
Buildings.Controls.OBC.CDL.Continuous.Validation.Line
Validation model for the Line block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Continuous.Line.
The input u
varies from 0.0 to +2.
The block outputs y = a + b u
,
where
u
is an input
and the coefficients a
and b
are determined so that the line intercepts the two input points
specified by the two points x1
and f1
,
and x2
and f2
.
The parameters limitBelow
and limitAbove
determine whether x1
and x2
are also used
to limit the input u
.
Modelica definition
Buildings.Controls.OBC.CDL.Continuous.Validation.Log
Validation model for the Log block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Continuous.Log.
The input u
varies from +1 to +6.
Modelica definition
Buildings.Controls.OBC.CDL.Continuous.Validation.Log10
Validation model for the Log10 block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Continuous.Log10.
The input u
varies from +1 to +10.
Modelica definition
Buildings.Controls.OBC.CDL.Continuous.Validation.Max
Validation model for the Max block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Continuous.Max.
The input u1
varies from 2 to +2, input u2
varies from 1 to +1.
Modelica definition
Buildings.Controls.OBC.CDL.Continuous.Validation.Min
Validation model for the Min block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Continuous.Min.
The input u1
varies from 2 to +2, input u2
varies from 1 to +1.
Modelica definition
Buildings.Controls.OBC.CDL.Continuous.Validation.Modulo
Validation model for the Modulo block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Continuous.Modulo.
The input u1
varies from 2.0 to +6.0, input u2
varies from +1.5 to +4.5
Modelica definition
Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean
Validation model for the MovingMean block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Continuous.MovingMean.
The input sinInpNoDel
, sinInp50sDel
,
sinInp100sDel
, generate sine outputs with same frequency of
1/80 Hz
, but different start times of 0 second
,
50 second
, 100 second
.
Modelica definition
Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean_nonZeroStart
Validation model for the MovingMean block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Continuous.MovingMean.
The inputs sinInpNoDel
, sinInp50sDel
and
sinInp100sDel
generate sine outputs with the same frequency of
1/80
Hertz, but different start times of 0
seconds,
50
seconds and 100
seconds.
Modelica definition
Buildings.Controls.OBC.CDL.Continuous.Validation.MultiMax
Validation model for the MultiMax block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Continuous.MultiMax.
The input vectorcon
has size 5 and its element values are {1,2,3,4,5}
.
Parameters
Type  Name  Default  Description 

Integer  sizOfVec  5  Size of the input vector 
Modelica definition
Buildings.Controls.OBC.CDL.Continuous.Validation.MultiMin
Validation model for the MultiMin block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Continuous.MultiMin.
The input vectorcon
has size 5 and its element values are {1,2,3,4,5}
.
Parameters
Type  Name  Default  Description 

Integer  sizOfVec  5  Size of the input vector 
Modelica definition
Buildings.Controls.OBC.CDL.Continuous.Validation.MultiSum
Model to validate the application of MultiSum block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Continuous.MultiSum.
The inputs and gains are configured as follows:
 u_{1} varies from 2 to +2, with gain k = 1.
 u_{2} varies from 1 to +1, with gain k = 0.5.
 u_{3} varies from 1 to +2, with gain k = 0.1.
 u_{4} varies from 2 to +1, with gain k = 1.
 u_{5} varies from 3 to 0, with gain k = 2.
Modelica definition
Buildings.Controls.OBC.CDL.Continuous.Validation.NumberOfRequests
Validation model for the NumberOfRequests block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Continuous.NumberOfRequests.
The input u1
varies from 2 to +2, input u2
varies from 1 to +2,
input u3
varies from +2 to 2, input u4
varies from +3 to +2,
input u5
varies from 0 to +4,
Modelica definition
Buildings.Controls.OBC.CDL.Continuous.Validation.Product
Validation model for the Product block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Continuous.Product.
The input u1
varies from 2 to +2, input u2
varies from 1 to +2.
Modelica definition
Buildings.Controls.OBC.CDL.Continuous.Validation.Round
Validation model for the Round block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Continuous.Round.
The input u
varies from 3.5 to +3.5.
Modelica definition
Buildings.Controls.OBC.CDL.Continuous.Validation.Sin
Validation model for the Sin block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Continuous.Sin.
The input u
varies from 0.0 to +2π.
Modelica definition
Buildings.Controls.OBC.CDL.Continuous.Validation.SlewRateLimiter
Validation model for the SlewRateLimiter block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Continuous.SlewRateLimiter.
The input ramp1.u
varies from 0 to +1.5,
in 1 s
.
The increase and decrease rate limits are [increase/incDt, decrease/decDt]
, which is [1, 1]
here.
Modelica definition
Buildings.Controls.OBC.CDL.Continuous.Validation.Sort
Validation model for the Sort block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Continuous.Sort.
The input u1
varies from 2 to +2, input u2
varies from 1 to +2,
input u3
varies from +2 to 2, input u4
varies from +3 to +2,
input u5
varies from 0 to +4,
Modelica definition
Buildings.Controls.OBC.CDL.Continuous.Validation.Sqrt
Validation model for the Sqrt block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Continuous.Sqrt.
The input u
varies from 0.0 to +9.0.
Modelica definition
Buildings.Controls.OBC.CDL.Continuous.Validation.Tan
Validation model for the Tan block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Continuous.Tan.
The input u
varies from 1.5 to +1.5.