turbo-design 1.0.5__py3-none-any.whl → 1.0.7__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
1
  Metadata-Version: 2.1
2
2
  Name: turbo-design
3
- Version: 1.0.5
3
+ Version: 1.0.7
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
@@ -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=F94KAARzGd4edOgs2Cd6dSRteyYCR5U45687anYY-As,24042
3
+ turbodesign/bladerow.py,sha256=ztuuHkIL2K3nobbjUPiJcYKvB6Bt_G9A3A1HpY9LQJw,24042
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
@@ -11,23 +11,23 @@ turbodesign/loss/__init__.py,sha256=ZJomzXa6ElduFruURukCrFwJQXMWS2aW8JSaVQ-M2r8,
11
11
  turbodesign/loss/compressor/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
12
12
  turbodesign/loss/losstype.py,sha256=Vzj3UPk1_5IA3DtL56Eb5Z7LkYyMQ97DGZvgfki8ByA,708
13
13
  turbodesign/loss/turbine/TD2.py,sha256=evyTG4K6s56NGdjxrZFD3G7zsB8_2lJTBOxT3Ju2uG8,5207
14
- turbodesign/loss/turbine/__init__.py,sha256=gxTSMzUGgRHaUbG6SWrXg_XsQs7A6LNWeL_EMgHiuoc,286
15
- turbodesign/loss/turbine/ainleymathieson.py,sha256=cR8T-Uf75p-3cvlg6A3smi68LSJaubA_kSL7iBQw6po,5862
16
- turbodesign/loss/turbine/craigcox.py,sha256=GZt9lMTPI7U_uIM7IiRlZOYNGegHY0ImVXo5A5S8kJ0,9665
14
+ turbodesign/loss/turbine/__init__.py,sha256=d1UrbiIicO60FhDlOemo_irYW2asUaYoqlXUz-UG9zk,285
15
+ turbodesign/loss/turbine/ainleymathieson.py,sha256=8UbugNmxI12I68HGctJe2lQpqjKZN1b40UOTzqU6hQQ,5861
16
+ turbodesign/loss/turbine/craigcox.py,sha256=TrbNdpGdyD5kTRFKfNmbRDhCOjA0-GT5xoluLQpO1gA,9664
17
17
  turbodesign/loss/turbine/fixedefficiency.py,sha256=JJv4GUS5q9pvuf3akjBtlcHOykRYmRVFfDDrdWqH6S4,774
18
18
  turbodesign/loss/turbine/fixedpressureloss.py,sha256=jbm8dt8wtyN1RaOgpgYZsvwM0-0lv2Y73kXleyoy0zE,683
19
- turbodesign/loss/turbine/kackerokapuu.py,sha256=naOolqqQbW8hOoGe70H2WuovUF4zIc_FXrJT1Xan9yI,5073
20
- turbodesign/loss/turbine/traupel.py,sha256=6DHmeCrPjDlC-Q4XNTm2nQKEt6wx7ECLjCkWPGaF1bo,4165
19
+ turbodesign/loss/turbine/kackerokapuu.py,sha256=hUmZdyA1hAhN3_xbwBhka2dyk0Aq9rqq62S2ghuKSOk,5071
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
23
  turbodesign/passage.py,sha256=1Erl03ISwV4fTwRjgh2cCTdNpUpT1O4zrZh8xO-1zSU,7577
24
24
  turbodesign/radeq.py,sha256=4unpFad6hvgaYwYLBNI8o9bszyvoNiizYjMqRX0Mjcc,10012
25
25
  turbodesign/rotor.py,sha256=tHl9o5H4aQ6Etd4gqa8Ime1UK7k0de4GLt5Yb1sJdGs,1376
26
26
  turbodesign/solve_radeq.py,sha256=tdVbRAUbXaq8WCOjNUkTLQzND6orRUSEC2je3M_ly5g,1800
27
- turbodesign/spool.py,sha256=uDmAAZ_ougiHbjQG4qhyaOrxs6qAOXV9eri6mpiUHz0,13073
27
+ turbodesign/spool.py,sha256=-svy5RbNZrrHocq6Fyejz7RA_jS7QwA-BFPx87TV6yI,13048
28
28
  turbodesign/stage.py,sha256=UP45sDKDLsAkO_WfDWJ6kqXU7cYKh_4QO01QZnSN1oQ,166
29
29
  turbodesign/td_math.py,sha256=I_0cwr38O21MSvsrcTHcx_4N50nTpFKZR1IT-mKqsws,17227
30
30
  turbodesign/turbinespool.py,sha256=2f5wT668vRiZSb02R5TM74ZDAXiCUX2ikZCdqzFmkRY,21532
31
- turbo_design-1.0.5.dist-info/METADATA,sha256=LgTOdiXPLOVGdZDGy0MoHs49Wak6HbMJXPO_GApZCyM,683
32
- turbo_design-1.0.5.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
33
- turbo_design-1.0.5.dist-info/RECORD,,
31
+ turbo_design-1.0.7.dist-info/METADATA,sha256=fRpTVP0uathX8TZb2hFgY952TPQQeTDyYtnJEtTLUho,683
32
+ turbo_design-1.0.7.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
33
+ turbo_design-1.0.7.dist-info/RECORD,,
turbodesign/bladerow.py CHANGED
@@ -8,7 +8,7 @@ from .arrayfuncs import convert_to_ndarray
8
8
  from cantera import Solution, composite
9
9
  from .coolant import Coolant
