openstudio-standards 0.8.1 → 0.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 356ac612733e6da43abd0173fe00d2b880962387e5d10fd3006c795b076976c0
4
- data.tar.gz: d396b6796de579678334ccc0a89fcb98349fbb2f58a2fa961e199f936733f804
3
+ metadata.gz: b13c848616dbd277cba9c004f2d193ff934bbadd80021c2dbae422fb89115f3b
4
+ data.tar.gz: b45f986a954fe7096e12ee723aaa65d0c1245937bab27da8a44fb7b940157859
5
5
  SHA512:
6
- metadata.gz: 43ba928d87c142df22ec1317ea2d130666a50bc5d587ce06156f5cc1b11cb3f5b7ea6cff7b4a0de51c932239476080ec10221339721dba61035d92fb698a68f4
7
- data.tar.gz: 4ba533fcbb4df176f0d09812715ad41258da203d4d273a715f86c20d81186a8efdcc40bf01ba27587bc74fc1b9a235bd728a1e9f61edde4578132f80c1a1dc76
6
+ metadata.gz: f17dd78c8479478cbb30b3bae067a46ab1ed70019c97d4486831e40bc621993ae832ca1ec49c2b884fd2ed0fc72a16953cee56565d3b0a678f5ab28bc44ec37f
7
+ data.tar.gz: 8f353e0ddae94d518ac32b1474d3f7dd2c1c3d592c69d2212477ae62d946633eb17b929b30532950c5ebaa724ec41c27fb7a7fd4fc81a4b1b373704686746a33
@@ -1,4 +1,4 @@
1
- building_type,rollup_doors_per_10000_ft2,entrance_doors_per_10000_ft2,other_doors_per_10000_ft2,entrance_canopies,emergency_canopies,canopy_size,floor_area_per_drive_through_window,notes
1
+ building_type,rollup_doors_per_10000_ft2,entrance_doors_per_10000_ft2,other_doors_per_10000_ft2,entrance_canopies,emergency_canopies,canopy_size,floor_area_per_drive_through_window,notes
2
2
  SmallOffice,0.47,2,2,,,,,Based on Table 4.18 Number of Doors by Door Type from Achieving the 30% Goal: Energy and Cost Savings Analysis of ASHRAE Standard 90.1-2010
3
3
  MediumOffice,0.13,1,3,,,,,Based on Table 4.18 Number of Doors by Door Type from Achieving the 30% Goal: Energy and Cost Savings Analysis of ASHRAE Standard 90.1-2010
4
4
  LargeOffice,0,1,3,,,,,Based on Table 4.18 Number of Doors by Door Type from Achieving the 30% Goal: Energy and Cost Savings Analysis of ASHRAE Standard 90.1-2010
@@ -1,4 +1,4 @@
1
- building_type,building_area_per_spot,units_per_spot,students_per_spot,beds_per_spot,parking_area_per_spot
1
+ building_type,building_area_per_spot,units_per_spot,students_per_spot,beds_per_spot,parking_area_per_spot
2
2
  SmallOffice,250,,,,405
3
3
  MediumOffice,250,,,,405
4
4
  LargeOffice,620,,,,405
@@ -9,21 +9,21 @@ module OpenstudioStandards
9
9
  # @return [Hash] hash of exterior lighting value types and building type and model specific values
10
10
  def self.model_get_exterior_lighting_sizes(model)
11
11
  # load parking file and convert to hash table
12
- parking_json = "#{__dir__}/data/parking.json"
13
- unless File.exist?(parking_json)
12
+ parking_json = "#{File.dirname(__FILE__)}/data/parking.json"
13
+ unless File.file?(parking_json)
14
14
  OpenStudio.logFree(OpenStudio::Error, 'openstudio.standards.ExteriorLighting', "Unable to find file: #{parking_json}")
15
15
  return false
16
16
  end
17
- parking_hsh = JSON.parse(File.read("#{__dir__}/data/parking.json"), symbolize_names: true)
17
+ parking_hsh = JSON.parse(File.read("#{File.dirname(__FILE__)}/data/parking.json"), symbolize_names: true)
18
18
  parking_hsh = parking_hsh[:parking]
19
19
 
20
20
  # load entryways file and convert to hash table
