Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.DualDuctMixConDischargeSensor

Sequences for dual duct terminal unit using mixing control with discharge flow sensor

Information

This package contains sequences for dual duct terminal unit using mixing control with discharge flow sensor. They are created according to Section 5.13 of ASHRAE Guideline 36, May 2020. Note that the sequence uses a single airflow sensor at the discharge outlet.

Package Content

Name Description
Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.DualDuctMixConDischargeSensor.Controller Controller Controller for dual-duct terminal unit using mixing control with discharge flow sensor
Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.DualDuctMixConDischargeSensor.Subsequences Subsequences Package of subsequences for dual-duct terminal unit using mixing control with discharge flow sensor
Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.DualDuctMixConDischargeSensor.Validation Validation Collection of validation models

Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.DualDuctMixConDischargeSensor.Controller Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.DualDuctMixConDischargeSensor.Controller

Controller for dual-duct terminal unit using mixing control with discharge flow sensor

Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.DualDuctMixConDischargeSensor.Controller

Information

Controller for dual-duct terminal unit using mixing control with discharge flow sensor according to Section 5.13 of ASHRAE Guideline 36, May 2020. It outputs discharge airflow setpoint VSet_flow, cold and hot duct dampers position setpoint (yCooDam, yHeaDam), cooling supply temperature setpoint reset request yZonCooTemResReq, heating supply temperature setpoint reset request yZonHeaTemResReq, cold-duct static pressure setpoint reset request yColDucPreResReq, hot-duct static pressure setpoint reset request yHotDucPreResReq, heating fan request yHeaFanReq. It also outputs the alarms about the low airflow yLowFloAla, leaking dampers, and airflow sensor(s) calibration alarm.

The sequence consists of six subsequences.

a. Heating and cooling control loop

The subsequence is implementd according to Section 5.3.4. The measured zone temperature TZon, zone setpoints temperatures THeaSet and TCooSet are inputs to the instance of class Buildings.Controls.OBC.ASHRAE.G36.ThermalZones.ZoneStates to generate the heating and cooling control loop signal.

b. Active airflow setpoint calculation

This sequence sets the active maximum airflow according to Section 5.13.4. Depending on operation modes uOpeMod, it sets the airflow rate limits for cooling and heating supply. See Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.DualDuctMixConDischargeSensor.Subsequences.ActiveAirFlow.

c. Dampers control

This sequence sets the dampers position setpoints. The implementation is according to Section 5.13.5. The sequence outputs discharge airflow rate setpoint VSet_flow, cold and hot ducts damper position setpoints (yCooDam, yHeaDam). See Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.DualDuctMixConDischargeSensor.Subsequences.Dampers.

d. System reset requests generation

According to Section 5.13.8, this sequence outputs the system reset requests, i.e. cooling and heating supply air temperature reset requests (yZonCooTemResReq and yZonHeaTemResReq), cold and hot duct static pressure reset requests (yColDucPreResReq and yHotDucPreResReq), and the heating fan requests yHeaFanReq. See Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.DualDuctMixConDischargeSensor.Subsequences.SystemRequests.

e. Alarms

According to Section 5.13.6, this sequence outputs the alarms of low discharge flow, leaking dampers and airflow sensor calibration alarm. See Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.DualDuctMixConDischargeSensor.Subsequences.Alarms.

f. Testing and commissioning overrides

According to Section 5.13.7, this sequence allows the override the aiflow and dampers position setpoints. See Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.DualDuctMixConDischargeSensor.Subsequences.Overrides.

Note that in this implementation, the system request sequence for generating hot-duct pressure reset request needs to know the airflow setpoint. However, the damper control sequence, which is specified in the Section 5.13.5, does not specify the flow setpoint when the zone is in heating state. It directly maps the heating loop output to the heating damper position. To avoid the confusion caused by the wordings in the Section 5.13.5.1.c, the damper control was implemented according to the Figure 5.13.5.

Parameters

