turbo-design 1.3.0__py3-none-any.whl → 1.3.1__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.3.
|
|
3
|
+
Version: 1.3.1
|
|
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=
|
|
24
|
+
turbodesign/radeq.py,sha256=hmHNmP5Fj0qgwq0o_j_bSyC4ktL3XFuC3QaebH5Ju_M,11361
|
|
25
25
|
turbodesign/rotor.py,sha256=tHl9o5H4aQ6Etd4gqa8Ime1UK7k0de4GLt5Yb1sJdGs,1376
|
|
26
26
|
turbodesign/solve_radeq.py,sha256=mGVBHmc20pAXEDKGzyiU3BVUsmY9gJl7zhbtHZqxARg,1956
|
|
27
27
|
turbodesign/spool.py,sha256=XKvYABvfigLulGLHH23X7k6aL6wvfuqgfLkKCMK9X8c,14338
|
|
28
28
|
turbodesign/stage.py,sha256=UP45sDKDLsAkO_WfDWJ6kqXU7cYKh_4QO01QZnSN1oQ,166
|
|
29
29
|
turbodesign/td_math.py,sha256=NMKgHkc36LCrr4bZxjxx7TcA4ztaRps1cIsm1tucMrk,16069
|
|
30
|
-
turbodesign/turbinespool.py,sha256=
|
|
31
|
-
turbo_design-1.3.
|
|
32
|
-
turbo_design-1.3.
|
|
33
|
-
turbo_design-1.3.
|
|
30
|
+
turbodesign/turbinespool.py,sha256=VmoyLH-TqaX9uXF5xWhwNriLPKZ5trjLiRg8NdV9MiE,25268
|
|
31
|
+
turbo_design-1.3.1.dist-info/METADATA,sha256=3b9pATZ2DBpozyTFfEHxS5YxjY-pCCfwgYEQ5NGnjkA,683
|
|
32
|
+
turbo_design-1.3.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
33
|
+
turbo_design-1.3.1.dist-info/RECORD,,
|
turbodesign/radeq.py
CHANGED
|
@@ -102,13 +102,13 @@ def radeq(row:BladeRow,upstream:BladeRow,downstream:BladeRow=None) -> BladeRow:
|
|
|
102
102
|
if (C>1) & ((gamma/(gamma-1))<2):
|
|
103
103
|
raise Exception("Invalid value of C {C}, change reduce alpha or Vm")
|
|
104
104
|
B = (1-C)**(gamma/(gamma-1))
|
|
105
|
-
A = P0 * gamma/(gamma-1) * (1-C)**(1/(gamma-1))
|
|
105
|
+
A = P0 * gamma/(gamma-1) * (1-C)**(1/(gamma-1)) * (1+np.tan(alpha)**2)/(2*Cp)
|
|
106
106
|
|
|
107
107
|
epsilon = 1e-10 # or another small threshold
|
|
108
108
|
if abs(rm) > epsilon:
|
|
109
|
-
dVm_dr =
|
|
109
|
+
dVm_dr = Vm/(2*T0**2) * dT0_dr - rho/(2*A*Vm) * (Vt**2/r + Vm/rm*np.cos(phi)-Vr*dVm_dm) + B/(2*A*Vm) * dP0_dr # Eqn 21
|
|
110
110
|
else:
|
|
111
|
-
dVm_dr =
|
|
111
|
+
dVm_dr = Vm/(2*T0**2) * dT0_dr - rho/(2*A*Vm) * (Vt**2/r) + B/(2*A*Vm) * dP0_dr # Eqn 21, modified
|
|
112
112
|
|
|
113
113
|
ydot = np.array([dP0_dr,dT0_dr,dVm_dr])
|
|
114
114
|
|
turbodesign/turbinespool.py
CHANGED
|
@@ -278,7 +278,7 @@ class TurbineSpool(Spool):
|
|
|
278
278
|
|
|
279
279
|
print(f"Looping to converge massflow")
|
|
280
280
|
past_err = -100; loop_iter = 0; err = 0.001
|
|
281
|
-
while np.abs((err-past_err)/err)>0.05:
|
|
281
|
+
while (np.abs((err-past_err)/err)>0.05) and loop_iter<10:
|
|
282
282
|
if len(outlet_P) == 1:
|
|
283
283
|
# x = balance_massflows(0.658,self.blade_rows[:-1],self.blade_rows[0].P0,self.blade_rows[-1].P)
|
|
284
284
|
res = minimize_scalar(fun=balance_massflows,args=(self.blade_rows,self.blade_rows[0].P0,self.blade_rows[-1].P),bounds=outlet_P[0],tol=0.001,options={'disp': True},method='bounded')
|
|
@@ -302,7 +302,9 @@ class TurbineSpool(Spool):
|
|
|
302
302
|
self.blade_rows[-1].transfer_quantities(self.blade_rows[-2])
|
|
303
303
|
self.blade_rows[-1].P = self.blade_rows[-1].get_static_pressure(self.blade_rows[-1].percent_hub_shroud)
|
|
304
304
|
|
|
305
|
+
past_err = err
|
|
305
306
|
err = self.__massflow_std__(self.blade_rows)
|
|
307
|
+
loop_iter += 1
|
|
306
308
|
print(f"Loop {loop_iter} massflow convergenced error:{err}")
|
|
307
309
|
|
|
308
310
|
# calculate Reynolds number
|