honeybee-openstudio 2.31.11 → 2.31.12
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/model.rb +1 -0
- data/lib/measures/from_honeybee_model_to_gbxml/measure.rb +1 -0
- data/lib/to_openstudio/model.rb +30 -11
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee8eec97c23c887d5b2dd7b58552f50263b297d8e742026ed6d1fc570ba62877
|
4
|
+
data.tar.gz: 0d308433a4b52972492f5ad5681fd255244b029481eee40eafa219f9c1cf4402
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0cef0873f51d1f92b7c0051721552a0439581e266c2b2c11a7908effea697957136c1860a04d80e8d7a314d41757fae1ca490a20bfcc83f63b22b75c3af0efc
|
7
|
+
data.tar.gz: 201801ee7a4ce00794c9358e879f5fdc0116e97d33181587e9f3e1bb1940d336ace21ef5253731e4caecf611f749a055aafdbb4433803cfdf3d9505252b8ff72
|
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.31.
|
7
|
+
spec.version = '2.31.12'
|
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
|
|
data/lib/honeybee/model.rb
CHANGED
@@ -87,6 +87,7 @@ class FromHoneybeeModelToGbxml < OpenStudio::Measure::ModelMeasure
|
|
87
87
|
end
|
88
88
|
honeybee_model = Honeybee::Model.read_from_disk(model_json)
|
89
89
|
$simple_window_cons = true
|
90
|
+
$orphan_groups = false
|
90
91
|
STDOUT.flush
|
91
92
|
os_model = honeybee_model.to_openstudio_model(model)
|
92
93
|
STDOUT.flush
|
data/lib/to_openstudio/model.rb
CHANGED
@@ -596,45 +596,64 @@ module Honeybee
|
|
596
596
|
|
597
597
|
def create_orphaned_shades
|
598
598
|
if @hash[:orphaned_shades]
|
599
|
-
|
600
|
-
|
599
|
+
if $orphan_groups
|
600
|
+
shading_surface_group = OpenStudio::Model::ShadingSurfaceGroup.new(@openstudio_model)
|
601
|
+
shading_surface_group.setShadingSurfaceType('Building')
|
602
|
+
end
|
601
603
|
@hash[:orphaned_shades].each do |shade|
|
602
604
|
shade_object = Shade.new(shade)
|
603
605
|
openstudio_shade = shade_object.to_openstudio(@openstudio_model)
|
604
|
-
|
606
|
+
if $orphan_groups
|
607
|
+
openstudio_shade.setShadingSurfaceGroup(shading_surface_group)
|
608
|
+
end
|
605
609
|
end
|
606
610
|
end
|
607
611
|
end
|
608
612
|
|
609
613
|
def create_orphaned_faces
|
610
614
|
if @hash[:orphaned_faces]
|
611
|
-
|
612
|
-
|
615
|
+
if $orphan_groups
|
616
|
+
shading_surface_group = OpenStudio::Model::ShadingSurfaceGroup.new(@openstudio_model)
|
617
|
+
shading_surface_group.setShadingSurfaceType('Building')
|
618
|
+
end
|
613
619
|
@hash[:orphaned_faces].each do |face|
|
614
620
|
face_object = Face.new(face)
|
615
621
|
openstudio_shade = face_object.to_openstudio_shade(@openstudio_model, shading_surface_group)
|
622
|
+
if $orphan_groups
|
623
|
+
openstudio_shade.setShadingSurfaceGroup(shading_surface_group)
|
624
|
+
end
|
616
625
|
end
|
617
626
|
end
|
618
627
|
end
|
619
628
|
|
620
629
|
def create_orphaned_apertures
|
621
630
|
if @hash[:orphaned_apertures]
|
622
|
-
|
623
|
-
|
624
|
-
|
631
|
+
if $orphan_groups
|
632
|
+
shading_surface_group = OpenStudio::Model::ShadingSurfaceGroup.new(@openstudio_model)
|
633
|
+
shading_surface_group.setShadingSurfaceType('Building')
|
634
|
+
end
|
635
|
+
@hash[:orphaned_apertures].each do |ap|
|
625
636
|
ap_object = Aperture.new(ap)
|
626
637
|
openstudio_shade = ap_object.to_openstudio_shade(@openstudio_model, shading_surface_group)
|
638
|
+
if $orphan_groups
|
639
|
+
openstudio_shade.setShadingSurfaceGroup(shading_surface_group)
|
640
|
+
end
|
627
641
|
end
|
628
642
|
end
|
629
643
|
end
|
630
644
|
|
631
645
|
def create_orphaned_doors
|
632
646
|
if @hash[:orphaned_doors]
|
633
|
-
|
634
|
-
|
635
|
-
|
647
|
+
if $orphan_groups
|
648
|
+
shading_surface_group = OpenStudio::Model::ShadingSurfaceGroup.new(@openstudio_model)
|
649
|
+
shading_surface_group.setShadingSurfaceType('Building')
|
650
|
+
end
|
651
|
+
@hash[:orphaned_doors].each do |dr|
|
636
652
|
dr_object = Door.new(dr)
|
637
653
|
openstudio_shade = dr_object.to_openstudio_shade(@openstudio_model, shading_surface_group)
|
654
|
+
if $orphan_groups
|
655
|
+
openstudio_shade.setShadingSurfaceGroup(shading_surface_group)
|
656
|
+
end
|
638
657
|
end
|
639
658
|
end
|
640
659
|
end
|
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.31.
|
4
|
+
version: 2.31.12
|
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: 2022-07-
|
14
|
+
date: 2022-07-25 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: bundler
|