modelTwoRooms
Thermal model of two rooms that will be linked to the BCVTB which models the controls
Extends from Modelica.Icons.Example.
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
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.Time | tau | 2*3600 | Room time constant |
| Modelica.Units.SI.HeatFlowRate | Q_flow_nom | 100 | Nominal heat flow |
| Modelica.Units.SI.ThermalConductance | UA | Q_flow_nom/20 | Thermal conductance of room |
| Modelica.Units.SI.Temperature | TStart | 283.15 | Start temperature |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Thermal.HeatTransfer.Components.HeatCapacitor | C1 | Heat capacity of room | |
| Modelica.Thermal.HeatTransfer.Components.ThermalConductor | UA1 | Heat transmission of room | |
| Buildings.HeatTransfer.Sources.FixedTemperature | TOut1 | Outside air temperature | |
| Buildings.HeatTransfer.Sources.PrescribedHeatFlow | Q_flow_1 | Heat input into the room | |
| Modelica.Blocks.Math.Gain | GaiQ_flow_nom1 | Gain for nominal heat load | |
| Modelica.Thermal.HeatTransfer.Components.ThermalConductor | UA2 | Heat transmission of room | |
| Modelica.Thermal.HeatTransfer.Components.HeatCapacitor | C2 | Heat capacity of room | |
| Buildings.HeatTransfer.Sources.FixedTemperature | TOut2 | Outside air temperature | |
| Buildings.HeatTransfer.Sources.PrescribedHeatFlow | Q_flow_2 | Heat input into the room | |
| Modelica.Blocks.Math.Gain | GaiQ_flow_nom2 | Gain for nominal heat load | |
| Modelica.Thermal.HeatTransfer.Sensors.TemperatureSensor | TRoo1 | Room temperature | |
| Modelica.Thermal.HeatTransfer.Sensors.TemperatureSensor | TRoo2 | Room temperature | |
| Buildings.Utilities.IO.BCVTB.BCVTB | bcvtb | ||
| Modelica.Blocks.Routing.Multiplex2 | multiplex2_1 | ||
| Modelica.Blocks.Routing.DeMultiplex2 | deMultiplex2_1 | ||
| Buildings.Utilities.IO.BCVTB.To_degC | to_degC1 | ||
| Buildings.Utilities.IO.BCVTB.To_degC | to_degC2 |
Revisions
-
May 15, 2009, by Michael Wetter:
First implementation.