Sha256: b4fcdac92132e19ae01324c0f572e1b745b162b503da23cfb97aeaba84a495f6
Contents?: true
Size: 1.74 KB
Versions: 18
Compression:
Stored size: 1.74 KB
Contents
# open the class to add methods to return sizing values class OpenStudio::Model::CoilHeatingWaterToAirHeatPumpEquationFit # Sets all auto-sizeable fields to autosize def autosize self.autosizeRatedAirFlowRate self.autosizeRatedHeatingCapacity self.autosizeRatedWaterFlowRate end # Takes the values calculated by the EnergyPlus sizing routines # and puts them into this object model in place of the autosized fields. # Must have previously completed a run with sql output for this to work. def applySizingValues rated_air_flow_rate = self.autosizedRatedAirFlowRate if rated_air_flow_rate.is_initialized self.setRatedAirFlowRate(rated_air_flow_rate.get) end rated_total_heating_capacity = self.autosizedRatedHeatingCapacity if rated_total_heating_capacity.is_initialized self.setRatedHeatingCapacity(rated_total_heating_capacity.get) end rated_water_flow_rate = self.autosizedRatedWaterFlowRate if rated_water_flow_rate.is_initialized self.setRatedWaterFlowRate(rated_water_flow_rate.get) end end # returns the autosized rated air flow rate as an optional double def autosizedRatedAirFlowRate return self.model.getAutosizedValue(self, 'Design Size Rated Air Flow Rate', 'm3/s') end # returns the autosized rated total Heating capacity as an optional double def autosizedRatedHeatingCapacity return self.model.getAutosizedValue(self, 'Design Size Rated Heating Capacity', 'W') end # returns the autosized rated water flow rate as an optional double def autosizedRatedWaterFlowRate return self.model.getAutosizedValue(self, 'Design Size Rated Water Flow Rate', 'm3/s') end end
Version data entries
18 entries across 18 versions & 1 rubygems