tbd 3.0.1 → 3.0.2

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: 5ebdeeffd85c3a9e1f4adff58aa3d35a2a02877b8903ecb7c79fb599f7fd1e1b
4
- data.tar.gz: ed97dce90e40b3314b1c8569719bc6ae48f4cbe2766c5119d45b8095968f54db
3
+ metadata.gz: a5922a435bc3f8d97b6aa78588346e59108b6455d27c72e0aeecdd792079f33f
4
+ data.tar.gz: 5f683e96a3f1c33e0bb782bbb545b713d9d55beaf2359d3983f9b4d010716ce0
5
5
  SHA512:
6
- metadata.gz: 2d2e63401158cb2e7c89998e03aed05417a59a8854046e4eb8c816142156cd44d39885487e2160b772126d1278ba3dc183d417cae801119d0b1244daddc9be40
7
- data.tar.gz: 4769131e58078354b451d8020b42e0f4c6e3ef3241258d6badde2d521db49cd3140ee57c5bdce176b1963e4b64ca6571736ca95bfd163808a88e7728a0d0f969
6
+ metadata.gz: 7284058dc4ec681c102435484b8af994fd027ea666aa4ed760f0e178cfcef297de033454c0a2c7cd60c95f13b71308bdcc6c4fa0a846819ec92edaa46007af08
7
+ data.tar.gz: 78e74d0942d5ad735c9b696c5cdaa72b5ad8a92fbf34a3c8843e41dce41f1de0eddfda3b53ef8db08c3f9c87a73b92b3ad8bb89400a58283c1805d7d660d83f7
@@ -3,8 +3,8 @@
3
3
  <schema_version>3.0</schema_version>
4
4
  <name>tbd_measure</name>
5
5
  <uid>8890787b-8c25-4dc8-8641-b6be1b6c2357</uid>
6
- <version_id>ea7c945a-d074-4893-bc2c-7f48dd7ad740</version_id>
7
- <version_modified>20220907T200625Z</version_modified>
6
+ <version_id>65ac80d9-ef1e-4c41-9a62-68e2e1e6c5db</version_id>
7
+ <version_modified>20220918T225251Z</version_modified>
8
8
  <xml_checksum>99772807</xml_checksum>
9
9
  <class_name>TBDMeasure</class_name>
10
10
  <display_name>Thermal Bridging and Derating - TBD</display_name>
@@ -415,18 +415,6 @@
415
415
  <usage_type>resource</usage_type>
416
416
  <checksum>54F57409</checksum>
417
417
  </file>
418
- <file>
419
- <filename>README.md</filename>
420
- <filetype>md</filetype>
421
- <usage_type>readme</usage_type>
422
- <checksum>36FA11E3</checksum>
423
- </file>
424
- <file>
425
- <filename>geo.rb</filename>
426
- <filetype>rb</filetype>
427
- <usage_type>resource</usage_type>
428
- <checksum>6E0B27AD</checksum>
429
- </file>
430
418
  <file>
431
419
  <version>
432
420
  <software_program>OpenStudio</software_program>
@@ -450,11 +438,23 @@
450
438
  <usage_type>resource</usage_type>
451
439
  <checksum>655E8232</checksum>
452
440
  </file>
441
+ <file>
442
+ <filename>README.md</filename>
443
+ <filetype>md</filetype>
444
+ <usage_type>readme</usage_type>
445
+ <checksum>36FA11E3</checksum>
446
+ </file>
447
+ <file>
448
+ <filename>geo.rb</filename>
449
+ <filetype>rb</filetype>
450
+ <usage_type>resource</usage_type>
451
+ <checksum>8A794826</checksum>
452
+ </file>
453
453
  <file>
454
454
  <filename>ua.rb</filename>
455
455
  <filetype>rb</filetype>
456
456
  <usage_type>resource</usage_type>
457
- <checksum>2BE6E743</checksum>
457
+ <checksum>7873E62A</checksum>
458
458
  </file>
459
459
  </files>
460
460
  </measure>
@@ -599,7 +599,7 @@ module TBD
599
599
  end
600
600
 
601
601
  edge[:surfaces].keys.each do |i| # loop around current edge
602
- next if i == id
602
+ next if i == id
603
603
  next unless walls.key?(i)
604
604
  next unless walls[i][:boundary].downcase == "outdoors"