10
10
  from pyturbo.helper import line2D
11
- from pyturbo.aero.airfoil2D import Airfoil2D
11
+ from pyturbo.aero.airfoil2D import airfoil2D
12
12
  from .loss import LossBaseClass
13
13
  from .passage import Passage
14
14
 
@@ -298,12 +298,12 @@ class BladeRow:
298
298
  float: camber length
299
299
  """
300
300
  if self.row_type == RowType.Stator:
301
- a2d = Airfoil2D(np.degrees(self.alpha1.mean()),
301
+ a2d = airfoil2D(np.degrees(self.alpha1.mean()),
302
302
  np.degrees(self.alpha2.mean()),
303
303
  self.axial_chord,
304
304
  self.stagger)
305
305
  else:
306
- a2d = Airfoil2D(np.degrees(self.beta1.mean()),
306
+ a2d = airfoil2D(np.degrees(self.beta1.mean()),
307
307
  np.degrees(self.beta2.mean()),
308
308
  self.axial_chord,
309
309
  self.stagger)
@@ -4,5 +4,5 @@ from .TD2 import TD2, TD2_Reynolds_Correction
4
4
  from .ainleymathieson import AinleyMathieson
5
5
  from .fixedefficiency import FixedEfficiency
6
6
  from .fixedpressureloss import FixedPressureLoss
7
- from .kackerokapuu import KrackerOkapuu
7
+ from .kackerokapuu import KackerOkapuu
8
8
  from .traupel import Traupel
@@ -28,7 +28,7 @@ class AinleyMathieson(LossBaseClass):
28
28
  path = pathlib.Path(os.path.join(os.environ['TD3_HOME'],"ainleymathieson"+".pkl"))
29
29
 
30
30
  if not path.exists():
31
- url = "https://github.com/nasa/turbo-design/blob/main/references/Turbines/AinleyMathieson/ainleymathieson.pkl"
31
+ url = "https://github.com/nasa/turbo-design/raw/main/references/Turbines/AinleyMathieson/ainleymathieson.pkl"
32
32
  response = requests.get(url, stream=True)
33
33
  with open(path.absolute(), mode="wb") as file:
34
34
  for chunk in response.iter_content(chunk_size=10 * 1024):
@@ -22,7 +22,7 @@ class CraigCox(LossBaseClass):
22
22
 
23
23
  if not path.exists():
24
24
  # Download data from Github
25
- url = "https://github.com/nasa/turbo-design/blob/main/references/Turbines/CraigCox/craigcox.pkl"
25
+ url = "https://github.com/nasa/turbo-design/raw/main/references/Turbines/CraigCox/craigcox.pkl"
26
26
  response = requests.get(url, stream=True)
27
27
  with open(path.absolute(), mode="wb") as file:
28
28
  for chunk in response.iter_content(chunk_size=10 * 1024):
@@ -8,7 +8,7 @@ import pathlib
8
8
  from ..losstype import LossBaseClass
9
9
  import requests
10
10
 
11
- class KrackerOkapuu(LossBaseClass):
11
+ class KackerOkapuu(LossBaseClass):
12
12
 
13
13
  def __init__(self):
14
14
  """KackerOkapuu model is an improvement to the Ainley Mathieson model.
@@ -25,7 +25,7 @@ class KrackerOkapuu(LossBaseClass):
25
25
  path = pathlib.Path(os.path.join(os.environ['TD3_HOME'],"kackerokapuu"+".pkl"))
26
26
 
27
27
  if not path.exists():
28
- url = "https://github.com/nasa/turbo-design/blob/main/references/Turbines/KackerOkapuu/kackerokapuu.pkl"
28
+ url = "https://github.com/nasa/turbo-design/raw/main/references/Turbines/KackerOkapuu/kackerokapuu.pkl"
29
29
  response = requests.get(url, stream=True)
30
30
  with open(path.absolute(), mode="wb") as file:
31
31
  for chunk in response.iter_content(chunk_size=10 * 1024):
@@ -14,7 +14,7 @@ class Traupel(LossBaseClass):
14
14
  path = pathlib.Path(os.path.join(os.environ['TD3_HOME'],"traupel"+".pkl"))
15
15
 
16
16
  if not path.exists():
17
- url = "https://github.com/nasa/turbo-design/blob/main/references/Turbines/Traupel/traupel.pkl"
17
+ url = "https://github.com/nasa/turbo-design/raw/main/references/Turbines/Traupel/traupel.pkl"
18
18
  response = requests.get(url, stream=True)
19
19
  with open(path.absolute(), mode="wb") as file:
20
20
  for chunk in response.iter_content(chunk_size=10 * 1024):
turbodesign/spool.py CHANGED
@@ -16,7 +16,7 @@ from .inlet import Inlet
16
16
  from .outlet import Outlet
17
17
 
18
18
  class Spool:
19
- blade_rows: List[BladeRow] = []
19
+ blade_rows:List[BladeRow]=[]
20
20
  massflow:float=0
21
21
  rpm:float = 0
22
22
 
@@ -115,8 +115,7 @@ class Spool:
115
115
  Example:
116
116
  # Station 0 has angles of [73.1,74.2,75.4]
117
117
  # Station 5 has angles of [69,69,69]
118
- beta = {0: [73.1,74.2,75.4],
119
- 5: [69,69,69]}
118
+ beta = {0: [73.1,74.2,75.4], 5: [69,69,69]}
120
119
 
121
120
  """
122
121
  for k,v in radius.items():