h2lib-tests 13.1.3109__py3-none-any.whl → 13.2.201__py3-none-any.whl
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.
- h2lib_tests/test_ellipsys_couplings.py +3 -2
- h2lib_tests/test_h2rotor.py +1 -1
- h2lib_tests/test_lin.py +7 -21
- h2lib_tests/test_static_solver.py +2 -2
- h2lib_tests/test_topology_h2lib.py +1 -1
- {h2lib_tests-13.1.3109.dist-info → h2lib_tests-13.2.201.dist-info}/METADATA +2 -2
- {h2lib_tests-13.1.3109.dist-info → h2lib_tests-13.2.201.dist-info}/RECORD +9 -9
- {h2lib_tests-13.1.3109.dist-info → h2lib_tests-13.2.201.dist-info}/WHEEL +0 -0
- {h2lib_tests-13.1.3109.dist-info → h2lib_tests-13.2.201.dist-info}/top_level.txt +0 -0
@@ -55,7 +55,7 @@ def test_ellipsys_dummy_workflow_1wt():
|
|
55
55
|
htc.set_name(f'wt{i}')
|
56
56
|
htc.save()
|
57
57
|
|
58
|
-
h2.init_AD(htc_path=f'htc/wt0.htc', model_path=tfp + 'DTU_10_MW',
|
58
|
+
h2.init_AD(htc_path=f'htc/wt0.htc', model_path=tfp + 'DTU_10_MW', tiploss2_shen_c2=28)
|
59
59
|
wt_pos = np.array([0, 0, 0])
|
60
60
|
|
61
61
|
while True:
|
@@ -80,7 +80,8 @@ def test_ellipsys_dummy_workflow():
|
|
80
80
|
htc.set_name(f'wt{i}')
|
81
81
|
htc.save()
|
82
82
|
|
83
|
-
h2.init_AD(htc_path=[f'htc/wt{i}.htc' for i in range(N)], model_path=tfp + 'DTU_10_MW',
|
83
|
+
h2.init_AD(htc_path=[f'htc/wt{i}.htc' for i in range(N)], model_path=tfp + 'DTU_10_MW',
|
84
|
+
tiploss2_shen_c2=28, tiploss2_shen_h=0.5)
|
84
85
|
wt_pos = np.array([[0, 0, 0], [0, 500, 0], [0, 1000, 0], [0, 1500, 0]])
|
85
86
|
|
86
87
|
while True:
|
h2lib_tests/test_h2rotor.py
CHANGED
@@ -40,7 +40,7 @@ def test_get_bem_grid(h2):
|
|
40
40
|
azi, rad = h2.get_bem_grid()
|
41
41
|
|
42
42
|
npt.assert_array_almost_equal(np.roll(np.linspace(-np.pi, np.pi, 17)[1:], 9), azi)
|
43
|
-
npt.assert_array_almost_equal([3.09929662, 11.4350243, 33.76886193, 60.8641887, 82.01217305], rad[::10])
|
43
|
+
npt.assert_array_almost_equal([3.09929662, 11.4350243, 33.76886193, 60.8641887, 82.01217305], rad[::10], 4)
|
44
44
|
|
45
45
|
|
46
46
|
def test_induction(h2):
|
h2lib_tests/test_lin.py
CHANGED
@@ -83,10 +83,7 @@ def test_sys_eig_no_damping_eigv(h2_dtu_10mw_only_blade):
|
|
83
83
|
assert eig_vec.shape == (n_modes, n_rdofs)
|
84
84
|
assert eig_val.dtype == np.float64
|
85
85
|
assert eig_vec.dtype == np.float64
|
86
|
-
npt.assert_allclose(
|
87
|
-
eig_val,
|
88
|
-
np.array([3.835311, 5.846144, 10.92697, 17.353821]),
|
89
|
-
)
|
86
|
+
npt.assert_allclose(eig_val, [3.835311, 5.846144, 10.92697, 17.353821], atol=2e-6)
|
90
87
|
|
91
88
|
|
92
89
|
def test_sys_eig_with_damping(h2_dtu_10mw_only_blade):
|
@@ -156,29 +153,18 @@ def test_sys_eig_encrypted(h2_dtu_10mw_only_tower_encrypted):
|
|
156
153
|
eig_val = h2_dtu_10mw_only_tower_encrypted.get_system_eigenvalues_and_eigenvectors(
|
157
154
|
n_modes=n_modes, n_rdofs=n_rdofs, include_damping=True
|
158
155
|
)
|
159
|
-
npt.assert_allclose(
|
160
|
-
freq,
|
161
|
-
np.array([0.770592, 0.770592, 3.449993, 3.449993]),
|
162
|
-
rtol=1e-6,
|
163
|
-
)
|
156
|
+
npt.assert_allclose(freq, [0.770592, 0.770592, 3.449993, 3.449993], atol=1e-5)
|
164
157
|
|
165
158
|
npt.assert_allclose(
|
166
159
|
damp,
|
167
160
|
np.array([0.010006, 0.010006, 0.044675, 0.044675]),
|
168
161
|
atol=1e-6,
|
169
162
|
)
|
170
|
-
npt.assert_allclose(
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
-0.048444 - 4.84153j,
|
176
|
-
-0.968409 - 21.6553j,
|
177
|
-
-0.968409 - 21.6553j,
|
178
|
-
]
|
179
|
-
),
|
180
|
-
atol=1e-6,
|
181
|
-
)
|
163
|
+
npt.assert_allclose(eig_val, [-0.048444 - 4.84153j,
|
164
|
+
-0.048444 - 4.84153j,
|
165
|
+
-0.968409 - 21.6553j,
|
166
|
+
-0.968409 - 21.6553j], atol=1e-5,
|
167
|
+
)
|
182
168
|
|
183
169
|
|
184
170
|
def test_get_system_matrices_encrypted(h2_dtu_10mw_only_tower_encrypted):
|
@@ -68,9 +68,9 @@ def test_static_solver_run_1(h2_dtu_10mw_only_blade):
|
|
68
68
|
# Do 1 step to get the output.
|
69
69
|
h2_dtu_10mw_only_blade.step()
|
70
70
|
val = h2_dtu_10mw_only_blade.get_sensor_values(id)
|
71
|
-
# Test against: initial_condition 2; followed by time
|
71
|
+
# Test against: initial_condition 2; followed by time simulation.
|
72
72
|
npt.assert_allclose(
|
73
|
-
val, np.array([-1.
|
73
|
+
val, np.array([-1.071480e+04, -3.974322e-02, -4.064080e+01]), rtol=1e-6
|
74
74
|
)
|
75
75
|
|
76
76
|
|
@@ -175,7 +175,7 @@ def test_set_orientation_base_speed(h2_dtu_10mw_only_blade):
|
|
175
175
|
|
176
176
|
# Test against: result at the time of writing.
|
177
177
|
# The result is close, but not identical, to test_static_solver_run_2.
|
178
|
-
npt.assert_allclose(val,
|
178
|
+
npt.assert_allclose(val, [10879.363449, 793.564425, 1034.896613])
|
179
179
|
|
180
180
|
# Reset speed.
|
181
181
|
h2_dtu_10mw_only_blade.set_orientation_base(
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: h2lib-tests
|
3
|
-
Version: 13.
|
4
|
-
Summary: Tests and test_files for test h2lib (13.
|
3
|
+
Version: 13.2.201
|
4
|
+
Summary: Tests and test_files for test h2lib (13.2.2+2-g5cd9228)
|
5
5
|
Download-URL:
|
6
6
|
Author: Mads M Pedersen
|
7
7
|
Author-email:
|
@@ -2,14 +2,14 @@ h2lib_tests/__init__.py,sha256=VjSqfGg8BzdmSjfSFhJh4hZbYZ_cME7xp9EWFKHQphA,61
|
|
2
2
|
h2lib_tests/conftest.py,sha256=DAxRUsOP7-3-JUTglMSuyr1qcsdrqeKEDerEtenL0lA,14753
|
3
3
|
h2lib_tests/dtu10mw.py,sha256=a7SXfyDwDQPastYKb5CgghOQcYfgO1eTwGrd-H3Enok,4374
|
4
4
|
h2lib_tests/test_calc.py,sha256=VNLfr2J9R2Jy9xTbdZ9dfbQ4dCwr7H7nbZRI3yP69fQ,2152
|
5
|
-
h2lib_tests/test_ellipsys_couplings.py,sha256=
|
5
|
+
h2lib_tests/test_ellipsys_couplings.py,sha256=mfSTk1IamaKETU6Be8p8W9vA-yostWJl17m5sFlEK3Q,3345
|
6
6
|
h2lib_tests/test_h2lib.py,sha256=LEV1n0Fwa1llQwIM06Mcqr07Y6WOn-j8mNxjzlCEOl0,14219
|
7
|
-
h2lib_tests/test_h2rotor.py,sha256=
|
8
|
-
h2lib_tests/test_lin.py,sha256=
|
7
|
+
h2lib_tests/test_h2rotor.py,sha256=WBrPQjinZ2zIGvQpl_B-YTHcM1Btp9WfCi5dhRDTwRk,11312
|
8
|
+
h2lib_tests/test_lin.py,sha256=yydbsMX44ym_MSqR1cbQkqil8qC4icSW_JccPSElGac,6292
|
9
9
|
h2lib_tests/test_mpi.py,sha256=CTT160yc6uZFRr_QNFWxyOwJ-y0qHiIp8jPYs1MQpyg,7111
|
10
10
|
h2lib_tests/test_multiprocessinterface.py,sha256=h2o4havtK6IuMXsplNjGUa3VxOnbpEYGxdrrAKQilj0,1470
|
11
|
-
h2lib_tests/test_static_solver.py,sha256=
|
12
|
-
h2lib_tests/test_topology_h2lib.py,sha256=
|
11
|
+
h2lib_tests/test_static_solver.py,sha256=GMxQ2oFsVR7SIREEtSHJ_N5rMHf9dfHxanG8303FV-M,7428
|
12
|
+
h2lib_tests/test_topology_h2lib.py,sha256=iUTpWQe2SCBvuBu5yP3R3tWyb3Kh8NJwu0mZP41fHcM,11476
|
13
13
|
h2lib_tests/test_files/__init__.py,sha256=9e6ZUPb42e0wf2E1rutdcTM8hROcWFRVPXtZriU3ySw,50
|
14
14
|
h2lib_tests/test_files/my_test_cls.py,sha256=7ZDsFkxrLfOY6q00U5Y-daxfuhATK-K5H04RP-VmQdE,850
|
15
15
|
h2lib_tests/test_files/DTU_10_MW/control/dtu_we_controller.dll,sha256=C5T_CuAFtIuDgCXSYAoNu24yKPwj2nWOeORacJbLN9s,1134592
|
@@ -89,7 +89,7 @@ h2lib_tests/test_files/minimal/res/minimal_mann_turb.hdf5,sha256=Q3cs3bZyplZjBpo
|
|
89
89
|
h2lib_tests/test_files/minimal/turb/hawc2_mann_l33.6_ae0.1000_g3.9_h0_512xd32xd16_2.000x3.00x4.00_s0001_u,sha256=byiorJmXDL6uKFbyfXthHTjJdm6ELvLR2lS202KrhRI,1048576
|
90
90
|
h2lib_tests/test_files/minimal/turb/hawc2_mann_l33.6_ae0.1000_g3.9_h0_512xd32xd16_2.000x3.00x4.00_s0001_v,sha256=cxK5Rfgfm3gyJsEYi_KlmYY8DIIl_G0aizN2jt18Glc,1048576
|
91
91
|
h2lib_tests/test_files/minimal/turb/hawc2_mann_l33.6_ae0.1000_g3.9_h0_512xd32xd16_2.000x3.00x4.00_s0001_w,sha256=xs61jAwhP3fIR1P5Oa8ovEt2baLoF8uCNs6pKIT8L4o,1048576
|
92
|
-
h2lib_tests-13.
|
93
|
-
h2lib_tests-13.
|
94
|
-
h2lib_tests-13.
|
95
|
-
h2lib_tests-13.
|
92
|
+
h2lib_tests-13.2.201.dist-info/METADATA,sha256=VgkZLwvQh1lL26S5uUOOpd1kboJrbnZxvVStC3QhtBM,417
|
93
|
+
h2lib_tests-13.2.201.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
94
|
+
h2lib_tests-13.2.201.dist-info/top_level.txt,sha256=WufAL3LO35YJBhWg1AfgTjSld-6l_WuRkXAkNKczUrM,12
|
95
|
+
h2lib_tests-13.2.201.dist-info/RECORD,,
|
File without changes
|
File without changes
|