modelThermalZones

Declaration of an FMU that exports multiple thermal zones

Extends from IBPSA.Fluid.FMI.ExportContainers.ThermalZones (Partial block to export a model of multiple thermal zones as an FMU).

Information

This example demonstrates how to export a model that contains two thermal zones with convective heat input from the HVAC system only. The thermal zones are connected to an adaptor so that they can be coupled to an air-based HVAC system.

The example extends from IBPSA.Fluid.FMI.ExportContainers.ThermalZones which provides the input and output signals that are needed to interface the acausal thermal zone models with causal connectors of FMI. The instance theZonAda is the thermal zone adaptor that contains on the right a fluid port, and on the left 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 ThermalZones)Number of thermal zones in this container
IntegernPorts (from ThermalZones)Number of fluid ports for each zone (must be the same for every zone)
Modelica.Units.SI.VolumeV6*10*3Room volume
Modelica.Units.SI.TemperatureTASup_nominal273.15 + 18Nominal air temperature supplied to room
Modelica.Units.SI.TemperatureTRooSet273.15 + 24Nominal room air temperature
Modelica.Units.SI.TemperatureTOut_nominal273.15 + 30Design outlet air temperature
Modelica.Units.SI.HeatFlowRateQRooInt_flow1000Internal heat gains of the room
Modelica.Units.SI.HeatFlowRateQRooC_flow_nominal-QRooInt_flow - 10E3/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

Connectors

TypeNameDefaultDescription
Interfaces.Inlet[nZon,nPorts]fluPor (from ThermalZones)Fluid connectors
BoundaryConditions.WeatherData.BusweaBusWeather data bus
Modelica.Blocks.Interfaces.RealOutputTOutOutdoor temperature
Modelica.Blocks.Interfaces.RealOutputTRad1Radiative temperature
Modelica.Blocks.Interfaces.RealOutputTRad2Radiative temperature

Components

TypeNameDefaultDescription
Adaptors.ThermalZone[nZon]theZonAda (from ThermalZones)Adapter between the HVAC supply and return air, and its connectors for the FMU
BoundaryConditions.WeatherData.ReaderTMY3weaDatWeather data reader
Modelica.Thermal.HeatTransfer.Sources.PrescribedTemperatureTAirOutOutside air temperature
Modelica.Thermal.HeatTransfer.Components.ThermalConductortheCon1Thermal conductance with the ambient
Modelica.Thermal.HeatTransfer.Sources.FixedHeatFlowpreHea1Prescribed heat flow for internal gains
MixingVolumes.MixingVolumevol1Room volume
Modelica.Thermal.HeatTransfer.Components.ThermalConductortheCon2Thermal conductance with the ambient
Modelica.Thermal.HeatTransfer.Sources.FixedHeatFlowpreHea2Prescribed heat flow for internal gains
MixingVolumes.MixingVolumevol2Room volume
Sensors.MassFlowRate[nPorts]senMasFloMass flow rate sensor to connect thermal adapter with thermal zone.
Sensors.MassFlowRate[nPorts]senMasFlo1Mass flow rate sensor to connect thermal adapter with thermal zone.
Modelica.Thermal.HeatTransfer.Sensors.TemperatureSensortemSen1Temperature sensor (that approximates the radiative temperature by the air temperature)
Modelica.Thermal.HeatTransfer.Sensors.TemperatureSensortemSen2Temperature sensor (that approximates the radiative temperature by the air temperature)

Contents

NameDescription
MediumAMedium for air

Revisions

  • March 11, 2020, by Michael Wetter:
    Removed fontSize in annotation.
    This is for #1318.
  • December 4, 2017, by Michael Wetter:
    Added call to Modelica.Utilities.Files.loadResource for weather data file.
    This is for #867.
  • September 14, 2016, by Michael Wetter:
    First implementation.