modelThermalZoneHVACNoExhaust

Example of a thermal zone and an HVAC system both exposed using the FMI adaptor

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

This example demonstrates how to use the adaptors Buildings.Fluid.FMI.Adaptors.HVAC and Buildings.Fluid.FMI.Adaptors.ThermalZone

On the left hand side is an HVAC system with supply and return air stream. These are all connected to the adaptor. On the right of the adaptor is a simple room model, approximated by a volume with first order dynamics and heat loss to the ambient.

Note that the there is zero net air flow into and out of the volume vol because the adaptor hvacAda conserves mass. Hence, any infiltration or exfiltration needs to be connected to the adaptor hvacAda, rather than the volume vol.

Parameters

TypeNameDefaultDescription
Modelica.Units.SI.HeatFlowRateQ_flow_nominal30*6*6Nominal heat loss of the room
Modelica.Units.SI.VolumeVRoo6*6*2.7Room volume
Modelica.Units.SI.MassFlowRatem_flow_nominalVRoo*2*1.2/3600Nominal mass flow rate

Components

TypeNameDefaultDescription
Buildings.Fluid.FMI.Adaptors.HVAChvacAdaAdaptor for an HVAC system that is exposed through an FMI interface
Buildings.Fluid.FMI.Adaptors.ThermalZoneconAdaptor for thermal zone
Modelica.Blocks.Sources.PulseTSetSetpoint for room temperature
Controls.Continuous.LimPIDconPIController
Movers.FlowControlled_m_flowmovFan or pump
HeatExchangers.HeaterCooler_uheaHeater
Sources.Boundary_pToutPressure and temperature source for outdoor
HeatExchangers.ConstantEffectivenesshexHeat recovery
MixingVolumes.MixingVolumevolRoom volume
Modelica.Thermal.HeatTransfer.Components.ThermalConductortheConThermal conductance with the ambient
Buildings.HeatTransfer.Sources.PrescribedTemperatureTBouFixed temperature boundary condition
Modelica.Blocks.Sources.RealExpressionTOutZonOutdoor temperature used for the thermal zone model
Modelica.Blocks.Sources.RealExpressionTOutHVACOutdoor temperature used for the HVAC model

Contents

NameDescription
MediumAMedium for air

Revisions

  • March 11, 2020, by Michael Wetter:
    Removed fontSize in annotation.
    This is for #1318.
  • November 29, 2016, by Michael Wetter:
    Added separate signal for outdoor temperature used by HVAC system. This is to improve clarity regarding what signals are exchanged, see also #598.
  • June 29, 2016, by Michael Wetter:
    First implementation.