Sha256: 8c5fff394944ac2b7d2fe86eb92b58edcd31acc1685e1fb0367e4767eec4c43e
Contents?: true
Size: 1.7 KB
Versions: 49
Compression:
Stored size: 1.7 KB
Contents
# open the class to add methods to return sizing values class OpenStudio::Model::HeaderedPumpsConstantSpeed # Sets all auto-sizeable fields to autosize def autosize self.autosizeTotalRatedFlowRate self.autosizeRatedPowerConsumption 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_flow_rate = self.autosizedTotalRatedFlowRate if rated_flow_rate.is_initialized self.setTotalRatedFlowRate(rated_flow_rate.get) end rated_power_consumption = self.autosizedRatedPowerConsumption if rated_power_consumption.is_initialized self.setRatedPowerConsumption(rated_power_consumption.get) end end # returns the autosized rated flow rate as an optional double def autosizedTotalRatedFlowRate # In E+ 8.5, (OS 1.10.5 onward) the column name changed col_name = nil if self.model.version < OpenStudio::VersionString.new('1.10.5') col_name = 'Rated Flow Rate' else col_name = 'Design Flow Rate' end return self.model.getAutosizedValue(self, col_name, 'm3/s') end # returns the autosized rated power consumption as an optional double def autosizedRatedPowerConsumption # In E+ 8.5, (OS 1.10.5 onward) the column name changed col_name = nil if self.model.version < OpenStudio::VersionString.new('1.10.5') col_name = 'Rated Power Consumption' else col_name = 'Design Power Consumption' end return self.model.getAutosizedValue(self, col_name, 'W') end end
Version data entries
49 entries across 49 versions & 1 rubygems