TypeNameDefaultDescription
VentilationStandardvenStdBuildings.Controls.OBC.ASHRA...Ventilation standard, ASHRAE 62.1 or Title 24
Booleanhave_winSentrueTrue: the zone has window sensor
Booleanhave_occSentrueTrue: the zone has occupancy sensor
Booleanhave_CO2SentrueTrue: the zone has CO2 sensor
Booleanpermit_occStandbytrueTrue: occupied-standby mode is permitted
RealVOccMin_flow Zone minimum outdoor airflow for occupants [m3/s]
RealVAreMin_flow Zone minimum outdoor airflow for building area [m3/s]
Design conditions
RealVAreBreZon_flow Design area component of the breathing zone outdoor airflow [m3/s]
RealVPopBreZon_flow Design population component of the breathing zone outdoor airflow [m3/s]
RealVMin_flow Design zone minimum airflow setpoint [m3/s]
RealVCooMax_flow Design zone cooling maximum airflow rate [m3/s]
RealVHeaMax_flow Design zone heating maximum airflow rate [m3/s]
Control loops
Cooling
RealkCooCon0.1Gain of controller for cooling control loop
RealTiCooCon900Time constant of integrator block for cooling control loop [s]
Heating
RealkHeaCon0.1Gain of controller for heating control loop
RealTiHeaCon900Time constant of integrator block for heating control loop [s]
Dampers
Booleanhave_preIndDamfalseTrue: the VAV damper is pressure independent (with built-in flow controller)
SimpleControllercontrollerTypeDamBuildings.Controls.OBC.CDL.T...Type of controller
RealkDam0.5Gain of controller for damper control
RealTiDam300Time constant of integrator block for damper control [s]
RealTdDam0.1Time constant of derivative block for damper control [s]
RealkHeaMaxDam0.5Gain of controller for heating maximum damper control [1]
System requests
RealthrTemDif3Threshold difference between zone temperature and cooling setpoint for generating 3 cooling SAT reset requests [K]
RealtwoTemDif2Threshold difference between zone temperature and cooling setpoint for generating 2 cooling SAT reset requests [K]
Duration time
RealdurTimTem120Duration time of zone temperature exceeds setpoint [s]
RealdurTimFlo60Duration time of airflow rate less than setpoint [s]
Alarms
RealstaPreMul1Importance multiplier for the zone static pressure reset control loop
ReallowFloTim300Threshold time to check low flow rate [s]
RealfanOffTim600Threshold time to check fan off [s]
RealleaFloTim600Threshold time to check damper leaking airflow [s]
Time-based suppresion
RealchaRat540Gain factor to calculate suppression time based on the change of the setpoint, second per degC
RealmaxSupTim1800Maximum suppression time [s]
Advanced
RealdTHys0.25Near zero temperature difference, below which the difference will be seen as zero [K]
ReallooHys0.05Loop output hysteresis below which the output will be seen as zero [1]
RealfloHys0.01Near zero flow rate, below which the flow rate or difference will be seen as zero [m3/s]
RealdamPosHys0.05Near zero damper position, below which the damper will be seen as closed [1]
Control loops
RealtimChe30Threshold time to check the zone temperature status [s]
Distribution effectiveness
RealzonDisEff_cool1.0Zone cooling air distribution effectiveness [1]
RealzonDisEff_heat0.8Zone heating air distribution effectiveness [1]
Time-based suppresion
RealsamplePeriod120Sample period of component, set to the same value as the trim and respond that process static pressure reset [s]

Connectors

TypeNameDescription
input RealInputTZonMeasured room temperature [K]
input RealInputTCooSetSetpoint temperature for room for cooling [K]
input RealInputTHeaSetSetpoint temperature for room for heating [K]
input BooleanInputu1WinWindow status, true if the window is open, false if it is closed
input BooleanInputu1OccTrue: the zone is populated
input IntegerInputuOpeModZone operation mode
input RealInputppmCO2SetCO2 concentration setpoint
input RealInputppmCO2Detected CO2 concentration
input RealInputTDisMeasured discharge air temperature [K]
input RealInputTColSupCold duct supply air temperature from central air handler [K]
input RealInputVDis_flowMeasured discharge airflow rate airflow rate [m3/s]
input BooleanInputu1CooAHUCooling air handler status
input RealInputTHotSupHot duct supply air temperature from central air handler [K]
input BooleanInputu1HeaAHUHeating air handler status
input IntegerInputoveFloSetIndex of overriding flow setpoint, 1: set to zero; 2: set to cooling maximum; 3: set to minimum flow; 4: set to heating maximum
input IntegerInputoveCooDamPosIndex of overriding cooling damper position, 1: set to close; 2: set to open
input IntegerInputoveHeaDamPosIndex of overriding heating damper position, 1: set to close; 2: set to open
output RealOutputVSet_flowAirflow setpoint after considering override [m3/s]
output RealOutputyCooDamCooling damper commanded position, or commanded flow rate ratio [1]
output RealOutputyHeaDamHeating damper commanded position, or commanded flow rate ratio [1]
output RealOutputVAdjPopBreZon_flowAdjusted population component breathing zone flow rate [m3/s]
output RealOutputVAdjAreBreZon_flowAdjusted area component breathing zone flow rate [m3/s]
output RealOutputVMinOA_flowMinimum outdoor airflow setpoint [m3/s]
output RealOutputVZonAbsMin_flowZone absolute minimum outdoor airflow setpoint [m3/s]
output RealOutputVZonDesMin_flowZone design minimum outdoor airflow setpoint [m3/s]
output RealOutputyCO2CO2 control loop signal [1]
output IntegerOutputyZonCooTemResReqZone cooling supply air temperature reset request
output IntegerOutputyColDucPreResReqCold duct pressure reset requests
output IntegerOutputyZonHeaTemResReqZone heating supply air temperature reset request
output IntegerOutputyHotDucPreResReqHot duct pressure reset requests
output IntegerOutputyHeaFanReqHeating fan request
output IntegerOutputyLowFloAlaLow airflow alarms
output IntegerOutputyFloSenAlaAirflow sensor calibration alarm
output IntegerOutputyLeaDamAlaLeaking damper alarm

