Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.DualDuctSnapActing

Sequences for dual duct terminal unit with snap acting control

Information

This package contains sequences for dual duct terminal unit with snap acting control. They are created according to Section 5.11 of ASHRAE Guideline 36, May 2020.

Package Content

Name Description
Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.DualDuctSnapActing.Controller Controller Controller for snap-acting controlled dual-duct terminal unit
Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.DualDuctSnapActing.Subsequences Subsequences Package of subsequences for snap-acting controlled dual-duct terminal unit
Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.DualDuctSnapActing.Validation Validation Collection of validation models

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

Controller for snap-acting controlled dual-duct terminal unit

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

Information

Controller for snap-acting controlled dual-duct terminal unit according to Section 5.11 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.11.4. Depending on operation modes uOpeMod, it sets the airflow rate limits for cooling and heating supply. See Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.DualDuctSnapActing.Subsequences.ActiveAirFlow.

c. Dampers control

This sequence sets the dampers position setpoints. The implementation is according to Section 5.11.5. The sequence outputs discharge airflow rate setpoint VSet_flow, cold and hot ducts damper position setpoints (yCooDam, yHeaDam). It has two sequences depending on if the unit has the dual inlet flow sensor.

d. System reset requests generation

According to Section 5.11.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.DualDuctSnapActing.Subsequences.SystemRequests.

e. Alarms

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

f. Testing and commissioning overrides

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

Parameters

