turbo-design 1.3.3__py3-none-any.whl → 1.3.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.3
1
+ Metadata-Version: 2.1
2
2
  Name: turbo-design
3
- Version: 1.3.3
3
+ Version: 1.3.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
@@ -21,13 +21,13 @@ turbodesign/loss/turbine/traupel.py,sha256=aZxFE9JDcCfi1gy-fqS1SxjjlhuDG-H-g3LPu
21
21
  turbodesign/lossinterp.py,sha256=B2KEobp-nD9jwD6UINgBmTlH9kKyWg3UNvXxqfUsr-k,6198
22
22
  turbodesign/outlet.py,sha256=-0XpeEmTQpFjUQNYQxOp5WuHkF7cXfx59hxy7BmaxgY,2119
23
23
  turbodesign/passage.py,sha256=Ur6zZCzI9Y7HW0o5LrDq9yeatRain1mBLZBcTOzgjEU,11996
24
- turbodesign/radeq.py,sha256=NC4cRJG1Kz4n4zaLS5GFoIKBRSvTPuuj1dR1dgTa1mU,6475
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
27
27
  turbodesign/spool.py,sha256=63Gc6U3-6zcHEJx8RDLN4kM12poo5E-M-nlbKvHm43I,14376
28
28
  turbodesign/stage.py,sha256=UP45sDKDLsAkO_WfDWJ6kqXU7cYKh_4QO01QZnSN1oQ,166
29
29
  turbodesign/td_math.py,sha256=czq-u1otamELybdBW5tP_05rzeTHo7lnrckzQkR4rG4,16183
30
30
  turbodesign/turbinespool.py,sha256=8ttt2DuExuQFt9SXraRWhaYHQDkgyh_B6AoJqdNgRlg,25046
31
- turbo_design-1.3.3.dist-info/METADATA,sha256=eJGhBnk9pjFtVMPNk6RiXg9DS5y1By2thmrniE1zxfo,734
32
- turbo_design-1.3.3.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
33
- turbo_design-1.3.3.dist-info/RECORD,,
31
+ turbo_design-1.3.4.dist-info/METADATA,sha256=IRGdTBpHziYpyQ2K8pqkCRDsocU1HTFSDMHRMnAC9Bk,683
32
+ turbo_design-1.3.4.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
33
+ turbo_design-1.3.4.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 2.0.1
2
+ Generator: poetry-core 1.9.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
turbodesign/radeq.py CHANGED
@@ -1,12 +1,12 @@
1
+ from typing import Optional
1
2
  from scipy.interpolate import interp1d,PchipInterpolator
2
3
  from scipy.integrate import solve_ivp
3
4
  import numpy as np
4
- import numdifftools as nd
5
5
  from .bladerow import BladeRow
6
6
  from .enums import RowType
7
7
  import math
8
8
 
9
- def radeq(row:BladeRow,upstream:BladeRow,downstream:BladeRow=None) -> BladeRow:
9
+ def radeq(row:BladeRow,upstream:BladeRow,downstream:Optional[BladeRow]=None) -> BladeRow:
10
10
  """Solves the radial equilibrium equation for axial machines and returns the convergence.
11
11
 
12
12
  Note:
@@ -81,8 +81,8 @@ def radeq(row:BladeRow,upstream:BladeRow,downstream:BladeRow=None) -> BladeRow:
81
81
  else:
82
82
  func_Vm_m = PchipInterpolator([up_m, row_m],[up_Vm, Vm])
83
83
  else:
84
- func_Vm_m = PchipInterpolator([up_m, row_m],[up_Vm, Vm])
85
- dVm_dm = func_Vm_m.derivative()(row_m)
84
+ func_Vm_m = PchipInterpolator([up_m, row_m],[up_Vm, Vm]) # type: ignore
85
+ dVm_dm = func_Vm_m.derivative()(row_m) # type: ignore
86
86
 
87
87
  # Upstream
88
88
  dT_dr = float(interp1d(row_radius, np.gradient(row.T,row_radius))(r))