Skip to content

Commit

Permalink
add notebooks for tutorial 5 and 6
Browse files Browse the repository at this point in the history
  • Loading branch information
annaivagnes committed Sep 14, 2023
1 parent 43d143d commit d4940d0
Show file tree
Hide file tree
Showing 7 changed files with 1,978 additions and 99 deletions.
2 changes: 1 addition & 1 deletion bladex/profile/customprofile.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def _check_coordinates(self):
# The condition yup_coordinates >= ydown_coordinates must be satisfied
# element-wise to the whole elements in the mentioned arrays.
if not all(
np.greater_equal(self.yup_coordinates, self.ydown_coordinates)):
np.greater_equal(self.yup_coordinates[1:-1], self.ydown_coordinates[1:-1])):
raise ValueError('yup is not >= ydown elementwise.')

if not np.isclose(self.xdown_coordinates[0], self.xup_coordinates[0],
Expand Down
10 changes: 9 additions & 1 deletion tutorials/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,13 @@ Here we show how to prepare a blade 3D sectional profiles by applying all the tr
#### [Tutorial 4](https://github.com/mathLab/BladeX/blob/master/tutorials/tutorial-4-deform_blade.ipynb)
Here we show how to deform a blade and its parametric curves by using a parameter file.

#### [Tutorial 5](https://github.com/mathLab/BladeX/blob/master/tutorials/tutorial-5-foils-customprofile.ipynb)
Here we show how to initialize a blade starting from its parameters, either using the british convention or the american
one for the thickness generation.

#### [Tutorial 6](https://github.com/mathLab/BladeX/blob/master/tutorials/tutorial-6-blades-customprofile.ipynb)
Here we show how to deform a blade by deforming only its local (thickness, camber) parameters, and/or its global (rake,
skew, etc) parameters.

#### More to come...
We plan to add more tutorials but the time is often against us. If you want to contribute with a notebook on a feature not covered yet we will be very happy and give you support on editing!
We plan to add more tutorials but the time is often against us. If you want to contribute with a notebook on a feature not covered yet we will be very happy and give you support on editing!
4 changes: 2 additions & 2 deletions tutorials/tutorial-1-generate_foils.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"First of all we import from BladeX the `NacaProfile` and `CustomProfile` classes, which are inherited from the `ProfileBase` class containing the methods responsible for computing all the basic attributes and geometric features of the foil.\n",
"First of all we import from BladeX the `NacaProfile` and `CustomProfile` classes, which are inherited from the `ProfileBase` abstract class containing the methods responsible for computing all the basic attributes and geometric features of the foil.\n",
"We also import `numpy` and we set `matplotlib` for the notebook."
]
},
Expand Down Expand Up @@ -429,7 +429,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.2"
"version": "3.8.8"
}
},
"nbformat": 4,
Expand Down
526 changes: 501 additions & 25 deletions tutorials/tutorial-2-transform_foils.ipynb

Large diffs are not rendered by default.

804 changes: 804 additions & 0 deletions tutorials/tutorial-5-foils-customprofile.ipynb

Large diffs are not rendered by default.

661 changes: 661 additions & 0 deletions tutorials/tutorial-6-blades-customprofile.ipynb

Large diffs are not rendered by default.

70 changes: 0 additions & 70 deletions tutorials/tutorial5.py

This file was deleted.

0 comments on commit d4940d0

Please sign in to comment.