TypeNameDefaultDescription
VentilationStandardvenStd 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
Booleanhave_duaSen True: the unit has dual inlet flow 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
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]
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]
ReallowTemTim600Threshold time to check low discharge temperature [s]
RealfanOffTim600Threshold time to check fan off [s]
RealleaFloTim600Threshold time to check damper leaking airflow [s]
RealvalCloTim900Threshold time to check valve leaking water flow [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.01Loop output hysteresis below which the output will be seen as zero [1]
RealfloHys0.01*VMin_flowNear zero flow rate, below which the flow rate or difference will be seen as zero [m3/s]
RealdamPosHys0.005Near zero damper position, below which the damper will be seen as closed [1]
RealstaTim1800Delay triggering alarms after enabling AHU supply fan [s]
RealiniDam0.01Initial damper position when the damper control is enabled [1]
RealiniCooDam0.01Initial cooling damper position when the damper control is enabled [1]
RealiniHeaDam0.01Initial heating damper position when the damper control is enabled [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, normally closed (true), when windows open, it becomes false
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 RealInputVColDucDis_flowMeasured cold-duct discharge airflow rate airflow rate [m3/s]
input BooleanInputu1CooAHUCooling air handler status
input RealInputTHotSupHot duct supply air temperature from central air handler [K]
input RealInputVHotDucDis_flowMeasured hot-duct discharge airflow rate airflow rate [m3/s]
input BooleanInputu1HeaAHUHeating air handler status
input RealInputVDis_flowMeasured discharge airflow rate airflow rate [m3/s]
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 dampers alarm, could be heating or cooling damper
output IntegerOutputyColFloSenAlaCold-duct airflow sensor calibration alarm
output IntegerOutputyColLeaDamAlaLeaking cold-duct damper alarm
output IntegerOutputyHotFloSenAlaHot-duct airflow sensor calibration alarm
output IntegerOutputyHotLeaDamAlaLeaking hot-duct damper alarm

Modelica definition

block Controller "Controller for snap-acting controlled dual-duct terminal unit" parameter Buildings.Controls.OBC.ASHRAE.G36.Types.VentilationStandard venStd "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 have_duaSen "True: the unit has dual inlet flow 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 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"; // ---------------- 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 lowTemTim(unit="s")=600 "Threshold time to check low discharge temperature"; 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"; parameter Real valCloTim(unit="s")=900 "Threshold time to check valve leaking water flow"; // ---------------- 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.01 "Loop output hysteresis below which the output will be seen as zero"; parameter Real floHys(unit="m3/s")=0.01*VMin_flow "Near zero flow rate, below which the flow rate or difference will be seen as zero"; parameter Real damPosHys(unit="1")=0.005 "Near zero damper position, below which the damper will be seen as closed"; parameter Real staTim( final unit="s", final quantity="Time")=1800 "Delay triggering alarms after enabling AHU supply fan"; parameter Real iniDam(unit="1")=0.01 "Initial damper position when the damper control is enabled"; parameter Real iniCooDam(unit="1")=0.01 "Initial cooling damper position when the damper control is enabled"; parameter Real iniHeaDam(unit="1")=0.01 "Initial heating damper position when the damper control is enabled"; 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, normally closed (true), when windows open, it becomes false"; 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") if have_duaSen "Cold duct supply air temperature from central air handler"; Buildings.Controls.OBC.CDL.Interfaces.RealInput VColDucDis_flow( final min=0, final unit="m3/s", final quantity="VolumeFlowRate") if have_duaSen "Measured cold-duct 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") if have_duaSen "Hot duct supply air temperature from central air handler"; Buildings.Controls.OBC.CDL.Interfaces.RealInput VHotDucDis_flow( final min=0, final unit="m3/s", final quantity="VolumeFlowRate") if have_duaSen "Measured hot-duct discharge airflow rate airflow rate"; Buildings.Controls.OBC.CDL.Interfaces.BooleanInput u1HeaAHU "Heating air handler status"; Buildings.Controls.OBC.CDL.Interfaces.RealInput VDis_flow( final min=0, final unit="m3/s", final quantity="VolumeFlowRate") if not have_duaSen "Measured discharge airflow rate airflow rate"; 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 "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 "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 "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 "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 "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 "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 if not have_duaSen "Airflow sensor calibration alarm"; Buildings.Controls.OBC.CDL.Interfaces.IntegerOutput yLeaDamAla if not have_duaSen "Leaking dampers alarm, could be heating or cooling damper"; Buildings.Controls.OBC.CDL.Interfaces.IntegerOutput yColFloSenAla if have_duaSen "Cold-duct airflow sensor calibration alarm"; Buildings.Controls.OBC.CDL.Interfaces.IntegerOutput yColLeaDamAla if have_duaSen "Leaking cold-duct damper alarm"; Buildings.Controls.OBC.CDL.Interfaces.IntegerOutput yHotFloSenAla if have_duaSen "Hot-duct airflow sensor calibration alarm"; Buildings.Controls.OBC.CDL.Interfaces.IntegerOutput yHotLeaDamAla if have_duaSen "Leaking hot-duct damper alarm"; Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.DualDuctSnapActing.Subsequences.ActiveAirFlow actAirSet( final VCooMax_flow=VCooMax_flow, final VHeaMax_flow=VHeaMax_flow) "Active airflow setpoint"; Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.DualDuctSnapActing.Subsequences.SystemRequests sysReq( final have_duaSen=have_duaSen, 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.DualDuctSnapActing.Subsequences.Alarms ala( final have_duaSen=have_duaSen, final staPreMul=staPreMul, final VCooMax_flow=VCooMax_flow, final VHeaMax_flow=VHeaMax_flow, final lowFloTim=lowFloTim, final fanOffTim=fanOffTim, final leaFloTim=leaFloTim, final floHys=floHys, final damPosHys=damPosHys, final staTim=staTim) "Generate alarms"; Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.DualDuctSnapActing.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 "Output the minimum outdoor airflow rate setpoint, when using ASHRAE 62.1"; Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.DualDuctSnapActing.Subsequences.DampersDualSensors damDuaSen( final VCooMax_flow=VCooMax_flow, final VHeaMax_flow=VHeaMax_flow, final controllerTypeDam=controllerTypeDam, final kDam=kDam, final TiDam=TiDam, final TdDam=TdDam, final samplePeriod=samplePeriod, final dTHys=dTHys, final looHys=looHys, final iniDam=iniDam) if have_duaSen "Dampers control when the unit has single dual airflow sensor"; Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.DualDuctSnapActing.Subsequences.DampersSingleSensors damSinSen( final VCooMax_flow=VCooMax_flow, final VHeaMax_flow=VHeaMax_flow, final controllerTypeDam=controllerTypeDam, final kDam=kDam, final TiDam=TiDam, final TdDam=TdDam, final samplePeriod=samplePeriod, final looHys=looHys, final iniDam=iniDam) if not have_duaSen "Dampers control when the unit has single discharge 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 "Output the minimum outdoor airflow rate setpoint, when using Title 24"; 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(VColDucDis_flow, damDuaSen.VColDucDis_flow); connect(u1CooAHU, damDuaSen.u1CooAHU); connect(actAirSet.VActMin_flow, damDuaSen.VActMin_flow); connect(TZon, damDuaSen.TZon); connect(conLoo.yHea, damDuaSen.uHea); connect(actAirSet.VActHeaMax_flow, damDuaSen.VActHeaMax_flow); connect(VHotDucDis_flow, damDuaSen.VHotDucDis_flow); connect(u1HeaAHU, damDuaSen.u1HeaAHU); connect(conLoo.yCoo, damSinSen.uCoo); connect(actAirSet.VActCooMax_flow, damSinSen.VActCooMax_flow); connect(actAirSet.VActMin_flow, damSinSen.VActMin_flow); connect(conLoo.yHea, damSinSen.uHea); connect(actAirSet.VActHeaMax_flow, damSinSen.VActHeaMax_flow); connect(u1CooAHU, damSinSen.u1CooAHU); connect(u1HeaAHU, damSinSen.u1HeaAHU); connect(oveFloSet, setOve.oveFloSet); connect(oveCooDamPos, setOve.oveCooDamPos); connect(oveHeaDamPos, setOve.oveHeaDamPos); connect(damDuaSen.yCooDam, setOve.uCooDam); connect(damDuaSen.yHeaDam, setOve.uHeaDam); connect(damSinSen.VDis_flow_Set, setOve.VActSet_flow); connect(damDuaSen.VDis_flow_Set, setOve.VActSet_flow); connect(timSupCoo.yAftSup, sysReq.uAftSupCoo); connect(TCooSet, sysReq.TCooSet); connect(TZon, sysReq.TZon); connect(conLoo.yCoo, sysReq.uCoo); connect(damDuaSen.VDis_flow_Set, sysReq.VColDuc_flow_Set); connect(timSupHea.yAftSup, sysReq.uAftSupHea); connect(THeaSet, sysReq.THeaSet); connect(conLoo.yHea, sysReq.uHea); connect(damDuaSen.VDis_flow_Set, sysReq.VHotDuc_flow_Set); connect(VColDucDis_flow, sysReq.VColDucDis_flow); connect(VHotDucDis_flow, sysReq.VHotDucDis_flow); connect(VDis_flow, damSinSen.VDis_flow); connect(VDis_flow, sysReq.VColDucDis_flow); connect(VDis_flow, sysReq.VHotDucDis_flow); connect(damSinSen.y1CooDam, sysReq.u1CooDam); connect(damSinSen.y1HeaDam, sysReq.u1HeaDam); connect(VColDucDis_flow, ala.VColDucDis_flow); connect(u1CooAHU, ala.u1CooFan); connect(VHotDucDis_flow, ala.VHotDucDis_flow); connect(u1HeaAHU, ala.u1HeaFan); connect(VDis_flow, ala.VDis_flow); 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.yLowFloAla, yLowFloAla); connect(ala.yFloSenAla, yFloSenAla); connect(ala.yLeaDamAla, yLeaDamAla); connect(ala.yColFloSenAla, yColFloSenAla); connect(ala.yColLeaDamAla, yColLeaDamAla); connect(ala.yHotFloSenAla, yHotFloSenAla); connect(ala.yHotLeaDamAla, yHotLeaDamAla); connect(damSinSen.VDis_flow_Set, sysReq.VColDuc_flow_Set); connect(damSinSen.VDis_flow_Set, sysReq.VHotDuc_flow_Set); connect(setOve.VSet_flow, ala.VActSet_flow); connect(damDuaSen.TColSup, TColSup); connect(damDuaSen.THotSup, THotSup); connect(ppmCO2Set, setPoi.ppmCO2Set); connect(minFlo.VOccZonMin_flow, actAirSet.VOccMin_flow); connect(u1Win, minFlo.u1Win); connect(u1Occ, minFlo.u1Occ); connect(uOpeMod, minFlo.uOpeMod); connect(ppmCO2Set, minFlo.ppmCO2Set); connect(ppmCO2, minFlo.ppmCO2); connect(damSinSen.yHeaDam, setOve.uHeaDam); connect(damSinSen.yCooDam, setOve.uCooDam); 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(setOve.yCooDam, sysReq.uCooDam); connect(setOve.yCooDam, ala.uCooDam); connect(setOve.yHeaDam, sysReq.uHeaDam); connect(setOve.yHeaDam, ala.uHeaDam); connect(uOpeMod, ala.uOpeMod); end Controller;