Collection of models that illustrate model use and test models
Information
This package contains examples for the use of models that can be found in
Buildings.Air.Systems.SingleZone.VAV.
Extends from Modelica.Icons.ExamplesPackage (Icon for packages containing runnable examples).
Package Content
Name |
Description |
ChillerDXHeatingEconomizer
|
Variable air volume flow system with single themal zone and conventional control |
Guideline36
|
Variable air volume flow system with single themal zone and ASHRAE Guideline 36 sequence control |
BaseClasses
|
Package with base classes for Buildings.Air.Systems.SingleZone.VAV.Examples |
Variable air volume flow system with single themal zone and conventional control
Information
Implementation of
Buildings.Air.Systems.SingleZone.VAV.Examples.BaseClasses.PartialOpenLoop
with conventional single-maximum control sequence.
Extends from Modelica.Icons.Example (Icon for runnable examples), Buildings.Air.Systems.SingleZone.VAV.Examples.BaseClasses.PartialOpenLoop (Partial model of a single zone variable air volume flow system and thermal zone).
Parameters
Type | Name | Default | Description |
Temperature | TSupChi_nominal | 279.15 | Design value for chiller leaving water temperature [K] |
Connectors
Type | Name | Description |
Bus | weaBus | Weather bus |
Modelica definition
model ChillerDXHeatingEconomizer
extends Modelica.Icons.Example;
extends Buildings.Air.Systems.SingleZone.VAV.Examples.BaseClasses.PartialOpenLoop
(
hvac(QCoo_flow_nominal=-10000));
parameter Modelica.SIunits.Temperature TSupChi_nominal=279.15
;
Buildings.Air.Systems.SingleZone.VAV.BaseClasses.ControllerChillerDXHeatingEconomizer
con(
minAirFlo=0.1,
minOAFra=0.4,
controllerTypeHea=Buildings.Controls.OBC.CDL.Types.SimpleController.P,
controllerTypeCoo=Buildings.Controls.OBC.CDL.Types.SimpleController.P,
kCoo=1,
TiCoo=120,
controllerTypeFan=Buildings.Controls.OBC.CDL.Types.SimpleController.P,
kFan=4,
controllerTypeEco=Buildings.Controls.OBC.CDL.Types.SimpleController.P,
kEco=4,
kHea=4,
TSupChi_nominal=TSupChi_nominal,
TSetSupAir=286.15) ;
Buildings.Controls.OBC.CDL.Continuous.Sources.TimeTable TSetRooHea(
table=[
0, 15 + 273.15;
8*3600, 20 + 273.15;
18*3600, 15 + 273.15;
24*3600, 15 + 273.15],
smoothness=Buildings.Controls.OBC.CDL.Types.Smoothness.ConstantSegments,
extrapolation=Buildings.Controls.OBC.CDL.Types.Extrapolation.Periodic)
;
Buildings.Controls.OBC.CDL.Continuous.Sources.TimeTable TSetRooCoo(
table=[
0, 30 + 273.15;
8*3600, 25 + 273.15;
18*3600, 30 + 273.15;
24*3600, 30 + 273.15],
smoothness=Buildings.Controls.OBC.CDL.Types.Smoothness.ConstantSegments,
extrapolation=Buildings.Controls.OBC.CDL.Types.Extrapolation.Periodic)
;
Buildings.Controls.SetPoints.OccupancySchedule occSch(occupancy=3600*{8,18})
;
equation
connect(TSetRooHea.y[1], con.TSetRooHea);
connect(TSetRooCoo.y[1], con.TSetRooCoo);
connect(hvac.uFan, con.yFan);
connect(hvac.uHea, con.yHea);
connect(con.yCooCoiVal, hvac.uCooVal);
connect(hvac.uEco, con.yOutAirFra);
connect(con.chiOn, hvac.chiOn);
connect(hvac.TSetChi, con.TSetSupChi);
connect(hvac.TMix, con.TMix);
connect(hvac.TSup, con.TSup);
connect(zon.TRooAir, con.TRoo);
connect(occSch.occupied, con.uOcc);
connect(weaBus.TDryBul, con.TOut);
end ChillerDXHeatingEconomizer;
Variable air volume flow system with single themal zone and ASHRAE Guideline 36 sequence control
Information
Implementation of
Buildings.Air.Systems.SingleZone.VAV.Examples.BaseClasses.PartialOpenLoop
with ASHRAE Guideline 36 control sequence.
Extends from Modelica.Icons.Example (Icon for runnable examples), Buildings.Air.Systems.SingleZone.VAV.Examples.BaseClasses.PartialOpenLoop (Partial model of a single zone variable air volume flow system and thermal zone).
Parameters
Type | Name | Default | Description |
Temperature | TSupChi_nominal | 279.15 | Design value for chiller leaving water temperature [K] |
Connectors
Type | Name | Description |
Bus | weaBus | Weather bus |
Modelica definition
model Guideline36
extends Modelica.Icons.Example;
extends Buildings.Air.Systems.SingleZone.VAV.Examples.BaseClasses.PartialOpenLoop
(
hvac(QCoo_flow_nominal=-10000));
parameter Modelica.SIunits.Temperature TSupChi_nominal=279.15
;
Buildings.Controls.OBC.ASHRAE.G36_PR1.AHUs.SingleZone.VAV.Controller con(
have_winSen=true,
TZonHeaOn=293.15,
TZonCooOff=303.15,
kCoo=4,
kCooCoi=1,
yHeaMax=0.2,
AFlo=48,
VOutMin_flow=0.0144,
VOutDes_flow=0.025,
yMin=0.1,
kHea=4,
kMod=4,
have_occSen=false,
TZonHeaOff=288.15,
TZonCooOn=298.15,
TSupSetMax=343.15,
TSupSetMin=286.15,
yDam_VOutMin_minSpe=0.2304,
yDam_VOutMin_maxSpe=0.02304,
yDam_VOutDes_minSpe=0.4,
yDam_VOutDes_maxSpe=0.04)
;
Buildings.Controls.OBC.CDL.Continuous.Hysteresis hysChiPla(
uLow=-1,
uHigh=0)
;
Modelica.Blocks.Math.Feedback errTRooCoo
;
Controls.SetPoints.OccupancySchedule occSch(occupancy=3600*{8,18})
;
Modelica.Blocks.Sources.BooleanConstant uWin(k=false) ;
Buildings.Controls.OBC.CDL.Integers.Sources.Constant demLim(
final k=0)
;
Buildings.Controls.OBC.CDL.Continuous.Sources.Constant cooWarTim(
final k=0)
;
protected
Modelica.Blocks.Sources.Constant TSetSupChiConst(
final k=TSupChi_nominal)
;
equation
connect(con.yFan, hvac.uFan);
connect(con.yHeaCoi, hvac.uHea);
connect(con.yOutDamPos, hvac.uEco);
connect(TSetSupChiConst.y, hvac.TSetChi);
connect(errTRooCoo.y, hysChiPla.u);
connect(zon.TRooAir, errTRooCoo.u1);
connect(hysChiPla.y, hvac.chiOn);
connect(weaBus.TDryBul, con.TOut);
connect(zon.TRooAir, con.TZon);
connect(hvac.TSup, con.TSup);
connect(hvac.TMix, con.TMix);
connect(occSch.tNexOcc, con.tNexOcc);
connect(con.uOcc, occSch.occupied);
connect(uWin.y, con.uWin);
connect(con.TZonCooSet, errTRooCoo.u2);
connect(hvac.TRet, con.TCut);
connect(demLim.y, con.uCooDemLimLev);
connect(demLim.y, con.uHeaDemLimLev);
connect(cooWarTim.y, con.warUpTim);
connect(cooWarTim.y, con.cooDowTim);
connect(con.yCooCoi, hvac.uCooVal);
end Guideline36;