605
605
  floors[id][:exposed] += edge[:length]
@@ -629,8 +629,8 @@ module TBD
629
629
  end
630
630
  end
631
631
 
632
- floors[id][:foundation] = OpenStudio::Model::FoundationKiva.new(model)
633
- floors[id][:foundation].setName("KIVA Foundation Floor '#{id}'")
632
+ foundation = OpenStudio::Model::FoundationKiva.new(model)
633
+ foundation.setName("KIVA Foundation Floor '#{id}'")
634
634
 
635
635
  floor = model.getSurfaceByName(id)
636
636
  kiva = false if floor.empty?
@@ -640,21 +640,15 @@ module TBD
640
640
  kiva = false if construction.empty?
641
641
  next if construction.empty?
642
642
  construction = construction.get
643
- floor.setAdjacentFoundation(floors[id][:foundation])
643
+ floor.setAdjacentFoundation(foundation)
644
644
  floor.setConstruction(construction)
645
- ep = floors[id][:exposed]
646
- per = floor.surfacePropertyExposedFoundationPerimeter
647
-
648
- if per.empty?
649
- per = floor.createSurfacePropertyExposedFoundationPerimeter(arg, ep)
650
- else
651
- per = per.get
652
- end
653
-
654
- kiva = false unless per.respond_to?(:totalExposedPerimeter)
655
- next unless per.respond_to?(:totalExposedPerimeter)
656
645
 
657
- perimeter = per.totalExposedPerimeter
646
+ ep = floors[id][:exposed]
647
+ per = floor.createSurfacePropertyExposedFoundationPerimeter(arg, ep)
648
+ kiva = false if per.empty?
649
+ next if per.empty?
650
+ per = per.get
651
+ perimeter = per.totalExposedPerimeter
658
652
  kiva = false if perimeter.empty?
659
653
  next if perimeter.empty?
660
654
  perimeter = perimeter.get
@@ -663,13 +657,7 @@ module TBD
663
657
  ok = per.setTotalExposedPerimeter(0.000)
664
658
  ok = per.setTotalExposedPerimeter(0.001) unless ok
665
659
  kiva = false unless ok
666
- next unless ok
667
- elsif (perimeter - ep).abs > TOL
668
- ok = per.setTotalExposedPerimeter(ep)
669
- kiva = false unless ok
670
- next unless ok
671
-
672
- # Generic 1" XPS insulation for exposed perimeter.
660
+ elsif (perimeter - ep).abs < TOL
673
661
  xps25 = model.getStandardOpaqueMaterialByName("XPS 25mm")
674
662
 
675
663
  if xps25.empty?
@@ -686,9 +674,11 @@ module TBD
686
674
  xps25 = xps25.get
687
675
  end
688
676
 
689
- floors[id][:foundation].setInteriorHorizontalInsulationMaterial(xps25)
690
- floors[id][:foundation].setInteriorHorizontalInsulationWidth(0.6)
677
+ foundation.setInteriorHorizontalInsulationMaterial(xps25)
678
+ foundation.setInteriorHorizontalInsulationWidth(0.6)
691
679
  end
680
+
681
+ floors[id][:foundation] = foundation
692
682
  end
693
683
  end
694
684
 
@@ -948,7 +948,7 @@ module TBD
948
948
  model = "* modèle : #{ua[:file]}" if ua.key?(:file) && lang == :fr
949
949
  model += " (v#{ua[:version]})" if ua.key?(:version)
950
950
  report << model unless model.empty?
951
- report << "* TBD : v3.0.1"
951
+ report << "* TBD : v3.0.2"
952
952
  report << "* date : #{ua[:date]}"
953
953
 
954
954
  if lang == :en
data/lib/tbd/geo.rb CHANGED
@@ -599,7 +599,7 @@ module TBD
599
599
  end
600
600
 
601
601
  edge[:surfaces].keys.each do |i| # loop around current edge
602
- next if i == id
602
+ next if i == id
603
603
  next unless walls.key?(i)
604
604
  next unless walls[i][:boundary].downcase == "outdoors"
605
605
  floors[id][:exposed] += edge[:length]
@@ -629,8 +629,8 @@ module TBD
629
629
  end
630
630
  end
631
631
 
