|
hlcc 2.0.0-beta2+pre1
|
This is a simple emulation of a temperature control system. More...
Public Member Functions | |
| def | __init__ (self, env_temp, init_temp) |
| Contructor for the SysUControl. | |
| def | update (self, power) |
| Calculates the energy absorbed (and losses to the environment) since the last iteration and updates the current temperature. | |
Public Attributes | |
| env_temp | |
| current_temp | |
| last_time | |
| inertia_buffer | |
| curr_power | |
| inertial_accumulator | |
This is a simple emulation of a temperature control system.
We consider the environment temperature and the temperature of the heating element. When the heating element is powered (0-100%) it will increase the temperature in a rate according to the power level applied. The heating element naturally dissipates energy to the environment in a rate that depends on the temperature difference.
| def SimScripts.sv_temperature_controller.SysUControl.__init__ | ( | self, | |
| env_temp, | |||
| init_temp | |||
| ) |
Contructor for the SysUControl.
| def SimScripts.sv_temperature_controller.SysUControl.update | ( | self, | |
| power | |||
| ) |
Calculates the energy absorbed (and losses to the environment) since the last iteration and updates the current temperature.
| SimScripts.sv_temperature_controller.SysUControl.curr_power |
| SimScripts.sv_temperature_controller.SysUControl.current_temp |
| SimScripts.sv_temperature_controller.SysUControl.env_temp |
| SimScripts.sv_temperature_controller.SysUControl.inertia_buffer |
| SimScripts.sv_temperature_controller.SysUControl.inertial_accumulator |
| SimScripts.sv_temperature_controller.SysUControl.last_time |