osut 0.8.0 → 0.8.2
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/.github/workflows/pull_request.yml +9 -9
- data/LICENSE +1 -1
- data/lib/osut/utils.rb +6 -27
- 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: cacfd84d1bd88a4d089ceb7f14c9d93f32241a186dc7901e3fdb3553f53c3560
|
|
4
|
+
data.tar.gz: f02222e23c157f764250ec6c8a14eeb0759fea878d687852f43be66545575c00
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1f3f1e8fbcb4aba5019b8d99dcb09dc98313000c5a979fe015813ae7deaa5615127900e19c8821a1805704c5da81632b80ba5256118c29b29ca344fe3bc72407
|
|
7
|
+
data.tar.gz: ce5b0075a4996abe645d3f80eeaa8291886ed540c50fd89c941a439802bb961537c6c2e24b655c0112c7acd3a1e1b65913f84e057dcac6020644a7bf846296fc
|
|
@@ -70,7 +70,7 @@ jobs:
|
|
|
70
70
|
docker exec -t test bundle update
|
|
71
71
|
docker exec -t test bundle exec rake
|
|
72
72
|
docker kill test
|
|
73
|
-
|
|
73
|
+
test_390x:
|
|
74
74
|
runs-on: ubuntu-22.04
|
|
75
75
|
steps:
|
|
76
76
|
- name: Check out repository
|
|
@@ -79,14 +79,14 @@ jobs:
|
|
|
79
79
|
run: |
|
|
80
80
|
echo $(pwd)
|
|
81
81
|
echo $(ls)
|
|
82
|
-
docker pull nrel/openstudio:3.
|
|
83
|
-
docker run --name test --rm -d -t -v $(pwd):/work -w /work nrel/openstudio:3.
|
|
82
|
+
docker pull nrel/openstudio:3.9.0
|
|
83
|
+
docker run --name test --rm -d -t -v $(pwd):/work -w /work nrel/openstudio:3.9.0
|
|
84
84
|
docker exec -t test pwd
|
|
85
85
|
docker exec -t test ls
|
|
86
86
|
docker exec -t test bundle update
|
|
87
87
|
docker exec -t test bundle exec rake
|
|
88
88
|
docker kill test
|
|
89
|
-
|
|
89
|
+
test_310x:
|
|
90
90
|
runs-on: ubuntu-22.04
|
|
91
91
|
steps:
|
|
92
92
|
- name: Check out repository
|
|
@@ -95,14 +95,14 @@ jobs:
|
|
|
95
95
|
run: |
|
|
96
96
|
echo $(pwd)
|
|
97
97
|
echo $(ls)
|
|
98
|
-
docker pull nrel/openstudio:3.
|
|
99
|
-
docker run --name test --rm -d -t -v $(pwd):/work -w /work nrel/openstudio:3.
|
|
98
|
+
docker pull nrel/openstudio:3.10.0
|
|
99
|
+
docker run --name test --rm -d -t -v $(pwd):/work -w /work nrel/openstudio:3.10.0
|
|
100
100
|
docker exec -t test pwd
|
|
101
101
|
docker exec -t test ls
|
|
102
102
|
docker exec -t test bundle update
|
|
103
103
|
docker exec -t test bundle exec rake
|
|
104
104
|
docker kill test
|
|
105
|
-
|
|
105
|
+
test_311x:
|
|
106
106
|
runs-on: ubuntu-22.04
|
|
107
107
|
steps:
|
|
108
108
|
- name: Check out repository
|
|
@@ -111,8 +111,8 @@ jobs:
|
|
|
111
111
|
run: |
|
|
112
112
|
echo $(pwd)
|
|
113
113
|
echo $(ls)
|
|
114
|
-
docker pull nrel/openstudio:3.
|
|
115
|
-
docker run --name test --rm -d -t -v $(pwd):/work -w /work nrel/openstudio:3.
|
|
114
|
+
docker pull nrel/openstudio:3.11.0
|
|
115
|
+
docker run --name test --rm -d -t -v $(pwd):/work -w /work nrel/openstudio:3.11.0
|
|
116
116
|
docker exec -t test pwd
|
|
117
117
|
docker exec -t test ls
|
|
118
118
|
docker exec -t test bundle update
|
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
|
|
@@ -4846,7 +4825,7 @@ module OSut
|
|
|
4846
4825
|
end
|
|
4847
4826
|
end
|
|
4848
4827
|
|
|
4849
|
-
res = realignedFace(polyg.to_a.reverse)
|
|
4828
|
+
res = realignedFace(polyg.to_a.reverse, true)
|
|
4850
4829
|
return 0 if res[:box].nil?
|
|
4851
4830
|
|
|
4852
4831
|
# A bounded box's 'height', at its narrowest, is its 'width'.
|
|
@@ -4925,7 +4904,7 @@ module OSut
|
|
|
4925
4904
|
# to 'genAnchors'), it inherits key :out - a Hash holding (among others) a
|
|
4926
4905
|
# 'realigned' set of points (by default a 'realigned' :box). The latter is
|
|
4927
4906
|
# typically generated from an outdoor-facing roof (e.g. when called from
|
|
4928
|
-
# '
|
|
4907
|
+
# 'addSkylights'). Subsequent calls to 'genAnchors' may send (as first
|
|
4929
4908
|
# argument) a corresponding ceiling tile below (also from 'addSkylights').
|
|
4930
4909
|
# Roof vs ceiling may neither share alignment transformation nor space
|
|
4931
4910
|
# site transformation identities. All subsequent calls to 'genAnchors'
|
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.2".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.2
|
|
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-02-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.2
|
|
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: []
|