osut 0.8.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/lib/osut/utils.rb +4 -25
- data/lib/osut/version.rb +2 -2
- data/lib/osut.rb +1 -1
- metadata +7 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7ea46a9a2d17127040f1933761a1142361b39f90043de32109d82e19af28c69a
|
|
4
|
+
data.tar.gz: 392f9d8d844048aeb8d1473cd5c2774f1284eb6c7dbcc33f8c0788d4e284f65e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: abd0cff011de389aa65724873db058be5ff6a1637e0f12795083c252f17bb3b7a415684095db541b2b8d77a66bb63303ea33d9e161ac69500b2c0124e4023106
|
|
7
|
+
data.tar.gz: 1127c3e2e5e6f9976cebd2ff9538f01cb2f90185972f220ffb156f9c88ff98cd45b1dc2a057721b66fc76c08875981d9df84cfc2469daa5fc42d64fa84c2cf03
|
data/LICENSE
CHANGED
data/lib/osut/utils.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# BSD 3-Clause License
|
|
2
2
|
#
|
|
3
|
-
# Copyright (c) 2022-
|
|
3
|
+
# Copyright (c) 2022-2026, Denis Bourgeois
|
|
4
4
|
# All rights reserved.
|
|
5
5
|
#
|
|
6
6
|
# Redistribution and use in source and binary forms, with or without
|
|
@@ -530,7 +530,7 @@ module OSut
|
|
|
530
530
|
mt.setName(id)
|
|
531
531
|
|
|
532
532
|
unless mt.setThermalResistance(r)
|
|
533
|
-
return invalid("Failed #{id}: RSi#{
|
|
533
|
+
return invalid("Failed #{id}: RSi#{r.round(2)}", mth)
|
|
534
534
|
end
|
|
535
535
|
|
|
536
536
|
lc.setLayer(index, mt)
|
|
@@ -546,7 +546,7 @@ module OSut
|
|
|
546
546
|
k = (m.thickness / (r + dR)).clamp(KMIN, KMAX)
|
|
547
547
|
d = (k * (r + dR)).clamp(DMIN, DMAX)
|
|
548
548
|
r = d / k
|
|
549
|
-
id = "
|
|
549
|
+
id = "OSut:K#{format('%4.3f', k)}:#{format('%03d', d*1000)[-3..-1]}"
|
|
550
550
|
mt = lc.model.getStandardOpaqueMaterialByName(id)
|
|
551
551
|
|
|
552
552
|
# Existing material?
|
|
@@ -928,7 +928,6 @@ module OSut
|
|
|
928
928
|
if u and a[:glazing].empty?
|
|
929
929
|
ro = 1 / u - film
|
|
930
930
|
|
|
931
|
-
|
|
932
931
|
if ro > RMIN
|
|
933
932
|
if specs[:type] == :door # 1x layer, adjust conductivity
|
|
934
933
|
layer = c.getLayer(0).to_StandardOpaqueMaterial
|
|
@@ -944,27 +943,7 @@ module OSut
|
|
|
944
943
|
return invalid("#{id} construction", mth, 0) if lyr[:r ].to_i.zero?
|
|
945
944
|
|
|
946
945
|
index = lyr[:index]
|
|
947
|
-
|
|
948
|
-
return invalid("#{id} material @#{index}", mth, 0) if layer.empty?
|
|
949
|
-
|
|
950
|
-
layer = layer.get
|
|
951
|
-
|
|
952
|
-
k = (layer.thickness / (ro - rsi(c) + lyr[:r])).clamp(KMIN, KMAX)
|
|
953
|
-
d = (k * (ro - rsi(c) + lyr[:r])).clamp(DMIN, DMAX)
|
|
954
|
-
|
|
955
|
-
nom = "OSut:"
|
|
956
|
-
nom += layer.nameString.gsub(/[^a-z]/i, "").gsub("OSut", "")
|
|
957
|
-
nom += ":K#{format('%4.3f', k)}:#{format('%03d', d*1000)[-3..-1]}"
|
|
958
|
-
|
|
959
|
-
lyr = model.getStandardOpaqueMaterialByName(nom)
|
|
960
|
-
|
|
961
|
-
if lyr.empty?
|
|
962
|
-
layer.setName(nom)
|
|
963
|
-
layer.setConductivity(k)
|
|
964
|
-
layer.setThickness(d)
|
|
965
|
-
else
|
|
966
|
-
c.setLayer(index, lyr.get)
|
|
967
|
-
end
|
|
946
|
+
resetUo(c, film, index, u)
|
|
968
947
|
end
|
|
969
948
|
end
|
|
970
949
|
end
|
data/lib/osut/version.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# BSD 3-Clause License
|
|
2
2
|
#
|
|
3
|
-
# Copyright (c) 2022-
|
|
3
|
+
# Copyright (c) 2022-2026, Denis Bourgeois
|
|
4
4
|
# All rights reserved.
|
|
5
5
|
#
|
|
6
6
|
# Redistribution and use in source and binary forms, with or without
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
30
30
|
|
|
31
31
|
module OSut
|
|
32
|
-
VERSION = "0.8.
|
|
32
|
+
VERSION = "0.8.1".freeze
|
|
33
33
|
end
|
data/lib/osut.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: osut
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.8.
|
|
4
|
+
version: 0.8.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Denis Bourgeois
|
|
8
|
+
autorequire:
|
|
8
9
|
bindir: exe
|
|
9
10
|
cert_chain: []
|
|
10
|
-
date:
|
|
11
|
+
date: 2026-01-03 00:00:00.000000000 Z
|
|
11
12
|
dependencies:
|
|
12
13
|
- !ruby/object:Gem::Dependency
|
|
13
14
|
name: oslg
|
|
@@ -89,8 +90,9 @@ licenses:
|
|
|
89
90
|
- BSD-3-Clause
|
|
90
91
|
metadata:
|
|
91
92
|
homepage_uri: https://github.com/rd2/osut
|
|
92
|
-
source_code_uri: https://github.com/rd2/osut/tree/v0.8.
|
|
93
|
+
source_code_uri: https://github.com/rd2/osut/tree/v0.8.1
|
|
93
94
|
bug_tracker_uri: https://github.com/rd2/osut/issues
|
|
95
|
+
post_install_message:
|
|
94
96
|
rdoc_options: []
|
|
95
97
|
require_paths:
|
|
96
98
|
- lib
|
|
@@ -108,7 +110,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
108
110
|
- !ruby/object:Gem::Version
|
|
109
111
|
version: '0'
|
|
110
112
|
requirements: []
|
|
111
|
-
rubygems_version: 3.
|
|
113
|
+
rubygems_version: 3.4.10
|
|
114
|
+
signing_key:
|
|
112
115
|
specification_version: 4
|
|
113
116
|
summary: OpenStudio UTilities
|
|
114
117
|
test_files: []
|