Buildings.Controls.OBC.ASHRAE.G36.Plants.Chillers.SetPoints.Validation

Collection of validation models

Information

This package contains validation models for the classes in Buildings.Controls.OBC.ASHRAE.G36.Plants.Chillers.Setpoints.

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.

Package Content

Name Description
Buildings.Controls.OBC.ASHRAE.G36.Plants.Chillers.SetPoints.Validation.ChilledWaterPlantReset ChilledWaterPlantReset Validate model of generating chilled water plant reset
Buildings.Controls.OBC.ASHRAE.G36.Plants.Chillers.SetPoints.Validation.ChilledWaterSupply ChilledWaterSupply Validate model of generating setpoints for chilled water supply control

Buildings.Controls.OBC.ASHRAE.G36.Plants.Chillers.SetPoints.Validation.ChilledWaterPlantReset Buildings.Controls.OBC.ASHRAE.G36.Plants.Chillers.SetPoints.Validation.ChilledWaterPlantReset

Validate model of generating chilled water plant reset

Buildings.Controls.OBC.ASHRAE.G36.Plants.Chillers.SetPoints.Validation.ChilledWaterPlantReset

Information

This example validates Buildings.Controls.OBC.ASHRAE.G36.Plants.Chillers.SetPoints.ChilledWaterPlantReset.

The instance plaRes shows the process of calculating the plant reset. It also shows that when the plant is in the staging process, the reset value will be fixed at the value when the staging process just starts.

The process of calculating the reset value follows the same steps. For the instance devRes, besides the same process as shown in the instance plaRes, the devRes also shows that the reset value will be zero when the device is disabled (uDevSta=false).

Modelica definition

model ChilledWaterPlantReset "Validate model of generating chilled water plant reset" Buildings.Controls.OBC.ASHRAE.G36.Plants.Chillers.SetPoints.ChilledWaterPlantReset plaRes "Chilled water plant reset"; Buildings.Controls.OBC.ASHRAE.G36.Plants.Chillers.SetPoints.ChilledWaterPlantReset devRes "Validate chilled water plant reset affected by device status"; Buildings.Controls.OBC.CDL.Logical.Sources.Constant uChiWatPum[2]( final k={true,false}) "Plant status"; Buildings.Controls.OBC.CDL.Conversions.RealToInteger reaToInt1 "Convert real to integer"; Buildings.Controls.OBC.CDL.Logical.Sources.Pulse booPul( final period=9500, final width=0.3, shift=-2000) "Generate pulse signal of type Boolean"; Buildings.Controls.OBC.CDL.Logical.Not not1 "Logical not"; Buildings.Controls.OBC.CDL.Reals.Switch swi "Switch between two Real signals"; Buildings.Controls.OBC.CDL.Reals.Sources.Constant con1(final k=0) "Zero request when device is OFF"; Buildings.Controls.OBC.CDL.Conversions.RealToInteger reaToInt3 "Convert real to integer"; Buildings.Controls.OBC.CDL.Routing.BooleanScalarReplicator chiWatPum(nout=2) "Chilled water pump status"; Buildings.Controls.OBC.CDL.Reals.Sources.TimeTable timTabLin1( smoothness=Buildings.Controls.OBC.CDL.Types.Smoothness.ConstantSegments, table=[0,0;150,1; 300,2; 450,3; 600,4; 750,5; 900,6; 1050,5; 1200,4; 1350,3; 1500,2; 1650,1; 1800,0]) "Time table with smoothness method of constant segments"; Buildings.Controls.OBC.CDL.Reals.Sources.TimeTable timTabLin2( smoothness=Buildings.Controls.OBC.CDL.Types.Smoothness.ConstantSegments, table=[0,0;150,1; 300,2; 450,3; 600,4; 750,5; 900,6; 1050,5; 1200,4; 1350,3; 1500,2; 1650,1; 1800,0]) "Time table with smoothness method of constant segments"; Buildings.Controls.OBC.CDL.Logical.Sources.Pulse booPul1( period=3600) "Generate pulse signal of type Boolean"; Buildings.Controls.OBC.CDL.Logical.Switch staPro "Staging process"; Buildings.Controls.OBC.CDL.Logical.Sources.Constant con( k=false) "Constant false"; Buildings.Controls.OBC.CDL.Logical.Sources.Pulse booPul2(width=0.4, period=4800) "Generate pulse signal of type Boolean"; equation connect(uChiWatPum.y, plaRes.uChiWatPum); connect(con1.y,swi. u1); connect(booPul.y,swi. u2); connect(booPul.y,not1. u); connect(not1.y, chiWatPum.u); connect(chiWatPum.y, devRes.uChiWatPum); connect(reaToInt1.y, plaRes.TChiWatSupResReq); connect(reaToInt3.y, devRes.TChiWatSupResReq); connect(timTabLin1.y[1], reaToInt1.u); connect(timTabLin2.y[1], swi.u3); connect(swi.y, reaToInt3.u); connect(booPul1.y, plaRes.chaPro); connect(staPro.y, devRes.chaPro); connect(con.y, staPro.u3); connect(not1.y, staPro.u2); connect(booPul2.y, staPro.u1); end ChilledWaterPlantReset;

Buildings.Controls.OBC.ASHRAE.G36.Plants.Chillers.SetPoints.Validation.ChilledWaterSupply Buildings.Controls.OBC.ASHRAE.G36.Plants.Chillers.SetPoints.Validation.ChilledWaterSupply

Validate model of generating setpoints for chilled water supply control

Buildings.Controls.OBC.ASHRAE.G36.Plants.Chillers.SetPoints.Validation.ChilledWaterSupply

Information

This example validates Buildings.Controls.OBC.ASHRAE.G36.Plants.Chillers.SetPoints.ChilledWaterSupply.

Modelica definition

model ChilledWaterSupply "Validate model of generating setpoints for chilled water supply control" Buildings.Controls.OBC.ASHRAE.G36.Plants.Chillers.SetPoints.ChilledWaterSupply chiWatSupSet( final dpChiWatMin={60}, final dpChiWatMax={150}, final TChiWatSupMin=280.15, final TPlaChiWatSupMax=291.15) "Generate setpoint for chilled water supply control"; Buildings.Controls.OBC.CDL.Reals.Sources.Ramp plaRes(final duration=3600) "Chilled water plant reset"; equation connect(plaRes.y, chiWatSupSet.uChiWatPlaRes); end ChilledWaterSupply;