lib/openstudio-standards/standards/Standards.Construction.rb in openstudio-standards-0.2.0.rc1 vs lib/openstudio-standards/standards/Standards.Construction.rb in openstudio-standards-0.2.0.rc2
- old
+ new
@@ -263,11 +263,11 @@
# Get the SHGC as calculated by EnergyPlus.
# Only applies to fenestration constructions.
# @return [Double] the SHGC as a decimal.
def construction_calculated_solar_heat_gain_coefficient(construction)
- construction_name = name.get.to_s
+ construction_name = construction.name.get.to_s
shgc = nil
sql = construction.model.sqlFile
@@ -284,11 +284,11 @@
row_id = sql.execAndReturnFirstString(row_query)
if row_id.is_initialized
row_id = row_id.get
else
- OpenStudio.logFree(OpenStudio::Warn, 'openstudio.model.Model', "SHGC row ID not found for construction: #{construction_name}.")
+ OpenStudio.logFree(OpenStudio::Warn, 'openstudio.model.Construction', "SHGC row ID not found for construction: #{construction_name}.")
row_id = 9999
end
shgc_query = "SELECT Value
FROM tabulardatawithstrings
@@ -313,11 +313,11 @@
# Get the VT as calculated by EnergyPlus.
# Only applies to fenestration constructions.
# @return [Double] the visible transmittance as a decimal.
def construction_calculated_visible_transmittance(construction)
- construction_name = name.get.to_s
+ construction_name = construction.name.get.to_s
vt = nil
sql = construction.model.sqlFile
@@ -363,11 +363,11 @@
# Get the U-Factor as calculated by EnergyPlus.
# Only applies to fenestration constructions.
# @return [Double] the U-Factor in W/m^2*K.
def construction_calculated_u_factor(construction)
- construction_name = name.get.to_s
+ construction_name = construction.name.get.to_s
u_factor_w_per_m2_k = nil
sql = construction.model.sqlFile
@@ -384,11 +384,11 @@
row_id = sql.execAndReturnFirstString(row_query)
if row_id.is_initialized
row_id = row_id.get
else
- OpenStudio.logFree(OpenStudio::Warn, 'openstudio.model.Model', "U-Factor row ID not found for construction: #{construction_name}.")
+ OpenStudio.logFree(OpenStudio::Warn, 'openstudio.model.Construction', "U-Factor row ID not found for construction: #{construction_name}.")
row_id = 9999
end
u_factor_query = "SELECT Value
FROM tabulardatawithstrings
@@ -403,10 +403,10 @@
u_factor_w_per_m2_k = if u_factor_w_per_m2_k.is_initialized
u_factor_w_per_m2_k.get
end
else
- OpenStudio.logFree(OpenStudio::Error, 'openstudio.standards.Space', 'Model has no sql file containing results, cannot lookup data.')
+ OpenStudio.logFree(OpenStudio::Error, 'openstudio.standards.Construction', 'Model has no sql file containing results, cannot lookup data.')
end
return u_factor_w_per_m2_k
end
end