modelTwoRooms

Model with two simple thermal zones, each having three air flow paths

Extends from Buildings.Fluid.FMI.ExportContainers.Examples.FMUs.ThermalZones (Declaration of an FMU that exports multiple thermal zones).

Information

This model extends Buildings.Fluid.FMI.ExportContainers.Examples.FMUs.ThermalZones to implement two simple thermal zones.

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.VolumeV (from ThermalZones)6*10*3Room volume
Modelica.Units.SI.TemperatureTASup_nominal (from ThermalZones)273.15 + 18Nominal air temperature supplied to room
Modelica.Units.SI.TemperatureTRooSet (from ThermalZones)273.15 + 24Nominal room air temperature
Modelica.Units.SI.TemperatureTOut_nominal (from ThermalZones)273.15 + 30Design outlet air temperature
Modelica.Units.SI.HeatFlowRateQRooInt_flow (from ThermalZones)1000Internal heat gains of the room
Modelica.Units.SI.HeatFlowRateQRooC_flow_nominal (from ThermalZones)-QRooInt_flow - 10E3/30*(TOut_nominal - TRooSet)Nominal cooling load of the room
Modelica.Units.SI.MassFlowRatemA_flow_nominal (from ThermalZones)1.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.BusweaBus (from ThermalZones)Weather data bus
Modelica.Blocks.Interfaces.RealOutputTOut (from ThermalZones)Outdoor temperature
Modelica.Blocks.Interfaces.RealOutputTRad1 (from ThermalZones)Radiative temperature
Modelica.Blocks.Interfaces.RealOutputTRad2 (from ThermalZones)Radiative 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.ReaderTMY3weaDat (from ThermalZones)Weather data reader
Buildings.HeatTransfer.Sources.PrescribedTemperatureTAirOut (from ThermalZones)Outside air temperature
Modelica.Thermal.HeatTransfer.Components.ThermalConductortheCon1 (from ThermalZones)Thermal conductance with the ambient
Modelica.Thermal.HeatTransfer.Sources.FixedHeatFlowpreHea1 (from ThermalZones)Prescribed heat flow for internal gains
MixingVolumes.MixingVolumevol1 (from ThermalZones)Room volume
Modelica.Thermal.HeatTransfer.Components.ThermalConductortheCon2 (from ThermalZones)Thermal conductance with the ambient
Modelica.Thermal.HeatTransfer.Sources.FixedHeatFlowpreHea2 (from ThermalZones)Prescribed heat flow for internal gains
MixingVolumes.MixingVolumevol2 (from ThermalZones)Room volume
Sensors.MassFlowRate[nPorts]senMasFlo (from ThermalZones)Mass flow rate sensor to connect thermal adapter with thermal zone.
Sensors.MassFlowRate[nPorts]senMasFlo1 (from ThermalZones)Mass flow rate sensor to connect thermal adapter with thermal zone.
Modelica.Thermal.HeatTransfer.Sensors.TemperatureSensortemSen1 (from ThermalZones)Temperature sensor (that approximates the radiative temperature by the air temperature)
Modelica.Thermal.HeatTransfer.Sensors.TemperatureSensortemSen2 (from ThermalZones)Temperature sensor (that approximates the radiative temperature by the air temperature)

Revisions

  • September 19, 2016, by Thierry S. Nouidui:
    Revised implementation.
  • September 14, 2016, by Michael Wetter:
    First implementation.