honeybee-openstudio 2.31.11 → 2.31.14

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: '0891adec59cdacb1d4087ae318d65b3e2c8040001fa6d69004fe6c411f0f8358'
4
- data.tar.gz: 8ecb557c5ee160e73b3d2976ebf823848e19d5b89a8213444f597427d72601b9
3
+ metadata.gz: fa0a8be909247d7b184dfa868ccd788e8a3ec63c4ae72c83c4645088457d7869
4
+ data.tar.gz: f047d5e5ede9ad6ef62979970fe26351adf22b7aadeb3fc189bd7ac2535ef135
5
5
  SHA512:
6
- metadata.gz: 784f5baee3c3cbbfbeb3062a7da3d5441255638876a78a54ea5fbf125415360f37d66f940a0af79a24dc439780c2cd3af02bf8149c9fe6f8b75ec18be271b085
7
- data.tar.gz: af83be8893b0c5ad133b8b136c40bdd019ea86f93782189ea93de3a45e4cd5797dc5071ea61537d0d5067adfdbb1bd59ffafd03ca36b92f8d26a7d68ef57a05c
6
+ metadata.gz: 22d507db51b816ac4787921b6aab068b9c0db3878ff70e6466b5a40cc3a00845c9a4b575479b833f42a7ddee90690d90b7cd5a7978509bf72889c28bd7c592ec
7
+ data.tar.gz: 3ffb6bfb6485d1c5dbb5462560787d19c8d32bc4fcbabd97870ccc6b6bde26a62d7cd4d67b8942590f164c232c1855ba7342beab73bc9e012fe01f21483cec90
@@ -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.11'
7
+ spec.version = '2.31.14'
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
 
@@ -9,7 +9,7 @@ if allow_local && File.exist?('../openstudio-common-measures-gem')
9
9
  elsif allow_local
10
10
  gem 'openstudio-common-measures', github: 'NREL/openstudio-common-measures-gem', branch: 'develop'
11
11
  else
12
- gem 'openstudio-common-measures', '~> 0.6.0'
12
+ gem 'openstudio-common-measures', '~> 0.6.1'
13
13
  end
14
14
 
15
15
  if allow_local && File.exist?('../openstudio-model-articulation-gem')
@@ -25,7 +25,7 @@ if allow_local && File.exist?('../urbanopt-geojson-gem')
25
25
  elsif allow_local
26
26
  gem 'urbanopt-geojson', github: 'URBANopt/urbanopt-geojson-gem', branch: 'develop'
27
27
  else
28
- gem 'urbanopt-geojson', '~> 0.8.0'
28
+ gem 'urbanopt-geojson', '~> 0.8.1'
29
29
  end
30
30
 
31
31
  if allow_local && File.exist?('../urbanopt-reporting-gem')
@@ -33,7 +33,7 @@ if allow_local && File.exist?('../urbanopt-reporting-gem')
33
33
  elsif allow_local
34
34
  gem 'urbanopt-reporting', github: 'URBANopt/urbanopt-reporting-gem', branch: 'develop'
35
35
  else
36
- gem 'urbanopt-reporting', '~> 0.6.0'
36
+ gem 'urbanopt-reporting', '~> 0.6.1'
37
37
  end
38
38
 
39
39
  # include the honeybee-openstudio-gem
@@ -54,6 +54,7 @@ module Honeybee
54
54
  @@standards ||= @@extension.standards
55
55
  $triangulate_sub_faces = false
56
56
  $simple_window_cons = false
57
+ $orphan_groups = true
57
58
 
58
59
  @hash = hash
59
60
  @type = @hash[:type]
@@ -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
@@ -312,10 +312,12 @@ module Honeybee
312
312
 
313
313
  # assign service hot water if it exists
314
314
  if @hash[:properties][:energy][:service_hot_water]
315
- shw_space = ServiceHotWaterAbridged.new(@hash[:properties][:energy][:service_hot_water])
316
- os_shw_space = shw_space.to_openstudio(
317
- openstudio_model, os_space, @hash[:properties][:energy][:shw])
318
- $shw_for_plant = shw_space
315
+ if @hash[:properties][:energy][:service_hot_water][:flow_per_area].to_f != 0
316
+ shw_space = ServiceHotWaterAbridged.new(@hash[:properties][:energy][:service_hot_water])
317
+ os_shw_space = shw_space.to_openstudio(
318
+ openstudio_model, os_space, @hash[:properties][:energy][:shw])
319
+ $shw_for_plant = shw_space
320
+ end
319
321
  end
320
322
 
321
323
  # assign infiltration if it exists
@@ -454,10 +454,12 @@ module Honeybee
454
454
  program_type_id = room[:properties][:energy][:program_type]
455
455
  shw_hash = $programtype_shw_hash[program_type_id]
