hlcc 2.0.0-beta2+pre1
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
SimScripts.sv_temperature_controller.SysUControl Class Reference

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ __init__()

def SimScripts.sv_temperature_controller.SysUControl.__init__ (   self,
  env_temp,
  init_temp 
)

Contructor for the SysUControl.

Member Function Documentation

◆ update()

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.

Member Data Documentation

◆ curr_power

SimScripts.sv_temperature_controller.SysUControl.curr_power

◆ current_temp

SimScripts.sv_temperature_controller.SysUControl.current_temp

◆ env_temp

SimScripts.sv_temperature_controller.SysUControl.env_temp

◆ inertia_buffer

SimScripts.sv_temperature_controller.SysUControl.inertia_buffer

◆ inertial_accumulator

SimScripts.sv_temperature_controller.SysUControl.inertial_accumulator

◆ last_time

SimScripts.sv_temperature_controller.SysUControl.last_time

The documentation for this class was generated from the following file: