Buildings.Obsolete.Controls.OBC.CDL.Conversions.Validation

Collection of validation models

Information

This package contains validation models for the classes in Buildings.Obsolete.Controls.OBC.CDL.Conversions.

Note that most validation models contain simple input data which may not be realistic, but for which the correct output can be obtained through an analytic solution. The examples plot various outputs, which have been verified against these solutions. These model outputs are stored as reference data and used for continuous validation whenever models in the library change.

Extends from Modelica.Icons.ExamplesPackage (Icon for packages containing runnable examples).

Package Content

Name Description
Buildings.Obsolete.Controls.OBC.CDL.Conversions.Validation.DayTypeCheck DayTypeCheck Model to validate blocks IsWorkingDay, Obsolete.Controls.OBC.CDL.Conversions.IsNonWorkingDay, IsHoliday

Buildings.Obsolete.Controls.OBC.CDL.Conversions.Validation.DayTypeCheck Buildings.Obsolete.Controls.OBC.CDL.Conversions.Validation.DayTypeCheck

Model to validate blocks IsWorkingDay, Obsolete.Controls.OBC.CDL.Conversions.IsNonWorkingDay, IsHoliday

Buildings.Obsolete.Controls.OBC.CDL.Conversions.Validation.DayTypeCheck

Information

This example validates the bocks IsWorkingDay, IsNonWorkingDay, IsHoliday. The instance dayTypSat generates DayType signals for three consecutive weeks, with five working and two non-working days. The first day is Saturady, which is a non-working day.

Modelica definition

model DayTypeCheck "Model to validate blocks IsWorkingDay, Obsolete.Controls.OBC.CDL.Conversions.IsNonWorkingDay, IsHoliday" Buildings.Obsolete.Controls.OBC.CDL.Conversions.IsWorkingDay isWorDay "Block to check if it is working day"; Buildings.Obsolete.Controls.OBC.CDL.Conversions.IsNonWorkingDay isNonWorDay "Block to check if it is non-working day"; Buildings.Obsolete.Controls.OBC.CDL.Conversions.IsHoliday isHoliday "Block to check if it is holiday day"; Buildings.Obsolete.Controls.OBC.CDL.Discrete.DayType dayTypSat( iStart=6) "Model that outputs the type of the day, starting with Saturday"; equation connect(dayTypSat.y[1],isNonWorDay.u); connect(dayTypSat.y[1],isHoliday.u); connect(dayTypSat.y[1],isWorDay.u); end DayTypeCheck;