turbo-design 1.3.5__py3-none-any.whl → 1.3.6__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
1
+ Metadata-Version: 2.3
2
2
  Name: turbo-design
3
- Version: 1.3.5
3
+ Version: 1.3.6
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,6 +10,7 @@ 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
13
14
  Requires-Dist: cantera
14
15
  Requires-Dist: findiff
15
16
  Requires-Dist: matplotlib
@@ -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=MaZJ-mDuLvh19AashnMQLx2XlR-Rk1r0HQS4kE0OxeI,2191
23
- turbodesign/passage.py,sha256=bp1fyfQ3rJpEiaYju4_hZ6O07AAOaWu7prz6B-AwtSw,12071
23
+ turbodesign/passage.py,sha256=RZ8giKMcpJI7EnO4SEnbGYcPFmKdGyzWC0UZTXHnS6g,12181
24
24
  turbodesign/radeq.py,sha256=KiZybA8EtOKMzszstdlaR-sF5KI9nUBgYOGZYLU1x4I,6516
25
25
  turbodesign/rotor.py,sha256=tHl9o5H4aQ6Etd4gqa8Ime1UK7k0de4GLt5Yb1sJdGs,1376
26
26
  turbodesign/solve_radeq.py,sha256=nLYlRtXElPgHaoUP9jwMulRmYKTJs_uQ1eCulk2V59I,1938
@@ -28,6 +28,6 @@ turbodesign/spool.py,sha256=81UFbBi5JKm0RJ_hjB40bKWeCXx0V2lt0b2VAwOtTDU,14376
28
28
  turbodesign/stage.py,sha256=UP45sDKDLsAkO_WfDWJ6kqXU7cYKh_4QO01QZnSN1oQ,166
29
29
  turbodesign/td_math.py,sha256=qlLlAMB3kHUMdkvr9sOKl-rPShDx-XQCqG9DHOr7Vis,16268
30
30
  turbodesign/turbinespool.py,sha256=vpmrNmZ23k2wU7b9GAZrT3dOpX3otkpTtjAlfCY92sQ,25271
31
- turbo_design-1.3.5.dist-info/METADATA,sha256=uv1dI15QIhWediM6cMY8tRS-u73pnhAwXcpDPIAQ5sI,683
32
- turbo_design-1.3.5.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
33
- turbo_design-1.3.5.dist-info/RECORD,,
31
+ turbo_design-1.3.6.dist-info/METADATA,sha256=T0hurxrmU0EtnW6pWQzml9KF7o22etumb68C3wWU0gA,734
32
+ turbo_design-1.3.6.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
33
+ turbo_design-1.3.6.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 1.9.0
2
+ Generator: poetry-core 2.1.3
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
turbodesign/passage.py CHANGED
@@ -6,7 +6,8 @@ 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,xr_to_mprime
9
+ from pyturbo.helper import convert_to_ndarray, xr_to_mprime
10
+
10
11
  import matplotlib.pyplot as plt
11
12
 
12
13
  class Passage:
@@ -50,10 +51,13 @@ class Passage:
50
51
  self.xshroud = PchipInterpolator(hub_arc_len/hub_arc_len[-1],xshroud)
51
52
  self.rshroud = PchipInterpolator(hub_arc_len/hub_arc_len[-1],rshroud)
52
53
 
53
- self.n = len(xhub)
54
+ if len(xhub) < 10:
55
+ self.n = 10
56
+ else:
57
+ self.n = len(xhub)
54
58
 
55
- self.xhub_pts = convert_to_ndarray(xhub)
56
- self.rhub_pts = convert_to_ndarray(rhub)
59
+ self.xhub_pts = convert_to_ndarray(xhub) # type: ignore
60
+ self.rhub_pts = convert_to_ndarray(rhub) # type: ignore
57
61
  self.xshroud_pts = convert_to_ndarray(xshroud)
58
62
  self.rshroud_pts = convert_to_ndarray(rshroud)
59
63
 
@@ -114,6 +118,7 @@ class Passage:
114
118
 
115
119
  d_dx = FinDiff(0,x_streamline[indices[0]:indices[-1]],1)
116
120
  d2_dx2 = FinDiff(0,x_streamline[indices[0]:indices[-1]],2)
121
+
117
122
  dr_dx = d_dx(r_streamline[indices[0]:indices[-1]])
118
123
  d2r_dx2 = d2_dx2(r_streamline[indices[0]:indices[-1]])
119
124