Buildings.Templates.AirHandlersFans.Interfaces
Interface classes
Information
This package contains interface classes.
Extends from Modelica.Icons.InterfacesPackage (Icon for packages containing interfaces).
Package Content
Name | Description |
---|---|
Bus | Control bus for air handler |
PartialAirHandler | Interface class for air handler |
Buildings.Templates.AirHandlersFans.Interfaces.Bus
Control bus for air handler
Information
This expandable connector provides a standard interface for all control signals required by an air handler controller.
Extends from Modelica.Icons.SignalBus (Icon for signal bus).
Contents
Type | Name | Description |
---|---|---|
Bus | fanSup | Supply fan points |
Bus | fanRel | Relief fan points |
Bus | fanRet | Return fan points |
Bus | coiHea | Heating coil (preheat or reheat position, only one coil allowed) points |
Bus | coiCoo | Cooling coil points |
Bus | damOut | OA damper points |
Bus | damOutMin | Minimum OA damper points |
Bus | damRel | Relief damper points |
Bus | damRet | Return damper points |
Modelica definition
expandable connector Bus "Control bus for air handler"
extends Modelica.Icons.SignalBus;
Buildings.Templates.Components.Interfaces.Bus fanSup
"Supply fan points";
Buildings.Templates.Components.Interfaces.Bus fanRel
"Relief fan points";
Buildings.Templates.Components.Interfaces.Bus fanRet
"Return fan points";
Buildings.Templates.Components.Interfaces.Bus coiHea
"Heating coil (preheat or reheat position, only one coil allowed) points";
Buildings.Templates.Components.Interfaces.Bus coiCoo
"Cooling coil points";
Buildings.Templates.Components.Interfaces.Bus damOut
"OA damper points";
Buildings.Templates.Components.Interfaces.Bus damOutMin
"Minimum OA damper points";
Buildings.Templates.Components.Interfaces.Bus damRel
"Relief damper points";
Buildings.Templates.Components.Interfaces.Bus damRet
"Return damper points";
end Bus;
Buildings.Templates.AirHandlersFans.Interfaces.PartialAirHandler
Interface class for air handler
Information
This partial class provides a standard interface for air handler templates.
Parameters
Type | Name | Default | Description |
---|---|---|---|
replaceable package MediumAir | Buildings.Media.Air | Air medium | |
replaceable package MediumChiWat | Buildings.Media.Water | CHW medium | |
replaceable package MediumHeaWat | Buildings.Media.Water | HHW medium | |
PartialAirHandler | cfg | cfg(final typ=typ, final typ... | Configuration parameters |
PartialAirHandler | dat | dat(cfg=cfg) | Design and operating parameters |
Configuration | |||
Configuration | typ | Type of system | |
Integer | nZon | Number of served zones | |
Boolean | have_porRel | typ == Buildings.Templates.A... | Set to true for relief (exhaust) fluid port |
Boolean | have_souChiWat | Set to true if system uses CHW | |
Boolean | have_souHeaWat | Set to true if system uses HHW | |
Fan | typFanSup | Type of supply fan | |
Fan | typFanRet | Type of return fan | |
Fan | typFanRel | Type of relief fan | |
Integer | nFanSup | Number of supply fans | |
Integer | nFanRet | Number of return fans | |
Integer | nFanRel | Number of relief fans | |
Nominal condition | |||
MassFlowRate | mChiWat_flow_nominal | Total CHW mass flow rate [kg/s] | |
MassFlowRate | mHeaWat_flow_nominal | Total HHW mass flow rate [kg/s] | |
HeatFlowRate | QChiWat_flow_nominal | Total CHW heat flow rate [W] | |
HeatFlowRate | QHeaWat_flow_nominal | Total HHW heat flow rate [W] | |
Dynamics | |||
Conservation equations | |||
Dynamics | energyDynamics | Modelica.Fluid.Types.Dynamic... | Type of energy balance: dynamic (3 initialization options) or steady state |
Assumptions | |||
Boolean | allowFlowReversalLiq | true | = true to allow flow reversal, false restricts to design direction - CHW and HW side |
Advanced | |||
Diagnostics | |||
Boolean | show_T | false | = true, if actual temperature at ports of subcomponents is computed |
Connectors
Type | Name | Description |
---|---|---|
replaceable package MediumAir | Air medium | |
replaceable package MediumChiWat | CHW medium | |
replaceable package MediumHeaWat | HHW medium | |
FluidPort_a | port_Out | Outdoor air intake |
FluidPort_b | port_Sup | Supply air |
FluidPort_b | port_SupCol | Dual duct cold deck air supply |
FluidPort_b | port_SupHot | Dual duct hot deck air supply |
FluidPort_a | port_Ret | Return air |
FluidPort_b | port_Rel | Relief (exhaust) air |
FluidPort_b | port_bChiWat | CHW return port |
FluidPort_a | port_aChiWat | CHW supply port |
FluidPort_b | port_bHeaWat | HHW return port |
FluidPort_a | port_aHeaWat | HHW supply port |
Bus | bus | AHU control bus |
Bus | busWea | Weather bus |
Bus | busTer[nZon] | Terminal unit control bus |
Modelica definition
partial model PartialAirHandler "Interface class for air handler"
inner replaceable package MediumAir=Buildings.Media.Air
constrainedby Modelica.Media.Interfaces.PartialMedium
"Air medium";
inner replaceable package MediumChiWat=Buildings.Media.Water
constrainedby Modelica.Media.Interfaces.PartialMedium
"CHW medium";
inner replaceable package MediumHeaWat=Buildings.Media.Water
constrainedby Modelica.Media.Interfaces.PartialMedium
"HHW medium";
parameter Buildings.Templates.AirHandlersFans.Types.Configuration typ
"Type of system";
replaceable parameter Buildings.Templates.AirHandlersFans.Configuration.PartialAirHandler
cfg(
final typ=typ,
final typFanSup=typFanSup,
final typFanRel=typFanRel,
final typFanRet=typFanRet,
final have_souChiWat=have_souChiWat,
final have_souHeaWat=have_souHeaWat)
"Configuration parameters";
inner parameter Integer nZon(min=1)
"Number of served zones";
replaceable parameter Buildings.Templates.AirHandlersFans.Data.PartialAirHandler
dat(
cfg=cfg)
"Design and operating parameters";
final parameter String id=dat.id
"System tag";
parameter Boolean have_porRel=
typ==Buildings.Templates.AirHandlersFans.Types.Configuration.ExhaustOnly
"Set to true for relief (exhaust) fluid port";
parameter Boolean have_souChiWat
"Set to true if system uses CHW";
parameter Boolean have_souHeaWat
"Set to true if system uses HHW";
inner parameter Buildings.Templates.Components.Types.Fan typFanSup
"Type of supply fan";
inner parameter Buildings.Templates.Components.Types.Fan typFanRet
"Type of return fan";
inner parameter Buildings.Templates.Components.Types.Fan typFanRel
"Type of relief fan";
parameter Integer nFanSup
"Number of supply fans";
parameter Integer nFanRet
"Number of return fans";
parameter Integer nFanRel
"Number of relief fans";
// Design parameters
final parameter Modelica.Units.SI.MassFlowRate mAirSup_flow_nominal=
dat.mAirSup_flow_nominal
"Supply air mass flow rate";
final parameter Modelica.Units.SI.MassFlowRate mAirRet_flow_nominal=
dat.mAirRet_flow_nominal
"Return air mass flow rate";
parameter Modelica.Units.SI.MassFlowRate mChiWat_flow_nominal
"Total CHW mass flow rate";
parameter Modelica.Units.SI.MassFlowRate mHeaWat_flow_nominal
"Total HHW mass flow rate";
parameter Modelica.Units.SI.HeatFlowRate QChiWat_flow_nominal
"Total CHW heat flow rate";
parameter Modelica.Units.SI.HeatFlowRate QHeaWat_flow_nominal
"Total HHW heat flow rate";
parameter Modelica.Fluid.Types.Dynamics energyDynamics=
Modelica.Fluid.Types.Dynamics.DynamicFreeInitial
"Type of energy balance: dynamic (3 initialization options) or steady state";
final parameter Boolean allowFlowReversalAir=true
"= true to allow flow reversal, false restricts to design direction - Air side";
parameter Boolean allowFlowReversalLiq=true
"= true to allow flow reversal, false restricts to design direction - CHW and HW side";
parameter Boolean show_T = false
"= true, if actual temperature at ports of subcomponents is computed";
Modelica.Fluid.Interfaces.FluidPort_a port_Out(
redeclare final package Medium = MediumAir,
m_flow(min=if allowFlowReversalAir then -Modelica.Constants.inf else 0),
h_outflow(start=MediumAir.h_default, nominal=MediumAir.h_default))
if typ <> Buildings.Templates.AirHandlersFans.Types.Configuration.ExhaustOnly
"Outdoor air intake";
Modelica.Fluid.Interfaces.FluidPort_b port_Sup(
redeclare final package Medium =MediumAir,
m_flow(max=if allowFlowReversalAir then +Modelica.Constants.inf else 0),
h_outflow(start=MediumAir.h_default, nominal=MediumAir.h_default)) if typ
== Buildings.Templates.AirHandlersFans.Types.Configuration.SupplyOnly or typ ==
Buildings.Templates.AirHandlersFans.Types.Configuration.SingleDuct
"Supply air";
Modelica.Fluid.Interfaces.FluidPort_b port_SupCol(
redeclare final package Medium =MediumAir,
m_flow(max=if allowFlowReversalAir then +Modelica.Constants.inf else 0),
h_outflow(start=MediumAir.h_default, nominal=MediumAir.h_default))
if typ == Buildings.Templates.AirHandlersFans.Types.Configuration.DualDuct
"Dual duct cold deck air supply";
Modelica.Fluid.Interfaces.FluidPort_b port_SupHot(
redeclare final package Medium =MediumAir,
m_flow(max=if allowFlowReversalAir then +Modelica.Constants.inf else 0),
h_outflow(start=MediumAir.h_default, nominal=MediumAir.h_default))
if typ == Buildings.Templates.AirHandlersFans.Types.Configuration.DualDuct
"Dual duct hot deck air supply";
Modelica.Fluid.Interfaces.FluidPort_a port_Ret(
redeclare final package Medium =MediumAir,
m_flow(min=if allowFlowReversalAir then -Modelica.Constants.inf else 0),
h_outflow(start=MediumAir.h_default, nominal=MediumAir.h_default))
if typ <> Buildings.Templates.AirHandlersFans.Types.Configuration.SupplyOnly
"Return air";
Modelica.Fluid.Interfaces.FluidPort_b port_Rel(
redeclare final package Medium = MediumAir,
m_flow(max=if allowFlowReversalAir then +Modelica.Constants.inf else 0),
h_outflow(start=MediumAir.h_default, nominal=MediumAir.h_default))
if typ <> Buildings.Templates.AirHandlersFans.Types.Configuration.SupplyOnly and have_porRel
"Relief (exhaust) air";
Modelica.Fluid.Interfaces.FluidPort_b port_bChiWat(
redeclare final package Medium = MediumChiWat,
m_flow(max=if allowFlowReversalLiq then +Modelica.Constants.inf else 0),
h_outflow(start=MediumChiWat.h_default, nominal=MediumChiWat.h_default))
if have_souChiWat
"CHW return port";
Modelica.Fluid.Interfaces.FluidPort_a port_aChiWat(
redeclare final package Medium = MediumChiWat,
m_flow(min=if allowFlowReversalLiq then -Modelica.Constants.inf else 0),
h_outflow(start=MediumChiWat.h_default, nominal=MediumChiWat.h_default))
if have_souChiWat
"CHW supply port";
Modelica.Fluid.Interfaces.FluidPort_b port_bHeaWat(
redeclare final package Medium = MediumHeaWat,
m_flow(max=if allowFlowReversalLiq then +Modelica.Constants.inf else 0),
h_outflow(start=MediumHeaWat.h_default, nominal=MediumHeaWat.h_default))
if have_souHeaWat
"HHW return port";
Modelica.Fluid.Interfaces.FluidPort_a port_aHeaWat(
redeclare final package Medium = MediumHeaWat,
m_flow(min=if allowFlowReversalLiq then -Modelica.Constants.inf else 0),
h_outflow(start=MediumHeaWat.h_default, nominal=MediumHeaWat.h_default))
if have_souHeaWat
"HHW supply port";
Buildings.Templates.AirHandlersFans.Interfaces.Bus bus
"AHU control bus";
Buildings.BoundaryConditions.WeatherData.Bus busWea
"Weather bus";
Buildings.Templates.ZoneEquipment.Interfaces.Bus busTer[nZon]
"Terminal unit control bus";
end PartialAirHandler;