Sha256: 185375671c5f5f42b38bb9888f27735dfe4efb0a4010a7b7f28b6909eb579865

Contents?: true

Size: 704 Bytes

Versions: 5

Compression:

Stored size: 704 Bytes

Contents

# Reopen the OpenStudio class to add methods to apply standards to this object
class OpenStudio::Model::ControllerWaterCoil

  # Sets the convergence tolerance to 0.0001 deltaC
  # for all hot water coils.
  # 
  # @return [Bool] returns true if successful, false if not
  # @todo Figure out what the reason for this is,
  # because it seems like a workaround for an E+ bug
  # that was probably addressed long ago.
  def set_convergence_limits()
 
    controller_action = self.action
    if controller_action.is_initialized
      if controller_action.get == 'Normal'
        self.setControllerConvergenceTolerance(0.0001)
      end
    end
    
    return true
    
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
openstudio-standards-0.1.4 lib/openstudio-standards/prototypes/Prototype.ControllerWaterCoil.rb
openstudio-standards-0.1.3 lib/openstudio-standards/prototypes/Prototype.ControllerWaterCoil.rb
openstudio-standards-0.1.2 lib/openstudio-standards/prototypes/Prototype.ControllerWaterCoil.rb
openstudio-standards-0.1.1 lib/openstudio-standards/prototypes/Prototype.ControllerWaterCoil.rb
openstudio-standards-0.1.0 lib/openstudio-standards/prototypes/Prototype.ControllerWaterCoil.rb