OpenFOAM/C3/Creating-and-Meshing-aerofoil-in-Gmsh/English
Tutorial: Creating and Meshing an airfoil in Gmsh
Script and Narration: Gautam Sharma
Keywords: Gmsh, Meshing, airfoil.
|
|
Slide 1 | Hello and welcome to the spoken tutorial on Creating and Meshing an airfoil in Gmsh |
Slide 2 : Learning Objectives
|
In this tutorial we will learn
|
Slide 2:
System Requirement |
To record this tutorial, I am using
|
Slide 3: Pre-requisite | To practice this tutorial the user should have basic knowledge of Airfoil and Gmsh.
|
Slide 4: About Airfoil
|
Let me introduce you to aerofoil.
|
Show the airfoil | This is the geometry of an airfoil. |
Slide 5 :
The dat file
|
The predefined coordinates for airfoil are available in simple text file with .dat extension.
We will download the .dat file and python script from this url: http://community.dur.ac.uk/g.l.ingram/download.php
|
Open naca5012xyz.dat file
|
Let me show you the .dat file.
|
Open the terminal
|
Press alt ctrl and T key simultaneously to open the terminal.
|
Run the python Script
python dat2gmsh.py naca5012xyz.dat |
Now type python space dat2gmsh.py space naca5012xyz.dat
|
Open naca5012xyz.dat.geo | Let me show you the file.
|
Open file in gmsh
|
In the terminal type gmsh space naca5012xyz.dat.geo and press enter.
|
Open the .geo file with text editor again
|
Go back to the .geo file. Scroll down to the bottom.
Point(1046) = { 1.005, -0.0005, 0.00000, nac_lc}; |
Modify the spline
|
Modify the spline to add the new point
Spline(1000) = {1000:1046,1000}; Save and close the file.
|
Set up a boundary around the airfoil
(4 -3 0) (-4 -3 0) (-4 3 0) |
Now we will make a boundary for the airfoil.
(4 3 0) (4 -3 0) (-4 -3 0) (-4 3 0) |
Join the points by Straight lines | Now join the points with straight line |
Define the surface | Click on Plane surface. Select the surface boundary
|
Select the aerofoil
|
Zoom in and select the airfoil as the hole boundary.
|
Extrude the surface
|
Now we will extrude the surface to make it 3D
|
Enter the coordinates for Z direction
|
Since we want to extrude the surface in positive Z direction.
The Z component is kept as 1
|
Generate the mesh
|
Now we will do the meshing. Gmsh automaticaly generates the mesh of the defined geometry.
|
Refine the mesh | We can also refine the mesh by clicking on the Refine by Splitting in the mesh menu. |
Save you work | Now let us save our work. |
Click on save as | Go to File menu and click on Save mesh.
We will name our file as airfoil.msh
|
Slide : Assignment | This brings us to the end of the tutorial.
|
Slide : Summary
|
In this tutorial we learnt :
|
Slide : About Spoken tutorials | Watch the video available at this URL:
http://spoken-tutorial.org/What_is_a_Spoken_Tutorial It summarizes the Spoken Tutorial project. If you do not have good bandwidth, you can download and watch it. |
Slide: About Spoken tutorials | The Spoken Tutorial Project Team
-Conducts workshops using spoken tutorials -Gives certificates to those who pass an online test -For more details, please write to contact@spoken-tutorial.org |
Slide:
Acknowledgement
|
Spoken Tutorials are part of Talk to a Teacher project,
It is supported by the National Mission on Education through ICT, MHRD, Government of India. This project is coordinated by http://spoken-tutorial More information on the same is available at the following URL link http://spoken-tutorial.org/NMEICT-Intro |
About the contributor | This is Gautam Sharma from IIT BOMBAY signing off.
Thanks for joining. |