Thermostat
ptolemy.domains.ct.demo.Thermostat.Thermostat

This applet shows a simple thermostat system. The temperature of the room is expected to be controlled between Tl and Th <p> The system has two states, heating and cooling. In the heating state, the temperature of the room is increased linearly, in terms of a differential equation: <pre> <CODE> dx/dt = 1</CODE> </pre> In the cooling state, the temperature is dropped linearly, i.e. <pre> <CODE> dx/dt = -1</CODE> </pre> The control rule is that if the temperature reaches Th degree, then switch the controller to the cooling state; if the temperature decreases to Tl degree then switch the controller to the heating state. <p> We use this demo to illustrate the accuracy of detecting events, and the ability of simulating hybrid system in Ptolemy II.

Author(s): Jie Liu
Version:$Id: Thermostat.doc.html,v 1.1 2006/02/22 18:42:26 mangal Exp $
Pt.Proposed Rating:Red (liuj)
Pt.Accepted Rating:Red (cxh)