Modelica definition

block Controller "Controller for dual-duct terminal unit using mixing control with discharge flow sensor" parameter Buildings.Controls.OBC.ASHRAE.G36.Types.VentilationStandard venStd=Buildings.Controls.OBC.ASHRAE.G36.Types.VentilationStandard.ASHRAE62_1_2016 "Ventilation standard, ASHRAE 62.1 or Title 24"; parameter Boolean have_winSen=true "True: the zone has window sensor"; parameter Boolean have_occSen=true "True: the zone has occupancy sensor"; parameter Boolean have_CO2Sen=true "True: the zone has CO2 sensor"; parameter Boolean permit_occStandby=true "True: occupied-standby mode is permitted"; parameter Real VOccMin_flow(unit="m3/s") "Zone minimum outdoor airflow for occupants"; parameter Real VAreMin_flow(unit="m3/s") "Zone minimum outdoor airflow for building area"; // ---------------- Design parameters ---------------- parameter Real VAreBreZon_flow(unit="m3/s") "Design area component of the breathing zone outdoor airflow"; parameter Real VPopBreZon_flow(unit="m3/s") "Design population component of the breathing zone outdoor airflow"; parameter Real VMin_flow(unit="m3/s") "Design zone minimum airflow setpoint"; parameter Real VCooMax_flow(unit="m3/s") "Design zone cooling maximum airflow rate"; parameter Real VHeaMax_flow(unit="m3/s") "Design zone heating maximum airflow rate"; // ---------------- Control loop parameters ---------------- parameter Real kCooCon=0.1 "Gain of controller for cooling control loop"; parameter Real TiCooCon(unit="s")=900 "Time constant of integrator block for cooling control loop"; parameter Real kHeaCon=0.1 "Gain of controller for heating control loop"; parameter Real TiHeaCon(unit="s")=900 "Time constant of integrator block for heating control loop"; // ---------------- Dampers control parameters ---------------- parameter Boolean have_preIndDam=false "True: the VAV damper is pressure independent (with built-in flow controller)"; parameter CDL.Types.SimpleController controllerTypeDam= Buildings.Controls.OBC.CDL.Types.SimpleController.PI "Type of controller"; parameter Real kDam=0.5 "Gain of controller for damper control"; parameter Real TiDam(unit="s")=300 "Time constant of integrator block for damper control"; parameter Real TdDam(unit="s")=0.1 "Time constant of derivative block for damper control"; parameter Real kHeaMaxDam(unit="1")=0.5 "Gain of controller for heating maximum damper control"; // ---------------- System request parameters ---------------- parameter Real thrTemDif(unit="K")=3 "Threshold difference between zone temperature and cooling setpoint for generating 3 cooling SAT reset requests"; parameter Real twoTemDif(unit="K")=2 "Threshold difference between zone temperature and cooling setpoint for generating 2 cooling SAT reset requests"; parameter Real durTimTem(unit="s")=120 "Duration time of zone temperature exceeds setpoint"; parameter Real durTimFlo(unit="s")=60 "Duration time of airflow rate less than setpoint"; // ---------------- Parameters for alarms ---------------- parameter Real staPreMul=1 "Importance multiplier for the zone static pressure reset control loop"; parameter Real lowFloTim(unit="s")=300 "Threshold time to check low flow rate"; parameter Real fanOffTim(unit="s")=600 "Threshold time to check fan off"; parameter Real leaFloTim(unit="s")=600 "Threshold time to check damper leaking airflow"; // ---------------- Parameters for time-based suppression ---------------- parameter Real chaRat=540 "Gain factor to calculate suppression time based on the change of the setpoint, second per degC"; parameter Real maxSupTim(unit="s")=1800 "Maximum suppression time"; // ---------------- Advanced parameters ---------------- parameter Real dTHys(unit="K")=0.25 "Near zero temperature difference, below which the difference will be seen as zero"; parameter Real looHys(unit="1")=0.05 "Loop output hysteresis below which the output will be seen as zero"; parameter Real floHys(unit="m3/s")=0.01 "Near zero flow rate, below which the flow rate or difference will be seen as zero"; parameter Real damPosHys(unit="1")=0.05 "Near zero damper position, below which the damper will be seen as closed"; parameter Real timChe(unit="s")=30 "Threshold time to check the zone temperature status"; parameter Real zonDisEff_cool(unit="1")=1.0 "Zone cooling air distribution effectiveness"; parameter Real zonDisEff_heat(unit="1")=0.8 "Zone heating air distribution effectiveness"; parameter Real samplePeriod(unit="s")=120 "Sample period of component, set to the same value as the trim and respond that process static pressure reset"; Buildings.Controls.OBC.CDL.Interfaces.RealInput TZon( final quantity="ThermodynamicTemperature", final unit="K", final displayUnit="degC") "Measured room temperature"; Buildings.Controls.OBC.CDL.Interfaces.RealInput TCooSet( final quantity="ThermodynamicTemperature", final unit="K", final displayUnit="degC") "Setpoint temperature for room for cooling"; Buildings.Controls.OBC.CDL.Interfaces.RealInput THeaSet( final quantity="ThermodynamicTemperature", final unit="K", final displayUnit="degC") "Setpoint temperature for room for heating"; Buildings.Controls.OBC.CDL.Interfaces.BooleanInput u1Win if have_winSen "Window status, true if the window is open, false if it is closed"; Buildings.Controls.OBC.CDL.Interfaces.BooleanInput u1Occ if have_occSen "True: the zone is populated"; Buildings.Controls.OBC.CDL.Interfaces.IntegerInput uOpeMod "Zone operation mode"; Buildings.Controls.OBC.CDL.Interfaces.RealInput ppmCO2Set if have_CO2Sen "CO2 concentration setpoint"; Buildings.Controls.OBC.CDL.Interfaces.RealInput ppmCO2 if have_CO2Sen "Detected CO2 concentration"; Buildings.Controls.OBC.CDL.Interfaces.RealInput TDis( final quantity="ThermodynamicTemperature", final unit="K", final displayUnit="degC") "Measured discharge air temperature"; Buildings.Controls.OBC.CDL.Interfaces.RealInput TColSup( final quantity="ThermodynamicTemperature", final unit="K", final displayUnit="degC") "Cold duct supply air temperature from central air handler"; Buildings.Controls.OBC.CDL.Interfaces.RealInput VDis_flow( final min=0, final unit="m3/s", final quantity="VolumeFlowRate") "Measured discharge airflow rate airflow rate"; Buildings.Controls.OBC.CDL.Interfaces.BooleanInput u1CooAHU "Cooling air handler status"; Buildings.Controls.OBC.CDL.Interfaces.RealInput THotSup( final quantity="ThermodynamicTemperature", final unit="K", final displayUnit="degC") "Hot duct supply air temperature from central air handler"; Buildings.Controls.OBC.CDL.Interfaces.BooleanInput u1HeaAHU "Heating air handler status"; Buildings.Controls.OBC.CDL.Interfaces.IntegerInput oveFloSet "Index of overriding flow setpoint, 1: set to zero; 2: set to cooling maximum; 3: set to minimum flow; 4: set to heating maximum"; Buildings.Controls.OBC.CDL.Interfaces.IntegerInput oveCooDamPos "Index of overriding cooling damper position, 1: set to close; 2: set to open"; Buildings.Controls.OBC.CDL.Interfaces.IntegerInput oveHeaDamPos "Index of overriding heating damper position, 1: set to close; 2: set to open"; Buildings.Controls.OBC.CDL.Interfaces.RealOutput VSet_flow( final min=0, final unit="m3/s", final quantity="VolumeFlowRate") "Airflow setpoint after considering override"; Buildings.Controls.OBC.CDL.Interfaces.RealOutput yCooDam( final min=0, final max=1, final unit="1") "Cooling damper commanded position, or commanded flow rate ratio"; Buildings.Controls.OBC.CDL.Interfaces.RealOutput yHeaDam( final min=0, final max=1, final unit="1") "Heating damper commanded position, or commanded flow rate ratio"; Buildings.Controls.OBC.CDL.Interfaces.RealOutput VAdjPopBreZon_flow( final quantity="VolumeFlowRate", final unit="m3/s") if venStd == Buildings.Controls.OBC.ASHRAE.G36.Types.VentilationStandard.ASHRAE62_1_2016 "Adjusted population component breathing zone flow rate"; Buildings.Controls.OBC.CDL.Interfaces.RealOutput VAdjAreBreZon_flow( final quantity="VolumeFlowRate", final unit="m3/s") if venStd == Buildings.Controls.OBC.ASHRAE.G36.Types.VentilationStandard.ASHRAE62_1_2016 "Adjusted area component breathing zone flow rate"; Buildings.Controls.OBC.CDL.Interfaces.RealOutput VMinOA_flow( final quantity="VolumeFlowRate", final unit="m3/s") if venStd == Buildings.Controls.OBC.ASHRAE.G36.Types.VentilationStandard.ASHRAE62_1_2016 "Minimum outdoor airflow setpoint"; Buildings.Controls.OBC.CDL.Interfaces.RealOutput VZonAbsMin_flow( final quantity="VolumeFlowRate", final unit="m3/s") if venStd == Buildings.Controls.OBC.ASHRAE.G36.Types.VentilationStandard.California_Title_24_2016 "Zone absolute minimum outdoor airflow setpoint"; Buildings.Controls.OBC.CDL.Interfaces.RealOutput VZonDesMin_flow( final quantity="VolumeFlowRate", final unit="m3/s") if venStd == Buildings.Controls.OBC.ASHRAE.G36.Types.VentilationStandard.California_Title_24_2016 "Zone design minimum outdoor airflow setpoint"; Buildings.Controls.OBC.CDL.Interfaces.RealOutput yCO2( final unit="1") if venStd == Buildings.Controls.OBC.ASHRAE.G36.Types.VentilationStandard.California_Title_24_2016 "CO2 control loop signal"; Buildings.Controls.OBC.CDL.Interfaces.IntegerOutput yZonCooTemResReq "Zone cooling supply air temperature reset request"; Buildings.Controls.OBC.CDL.Interfaces.IntegerOutput yColDucPreResReq "Cold duct pressure reset requests"; Buildings.Controls.OBC.CDL.Interfaces.IntegerOutput yZonHeaTemResReq "Zone heating supply air temperature reset request"; Buildings.Controls.OBC.CDL.Interfaces.IntegerOutput yHotDucPreResReq "Hot duct pressure reset requests"; Buildings.Controls.OBC.CDL.Interfaces.IntegerOutput yHeaFanReq "Heating fan request"; Buildings.Controls.OBC.CDL.Interfaces.IntegerOutput yLowFloAla "Low airflow alarms"; Buildings.Controls.OBC.CDL.Interfaces.IntegerOutput yFloSenAla "Airflow sensor calibration alarm"; Buildings.Controls.OBC.CDL.Interfaces.IntegerOutput yLeaDamAla "Leaking damper alarm"; Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.DualDuctMixConDischargeSensor.Subsequences.ActiveAirFlow actAirSet( final VCooMax_flow=VCooMax_flow, final VHeaMax_flow=VHeaMax_flow) "Active airflow setpoint"; Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.DualDuctMixConDischargeSensor.Subsequences.SystemRequests sysReq( final thrTemDif=thrTemDif, final twoTemDif=twoTemDif, final durTimTem=durTimTem, final durTimFlo=durTimFlo, final dTHys=dTHys, final floHys=floHys, final looHys=looHys, final damPosHys=damPosHys) "Specify system requests "; Buildings.Controls.OBC.ASHRAE.G36.ThermalZones.ControlLoops conLoo( final kCooCon=kCooCon, final TiCooCon=TiCooCon, final kHeaCon=kHeaCon, final TiHeaCon=TiHeaCon, final timChe=timChe, final dTHys=dTHys, final looHys=looHys) "Heating and cooling control loop"; Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.DualDuctMixConDischargeSensor.Subsequences.Alarms ala( final staPreMul=staPreMul, final VCooMax_flow=VCooMax_flow, final lowFloTim=lowFloTim, final fanOffTim=fanOffTim, final leaFloTim=leaFloTim, final floHys=floHys, final damPosHys=damPosHys) "Generate alarms"; Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.DualDuctMixConDischargeSensor.Subsequences.Overrides setOve( final VMin_flow=VMin_flow, final VCooMax_flow=VCooMax_flow, final VHeaMax_flow=VHeaMax_flow) "Override setpoints"; Buildings.Controls.OBC.ASHRAE.G36.Generic.TimeSuppression timSupCoo( final samplePeriod=samplePeriod, final chaRat=chaRat, final maxTim=maxSupTim, final dTHys=dTHys) "Specify suppresion time due to the zone cooling setpoint change and check if it has passed the suppresion period"; Buildings.Controls.OBC.ASHRAE.G36.VentilationZones.ASHRAE62_1.Setpoints setPoi( final have_winSen=have_winSen, final have_occSen=have_occSen, final have_CO2Sen=have_CO2Sen, final have_typTerUni=true, final have_parFanPowUni=false, final have_SZVAV=false, final permit_occStandby=permit_occStandby, final VAreBreZon_flow=VAreBreZon_flow, final VPopBreZon_flow=VPopBreZon_flow, final VMin_flow=VMin_flow, final VCooMax_flow=VCooMax_flow, final zonDisEff_cool=zonDisEff_cool, final zonDisEff_heat=zonDisEff_heat, final dTHys=dTHys) if venStd == Buildings.Controls.OBC.ASHRAE.G36.Types.VentilationStandard.ASHRAE62_1_2016 "Output the minimum outdoor airflow rate setpoint, when using ASHRAE 62.1"; Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.DualDuctMixConDischargeSensor.Subsequences.Dampers damDuaSen( final have_preIndDam=have_preIndDam, final VCooMax_flow=VCooMax_flow, final VHeaMax_flow=VHeaMax_flow, final controllerTypeDam=controllerTypeDam, final kDam=kDam, final TiDam=TiDam, final TdDam=TdDam, final kHeaMaxDam=kHeaMaxDam, final dTHys=dTHys, final looHys=looHys) "Dampers control when the unit has single dual airflow sensor"; Buildings.Controls.OBC.ASHRAE.G36.Generic.TimeSuppression timSupHea( final samplePeriod=samplePeriod, final chaRat=chaRat, final maxTim=maxSupTim, final dTHys=dTHys) "Specify suppresion time due to the zone heating setpoint change and check if it has passed the suppresion period"; Buildings.Controls.OBC.ASHRAE.G36.VentilationZones.Title24.Setpoints minFlo( final have_winSen=have_winSen, final have_occSen=have_occSen, final have_CO2Sen=have_CO2Sen, final have_typTerUni=true, final VOccMin_flow=VOccMin_flow, final VAreMin_flow=VAreMin_flow, final VMin_flow=VMin_flow, final VCooMax_flow=VCooMax_flow) if venStd == Buildings.Controls.OBC.ASHRAE.G36.Types.VentilationStandard.California_Title_24_2016 "Output the minimum outdoor airflow rate setpoint, when using Title 24"; Buildings.Controls.OBC.CDL.Logical.Sources.Constant noVenStd( final k=venStd ==Buildings.Controls.OBC.ASHRAE.G36.Types.VentilationStandard.Not_Specified) "No ventilation standard"; Buildings.Controls.OBC.CDL.Logical.Not not1 "Logical not"; Buildings.Controls.OBC.CDL.Utilities.Assert assMes1( final message="Warning: Ventilation standard is not specified!") "Warning when the ventilation standard is not specified"; Buildings.Controls.OBC.CDL.Continuous.Sources.Constant zerFlo( final k=0) if venStd == Buildings.Controls.OBC.ASHRAE.G36.Types.VentilationStandard.Not_Specified "Zero flow when the ventilation standard is not specified"; equation connect(TZon, timSupCoo.TZon); connect(TZon, timSupHea.TZon); connect(TCooSet, timSupCoo.TSet); connect(THeaSet, timSupHea.TSet); connect(TCooSet, conLoo.TCooSet); connect(TZon, conLoo.TZon); connect(THeaSet, conLoo.THeaSet); connect(u1Win, setPoi.u1Win); connect(u1Occ, setPoi.u1Occ); connect(uOpeMod, setPoi.uOpeMod); connect(ppmCO2, setPoi.ppmCO2); connect(TZon, setPoi.TZon); connect(TDis, setPoi.TDis); connect(uOpeMod, actAirSet.uOpeMod); connect(setPoi.VOccZonMin_flow, actAirSet.VOccMin_flow); connect(conLoo.yCoo, damDuaSen.uCoo); connect(actAirSet.VActCooMax_flow, damDuaSen.VActCooMax_flow); connect(TColSup, damDuaSen.TColSup); connect(VDis_flow, damDuaSen.VDis_flow); connect(u1CooAHU, damDuaSen.u1CooAHU); connect(actAirSet.VActMin_flow, damDuaSen.VActMin_flow); connect(TZon, damDuaSen.TZon); connect(THotSup, damDuaSen.THotSup); connect(actAirSet.VActHeaMax_flow, damDuaSen.VActHeaMax_flow); connect(conLoo.yHea, damDuaSen.uHea); connect(u1HeaAHU, damDuaSen.u1HeaAHU); connect(oveFloSet, setOve.oveFloSet); connect(oveCooDamPos, setOve.oveCooDamPos); connect(damDuaSen.yCooDam, setOve.uCooDam); connect(oveHeaDamPos, setOve.oveHeaDamPos); connect(damDuaSen.yHeaDam, setOve.uHeaDam); connect(timSupCoo.yAftSup, sysReq.uAftSupCoo); connect(TCooSet, sysReq.TCooSet); connect(TZon, sysReq.TZon); connect(conLoo.yCoo, sysReq.uCoo); connect(timSupHea.yAftSup, sysReq.uAftSupHea); connect(THeaSet, sysReq.THeaSet); connect(conLoo.yHea, sysReq.uHea); connect(damDuaSen.VDis_flow_Set, sysReq.VDis_flow_Set); connect(VDis_flow, sysReq.VDis_flow); connect(VDis_flow, ala.VDis_flow); connect(setOve.VSet_flow, ala.VActSet_flow); connect(u1CooAHU, ala.u1CooFan); connect(u1HeaAHU, ala.u1HeaFan); connect(setOve.VSet_flow, VSet_flow); connect(setOve.yCooDam, yCooDam); connect(setOve.yHeaDam, yHeaDam); connect(sysReq.yZonCooTemResReq, yZonCooTemResReq); connect(sysReq.yColDucPreResReq, yColDucPreResReq); connect(sysReq.yZonHeaTemResReq, yZonHeaTemResReq); connect(sysReq.yHotDucPreResReq, yHotDucPreResReq); connect(sysReq.yHeaFanReq, yHeaFanReq); connect(ala.yFloSenAla, yFloSenAla); connect(ala.yLeaDamAla, yLeaDamAla); connect(ala.yLowFloAla, yLowFloAla); connect(damDuaSen.VDis_flow_Set, setOve.VActSet_flow); connect(ppmCO2Set, setPoi.ppmCO2Set); connect(u1Win, minFlo.u1Win); connect(u1Occ, minFlo.u1Occ); connect(uOpeMod, minFlo.uOpeMod); connect(ppmCO2Set, minFlo.ppmCO2Set); connect(ppmCO2, minFlo.ppmCO2); connect(minFlo.VOccZonMin_flow, actAirSet.VOccMin_flow); connect(setPoi.VAdjPopBreZon_flow, VAdjPopBreZon_flow); connect(setPoi.VMinOA_flow, VMinOA_flow); connect(setPoi.VAdjAreBreZon_flow, VAdjAreBreZon_flow); connect(minFlo.VZonAbsMin_flow, VZonAbsMin_flow); connect(minFlo.VZonDesMin_flow, VZonDesMin_flow); connect(minFlo.yCO2, yCO2); connect(noVenStd.y,not1. u); connect(not1.y,assMes1. u); connect(zerFlo.y, actAirSet.VOccMin_flow); connect(setOve.yCooDam, sysReq.uCooDam); connect(setOve.yCooDam, ala.uCooDam); connect(setOve.yHeaDam, sysReq.uHeaDam); connect(setOve.yHeaDam, ala.uHeaDam); end Controller;