Buildings.Fluid.DXSystems.Heating.AirSource.Validation.BaseClasses.Validation

Package with validation models for baseclasses

Information

This package contains validation models for the classes in the baseclasses package.

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

Package Content

Name Description
Buildings.Fluid.DXSystems.Heating.AirSource.Validation.BaseClasses.Validation.PLRToPulse PLRToPulse Validation model for the PLRToPulse block

Buildings.Fluid.DXSystems.Heating.AirSource.Validation.BaseClasses.Validation.PLRToPulse Buildings.Fluid.DXSystems.Heating.AirSource.Validation.BaseClasses.Validation.PLRToPulse

Validation model for the PLRToPulse block

Buildings.Fluid.DXSystems.Heating.AirSource.Validation.BaseClasses.Validation.PLRToPulse

Information

This model validates Buildings.Fluid.DXSystems.Heating.AirSource.Validation.BaseClasses.PLRToPulse by providing it a time-varying input signal for the part-load ratio, and then comparing the enabled time results against required calculated values.

Extends from Modelica.Icons.Example (Icon for runnable examples).

Modelica definition

model PLRToPulse "Validation model for the PLRToPulse block" extends Modelica.Icons.Example; Buildings.Fluid.DXSystems.Heating.AirSource.Validation.BaseClasses.PLRToPulse plrToPul "Instance of the PLR converter to validate"; Buildings.Controls.OBC.CDL.Logical.Timer timEna "Time for which the enable signal is true"; Buildings.Controls.OBC.CDL.Reals.MultiplyByParameter gaiTim( final k=15*60) "Calculate time for which component needs to be enabled"; protected Buildings.Controls.OBC.CDL.Reals.Sources.Ramp plr( final height=1, final duration(displayUnit="min")= 15*5*60) "Part-load ratio signal"; Buildings.Controls.OBC.CDL.Discrete.Sampler samPLR( final samplePeriod = 900) "Sample the PLR every time period"; equation connect(plr.y,plrToPul. uPLR); connect(plrToPul.yEna, timEna.u); connect(plr.y, samPLR.u); connect(samPLR.y, gaiTim.u); end PLRToPulse;