blockHVACZones

Declaration of an FMU that exports a simple convective only HVAC system for two zones

Extends from IBPSA.Fluid.FMI.ExportContainers.HVACZones (Partial block to export an HVAC system that has no radiative component and that serves multiple zones as an FMU).

Information

This example demonstrates how to export a model of an HVAC system that only provides convective cooling to two thermal zones. The example is similar to IBPSA.Fluid.FMI.ExportContainers.Examples.FMUs.HVACZone except that is serves two thermal zones rather than one.

The example extends from IBPSA.Fluid.FMI.ExportContainers.HVACZones which provides the input and output signals that are needed to interface the acausal HVAC system model with causal connectors of FMI. The instance hvacAda is the HVAC adapter that contains on the left a fluid port, and on the right signal ports which are then used to connect at the top-level of the model to signal ports which are exposed at the FMU interface.

Parameters

TypeNameDefaultDescription
IntegernZon (from HVACZones)Number of thermal zones served by the HVAC system
IntegernPorts (from HVACZones)Number of fluid ports for each zone (must be the same for every zone)
Realeps0.8Heat recovery effectiveness
Modelica.SIunits.TemperatureTASup_nominal273.15 + 18Nominal air temperature supplied to room
Modelica.SIunits.TemperatureTRooSet273.15 + 24Nominal room air temperature
Modelica.SIunits.TemperatureTOut_nominal273.15 + 30Design outlet air temperature
Modelica.SIunits.TemperatureTHeaRecLvgTOut_nominal - eps*(TOut_nominal - TRooSet)Air temperature leaving the heat recovery
RealUA10E3Average UA-value of the room
Modelica.SIunits.HeatFlowRateQRooInt_flow1000Internal heat gains of the room
Modelica.SIunits.HeatFlowRateQRooC_flow_nominal-QRooInt_flow - UA/30*(TOut_nominal - TRooSet)Nominal cooling load of the room
Modelica.SIunits.MassFlowRatemA_flow_nominal1.3*QRooC_flow_nominal/1006/(TASup_nominal - TRooSet)Nominal air mass flow rate, increased by factor 1.3 to allow for recovery after temperature setback
Modelica.SIunits.TemperatureDifferencedTFan2Estimated temperature raise across fan that needs to be made up by the cooling coil
Modelica.SIunits.HeatFlowRateQCoiC_flow_nominal4*(QRooC_flow_nominal + mA_flow_nominal*(TASup_nominal - THeaRecLvg - dTFan)*1006)Cooling load of coil, taking into account economizer, and increased due to latent heat removal
Modelica.SIunits.TemperatureTWSup_nominal273.15 + 16Water supply temperature
Modelica.SIunits.TemperatureTWRet_nominal273.15 + 12Water return temperature
Modelica.SIunits.MassFlowRatemW_flow_nominalQCoiC_flow_nominal/(TWRet_nominal - TWSup_nominal)/4200Nominal water mass flow rate
Assumptions
BooleanallowFlowReversalfalse= true to allow flow reversal, false restricts to design direction (inlet -> outlet)

Connectors

TypeNameDefaultDescription
Interfaces.Outlet[nZon,nPorts]fluPor (from HVACZones)Fluid connectors
Modelica.Blocks.Interfaces.RealInput[nZon]TRadZon (from HVACZones)Radiative temperature of the zone
Modelica.Blocks.Interfaces.RealOutput[nZon]QGaiRad_flow (from HVACZones)Radiant heat input into the zones (positive if heat gain)
Modelica.Blocks.Interfaces.RealOutput[nZon]QGaiSenCon_flow (from HVACZones)Convective sensible heat input into the zones (positive if heat gain)
Modelica.Blocks.Interfaces.RealOutput[nZon]QGaiLat_flow (from HVACZones)Latent heat input into the zones (positive if heat gain)
BoundaryConditions.WeatherData.BusweaBusWeather data bus
Modelica.Blocks.Interfaces.RealOutputTOutOutdoor temperature

Components

TypeNameDefaultDescription
Adaptors.HVAC[nZon]hvacAda (from HVACZones)Adapter between the HVAC supply and return air, and its connectors for the FMU
Modelica.Blocks.Sources.Constant[nZon]zerZero output signal
Movers.FlowControlled_m_flowfanSupply air fan
HeatExchangers.ConstantEffectivenesshexHeat recovery
IBPSA.Fluid.HeatExchangers.ConstantEffectivenesscooCoi
IBPSA.Fluid.Sources.OutsideoutOutside air boundary condition
Sources.MassFlowSource_TsouWatSource for water flow rate
Sources.FixedBoundarysinWatSink for water circuit
Modelica.Blocks.Sources.ConstantmAir_flowFan air flow rate
Sensors.TemperatureTwoPortsenTemHXOutTemperature sensor for heat recovery outlet on supply side
Sensors.TemperatureTwoPortsenTemSupAirTemperature sensor for supply air
Modelica.Blocks.Logical.OnOffControllerconController for coil water flow rate
Modelica.Blocks.Sources.ConstantTRooSetPoiRoom temperature set point
Modelica.Blocks.Math.BooleanToRealmWat_flowConversion from boolean to real for water flow rate
BoundaryConditions.WeatherData.ReaderTMY3weaDatWeather data reader
Modelica.Blocks.Math.Minmin
Movers.FlowControlled_m_flowfan2Supply air fan that extracts a constant amount of outside air
IBPSA.Fluid.FixedResistances.PressureDropresFixed resistance for exhaust air duct
IBPSA.Fluid.FixedResistances.PressureDropresSup1Fixed resistance for supply air inlet
IBPSA.Fluid.FixedResistances.PressureDropresSup2Fixed resistance for supply air inlet
IBPSA.Fluid.FixedResistances.PressureDropresRet1Fixed resistance for return air duct
IBPSA.Fluid.FixedResistances.PressureDropresRet2Fixed resistance for return air duct

Contents

NameDescription
MediumAMedium for air
MediumWMedium for water

Revisions

  • April 4, 2017, by Michael Wetter:
    Removed import statement.
  • November 11, 2016, by Michael Wetter:
    Made the cooling coil replaceable because the Buildings library uses the model for validation with a cooling coil model that is not in the Annex 60 library.
  • April 16, 2016 by Michael Wetter:
    First implementation.