EXAMPLE
Thermostat Control |
The concept for the following example is
derived from an example found in the instruction manual that
comes with the student version of Simulink.1
The block diagrams provided here are more generic than those
actually used within Simulink but serve to illustrate the
concepts involved. Suppose that you were given the task of
designing a temperature control system for a small building
heated by a furnace. Because the building has thermal memory,
that is, it retains heat for some time when the furnace goes
off and requires time to heat up when the furnace is turned
on, the furnace-building combination constitutes a dynamic
system. The variables of the system include the desired
temperature (the setting of the thermostat) and the actual
indoor temperature. The program determines the difference
between the two temperatures and turns on the switch if Tactual<
Tthermostat. Turning on the switch causes the
furnace to produce heat that acts to increase the indoor
temperature, but with a time delay 1(sometimes
called a time constant.) In the meantime, regardless of
the status of the furnace, heat continually flows out of the
building in proportion to the difference between the indoor
and outdoor temperatures. The time constant governing this
outward heat flow is 2.
A block diagram description of the system
is shown in Figure 31. The output of
the system, produced by Simulink for the parameters Tthermostat
= 68°F, Toutdoor = 32°F, 1
= 4 min, and 2
= 12 min, is shown in Figure 32.
This plot indicates that the temperature falls slowly until Tactual
falls below Tthermostat. At that point in
time, the furnace turns on and raises the temperature until Tactual
= Tthermostat. Note that the building
temperature continues to rise for some time after the furnace
is turned off. This phenomenon occurs because of the non-zero
time delays in the system. Although the system recognizes that
Tactual has reached Tthermostat, the
time delay between the furnace and the building causes
additional heat to flow from the former to the latter.
31. Block diagram description of the dynamic system
of a building and its heating furnace.
32. Results of the simulation with Tthermostat
= 68°F, Toutdoor = 32°F, 1
= 4 min, and 2
= 12 min.
|