632
- floors[id][:foundation] = OpenStudio::Model::FoundationKiva.new(model)
633
- floors[id][:foundation].setName("KIVA Foundation Floor '#{id}'")
632
+ foundation = OpenStudio::Model::FoundationKiva.new(model)
633
+ foundation.setName("KIVA Foundation Floor '#{id}'")
634
634
 
635
635
  floor = model.getSurfaceByName(id)
636
636
  kiva = false if floor.empty?
@@ -640,21 +640,15 @@ module TBD
640
640
  kiva = false if construction.empty?
641
641
  next if construction.empty?
642
642
  construction = construction.get
643
- floor.setAdjacentFoundation(floors[id][:foundation])
643
+ floor.setAdjacentFoundation(foundation)
644
644
  floor.setConstruction(construction)
645
- ep = floors[id][:exposed]
646
- per = floor.surfacePropertyExposedFoundationPerimeter
647
-
648
- if per.empty?
649
- per = floor.createSurfacePropertyExposedFoundationPerimeter(arg, ep)
650
- else
651
- per = per.get
652
- end
653
-
654
- kiva = false unless per.respond_to?(:totalExposedPerimeter)
655
- next unless per.respond_to?(:totalExposedPerimeter)
656
645
 
657
- perimeter = per.totalExposedPerimeter
646
+ ep = floors[id][:exposed]
647
+ per = floor.createSurfacePropertyExposedFoundationPerimeter(arg, ep)
648
+ kiva = false if per.empty?
649
+ next if per.empty?
650
+ per = per.get
651
+ perimeter = per.totalExposedPerimeter
658
652
  kiva = false if perimeter.empty?
659
653
  next if perimeter.empty?
660
654
  perimeter = perimeter.get
@@ -663,13 +657,7 @@ module TBD
663
657
  ok = per.setTotalExposedPerimeter(0.000)
664
658
  ok = per.setTotalExposedPerimeter(0.001) unless ok
665
659
  kiva = false unless ok
666
- next unless ok
667
- elsif (perimeter - ep).abs > TOL
668
- ok = per.setTotalExposedPerimeter(ep)
669
- kiva = false unless ok
670
- next unless ok
671
-
672
- # Generic 1" XPS insulation for exposed perimeter.
660
+ elsif (perimeter - ep).abs < TOL
673
661
  xps25 = model.getStandardOpaqueMaterialByName("XPS 25mm")
674
662
 
675
663
  if xps25.empty?
@@ -686,9 +674,11 @@ module TBD
686
674
  xps25 = xps25.get
687
675
  end
688
676
 
689
- floors[id][:foundation].setInteriorHorizontalInsulationMaterial(xps25)
690
- floors[id][:foundation].setInteriorHorizontalInsulationWidth(0.6)
677
+ foundation.setInteriorHorizontalInsulationMaterial(xps25)
678
+ foundation.setInteriorHorizontalInsulationWidth(0.6)
691
679
  end
680
+
681
+ floors[id][:foundation] = foundation
692
682
  end
693
683
  end
694
684
 
data/lib/tbd/ua.rb CHANGED
@@ -948,7 +948,7 @@ module TBD
948
948
  model = "* modèle : #{ua[:file]}" if ua.key?(:file) && lang == :fr
949
949
  model += " (v#{ua[:version]})" if ua.key?(:version)
950
950
  report << model unless model.empty?
951
- report << "* TBD : v3.0.1"
951
+ report << "* TBD : v3.0.2"
952
952
  report << "* date : #{ua[:date]}"
953
953
 
954
954
  if lang == :en
data/lib/tbd/version.rb CHANGED
@@ -21,5 +21,5 @@
21
21
  # SOFTWARE.
22
22
 
23
23
  module TBD
24
- VERSION = "3.0.1".freeze
24
+ VERSION = "3.0.2".freeze
25
25
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tbd
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 3.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Denis Bourgeois & Dan Macumber
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-09-08 00:00:00.000000000 Z
11
+ date: 2022-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: topolys
@@ -163,7 +163,7 @@ licenses:
163
163
  - MIT
164
164
  metadata:
165
165
  homepage_uri: https://github.com/rd2/tbd
166
- source_code_uri: https://github.com/rd2/tbd/tree/v3.0.1
166
+ source_code_uri: https://github.com/rd2/tbd/tree/v3.0.2
167
167
  bug_tracker_uri: https://github.com/rd2/tbd/issues
168
168
  post_install_message:
169
169
  rdoc_options: []