honeybee-openstudio 2.38.4 → 2.38.6
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b77ef2ddbd689cf19abe8c48c85b61eb1fb3b010b4fc68813dc9331a5c906c8d
|
4
|
+
data.tar.gz: f7d2cefe7765c6a59a580cec468c2f3271e1708b706414dab9d0d03153ef2769
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94ece34b71cca0e294656b6e68f7099e500bc79c6a8c3d0a880990d2301a119fd6b9c18757d15122e7aa78998fe96913c330c21e677bfe388e2aa9cae35e06c5
|
7
|
+
data.tar.gz: 9334ccee3a16ebf15fc3163c416916db9a50039c416c568fe2710dd9de7045e9e691f5445cabcdc4f42fceeda3c9b85939ec69509c501d6c0c27c13371c9a071
|
data/honeybee-openstudio.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = 'honeybee-openstudio'
|
7
|
-
spec.version = '2.38.
|
7
|
+
spec.version = '2.38.6'
|
8
8
|
spec.authors = ['Tanushree Charan', 'Dan Macumber', 'Chris Mackey', 'Mostapha Sadeghipour Roudsari']
|
9
9
|
spec.email = ['tanushree.charan@nrel.gov', 'chris@ladybug.tools']
|
10
10
|
|
@@ -60,7 +60,7 @@ module Honeybee
|
|
60
60
|
end
|
61
61
|
|
62
62
|
def self.humidity_type_from_design_day(design_day)
|
63
|
-
humidity_type = design_day.
|
63
|
+
humidity_type = design_day.humidityConditionType
|
64
64
|
allowed_types = ['WetBulb', 'Dewpoint', 'HumidityRatio', 'Enthalpy']
|
65
65
|
if !allowed_types.any?{ |s| s.casecmp(humidity_type)==0 }
|
66
66
|
raise "'#{humidity_type}' is not an allowed humidity type"
|
@@ -72,7 +72,13 @@ module Honeybee
|
|
72
72
|
hash = {}
|
73
73
|
hash[:type] = 'HumidityCondition'
|
74
74
|
hash[:humidity_type] = humidity_type_from_design_day(design_day)
|
75
|
-
hash[:
|
75
|
+
if hash[:humidity_type] == 'HumidityRatio'
|
76
|
+
hash[:humidity_value] = design_day.humidityRatioAtMaximumDryBulb
|
77
|
+
elsif hash[:humidity_type] == 'Enthalpy'
|
78
|
+
hash[:humidity_value] = design_day.enthalpyAtMaximumDryBulb
|
79
|
+
else
|
80
|
+
hash[:humidity_value] = design_day.wetBulbOrDewPointAtMaximumDryBulb
|
81
|
+
end
|
76
82
|
hash[:barometric_pressure] = design_day.barometricPressure
|
77
83
|
hash[:rain] = design_day.rainIndicator
|
78
84
|
hash[:snow_on_ground] = design_day.snowIndicator
|
@@ -53,8 +53,15 @@ module Honeybee
|
|
53
53
|
os_des_day.setDailyDryBulbTemperatureRange(@hash[:dry_bulb_condition][:dry_bulb_range])
|
54
54
|
|
55
55
|
# set the HumidityCondition properties
|
56
|
-
|
57
|
-
os_des_day.
|
56
|
+
humid_type = @hash[:humidity_condition][:humidity_type]
|
57
|
+
os_des_day.setHumidityConditionType(@hash[:humidity_condition][:humidity_type])
|
58
|
+
if humid_type == 'HumidityRatio'
|
59
|
+
os_des_day.setHumidityRatioAtMaximumDryBulb(@hash[:humidity_condition][:humidity_value])
|
60
|
+
elsif humid_type == 'Enthalpy'
|
61
|
+
os_des_day.setEnthalpyAtMaximumDryBulb(@hash[:humidity_condition][:humidity_value])
|
62
|
+
else
|
63
|
+
os_des_day.setWetBulbOrDewPointAtMaximumDryBulb(@hash[:humidity_condition][:humidity_value])
|
64
|
+
end
|
58
65
|
if @hash[:humidity_condition][:barometric_pressure]
|
59
66
|
os_des_day.setBarometricPressure(@hash[:humidity_condition][:barometric_pressure])
|
60
67
|
end
|
@@ -86,8 +93,11 @@ module Honeybee
|
|
86
93
|
|
87
94
|
# ASHRAETau SkyCondition
|
88
95
|
if @hash[:sky_condition][:type] == "ASHRAETau"
|
89
|
-
os_des_day.
|
90
|
-
os_des_day.
|
96
|
+
os_des_day.setAshraeClearSkyOpticalDepthForBeamIrradiance(@hash[:sky_condition][:tau_b])
|
97
|
+
os_des_day.setAshraeClearSkyOpticalDepthForDiffuseIrradiance(@hash[:sky_condition][:tau_d])
|
98
|
+
if @hash[:sky_condition][:use_2017] == true
|
99
|
+
os_des_day.setSolarModelIndicator("ASHRAETau2017")
|
100
|
+
end
|
91
101
|
end
|
92
102
|
|
93
103
|
os_des_day
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: honeybee-openstudio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.38.
|
4
|
+
version: 2.38.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tanushree Charan
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: exe
|
13
13
|
cert_chain: []
|
14
|
-
date: 2024-03-
|
14
|
+
date: 2024-03-12 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: json_pure
|