modelThermalZone
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
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | nPorts (from ThermalZone) | Number of fluid ports | |
| Modelica.Units.SI.Volume | V | 6*10*3 | Room volume |
| Modelica.Units.SI.Temperature | TASup_nominal | 273.15 + 18 | Nominal air temperature supplied to room |
| Modelica.Units.SI.Temperature | TRooSet | 273.15 + 24 | Nominal room air temperature |
| Modelica.Units.SI.Temperature | TOut_nominal | 273.15 + 30 | Design outlet air temperature |
| Modelica.Units.SI.HeatFlowRate | QRooInt_flow | 1000 | Internal heat gains of the room |
| Modelica.Units.SI.HeatFlowRate | QRooC_flow_nominal | -QRooInt_flow - 10E3/30*(TOut_nominal - TRooSet) | Nominal cooling load of the room |
| Modelica.Units.SI.MassFlowRate | mA_flow_nominal | 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
| Type | Name | Default | Description |
|---|---|---|---|
| Interfaces.Inlet[nPorts] | fluPor (from ThermalZone) | Fluid connector | |
| BoundaryConditions.WeatherData.Bus | weaBus | Weather data bus | |
| Modelica.Blocks.Interfaces.RealOutput | TOut | Outdoor temperature | |
| Modelica.Blocks.Interfaces.RealOutput | TRad | Radiative temperature |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Adaptors.ThermalZone | theZonAda (from ThermalZone) | Adapter between the HVAC supply and return air, and its connectors for the FMU | |
| BoundaryConditions.WeatherData.ReaderTMY3 | weaDat | Weather data reader | |
| Buildings.HeatTransfer.Sources.PrescribedTemperature | TAirOut | Outside air temperature | |
| Modelica.Thermal.HeatTransfer.Components.ThermalConductor | theCon | Thermal conductance with the ambient | |
| Modelica.Thermal.HeatTransfer.Sources.FixedHeatFlow | preHea | Prescribed heat flow | |
| MixingVolumes.MixingVolumeMoistAir | vol | ||
| Modelica.Blocks.Sources.Constant | mWat_flow | mass flow rate | |
| Sensors.MassFlowRate[nPorts] | senMasFlo | Mass flow rate sensor to connect thermal adapter with thermal zone. | |
| Modelica.Thermal.HeatTransfer.Sensors.TemperatureSensor | temSen | Temperature sensor (that approximates the radiative temperature by the air temperature) |
Contents
| Name | Description |
|---|---|
| Medium for air |
Revisions
-
March 11, 2020, by Michael Wetter:
RemovedfontSizein annotation.
This is for #1318. -
December 4, 2017, by Michael Wetter:
Added call toModelica.Utilities.Files.loadResourcefor 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.