21
- entryways_json = "#{__dir__}/data/entryways.json"
22
- unless File.exist?(entryways_json)
21
+ entryways_json = "#{File.dirname(__FILE__)}/data/entryways.json"
22
+ unless File.file?(entryways_json)
23
23
  OpenStudio.logFree(OpenStudio::Error, 'openstudio.standards.ExteriorLighting', "Unable to find file: #{entryways_json}")
24
24
  return false
25
25
  end
26
- entryways_hsh = JSON.parse(File.read("#{__dir__}/data/entryways.json"), symbolize_names: true)
26
+ entryways_hsh = JSON.parse(File.read("#{File.dirname(__FILE__)}/data/entryways.json"), symbolize_names: true)
27
27
  entryways_hsh = entryways_hsh[:entryways]
28
28
 
29
29
  # get space properties from the model
@@ -187,7 +187,7 @@ module OpenstudioStandards
187
187
  def self.model_get_exterior_lighting_properties(lighting_generation: 'default',
188
188
  lighting_zone: 3)
189
189
  # load typical exterior lighting data
190
- data = JSON.parse(File.read("#{__dir__}/data/typical_exterior_lighting.json"))
190
+ data = JSON.parse(File.read("#{File.dirname(__FILE__)}/data/typical_exterior_lighting.json"))
191
191
  exterior_lighting_properties = data['exterior_lighting'].select { |hash| (hash['lighting_generation'] == lighting_generation) && (hash['lighting_zone'] == lighting_zone) }[0]
192
192
 
193
193
  # make sure lighting properties were found
@@ -1,4 +1,4 @@
1
- space_type,building_type,exhaust_per_area
1
+ space_type,building_type,exhaust_per_area
2
2
  Kitchen,FullServiceRestaurant,0.7
3
3
  Kitchen,Hospital,0.7
4
4
  Kitchen,LargeHotel,0.7
@@ -1,4 +1,4 @@
1
- building_type,climate_zone,air_barrier,hvac_status,a,b,d
1
+ building_type,climate_zone,air_barrier,hvac_status,a,b,d
2
2
  HighriseApartment,1,no,on,0.073582572,0.011714788,0.024808851
3
3
  HighriseApartment,1,no,off,,,
4
4
  HighriseApartment,2,no,on,0.077379506,0.013441623,0.016703738
@@ -239,7 +239,7 @@ module OpenstudioStandards
239
239
 
240
240
  # load NIST infiltration correlations file and convert to hash table
241
241
  nist_infiltration_correlations_json = "#{File.dirname(__FILE__)}/data/NISTInfiltrationCorrelations.json"
242
- unless File.exist?(nist_infiltration_correlations_json)
242
+ unless File.file?(nist_infiltration_correlations_json)
243
243
  OpenStudio.logFree(OpenStudio::Error, 'openstudio.standards.Infiltration.nist_infiltration', "Unable to find file: #{nist_infiltration_correlations_json}")
244
244
  return false
245
245
  end
@@ -28,8 +28,8 @@ module OpenstudioStandards
28
28
  end
29
29
 
30
30
  # load refrigeration cases data
31
- cases_csv = "#{__dir__}/data/refrigerated_cases.csv"
32
- unless File.exist?(cases_csv)
31
+ cases_csv = "#{File.dirname(__FILE__)}/data/refrigerated_cases.csv"
32
+ unless File.file?(cases_csv)
33
33
  OpenStudio.logFree(OpenStudio::Error, 'openstudio.standards.Refrigeration', "Unable to find file: #{cases_csv}")
34
34
  return nil
35
35
  end
@@ -14,8 +14,8 @@ module OpenstudioStandards
14
14
  template: 'new',
15
15
  operation_type: 'MT')
16
16
  # load refrigeration compressor data
17
- compressors_csv = "#{__dir__}/data/refrigeration_compressors.csv"
18
- unless File.exist?(compressors_csv)
17
+ compressors_csv = "#{File.dirname(__FILE__)}/data/refrigeration_compressors.csv"
18
+ unless File.file?(compressors_csv)
19
19
  OpenStudio.logFree(OpenStudio::Error, 'openstudio.standards.Refrigeration', "Unable to find file: #{compressors_csv}")
20
20
  return nil
21
21
  end
@@ -101,8 +101,8 @@ module OpenstudioStandards
101
101
  # @return [Hash] Hash of refrigeration case lengths and walkin area
102
102
  def self.typical_refrigeration_equipment_list(model)
