Class: Aurora::Compressor::VSDrive

Inherits:
GenericCompressor show all
Defined in:
lib/aurora/compressor.rb

Instance Attribute Summary collapse

Attributes inherited from GenericCompressor

#cooling_liquid_line_temperature, #heat_of_extraction, #heat_of_rejection, #heating_liquid_line_temperature, #saturated_condensor_discharge_temperature, #speed, #watts

Instance Method Summary collapse

Methods inherited from GenericCompressor

#speed_range

Methods inherited from Aurora::Component

#inspect

Constructor Details

#initialize(abc) ⇒ VSDrive

Returns a new instance of VSDrive.



76
77
78
# File 'lib/aurora/compressor.rb', line 76

def initialize(abc)
  super(abc, 12)
end

Instance Attribute Details

#ambient_temperatureObject (readonly)

Returns the value of attribute ambient_temperature.



61
62
63
# File 'lib/aurora/compressor.rb', line 61

def ambient_temperature
  @ambient_temperature
end

#desired_speedObject (readonly)

Returns the value of attribute desired_speed.



61
62
63
# File 'lib/aurora/compressor.rb', line 61

def desired_speed
  @desired_speed
end

#discharge_pressureObject (readonly)

Returns the value of attribute discharge_pressure.



61
62
63
# File 'lib/aurora/compressor.rb', line 61

def discharge_pressure
  @discharge_pressure
end

#discharge_temperatureObject (readonly)

Returns the value of attribute discharge_temperature.



61
62
63
# File 'lib/aurora/compressor.rb', line 61

def discharge_temperature
  @discharge_temperature
end

#drive_temperatureObject (readonly)

Returns the value of attribute drive_temperature.



61
62
63
# File 'lib/aurora/compressor.rb', line 61

def drive_temperature
  @drive_temperature
end

#eev_open_percentageObject (readonly)

Returns the value of attribute eev_open_percentage.



61
62
63
# File 'lib/aurora/compressor.rb', line 61

def eev_open_percentage
  @eev_open_percentage
end

#fan_speedObject (readonly)

Returns the value of attribute fan_speed.



61
62
63
# File 'lib/aurora/compressor.rb', line 61

def fan_speed
  @fan_speed
end

#inverter_temperatureObject (readonly)

Returns the value of attribute inverter_temperature.



61
62
63
# File 'lib/aurora/compressor.rb', line 61

def inverter_temperature
  @inverter_temperature
end

#iz2_desired_speedObject (readonly)

Returns the value of attribute iz2_desired_speed.



61
62
63
# File 'lib/aurora/compressor.rb', line 61

def iz2_desired_speed
  @iz2_desired_speed
end

#saturated_evaporator_discharge_temperatureObject (readonly)

Returns the value of attribute saturated_evaporator_discharge_temperature.



61
62
63
# File 'lib/aurora/compressor.rb', line 61

def saturated_evaporator_discharge_temperature
  @saturated_evaporator_discharge_temperature
end

#subcool_temperatureObject (readonly)

Returns the value of attribute subcool_temperature.



61
62
63
# File 'lib/aurora/compressor.rb', line 61

def subcool_temperature
  @subcool_temperature
end

#suction_pressureObject (readonly)

Returns the value of attribute suction_pressure.



61
62
63
# File 'lib/aurora/compressor.rb', line 61

def suction_pressure
  @suction_pressure
end

#suction_temperatureObject (readonly)

Returns the value of attribute suction_temperature.



61
62
63
# File 'lib/aurora/compressor.rb', line 61

def suction_temperature
  @suction_temperature
end

#superheat_temperatureObject (readonly)

Returns the value of attribute superheat_temperature.



61
62
63
# File 'lib/aurora/compressor.rb', line 61

def superheat_temperature
  @superheat_temperature
end

Instance Method Details

#refresh(registers) ⇒ Object



90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# File 'lib/aurora/compressor.rb', line 90

def refresh(registers)
  super

  @desired_speed = registers[3000]
  @speed = registers[3001]
  @discharge_pressure = registers[3322]
  @suction_pressure = registers[3323]
  @discharge_temperature = registers[3325]
  @ambient_temperature = registers[3326]
  @drive_temperature = registers[3327]
  @inverter_temperature = registers[3522]
  @fan_speed = registers[3524]
  @eev_open_percentage = registers[3808]
  @suction_temperature = registers[3903]
  @saturated_evaporator_discharge_temperature = registers[3905]
  @superheat_temperature = registers[3906]
  @subcool_temperature = registers[registers[30].include?(:rv) ? 1136 : 1135]

  @iz2_desired_speed = registers[564] if abc.iz2?
end

#registers_to_readObject



84
85
86
87
88
# File 'lib/aurora/compressor.rb', line 84

def registers_to_read
  result = super + [209, 1135..1136, 3000..3001, 3322..3327, 3522, 3524, 3808, 3903..3906]
  result << 564 if abc.iz2?
  result
end

#typeObject



80
81
82
# File 'lib/aurora/compressor.rb', line 80

def type
  "Variable Speed Drive"
end