turbo-design 1.1.3__py3-none-any.whl → 1.1.4__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.
Potentially problematic release.
This version of turbo-design might be problematic. Click here for more details.
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
2
|
Name: turbo-design
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.4
|
|
4
4
|
Summary: TurboDesign is a library used to design turbines and compressors using radial equilibrium.
|
|
5
5
|
Author: Paht Juangphanich
|
|
6
6
|
Author-email: paht.juangphanich@nasa.gov
|
|
@@ -10,7 +10,6 @@ Classifier: Programming Language :: Python :: 3.9
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3.10
|
|
11
11
|
Classifier: Programming Language :: Python :: 3.11
|
|
12
12
|
Classifier: Programming Language :: Python :: 3.12
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.13
|
|
14
13
|
Requires-Dist: cantera
|
|
15
14
|
Requires-Dist: findiff
|
|
16
15
|
Requires-Dist: matplotlib
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
turbodesign/__init__.py,sha256=N8Nu0I1vrlEHYJZZ7yhhg-FtbNbLyrgjy7hoicygUqg,325
|
|
2
2
|
turbodesign/arrayfuncs.py,sha256=GHIlTyLfeNsNCQQoh5m1aXK3iyvU6RjdYQipkqpU_ps,519
|
|
3
|
-
turbodesign/bladerow.py,sha256=
|
|
3
|
+
turbodesign/bladerow.py,sha256=WqAB_BZFXu-y-m-leSbDNxUlt578A4clJhaNkkpxBbM,24731
|
|
4
4
|
turbodesign/cantera_gas/co2.yaml,sha256=M2o_RzxV9B9rDkgkXJC-l3voKraFZguTZuKKt4F7S_c,887
|
|
5
5
|
turbodesign/compressorspool.py,sha256=z8ZVczJ-EdZvIqqZArC6UdwC5MbU2SZh_MT2CGq5avY,2600
|
|
6
6
|
turbodesign/coolant.py,sha256=nuj7ryUXuBhuOPt2jHjHwtEM_LVno7A8Wm14P0lJn-8,436
|
|
@@ -20,7 +20,7 @@ turbodesign/loss/turbine/kackerokapuu.py,sha256=hUmZdyA1hAhN3_xbwBhka2dyk0Aq9rqq
|
|
|
20
20
|
turbodesign/loss/turbine/traupel.py,sha256=aZxFE9JDcCfi1gy-fqS1SxjjlhuDG-H-g3LPurty1M0,4164
|
|
21
21
|
turbodesign/lossinterp.py,sha256=B2KEobp-nD9jwD6UINgBmTlH9kKyWg3UNvXxqfUsr-k,6198
|
|
22
22
|
turbodesign/outlet.py,sha256=SwTwoL6XnWlsrE5A6wLxu3qXkydDDUsdKKeBbJm4mrQ,2069
|
|
23
|
-
turbodesign/passage.py,sha256=
|
|
23
|
+
turbodesign/passage.py,sha256=vKcEzQmQIlc-88DD1zr2f0F5s1r4x6OFQLtuTgkYMBA,10033
|
|
24
24
|
turbodesign/radeq.py,sha256=RCsiQzcHvR5dozK6XG0eysAhXYewF0BY_qX0f1knURo,10091
|
|
25
25
|
turbodesign/rotor.py,sha256=tHl9o5H4aQ6Etd4gqa8Ime1UK7k0de4GLt5Yb1sJdGs,1376
|
|
26
26
|
turbodesign/solve_radeq.py,sha256=2VGzFSVkyN0rTPFHaCQiD3v166cdEs39x7x7RuzLgmw,1886
|
|
@@ -28,6 +28,6 @@ turbodesign/spool.py,sha256=h4m--HR5g8o01Kkhl4Mbvx7WORQez3YpncDE7XxbNaw,14172
|
|
|
28
28
|
turbodesign/stage.py,sha256=UP45sDKDLsAkO_WfDWJ6kqXU7cYKh_4QO01QZnSN1oQ,166
|
|
29
29
|
turbodesign/td_math.py,sha256=GjJdH9Mym1_vMSDT7lxilzSLVHBM5-Z5UE0wfsH2hr4,16153
|
|
30
30
|
turbodesign/turbinespool.py,sha256=U_TMv5XNTlRWP9NJWTaaFWfNeTEGEuSVWt3HDi8QyFI,26124
|
|
31
|
-
turbo_design-1.1.
|
|
32
|
-
turbo_design-1.1.
|
|
33
|
-
turbo_design-1.1.
|
|
31
|
+
turbo_design-1.1.4.dist-info/METADATA,sha256=4pe7fwIxSnpYVF86iou7pFaKh4usQfKMe2Co--6U__w,683
|
|
32
|
+
turbo_design-1.1.4.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
33
|
+
turbo_design-1.1.4.dist-info/RECORD,,
|
turbodesign/bladerow.py
CHANGED
|
@@ -463,10 +463,10 @@ class BladeRow:
|
|
|
463
463
|
"Vx":self.Vx.tolist(),
|
|
464
464
|
"Vr":self.Vr.tolist(),
|
|
465
465
|
"Vt":self.Vt.tolist(),
|
|
466
|
+
"U":self.U.tolist(),
|
|
466
467
|
"V":self.V.tolist(),
|
|
467
468
|
"M":self.M.tolist(),
|
|
468
469
|
"M_rel":self.M_rel.tolist(),
|
|
469
|
-
"U":self.U.tolist(),
|
|
470
470
|
"W":self.W.tolist(),
|
|
471
471
|
"Wt":self.Wt.tolist(),
|
|
472
472
|
"omega":self.omega,
|
|
@@ -488,6 +488,10 @@ class BladeRow:
|
|
|
488
488
|
"aspect_ratio":self.aspect_ratio,
|
|
489
489
|
"num_blades":self.num_blades,
|
|
490
490
|
"area": self.area,
|
|
491
|
+
"radius":self.r.tolist(),
|
|
492
|
+
"x":self.x.tolist(),
|
|
493
|
+
"dx":self.x[-1]-self.x[0],
|
|
494
|
+
"dr":self.r[-1]-self.r[0],
|
|
491
495
|
"mprime":self.mprime[-1],
|
|
492
496
|
"Reynolds":self.Reynolds,
|
|
493
497
|
"axial_chord":self.axial_chord
|
turbodesign/passage.py
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
from typing import List, Tuple
|
|
2
2
|
import numpy as np
|
|
3
3
|
import numpy.typing as npt
|
|
4
|
-
from scipy.interpolate import
|
|
4
|
+
from scipy.interpolate import PchipInterpolator
|
|
5
5
|
from pyturbo.helper import line2D
|
|
6
6
|
from .enums import PassageType
|
|
7
7
|
from scipy.optimize import minimize_scalar
|
|
8
8
|
from findiff import FinDiff
|
|
9
|
-
from pyturbo.helper import convert_to_ndarray
|
|
9
|
+
from pyturbo.helper import convert_to_ndarray,xr_to_mprime
|
|
10
10
|
import matplotlib.pyplot as plt
|
|
11
11
|
|
|
12
12
|
class Passage:
|
|
13
|
-
xhub:
|
|
14
|
-
rhub:
|
|
13
|
+
xhub:PchipInterpolator
|
|
14
|
+
rhub:PchipInterpolator
|
|
15
15
|
xhub_pts:npt.NDArray
|
|
16
16
|
rhub_pts:npt.NDArray
|
|
17
17
|
|
|
18
|
-
xshroud:
|
|
19
|
-
rshroud:
|
|
18
|
+
xshroud:PchipInterpolator
|
|
19
|
+
rshroud:PchipInterpolator
|
|
20
20
|
xshroud_pts:npt.NDArray
|
|
21
21
|
rshroud_pts:npt.NDArray
|
|
22
22
|
|
|
@@ -25,6 +25,7 @@ class Passage:
|
|
|
25
25
|
|
|
26
26
|
x_streamlines:npt.NDArray
|
|
27
27
|
r_streamlines:npt.NDArray
|
|
28
|
+
hub_arc_len:float
|
|
28
29
|
|
|
29
30
|
def __init__(self,xhub:List[float],rhub:List[float],
|
|
30
31
|
xshroud:List[float],rshroud:List[float],
|
|
@@ -41,12 +42,15 @@ class Passage:
|
|
|
41
42
|
assert len(xhub) == len(xshroud), "xHub and xShroud should be the same length"
|
|
42
43
|
assert len(rhub) == len(rshroud), "rHub and rShroud should be the same length"
|
|
43
44
|
|
|
45
|
+
hub_arc_len = xr_to_mprime(np.vstack([xhub,rhub]).transpose())[1]
|
|
46
|
+
self.hub_arc_len = hub_arc_len[-1]
|
|
47
|
+
|
|
48
|
+
self.xhub = PchipInterpolator(hub_arc_len/hub_arc_len[-1],xhub) # Get the xhub,rhub in terms of the hub arc len
|
|
49
|
+
self.rhub = PchipInterpolator(hub_arc_len/hub_arc_len[-1],rhub)
|
|
50
|
+
self.xshroud = PchipInterpolator(hub_arc_len/hub_arc_len[-1],xshroud)
|
|
51
|
+
self.rshroud = PchipInterpolator(hub_arc_len/hub_arc_len[-1],rshroud)
|
|
52
|
+
|
|
44
53
|
self.n = len(xhub)
|
|
45
|
-
t_streamline = np.linspace(0,1,len(xhub))
|
|
46
|
-
self.xhub = interp1d(t_streamline,xhub)
|
|
47
|
-
self.rhub = interp1d(t_streamline,rhub)
|
|
48
|
-
self.xshroud = interp1d(t_streamline,xshroud)
|
|
49
|
-
self.rshroud = interp1d(t_streamline,rshroud)
|
|
50
54
|
|
|
51
55
|
self.xhub_pts = convert_to_ndarray(xhub)
|
|
52
56
|
self.rhub_pts = convert_to_ndarray(rhub)
|
|
@@ -148,7 +152,7 @@ class Passage:
|
|
|
148
152
|
(Tuple) containing:
|
|
149
153
|
|
|
150
154
|
cut (line2D): line from hub to shroud
|
|
151
|
-
t_hub (float):
|
|
155
|
+
t_hub (float): Percentage along hub arc length
|
|
152
156
|
t_shroud (float): t corresponding to intersection of bisector of hub
|
|
153
157
|
|
|
154
158
|
"""
|
|
@@ -195,6 +199,7 @@ class Passage:
|
|
|
195
199
|
np.NDArray: _description_
|
|
196
200
|
"""
|
|
197
201
|
t_hub = np.linspace(axial_location[0],axial_location[1],100)
|
|
202
|
+
t_hub = convert_to_ndarray(t_hub)*self.hub_length
|
|
198
203
|
|
|
199
204
|
shroud_pts_cyl = np.vstack([self.xshroud(t_hub),self.rshroud(t_hub)]).transpose()
|
|
200
205
|
hub_pts_cyl = np.vstack([self.xhub(t_hub),self.rhub(t_hub)]).transpose()
|