modelTwoRooms

Thermal model of two rooms that will be linked to the BCVTB which models the controls

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

Information

This example illustrates the use of Modelica with the Building Controls Virtual Test Bed.

Given a control signal for two heat flow rates, Modelica simulates the thermal response of two first order systems. The two systems may represent a first order approximation of a room. The control signal for the heat flow rate is computed in the Building Controls Virtual Test Bed using a discrete time implementation of a proportional controller. Every 60 seconds, measured temperatures and control signals for the heat flow rates are exchanged between Dymola and the Building Controls Virtual Test Bed.

This model is implemented in bcvtb\examples\dymola-room.

Parameters

TypeNameDefaultDescription
Modelica.Units.SI.Timetau2*3600Room time constant
Modelica.Units.SI.HeatFlowRateQ_flow_nom100Nominal heat flow
Modelica.Units.SI.ThermalConductanceUAQ_flow_nom/20Thermal conductance of room
Modelica.Units.SI.TemperatureTStart283.15Start temperature

Components

TypeNameDefaultDescription
Modelica.Thermal.HeatTransfer.Components.HeatCapacitorC1Heat capacity of room
Modelica.Thermal.HeatTransfer.Components.ThermalConductorUA1Heat transmission of room
Buildings.HeatTransfer.Sources.FixedTemperatureTOut1Outside air temperature
Buildings.HeatTransfer.Sources.PrescribedHeatFlowQ_flow_1Heat input into the room
Modelica.Blocks.Math.GainGaiQ_flow_nom1Gain for nominal heat load
Modelica.Thermal.HeatTransfer.Components.ThermalConductorUA2Heat transmission of room
Modelica.Thermal.HeatTransfer.Components.HeatCapacitorC2Heat capacity of room
Buildings.HeatTransfer.Sources.FixedTemperatureTOut2Outside air temperature
Buildings.HeatTransfer.Sources.PrescribedHeatFlowQ_flow_2Heat input into the room
Modelica.Blocks.Math.GainGaiQ_flow_nom2Gain for nominal heat load
Modelica.Thermal.HeatTransfer.Sensors.TemperatureSensorTRoo1Room temperature
Modelica.Thermal.HeatTransfer.Sensors.TemperatureSensorTRoo2Room temperature
Buildings.Utilities.IO.BCVTB.BCVTBbcvtb
Modelica.Blocks.Routing.Multiplex2multiplex2_1
Modelica.Blocks.Routing.DeMultiplex2deMultiplex2_1
Buildings.Utilities.IO.BCVTB.To_degCto_degC1
Buildings.Utilities.IO.BCVTB.To_degCto_degC2

Revisions

  • May 15, 2009, by Michael Wetter:
    First implementation.