blockHVACZone

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

Extends from Buildings.Fluid.FMI.ExportContainers.HVACZone (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 a single thermal zone. The HVAC system is adapted from Buildings.Examples.Tutorial.SpaceCooling.System3, but flow resistances have been added to have the same configuration as Buildings.Fluid.FMI.ExportContainers.Examples.FMUs.HVACZones. Having the same configuration is needed for the validation test Buildings.Fluid.FMI.ExportContainers.Validation.RoomHVAC.

The example extends from Buildings.Fluid.FMI.ExportContainers.HVACZone 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
Realeps0.8Heat recovery effectiveness
Modelica.Units.SI.TemperatureTASup_nominal291.15Nominal air temperature supplied to room
Modelica.Units.SI.DimensionlessRatiowASup_nominal0.012Nominal air humidity ratio supplied to room [kg/kg] assuming 90% relative humidity
Modelica.Units.SI.TemperatureTRooSet297.15Nominal room air temperature
Modelica.Units.SI.TemperatureTOut_nominal303.15Design outlet air temperature
Modelica.Units.SI.TemperatureTHeaRecLvgTOut_nominal - eps*(TOut_nominal - TRooSet)Air temperature leaving the heat recovery
Modelica.Units.SI.DimensionlessRatiowHeaRecLvg0.0135Air humidity ratio leaving the heat recovery [kg/kg]
RealUA10E3Average UA-value of the room
Modelica.Units.SI.HeatFlowRateQRooInt_flow1000Internal heat gains of the room
Modelica.Units.SI.HeatFlowRateQRooC_flow_nominal-QRooInt_flow - UA/30*(TOut_nominal - TRooSet)Nominal cooling load of the room
Modelica.Units.SI.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.Units.SI.TemperatureDifferencedTFan2Estimated temperature raise across fan that needs to be made up by the cooling coil
Modelica.Units.SI.HeatFlowRateQCoiC_flow_nominalmA_flow_nominal*(TASup_nominal - THeaRecLvg - dTFan)*1006 + mA_flow_nominal*(wASup_nominal - wHeaRecLvg)*2458.3e3Cooling load of coil, taking into account outside air sensible and latent heat removal
Modelica.Units.SI.TemperatureTWSup_nominal285.15Water supply temperature
Modelica.Units.SI.TemperatureTWRet_nominal289.15Water return temperature
Modelica.Units.SI.MassFlowRatemW_flow_nominal-QCoiC_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[size(hvacAda.fluPor, 1)]fluPor (from HVACZone)Fluid connector
Modelica.Blocks.Interfaces.RealInputTRadZon (from HVACZone)Radiative temperature of the zone
Modelica.Blocks.Interfaces.RealOutputQGaiRad_flow (from HVACZone)Radiant heat input into zone (positive if heat gain)
Modelica.Blocks.Interfaces.RealOutputQGaiSenCon_flow (from HVACZone)Convective sensible heat input into zone (positive if heat gain)
Modelica.Blocks.Interfaces.RealOutputQGaiLat_flow (from HVACZone)Latent heat input into zone (positive if heat gain)
BoundaryConditions.WeatherData.BusweaBusWeather data bus
Modelica.Blocks.Interfaces.RealOutputTOutOutdoor temperature

Components

TypeNameDefaultDescription
Adaptors.HVAChvacAda (from HVACZone)Adapter between the HVAC supply and return air, and its connectors for the FMU
Modelica.Blocks.Sources.ConstantzeroZero output signal
Movers.FlowControlled_m_flowfanSupply air fan
HeatExchangers.ConstantEffectivenesshexHeat recovery
Buildings.Fluid.HeatExchangers.ConstantEffectivenesscooCoi
Buildings.Fluid.Sources.OutsideoutOutside air boundary condition
Sources.MassFlowSource_TsouWatSource for water flow rate
Buildings.Fluid.Sources.Boundary_pTsinWatSink 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
FixedResistances.PressureDropresSup1Fixed resistance for supply air inlet
FixedResistances.PressureDropresRet1Fixed resistance for return air duct

Contents

NameDescription
MediumAMedium for air
MediumWMedium for water

Revisions

  • September 21, 2021 by David Blum:
    Correct supply and return water parameterization.
    Use explicit calculation of sensible and latent load to determine design load on cooling coil.
    This is for #2624.
  • May 15, 2019, by Jianjun Hu:
    Replaced fluid source. This is for #1072.
  • 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.