Skip to content

Commit

Permalink
Merge pull request #3 from nasa/1.0.5-bug-fixes-troubleshoopting
Browse files Browse the repository at this point in the history
1.0.5 bug fixes troubleshoopting
  • Loading branch information
pjuangph authored Jul 8, 2023
2 parents dcdb04a + 4526d4e commit 3c7ae26
Show file tree
Hide file tree
Showing 7 changed files with 57 additions and 76 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -190,3 +190,6 @@ tgs_format.py
*.q
*.soln
.DS_Store

# folders
solidwork_curves.txt/
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pyturbo-aero"
version = "1.0.4"
version = "1.0.5"
description = "PyTurbo_Aero is a Turbomachinery blade design library that lets you create a full 3D blades and passages."
authors = ["Paht Juangphanich <[email protected]>"]
packages = [
Expand Down
4 changes: 2 additions & 2 deletions pyturbo/aero/airfoil2D.py
Original file line number Diff line number Diff line change
Expand Up @@ -772,14 +772,14 @@ def plot2D(self):
x = self.ssBezierX[indx]
y = self.ssBezierY[indx]
d = dist(x,y,xcamber,ycamber)
min_indx = np.where(d == np.amin(d))
min_indx = np.where(d == np.amin(d))[0][0]
plt.plot([x,xcamber[min_indx]],[y,ycamber[min_indx]], color='black', linestyle='dashed')
# pressure side
for indx in range(0,len(self.psBezierX)):
x = self.psBezierX[indx]
y = self.psBezierY[indx]
d = dist(x,y,xcamber,ycamber)
min_indx = np.where(d == np.amin(d))
min_indx = np.where(d == np.amin(d))[0][0]
plt.plot([x,xcamber[min_indx]],[y,ycamber[min_indx]], color='black', linestyle='dashed')
# Plot the Trailing Edge
t = np.linspace(0,1,20)
Expand Down
60 changes: 22 additions & 38 deletions tutorials/2D_DesignTutorial.ipynb

Large diffs are not rendered by default.

62 changes: 28 additions & 34 deletions tutorials/3D_DesignTutorial.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tutorials/3D_design_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
stator_hub.te_create(radius=0.001,wedge_ss=2.5,wedge_ps=2.4)

stator_hub.flow_guidance2(10)

stator_hub.plot2D()
stator_mid = airfoil2D(alpha1=10,alpha2=72,axial_chord=0.038,stagger=45) # This creates the camberline
# Building Leading Edge
stator_mid.le_thickness_add(0.06)
Expand Down
Binary file added tutorials/blade.stl
Binary file not shown.

0 comments on commit 3c7ae26

Please sign in to comment.