103
103
  # load refrigeration cases data
104
- cases_csv = "#{__dir__}/data/typical_refrigerated_cases.csv"
105
- unless File.exist?(cases_csv)
104
+ cases_csv = "#{File.dirname(__FILE__)}/data/typical_refrigerated_cases.csv"
105
+ unless File.file?(cases_csv)
106
106
  OpenStudio.logFree(OpenStudio::Error, 'openstudio.standards.Refrigeration', "Unable to find file: #{cases_csv}")
107
107
  return false
108
108
  end
@@ -110,8 +110,8 @@ module OpenstudioStandards
110
110
  cases_hsh = cases_tbl.map(&:to_hash)
111
111
 
112
112
  # load refrigeration walkin data
113
- walkins_csv = "#{__dir__}/data/typical_refrigerated_walkins.csv"
114
- unless File.exist?(walkins_csv)
113
+ walkins_csv = "#{File.dirname(__FILE__)}/data/typical_refrigerated_walkins.csv"
114
+ unless File.file?(walkins_csv)
115
115
  OpenStudio.logFree(OpenStudio::Error, 'openstudio.standards.Refrigeration', "Unable to find file: #{walkins_csv}")
116
116
  return false
117
117
  end
@@ -28,8 +28,8 @@ module OpenstudioStandards
28
28
  end
29
29
 
30
30
  # load refrigeration walkin data
31
- walkins_csv = "#{__dir__}/data/refrigerated_walkins.csv"
32
- unless File.exist?(walkins_csv)
31
+ walkins_csv = "#{File.dirname(__FILE__)}/data/refrigerated_walkins.csv"
32
+ unless File.file?(walkins_csv)
33
33
  OpenStudio.logFree(OpenStudio::Error, 'openstudio.standards.Refrigeration', "Unable to find file: #{walkins_csv}")
34
34
  return nil
35
35
  end
@@ -1,4 +1,4 @@
1
- curve_name,template,operation_type,curve_type,coefficient1,coefficient2,coefficient3,coefficient4,coefficient5,coefficient6,coefficient7,coefficient8,coefficient9,coefficient10,min_val_x,max_val_x,min_val_y,max_val_y
1
+ curve_name,template,operation_type,curve_type,coefficient1,coefficient2,coefficient3,coefficient4,coefficient5,coefficient6,coefficient7,coefficient8,coefficient9,coefficient10,min_val_x,max_val_x,min_val_y,max_val_y
2
2
  Old_Low_Temp_Comp_Pwr_Curve,old,LT,Power,29669.27106,1027.632052,18.10662623,-442.1997136,11.13352877,-20.38045192,0.139980653,-0.058866918,-0.218451538,0.203858467,-40,-17.8,4.4,54.4
3
3
  Old_Med_Temp_Comp_Pwr_Curve,old,MT,Power,7438.922294,-269.5975647,-9.856104461,553.5732602,-3.385889614,14.86578782,-0.100796292,0.009822793,0.097362356,-0.039675217,-23.3,7.2,10,60
4
4
  New_Low_Temp_Comp_Pwr_Curve,new,LT,Power,170751.8339,6102.903702,78.2619862,-2959.432648,19.78765887,-90.95810147,0.435964768,-0.041157653,-0.60884596,0.459133262,-40,-17.8,4.4,54.4
@@ -1,4 +1,4 @@
1
- building_type,space_type,case_type,length_ft,reference_space_type_area_ft2
1
+ building_type,space_type,case_type,length_ft,reference_space_type_area_ft2
2
2
  SuperMarket,Sales,Coffin - Frozen Food,80,27500
3
3
  SuperMarket,Sales,Coffin - Ice Cream,20,27500
4
4
  SuperMarket,Sales,Reach-in - Ice Cream,187,27500
@@ -1,4 +1,4 @@
1
- building_type,space_type,walkin_name,walkin_type,size_ft2,reference_space_type_area_ft2,notes
1
+ building_type,space_type,walkin_name,walkin_type,size_ft2,reference_space_type_area_ft2,notes
2
2
  PrimarySchool,Kitchen,Walk-in Cooler,Walk-in Cooler,120,1800,
3
3
  PrimarySchool,Kitchen,Walk-in Freezer,Walk-in Freezer,120,1800,
4
4
  SecondarySchool,Kitchen,Walk-in Cooler,Walk-in Cooler,240,2325,
