honeybee-openstudio 2.11.0 → 2.11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/honeybee-openstudio.gemspec +1 -1
- data/lib/honeybee/_defaults/model.json +163 -163
- data/lib/honeybee/_defaults/simulation-parameter.json +1 -1
- data/lib/to_openstudio/hvac/Model.hvac.rb +124 -166
- data/lib/to_openstudio/hvac/template.rb +10 -2
- metadata +2 -2
@@ -35,6 +35,14 @@ require 'to_openstudio/model_object'
|
|
35
35
|
|
36
36
|
module Honeybee
|
37
37
|
class TemplateHVAC
|
38
|
+
@@vintage_mapper = {
|
39
|
+
DOE_Ref_Pre_1980: 'DOE Ref Pre-1980',
|
40
|
+
DOE_Ref_1980_2004: 'DOE Ref 1980-2004',
|
41
|
+
ASHRAE_2004: '90.1-2004',
|
42
|
+
ASHRAE_2007: '90.1-2007',
|
43
|
+
ASHRAE_2010: '90.1-2010',
|
44
|
+
ASHRAE_2013: '90.1-2013'
|
45
|
+
}
|
38
46
|
|
39
47
|
def to_openstudio(openstudio_model, room_ids)
|
40
48
|
|
@@ -47,9 +55,9 @@ module Honeybee
|
|
47
55
|
|
48
56
|
# make the standard applier
|
49
57
|
if @hash[:vintage]
|
50
|
-
standard = Standard.build(@hash[:vintage])
|
58
|
+
standard = Standard.build(@@vintage_mapper[@hash[:vintage].to_sym])
|
51
59
|
else
|
52
|
-
standard = Standard.build(hvac_defaults[:vintage][:default])
|
60
|
+
standard = Standard.build(@@vintage_mapper[hvac_defaults[:vintage][:default].to_sym])
|
53
61
|
end
|
54
62
|
|
55
63
|
# get the default equipment type
|
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.11.
|
4
|
+
version: 2.11.1
|
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: 2021-01-
|
14
|
+
date: 2021-01-08 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: bundler
|