openstudio-standards 0.2.12.rc4 → 0.2.12.rc5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/data/standards/OpenStudio_Standards-ashrae_90_1(space_types).xlsx +0 -0
- data/data/standards/OpenStudio_Standards-ashrae_90_1.xlsx +0 -0
- data/data/standards/test_performance_expected_dd_results.csv +950 -950
- data/lib/openstudio-standards.rb +8 -1
- data/lib/openstudio-standards/btap/btap.model.rb +1 -1
- data/lib/openstudio-standards/btap/economics.rb +14 -11
- data/lib/openstudio-standards/btap/envelope.rb +185 -257
- data/lib/openstudio-standards/btap/fileio.rb +1 -0
- data/lib/openstudio-standards/btap/geometry.rb +21 -1
- data/lib/openstudio-standards/btap/measures.rb +12 -11
- data/lib/openstudio-standards/btap/schedules.rb +3 -12
- data/lib/openstudio-standards/hvac_sizing/Siz.AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed.rb +178 -0
- data/lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingDXMultiSpeed.rb +8 -8
- data/lib/openstudio-standards/hvac_sizing/Siz.Model.rb +3 -0
- data/lib/openstudio-standards/prototypes/common/objects/Prototype.hvac_systems.rb +3 -3
- data/lib/openstudio-standards/standards/Standards.AirLoopHVAC.rb +25 -23
- data/lib/openstudio-standards/standards/Standards.CoilCoolingDXMultiSpeed.rb +91 -0
- data/lib/openstudio-standards/standards/Standards.CoilDX.rb +20 -2
- data/lib/openstudio-standards/standards/Standards.CoilHeatingGasMultiStage.rb +39 -0
- data/lib/openstudio-standards/standards/Standards.Model.rb +29 -0
- data/lib/openstudio-standards/standards/Standards.ThermalZone.rb +37 -4
- data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2004/data/ashrae_90_1_2004.unitary_acs.json +15 -15
- data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2007/data/ashrae_90_1_2007.unitary_acs.json +15 -15
- data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2010/data/ashrae_90_1_2010.unitary_acs.json +5 -5
- data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2013/data/ashrae_90_1_2013.unitary_acs.json +15 -15
- data/lib/openstudio-standards/standards/ashrae_90_1/doe_ref_1980_2004/data/doe_ref_1980_2004.spc_typ.json +5963 -2723
- data/lib/openstudio-standards/standards/ashrae_90_1/doe_ref_pre_1980/data/doe_ref_pre_1980.spc_typ.json +5917 -2697
- data/lib/openstudio-standards/standards/ashrae_90_1/nrel_zne_ready_2017/data/nrel_zne_ready_2017.spc_typ.json +2011 -1112
- data/lib/openstudio-standards/standards/ashrae_90_1/ze_aedg_multifamily/data/ze_aedg_multifamily.spc_typ.json +1946 -1106
- data/lib/openstudio-standards/standards/necb/BTAP1980TO2010/btap_1980to2010.rb +2 -18
- data/lib/openstudio-standards/standards/necb/BTAP1980TO2010/data/space_types.json +1677 -1005
- data/lib/openstudio-standards/standards/necb/BTAPPRE1980/btap_pre1980.rb +64 -13
- data/lib/openstudio-standards/standards/necb/BTAPPRE1980/building_envelope.rb +31 -19
- data/lib/openstudio-standards/standards/necb/BTAPPRE1980/data/curves.json +75 -0
- data/lib/openstudio-standards/standards/necb/BTAPPRE1980/data/heat_pumps.json +16 -16
- data/lib/openstudio-standards/standards/necb/BTAPPRE1980/data/space_types.json +1677 -1005
- data/lib/openstudio-standards/standards/necb/ECMS/data/boiler_set.json +29 -0
- data/lib/openstudio-standards/standards/necb/ECMS/data/curves.json +913 -0
- data/lib/openstudio-standards/standards/necb/ECMS/data/equip_eff_lim.json +52 -0
- data/lib/openstudio-standards/standards/necb/ECMS/data/erv.json +105 -0
- data/lib/openstudio-standards/standards/necb/ECMS/data/furnace_set.json +23 -0
- data/lib/openstudio-standards/standards/necb/ECMS/data/heat_pumps.json +803 -0
- data/lib/openstudio-standards/standards/necb/ECMS/data/heat_pumps_heating.json +787 -0
- data/lib/openstudio-standards/standards/necb/ECMS/data/shw_set.json +29 -0
- data/lib/openstudio-standards/standards/necb/ECMS/ecms.rb +87 -0
- data/lib/openstudio-standards/standards/necb/ECMS/erv.rb +22 -0
- data/lib/openstudio-standards/standards/necb/ECMS/hvac_systems.rb +1593 -0
- data/lib/openstudio-standards/standards/necb/NECB2011/autozone.rb +68 -33
- data/lib/openstudio-standards/standards/necb/NECB2011/beps_compliance_path.rb +24 -13
- data/lib/openstudio-standards/standards/necb/NECB2011/building_envelope.rb +104 -99
- data/lib/openstudio-standards/standards/necb/NECB2011/data/constants.json +24 -24
- data/lib/openstudio-standards/standards/necb/NECB2011/data/curves.json +50 -0
- data/lib/openstudio-standards/standards/necb/NECB2011/data/erv.json +31 -0
- data/lib/openstudio-standards/standards/necb/NECB2011/data/led_lighting_data.json +2028 -0
- data/lib/openstudio-standards/standards/necb/NECB2011/data/space_types.json +1745 -1297
- data/lib/openstudio-standards/standards/necb/NECB2011/daylighting_control.md +70 -0
- data/lib/openstudio-standards/standards/necb/NECB2011/demand_controlled_ventilation.md +46 -0
- data/lib/openstudio-standards/standards/necb/NECB2011/hvac_system_1_multi_speed.rb +69 -107
- data/lib/openstudio-standards/standards/necb/NECB2011/hvac_system_1_single_speed.rb +24 -1
- data/lib/openstudio-standards/standards/necb/NECB2011/hvac_system_3_and_8_multi_speed.rb +139 -141
- data/lib/openstudio-standards/standards/necb/NECB2011/hvac_system_3_and_8_single_speed.rb +24 -0
- data/lib/openstudio-standards/standards/necb/NECB2011/hvac_systems.rb +344 -234
- data/lib/openstudio-standards/standards/necb/NECB2011/led_lighting.md +51 -0
- data/lib/openstudio-standards/standards/necb/NECB2011/lighting.rb +57 -9
- data/lib/openstudio-standards/standards/necb/NECB2011/necb_2011.rb +1060 -34
- data/lib/openstudio-standards/standards/necb/NECB2011/qaqc/necb_qaqc.rb +9 -1
- data/lib/openstudio-standards/standards/necb/NECB2011/service_water_heating.rb +1 -1
- data/lib/openstudio-standards/standards/necb/NECB2015/data/led_lighting_data.json +2883 -0
- data/lib/openstudio-standards/standards/necb/NECB2015/data/space_types.json +2554 -1916
- data/lib/openstudio-standards/standards/necb/NECB2015/necb_2015.rb +32 -1
- data/lib/openstudio-standards/standards/necb/NECB2017/data/led_lighting_data.json +2883 -0
- data/lib/openstudio-standards/standards/necb/NECB2017/data/space_types.json +2554 -1916
- data/lib/openstudio-standards/standards/necb/NECB2017/necb_2017.rb +29 -0
- data/lib/openstudio-standards/version.rb +1 -1
- metadata +21 -2
@@ -46,4 +46,33 @@ class NECB2017 < NECB2015
|
|
46
46
|
return @standards_data
|
47
47
|
end
|
48
48
|
|
49
|
+
def set_lighting_per_area_led_lighting(space_type:, definition:, lighting_per_area_led_lighting:, lights_scale:)
|
50
|
+
|
51
|
+
# puts "#{space_type.name.to_s} - 'space_height' - #{space_height.to_s}"
|
52
|
+
#TODO: Note that 'occ_sens_lpd_frac' in this function has been removed for NECB2015 and 2017.
|
53
|
+
# ##### Since Atrium's LPD for LED lighting depends on atrium's height, the height of the atrium (if applicable) should be found.
|
54
|
+
standards_space_type = space_type.standardsSpaceType.is_initialized ? space_type.standardsSpaceType.get : nil #Sara
|
55
|
+
if standards_space_type.include? 'Atrium' # TODO: Note that since none of the archetypes has Atrium, this was tested for 'Dining'. #Atrium
|
56
|
+
puts "#{standards_space_type} - has atrium" # space_type.name.to_s
|
57
|
+
# puts space_height
|
58
|
+
if get_max_space_height_for_space_type(space_type: space_type) < 12.0
|
59
|
+
# TODO: Regarding the below equations, identify which version of ASHRAE 90.1 was used in NECB2017.
|
60
|
+
atrium_lpd_eq_smaller_12_intercept = 0
|
61
|
+
atrium_lpd_eq_smaller_12_slope = 1.06
|
62
|
+
atrium_lpd_eq_larger_12_intercept = 4.3
|
63
|
+
atrium_lpd_eq_larger_12_slope = 0.71
|
64
|
+
lighting_per_area_led_lighting_atrium = (atrium_lpd_eq_smaller_12_intercept + atrium_lpd_eq_smaller_12_slope * space_height) * 0.092903 # W/ft2
|
65
|
+
else # i.e. get_max_space_height_for_space_type >= 12.0
|
66
|
+
lighting_per_area_led_lighting_atrium = (atrium_lpd_eq_larger_12_intercept + atrium_lpd_eq_larger_12_slope * space_height) * 0.092903 # W/ft2
|
67
|
+
end
|
68
|
+
puts "#{standards_space_type} - has lighting_per_area_led_lighting_atrium - #{lighting_per_area_led_lighting_atrium}"
|
69
|
+
lighting_per_area_led_lighting = lighting_per_area_led_lighting_atrium
|
70
|
+
end
|
71
|
+
lighting_per_area_led_lighting *= lights_scale
|
72
|
+
|
73
|
+
definition.setWattsperSpaceFloorArea(OpenStudio.convert(lighting_per_area_led_lighting.to_f, 'W/ft^2', 'W/m^2').get)
|
74
|
+
|
75
|
+
OpenStudio.logFree(OpenStudio::Info, 'openstudio.standards.SpaceType', "#{space_type.name} set LPD to #{lighting_per_area_led_lighting} W/ft^2.")
|
76
|
+
end
|
77
|
+
|
49
78
|
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.2.12.
|
4
|
+
version: 0.2.12.rc5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Parker
|
@@ -22,7 +22,7 @@ authors:
|
|
22
22
|
autorequire:
|
23
23
|
bindir: bin
|
24
24
|
cert_chain: []
|
25
|
-
date: 2020-09-
|
25
|
+
date: 2020-09-30 00:00:00.000000000 Z
|
26
26
|
dependencies:
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: minitest-reporters
|
@@ -1397,6 +1397,7 @@ files:
|
|
1397
1397
|
- lib/openstudio-standards/hvac_sizing/Siz.AirLoopHVAC.rb
|
1398
1398
|
- lib/openstudio-standards/hvac_sizing/Siz.AirLoopHVACUnitaryHeatCoolVAVChngByp.rb
|
1399
1399
|
- lib/openstudio-standards/hvac_sizing/Siz.AirLoopHVACUnitaryHeatPumpAirToAir.rb
|
1400
|
+
- lib/openstudio-standards/hvac_sizing/Siz.AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed.rb
|
1400
1401
|
- lib/openstudio-standards/hvac_sizing/Siz.AirLoopHVACUnitarySystem.rb
|
1401
1402
|
- lib/openstudio-standards/hvac_sizing/Siz.AirTermSnglDuctConstVolCooledBeam.rb
|
1402
1403
|
- lib/openstudio-standards/hvac_sizing/Siz.AirTermSnglDuctConstVolFourPipeInduction.rb
|
@@ -2643,6 +2644,17 @@ files:
|
|
2643
2644
|
- lib/openstudio-standards/standards/necb/BTAPPRE1980/hvac_system_4.rb
|
2644
2645
|
- lib/openstudio-standards/standards/necb/BTAPPRE1980/hvac_system_6.rb
|
2645
2646
|
- lib/openstudio-standards/standards/necb/BTAPPRE1980/hvac_systems.rb
|
2647
|
+
- lib/openstudio-standards/standards/necb/ECMS/data/boiler_set.json
|
2648
|
+
- lib/openstudio-standards/standards/necb/ECMS/data/curves.json
|
2649
|
+
- lib/openstudio-standards/standards/necb/ECMS/data/equip_eff_lim.json
|
2650
|
+
- lib/openstudio-standards/standards/necb/ECMS/data/erv.json
|
2651
|
+
- lib/openstudio-standards/standards/necb/ECMS/data/furnace_set.json
|
2652
|
+
- lib/openstudio-standards/standards/necb/ECMS/data/heat_pumps.json
|
2653
|
+
- lib/openstudio-standards/standards/necb/ECMS/data/heat_pumps_heating.json
|
2654
|
+
- lib/openstudio-standards/standards/necb/ECMS/data/shw_set.json
|
2655
|
+
- lib/openstudio-standards/standards/necb/ECMS/ecms.rb
|
2656
|
+
- lib/openstudio-standards/standards/necb/ECMS/erv.rb
|
2657
|
+
- lib/openstudio-standards/standards/necb/ECMS/hvac_systems.rb
|
2646
2658
|
- lib/openstudio-standards/standards/necb/NECB2011/autozone.rb
|
2647
2659
|
- lib/openstudio-standards/standards/necb/NECB2011/beps_compliance_path.rb
|
2648
2660
|
- lib/openstudio-standards/standards/necb/NECB2011/building_envelope.rb
|
@@ -2651,6 +2663,7 @@ files:
|
|
2651
2663
|
- lib/openstudio-standards/standards/necb/NECB2011/data/climate_zone_sets.json
|
2652
2664
|
- lib/openstudio-standards/standards/necb/NECB2011/data/constants.json
|
2653
2665
|
- lib/openstudio-standards/standards/necb/NECB2011/data/curves.json
|
2666
|
+
- lib/openstudio-standards/standards/necb/NECB2011/data/erv.json
|
2654
2667
|
- lib/openstudio-standards/standards/necb/NECB2011/data/formulas.json
|
2655
2668
|
- lib/openstudio-standards/standards/necb/NECB2011/data/fuel_type_sets.json
|
2656
2669
|
- lib/openstudio-standards/standards/necb/NECB2011/data/furnaces.json
|
@@ -2674,6 +2687,7 @@ files:
|
|
2674
2687
|
- lib/openstudio-standards/standards/necb/NECB2011/data/heat_pumps.json
|
2675
2688
|
- lib/openstudio-standards/standards/necb/NECB2011/data/heat_pumps_heating.json
|
2676
2689
|
- lib/openstudio-standards/standards/necb/NECB2011/data/heat_rejection.json
|
2690
|
+
- lib/openstudio-standards/standards/necb/NECB2011/data/led_lighting_data.json
|
2677
2691
|
- lib/openstudio-standards/standards/necb/NECB2011/data/materials.json
|
2678
2692
|
- lib/openstudio-standards/standards/necb/NECB2011/data/motors.json
|
2679
2693
|
- lib/openstudio-standards/standards/necb/NECB2011/data/necb_2011_spacetype_info.csv
|
@@ -2686,6 +2700,8 @@ files:
|
|
2686
2700
|
- lib/openstudio-standards/standards/necb/NECB2011/data/standards_data.rb
|
2687
2701
|
- lib/openstudio-standards/standards/necb/NECB2011/data/surface_thermal_transmittance.json
|
2688
2702
|
- lib/openstudio-standards/standards/necb/NECB2011/data/unitary_acs.json
|
2703
|
+
- lib/openstudio-standards/standards/necb/NECB2011/daylighting_control.md
|
2704
|
+
- lib/openstudio-standards/standards/necb/NECB2011/demand_controlled_ventilation.md
|
2689
2705
|
- lib/openstudio-standards/standards/necb/NECB2011/electrical_power_systems_and_motors.rb
|
2690
2706
|
- lib/openstudio-standards/standards/necb/NECB2011/hvac_system_1_multi_speed.rb
|
2691
2707
|
- lib/openstudio-standards/standards/necb/NECB2011/hvac_system_1_single_speed.rb
|
@@ -2695,6 +2711,7 @@ files:
|
|
2695
2711
|
- lib/openstudio-standards/standards/necb/NECB2011/hvac_system_4.rb
|
2696
2712
|
- lib/openstudio-standards/standards/necb/NECB2011/hvac_system_6.rb
|
2697
2713
|
- lib/openstudio-standards/standards/necb/NECB2011/hvac_systems.rb
|
2714
|
+
- lib/openstudio-standards/standards/necb/NECB2011/led_lighting.md
|
2698
2715
|
- lib/openstudio-standards/standards/necb/NECB2011/lighting.rb
|
2699
2716
|
- lib/openstudio-standards/standards/necb/NECB2011/necb_2011.rb
|
2700
2717
|
- lib/openstudio-standards/standards/necb/NECB2011/qaqc/necb_qaqc.rb
|
@@ -2716,6 +2733,7 @@ files:
|
|
2716
2733
|
- lib/openstudio-standards/standards/necb/NECB2015/data/furnaces.json
|
2717
2734
|
- lib/openstudio-standards/standards/necb/NECB2015/data/heat_pumps.json
|
2718
2735
|
- lib/openstudio-standards/standards/necb/NECB2015/data/heat_pumps_heating.json
|
2736
|
+
- lib/openstudio-standards/standards/necb/NECB2015/data/led_lighting_data.json
|
2719
2737
|
- lib/openstudio-standards/standards/necb/NECB2015/data/max_pump_power.json
|
2720
2738
|
- lib/openstudio-standards/standards/necb/NECB2015/data/schedules.json
|
2721
2739
|
- lib/openstudio-standards/standards/necb/NECB2015/data/space_types.json
|
@@ -2728,6 +2746,7 @@ files:
|
|
2728
2746
|
- lib/openstudio-standards/standards/necb/NECB2015/qaqc/qaqc_data/space_compliance_2015.json
|
2729
2747
|
- lib/openstudio-standards/standards/necb/NECB2017/data/constants.json
|
2730
2748
|
- lib/openstudio-standards/standards/necb/NECB2017/data/formulas.json
|
2749
|
+
- lib/openstudio-standards/standards/necb/NECB2017/data/led_lighting_data.json
|
2731
2750
|
- lib/openstudio-standards/standards/necb/NECB2017/data/space_types.json
|
2732
2751
|
- lib/openstudio-standards/standards/necb/NECB2017/data/surface_thermal_transmittance.json
|
2733
2752
|
- lib/openstudio-standards/standards/necb/NECB2017/hvac_systems.rb
|