lib/openstudio-standards/weather/Weather.Model.rb in openstudio-standards-0.4.0 vs lib/openstudio-standards/weather/Weather.Model.rb in openstudio-standards-0.5.0.rc1
- old
+ new
@@ -125,11 +125,11 @@
# Adds the design days and weather file for the specified climate zone
#
# @param model [OpenStudio::Model::Model] OpenStudio model object
# @param climate_zone [String] ASHRAE climate zone, e.g. 'ASHRAE 169-2013-4A'
# @param epw_file [String] the name of the epw file; if blank will default to epw file for the ASHRAE climate zone
- # @return [Bool] returns true if successful, false if not
+ # @return [Boolean] returns true if successful, false if not
def model_add_design_days_and_weather_file(model, climate_zone, epw_file = '', weather_dir = nil)
success = true
require_relative 'Weather.stat_file'
# Remove any existing Design Day objects that are in the file
@@ -215,11 +215,11 @@
# If neither are available, it will default to a set of typical ground temperatures
#
# @param model [OpenStudio::Model::Model] OpenStudio model object
# @param [String] openstudio-standards building type
# @param [String] ASHRAE climate zone, e.g. 'ASHRAE 169-2013-4A'
- # @return [Bool] returns true if successful, false if not
+ # @return [Boolean] returns true if successful, false if not
def model_add_ground_temperatures(model, building_type, climate_zone)
# Define the weather file for each climate zone
climate_zone_weather_file_map = model_get_climate_zone_weather_file_map
# Get the weather file name from the hash
@@ -634,11 +634,11 @@
end
end
# This method will set the weather file and returns a log string.
# @author phylroy.lopez@nrcan.gc.ca
- # @param model [OpenStudio::model::Model] A model object
+ # @param model [OpenStudio::Model::Model] A model object
# @return [String] log
def set_weather_file(model, runner = nil)
BTAP.runner_register('Info', 'BTAP::Environment::WeatherFile::set_weather', runner)
OpenStudio::Model::WeatherFile.setWeatherFile(model, @epw_file)
building_name = model.building.get.name
@@ -913,11 +913,11 @@
end
end
end
end
return heating_design_day_number, cooling_design_day_number
- end # def get_heating_design_day_number
+ end
# This method calculates dehumidification degree days (DDD)
# @author sara.gilani@canada.ca
# Reference: ASHRAE Handbook - Fundamentals > CHAPTER 1. PSYCHROMETRICS
def calculate_humidity_ratio
@@ -989,13 +989,12 @@
sum_w = 0.0
end
ddd += line[CALCULATED_HUMIDITY_RATIO_AVG_DAILY_DIFF_BASE].to_f
- end # unless line.first =~ /\D(.*)/
- end # @filearray.each do |line|
- # puts @filearray
+ end
+ end
return ddd
- end # def calculate_humidity_ratio
- end # Environment
+ end
+ end
end
end