Collection of validation models
Information
This package contains validation models for the classes in
Buildings.Controls.OBC.ASHRAE.G36_PR1.TerminalUnits.Reheat.
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 |
DamperValves
|
Validate model for controlling damper and valve position of VAV reheat terminal unit |
SystemRequests
|
Validation of model that generates system requests |
Validate model for controlling damper and valve position of VAV reheat terminal unit
Information
This example validates
Buildings.Controls.OBC.ASHRAE.G36_PR1.TerminalUnits.Reheat.DamperValves
for damper and valve control of VAV reheat terminal unit.
Extends from Modelica.Icons.Example (Icon for runnable examples).
Modelica definition
model DamperValves
extends Modelica.Icons.Example;
Buildings.Controls.OBC.ASHRAE.G36_PR1.TerminalUnits.Reheat.DamperValves
damVal(kDam=1, V_flow_nominal=2) ;
Buildings.Controls.OBC.CDL.Continuous.Sources.Ramp uHea(
duration=36000,
height=-1,
offset=1,
startTime=0) ;
CDL.Continuous.Sources.Ramp uCoo(
height=1,
duration=36000,
offset=0,
startTime=50400) ;
Buildings.Controls.OBC.CDL.Continuous.Sources.Constant THeaSet(k=273.15 + 20)
;
Buildings.Controls.OBC.CDL.Continuous.Sources.Constant TZon(k=273.15 + 22) ;
Buildings.Controls.OBC.CDL.Continuous.Sources.Constant TSup(k=273.15 + 13) ;
Buildings.Controls.OBC.CDL.Continuous.Sources.Constant VActMin(k=0.01) ;
Buildings.Controls.OBC.CDL.Continuous.Sources.Constant VActHeaMin(k=0.015) ;
Buildings.Controls.OBC.CDL.Continuous.Sources.Constant VActHeaMax(k=0.05) ;
Buildings.Controls.OBC.CDL.Continuous.Sources.Constant VActCooMin(k=0.015) ;
Buildings.Controls.OBC.CDL.Continuous.Sources.Constant VActCooMax(k=0.075) ;
Buildings.Controls.OBC.CDL.Continuous.Sources.Sine VDis(
offset=0.015,
amplitude=0.002,
freqHz=1/86400) ;
Buildings.Controls.OBC.CDL.Continuous.Sources.Constant TDis(k=273.15 + 25) ;
CDL.Integers.Sources.Constant occSig(k=Buildings.Controls.OBC.ASHRAE.G36_PR1.Types.OperationModes.occupied)
;
equation
connect(VDis.y, damVal.VDis);
connect(TDis.y, damVal.TDis);
connect(VActCooMax.y, damVal.VActCooMax);
connect(VActCooMin.y, damVal.VActCooMin);
connect(VActHeaMax.y, damVal.VActHeaMax);
connect(VActHeaMin.y, damVal.VActHeaMin);
connect(VActMin.y, damVal.VActMin);
connect(uCoo.y, damVal.uCoo);
connect(uHea.y, damVal.uHea);
connect(THeaSet.y, damVal.THeaSet);
connect(TSup.y, damVal.TSup);
connect(TZon.y, damVal.TRoo);
connect(occSig.y, damVal.uOpeMod);
end DamperValves;
Validation of model that generates system requests
Information
This example validates
Buildings.Controls.OBC.ASHRAE.G36_PR1.TerminalUnits.Reheat.SystemRequests
for generating system requests.
Extends from Modelica.Icons.Example (Icon for runnable examples).
Modelica definition
model SystemRequests
extends Modelica.Icons.Example;
Buildings.Controls.OBC.ASHRAE.G36_PR1.TerminalUnits.Reheat.SystemRequests
sysReq_RehBox(have_heaPla=true, have_heaWatCoi=true) ;
Buildings.Controls.OBC.CDL.Continuous.Sources.Sine sine(freqHz=1/7200, offset
=296.15) ;
Buildings.Controls.OBC.CDL.Discrete.UnitDelay TCooSet(samplePeriod=1800) ;
Buildings.Controls.OBC.CDL.Continuous.Sources.Sine TRoo(
freqHz=1/7200,
amplitude=2,
offset=299.15) ;
Buildings.Controls.OBC.CDL.Continuous.Sources.Ramp uCoo(
height=0.9,
duration=7200,
offset=0.1) ;
Buildings.Controls.OBC.CDL.Continuous.Sources.Ramp disAirSet(
height=0.9,
duration=7200,
offset=0.1) ;
Buildings.Controls.OBC.CDL.Continuous.Sources.Ramp disAirRate(
duration=7200,
offset=0.1,
height=0.3) ;
Buildings.Controls.OBC.CDL.Continuous.Sources.Ramp damPos(
duration=7200,
height=0.7,
offset=0.3) ;
Buildings.Controls.OBC.CDL.Continuous.Sources.Sine sine1(freqHz=1/7200,
offset=305.15) ;
Buildings.Controls.OBC.CDL.Discrete.UnitDelay TDisSet(samplePeriod=1800) ;
Buildings.Controls.OBC.CDL.Continuous.Sources.Sine TDis(
freqHz=1/7200,
amplitude=2,
offset=293.15) ;
Buildings.Controls.OBC.CDL.Continuous.Sources.Ramp valPos(
duration=7200,
height=1,
offset=0) ;
equation
connect(sine.y, TCooSet.u);
connect(TCooSet.y, sysReq_RehBox.TCooSet);
connect(TRoo.y, sysReq_RehBox.TRoo);
connect(uCoo.y, sysReq_RehBox.uCoo);
connect(disAirSet.y, sysReq_RehBox.VDisSet);
connect(disAirRate.y, sysReq_RehBox.VDis);
connect(damPos.y, sysReq_RehBox.uDam);
connect(sine1.y, TDisSet.u);
connect(TDisSet.y, sysReq_RehBox.TDisSet);
connect(TDis.y, sysReq_RehBox.TDis);
connect(valPos.y, sysReq_RehBox.uHeaVal);
end SystemRequests;