Skip to content

Commit

Permalink
Released 1.0.17
Browse files Browse the repository at this point in the history
Fixes to stage tutorial.
  • Loading branch information
pjuangph committed Nov 20, 2024
1 parent eae5cdc commit 155fc27
Show file tree
Hide file tree
Showing 7 changed files with 9,656 additions and 9,687 deletions.
708 changes: 345 additions & 363 deletions poetry.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[tool.poetry]
name = "pyturbo-aero"
version = "1.0.16"
version = "1.0.17"
description = "PyTurbo_Aero is a Turbomachinery blade design library that lets you create a full 3D blades and passages."
authors = ["Paht Juangphanich <paht.juangphanich@nasa.gov>"]
packages = [
{ include = "pyturbo" }
]

[tool.poetry.dependencies]
python = ">=3.9"
python = ">=3.10"
plotly = "*"
tqdm = "*"
scipy = "*"
Expand Down
8 changes: 4 additions & 4 deletions pyturbo/aero/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
Imports airfoil 2D and 3D and wavy
"""
from .airfoil2D import *
from .airfoil3D import *
from .airfoil_wavy import *
from .passage2D import *
from .airfoil2D import Airfoil2D
from .airfoil3D import Airfoil3D, stack_type,spline_type
from .airfoil_wavy import Airfoil3D_Wavy
from .passage2D import Passage2D
4 changes: 2 additions & 2 deletions pyturbo/aero/airfoil_wavy.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from ..helper import derivative_1, bezier,cosd,sind
import math

class airfoil_wavy(Airfoil3D):
class Airfoil3D_Wavy(Airfoil3D):
"""Makes the surface of the airfoil: LE, TE, SS, PS wavy
"""
def __init__(self,profileArray,profile_loc,height):
Expand All @@ -16,7 +16,7 @@ def __init__(self,profileArray,profile_loc,height):
profile_loc ([List[float]]): Locations in terms of percent span where these 2D airfoils are located
height ([float]): height of the airfoil
"""
super(airfoil_wavy, self).__init__(profileArray,profile_loc,height)
super(Airfoil3D_Wavy, self).__init__(profileArray,profile_loc,height)


def stretch_thickness_chord(self,SSRatio,PSRatio,LERatio,TERatio,LE_wave_angle,TE_wave_angle,TE_smooth=0.85):
Expand Down
5 changes: 2 additions & 3 deletions pyturbo/aero/passage2D.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D

class passage2D:
class Passage2D:
"""Passage2D fits 3D blades inside of a channel
"""
def __init__(self,airfoil_array,spacing_array,periodicity_array):
def __init__(self,airfoil_array,spacing_array):
'''
Initialize the passage with airfoils and spacing array
airfoil_array = array of airfoil3D objects
Expand All @@ -24,7 +24,6 @@ def __init__(self,airfoil_array,spacing_array,periodicity_array):
'''
self.airfoils=airfoil_array
self.spacing=spacing_array
self.periodicity_array = periodicity_array


def add_endwalls(self,zhub:List[float],rhub:List[float],zshroud:List[float],rshroud:List[float],zhub_control:List[float]=[],rhub_control:List[float]=[],zshroud_control:List[float]=[],rshroud_control:List[float]=[]):
Expand Down
2 changes: 1 addition & 1 deletion pyturbo/helper/bezier.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def get_point_dt(self,t):
tempy = self.y[1]- self.y[0]
else:
for j in range(self.n-1): # n-1
b = (comb(self.n-2,j,True)*t[i]**j) * (1-t[i])**(self.n-2-j) # Bn-1
b = (comb(self.n-2,j,exact=True)*t[i]**j) * (1-t[i])**(self.n-2-j) # Bn-1
tempx = tempx + b*(self.x[j+1]-self.x[j]) # Note: j+1 = j
tempy = tempy + b*(self.y[j+1]-self.y[j])

Expand Down
18,612 changes: 9,300 additions & 9,312 deletions tutorials/3D_StageTutorial.ipynb

Large diffs are not rendered by default.

0 comments on commit 155fc27

Please sign in to comment.