@@ -12,8 +12,8 @@ module OpenstudioStandards
12
12
  # @return [OpenStudio::Model::ThermalZone] returns a thermal zone if found, nil if not.
13
13
  def self.refrigeration_case_zone(model)
14
14
  # load refrigeration cases data
15
- cases_csv = "#{__dir__}/data/typical_refrigerated_cases.csv"
16
- unless File.exist?(cases_csv)
15
+ cases_csv = "#{File.dirname(__FILE__)}/data/typical_refrigerated_cases.csv"
16
+ unless File.file?(cases_csv)
17
17
  OpenStudio.logFree(OpenStudio::Error, 'openstudio.standards.Refrigeration', "Unable to find file: #{cases_csv}")
18
18
  return nil
19
19
  end
@@ -73,8 +73,8 @@ module OpenstudioStandards
73
73
  # @return [OpenStudio::Model::ThermalZone] returns a thermal zone if found, nil if not.
74
74
  def self.refrigeration_walkin_zone(model)
75
75
  # load refrigeration walkin data
76
- walkins_csv = "#{__dir__}/data/typical_refrigerated_walkins.csv"
77
- unless File.exist?(walkins_csv)
76
+ walkins_csv = "#{File.dirname(__FILE__)}/data/typical_refrigerated_walkins.csv"
77
+ unless File.file?(walkins_csv)
78
78
  OpenStudio.logFree(OpenStudio::Error, 'openstudio.standards.Refrigeration', "Unable to find file: #{walkins_csv}")
79
79
  return nil
80
80
  end
@@ -1,4 +1,4 @@
1
- space_type,building_type,equipment_name,peak_flow_rate,peak_flow_rate_per_area,loop_type,temperature,flow_rate_schedule,sensible_fraction,latent_fraction
1
+ space_type,building_type,equipment_name,peak_flow_rate,peak_flow_rate_per_area,loop_type,temperature,flow_rate_schedule,sensible_fraction,latent_fraction
2
2
  Break Room,Courthouse,,,0.02,Shared,140,Courthouse BLDG_SWH_SCH,0.2,0.05
3
3
  Restroom,Courthouse,,,0.02,Shared,140,Courthouse BLDG_SWH_SCH,0.2,0.05
4
4
  Kitchen,FullServiceRestaurant,Dishwasher Booster,,0.054,Shared,180,RestaurantSitDown BLDG_SWH_SCH,0.2,0.05
@@ -13,5 +13,5 @@ module OpenstudioStandards
13
13
  end
14
14
  return 'git-not-found-on-this-system'
15
15
  end
16
- VERSION = '0.8.1'.freeze
16
+ VERSION = '0.8.2'.freeze
17
17
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openstudio-standards
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Adams
@@ -39,7 +39,7 @@ authors:
39
39
  autorequire:
40
40
  bindir: bin
41
41
  cert_chain: []
42
- date: 2025-06-14 00:00:00.000000000 Z
42
+ date: 2025-06-18 00:00:00.000000000 Z
43
43
  dependencies:
44
44
  - !ruby/object:Gem::Dependency
45
45
  name: bundler
@@ -598,11 +598,9 @@ files:
598
598
  - data/geometry/DOERefWarehouse.json
599
599
  - data/geometry/DOERefWarehouse.osm
600
600
  - data/inventory/thermal_bridging.csv
601
- - data/standards/OpenStudio_Standards-ashrae_90_1-ALL-comstock(space_types).xlsx
602
601
  - data/standards/exclude_list.csv
603
602
  - data/standards/export_OpenStudio_libraries.rb
604
603
  - data/standards/manage_OpenStudio_Standards.rb
605
- - data/standards/openstudio_standards_duplicates_log.csv
606
604
  - data/standards/templates_to_climate_zones.json
607
605
  - data/standards/test_performance_expected_dd_results.csv
608
606
  - data/weather/ARCATA_725945_CZ2010.ddy
@@ -2452,7 +2450,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
2452
2450
  - !ruby/object:Gem::Version
2453
2451
  version: 1.3.6
2454
2452
  requirements: []
2455
- rubygems_version: 3.5.17
2453
+ rubygems_version: 3.4.10
2456
2454
  signing_key:
2457
2455
  specification_version: 4
2458
2456
  summary: Creates OpenStudio models of typical buildings, creates standard baselines