modelThermalZone

Declaration of an FMU that exports a thermal zone

Extends from Buildings.Fluid.FMI.ExportContainers.ThermalZone (Partial block to export a model of a thermal zone as an FMU).

Information

This example demonstrates how to export a model that contains one thermal zone with convective heat input from the HVAC system only. The thermal zone is connected to an adaptor so that it can be coupled to an air-based HVAC system. The thermal zone is taken from Buildings.Examples.Tutorial.SpaceCooling.System3.

The example extends from Buildings.Fluid.FMI.ExportContainers.ThermalZone which provides the input and output signals that are needed to interface the acausal thermal zone model 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
IntegernPorts (from ThermalZone)Number of fluid ports
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[nPorts]fluPor (from ThermalZone)Fluid connector
BoundaryConditions.WeatherData.BusweaBusWeather data bus
Modelica.Blocks.Interfaces.RealOutputTOutOutdoor temperature
Modelica.Blocks.Interfaces.RealOutputTRadRadiative temperature

Components

TypeNameDefaultDescription
Adaptors.ThermalZonetheZonAda (from ThermalZone)Adapter between the HVAC supply and return air, and its connectors for the FMU
BoundaryConditions.WeatherData.ReaderTMY3weaDatWeather data reader
Buildings.HeatTransfer.Sources.PrescribedTemperatureTAirOutOutside air temperature
Modelica.Thermal.HeatTransfer.Components.ThermalConductortheConThermal conductance with the ambient
Modelica.Thermal.HeatTransfer.Sources.FixedHeatFlowpreHeaPrescribed heat flow
MixingVolumes.MixingVolumeMoistAirvol
Modelica.Blocks.Sources.ConstantmWat_flowmass flow rate
Sensors.MassFlowRate[nPorts]senMasFloMass flow rate sensor to connect thermal adapter with thermal zone.
Modelica.Thermal.HeatTransfer.Sensors.TemperatureSensortemSenTemperature 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.
  • April 12, 2017, by Michael Wetter:
    Removed temperature that is no longer needed.
    This is for issue Buildings #704.
  • September 20, 2016, by Thierry S. Nouidui:
    Revised implementation and added mass flow rate sensors to connect the thermal zone adaptor to the thermal zone.
  • April 28, 2016, by Thierry S. Nouidui:
    First implementation.