456
456
  unless shw_hash.nil?
457
- shw_object = ServiceHotWaterAbridged.new(shw_hash)
458
- openstudio_shw = shw_object.to_openstudio(
459
- @openstudio_model, openstudio_room, room[:properties][:energy][:shw])
460
- $shw_for_plant = shw_object
457
+ if shw_hash[:flow_per_area].to_f != 0
458
+ shw_object = ServiceHotWaterAbridged.new(shw_hash)
459
+ openstudio_shw = shw_object.to_openstudio(
460
+ @openstudio_model, openstudio_room, room[:properties][:energy][:shw])
461
+ $shw_for_plant = shw_object
462
+ end
461
463
  end
462
464
  end
463
465
 
@@ -596,45 +598,64 @@ module Honeybee
596
598
 
597
599
  def create_orphaned_shades
598
600
  if @hash[:orphaned_shades]
599
- shading_surface_group = OpenStudio::Model::ShadingSurfaceGroup.new(@openstudio_model)
600
- shading_surface_group.setShadingSurfaceType('Building')
601
+ if $orphan_groups
602
+ shading_surface_group = OpenStudio::Model::ShadingSurfaceGroup.new(@openstudio_model)
603
+ shading_surface_group.setShadingSurfaceType('Building')
604
+ end
601
605
  @hash[:orphaned_shades].each do |shade|
602
606
  shade_object = Shade.new(shade)
603
607
  openstudio_shade = shade_object.to_openstudio(@openstudio_model)
604
- openstudio_shade.setShadingSurfaceGroup(shading_surface_group)
608
+ if $orphan_groups
609
+ openstudio_shade.setShadingSurfaceGroup(shading_surface_group)
610
+ end
605
611
  end
606
612
  end
607
613
  end
608
614
 
609
615
  def create_orphaned_faces
610
616
  if @hash[:orphaned_faces]
611
- shading_surface_group = OpenStudio::Model::ShadingSurfaceGroup.new(@openstudio_model)
612
- shading_surface_group.setShadingSurfaceType('Building')
617
+ if $orphan_groups
618
+ shading_surface_group = OpenStudio::Model::ShadingSurfaceGroup.new(@openstudio_model)
619
+ shading_surface_group.setShadingSurfaceType('Building')
620
+ end
613
621
  @hash[:orphaned_faces].each do |face|
614
622
  face_object = Face.new(face)
615
623
  openstudio_shade = face_object.to_openstudio_shade(@openstudio_model, shading_surface_group)
624
+ if $orphan_groups
625
+ openstudio_shade.setShadingSurfaceGroup(shading_surface_group)
626
+ end
616
627
  end
617
628
  end
618
629
  end
619
630
 
620
631
  def create_orphaned_apertures
621
632
  if @hash[:orphaned_apertures]
622
- shading_surface_group = OpenStudio::Model::ShadingSurfaceGroup.new(@openstudio_model)
623
- shading_surface_group.setShadingSurfaceType('Building')
624
- @hash[:orphaned_apertures].each do |ap|
633
+ if $orphan_groups
634
+ shading_surface_group = OpenStudio::Model::ShadingSurfaceGroup.new(@openstudio_model)
635
+ shading_surface_group.setShadingSurfaceType('Building')
636
+ end
637
+ @hash[:orphaned_apertures].each do |ap|
625
638
  ap_object = Aperture.new(ap)
626
639
  openstudio_shade = ap_object.to_openstudio_shade(@openstudio_model, shading_surface_group)
640
+ if $orphan_groups
641
+ openstudio_shade.setShadingSurfaceGroup(shading_surface_group)
642
+ end
627
643
  end
628
644
  end
629
645
  end
630
646
 
631
647
  def create_orphaned_doors
632
648
  if @hash[:orphaned_doors]
633
- shading_surface_group = OpenStudio::Model::ShadingSurfaceGroup.new(@openstudio_model)
634
- shading_surface_group.setShadingSurfaceType('Building')
635
- @hash[:orphaned_doors].each do |dr|
649
+ if $orphan_groups
650
+ shading_surface_group = OpenStudio::Model::ShadingSurfaceGroup.new(@openstudio_model)
651
+ shading_surface_group.setShadingSurfaceType('Building')
652
+ end
653
+ @hash[:orphaned_doors].each do |dr|
636
654
  dr_object = Door.new(dr)
637
655
  openstudio_shade = dr_object.to_openstudio_shade(@openstudio_model, shading_surface_group)
656
+ if $orphan_groups
657
+ openstudio_shade.setShadingSurfaceGroup(shading_surface_group)
658
+ end
638
659
  end
639
660
  end
640
661
  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.11
4
+ version: 2.31.14
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-07 00:00:00.000000000 Z
14
+ date: 2022-08-08 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler