h2lib 13.1.3106__py3-none-win_amd64.whl → 13.1.3108__py3-none-win_amd64.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/HAWC2Lib.dll +0 -0
- h2lib/_h2lib.py +5 -6
- h2lib/_version.py +2 -2
- {h2lib-13.1.3106.dist-info → h2lib-13.1.3108.dist-info}/METADATA +1 -1
- h2lib-13.1.3108.dist-info/RECORD +10 -0
- {h2lib-13.1.3106.dist-info → h2lib-13.1.3108.dist-info}/WHEEL +1 -1
- h2lib-13.1.3106.dist-info/RECORD +0 -10
- {h2lib-13.1.3106.dist-info → h2lib-13.1.3108.dist-info}/top_level.txt +0 -0
h2lib/HAWC2Lib.dll
CHANGED
Binary file
|
h2lib/_h2lib.py
CHANGED
@@ -107,8 +107,8 @@ class H2LibThread(H2LibSignatures, DLLWrapper):
|
|
107
107
|
H2LibSignatures.stop_on_error(self, bool(flag))
|
108
108
|
|
109
109
|
def get_wind_speed(self, pos_g):
|
110
|
-
return self.get_lib_function('get_wind_speed')(np.
|
111
|
-
np.
|
110
|
+
return self.get_lib_function('get_wind_speed')(np.asfortranarray(pos_g, dtype=np.float64),
|
111
|
+
np.asfortranarray([0, 0, 0], dtype=np.float64))[0][1]
|
112
112
|
|
113
113
|
def get_uvw(self, pos_g):
|
114
114
|
vx, vy, vz = self.get_wind_speed(pos_g)
|
@@ -691,10 +691,9 @@ class H2LibThread(H2LibSignatures, DLLWrapper):
|
|
691
691
|
"""
|
692
692
|
if time is None:
|
693
693
|
time = self.get_time()
|
694
|
-
uvw = np.
|
694
|
+
uvw = np.asfortranarray(uvw, dtype=np.float32)
|
695
695
|
assert np.all(np.isfinite(uvw)), "uvw passed to h2lib.set_windfield contains nan or inf"
|
696
|
-
return H2LibSignatures.set_windfield(self, np.
|
697
|
-
np.float64(box_offset_x), np.float64(time))
|
696
|
+
return H2LibSignatures.set_windfield(self, uvw, np.float64(box_offset_x), np.float64(time))
|
698
697
|
|
699
698
|
# ===================================================================================================================
|
700
699
|
# H2rotor
|
@@ -728,7 +727,7 @@ class H2LibThread(H2LibSignatures, DLLWrapper):
|
|
728
727
|
|
729
728
|
def set_aerosections_windspeed(self, uvw, rotor=0):
|
730
729
|
"""Update wind speed at aero sections. uvw shape=(#blades, #sections, 3)"""
|
731
|
-
return H2LibSignatures.set_aerosections_windspeed(self, rotor + 1, np.
|
730
|
+
return H2LibSignatures.set_aerosections_windspeed(self, rotor + 1, np.asfortranarray(uvw, np.float64))
|
732
731
|
|
733
732
|
def get_aerosections_forces(self, rotor=0):
|
734
733
|
shape = self.aero_sections_data_shape(rotor)
|
h2lib/_version.py
CHANGED
@@ -0,0 +1,10 @@
|
|
1
|
+
h2lib/HAWC2Lib.dll,sha256=ReL0XxKnxy48rw2yOAUwkUvkYtc1tpAadu4ZmxUIoUQ,30970368
|
2
|
+
h2lib/__init__.py,sha256=f3fO4I6IEFRM9LaV2O3w9Pioj3GPI8qRl7P5Tg5ONtE,528
|
3
|
+
h2lib/_h2lib.py,sha256=X0G8PYTrArB1Wk9IbhHvUMlximW3oCP54hIWy0SnNuM,39438
|
4
|
+
h2lib/_version.py,sha256=lcmqNx7xHhTPye8HOdQmkbGtmZzIph7zHkDju2BS3Jk,160
|
5
|
+
h2lib/dll_wrapper.py,sha256=NtH3wVJ4okYLBXjdRxpllnImRDE7p692OgHuwHkt-WQ,13552
|
6
|
+
h2lib/h2lib_signatures.py,sha256=sPCh92WdCc6brPgARZ_QBgSz49Yjq0M5SpWb0or5KvM,29396
|
7
|
+
h2lib-13.1.3108.dist-info/METADATA,sha256=6Y1lcFMbpORGK5s_1Il8Q4EaTH8QQlEkO8IR_Mf5SG4,862
|
8
|
+
h2lib-13.1.3108.dist-info/WHEEL,sha256=8UP9x9puWI0P1V_d7K2oMTBqfeLNm21CTzZ_Ptr0NXU,101
|
9
|
+
h2lib-13.1.3108.dist-info/top_level.txt,sha256=y_a-tUqphEZQ_0nsWSMaSb21P8Lsd8hUxUdE9g2Dcbk,6
|
10
|
+
h2lib-13.1.3108.dist-info/RECORD,,
|
h2lib-13.1.3106.dist-info/RECORD
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
h2lib/HAWC2Lib.dll,sha256=TkZ2rVBu-nDc1vWiLCqKNCpISD3T-dpi1B0foNUa1Io,30970368
|
2
|
-
h2lib/__init__.py,sha256=f3fO4I6IEFRM9LaV2O3w9Pioj3GPI8qRl7P5Tg5ONtE,528
|
3
|
-
h2lib/_h2lib.py,sha256=EOxtjXytUpbQrDxTNORgZlVcZe2msKWwUXtDUGTHycs,39486
|
4
|
-
h2lib/_version.py,sha256=6V9r37sF_jwFUpA7lcPgUk5C2lMdM7gdQaixQ_XFtk0,160
|
5
|
-
h2lib/dll_wrapper.py,sha256=NtH3wVJ4okYLBXjdRxpllnImRDE7p692OgHuwHkt-WQ,13552
|
6
|
-
h2lib/h2lib_signatures.py,sha256=sPCh92WdCc6brPgARZ_QBgSz49Yjq0M5SpWb0or5KvM,29396
|
7
|
-
h2lib-13.1.3106.dist-info/METADATA,sha256=cvBo8CeFRaEFSizMC1YZHoi-Z1-yAX09AAlJjo7kk3M,862
|
8
|
-
h2lib-13.1.3106.dist-info/WHEEL,sha256=YvQgr19VPpDKcQ70xCXIWyDmGnURmFmzZpp_Uw5rBS8,101
|
9
|
-
h2lib-13.1.3106.dist-info/top_level.txt,sha256=y_a-tUqphEZQ_0nsWSMaSb21P8Lsd8hUxUdE9g2Dcbk,6
|
10
|
-
h2lib-13.1.3106.dist-info/RECORD,,
|
File without changes
|