OpenFOAM/C3/Flow-over-a-flat-plate/English
Tutorial: Flow over a flat plate using OpenFOAM.
Script and Narration: Rahul Joshi
Keywords: Video tutorial, CFD, Flat plate, Boundary layer, glyph (vector plotting).
|
|
Slide 1 | Hello and welcome to the spoken tutorial on Flow over a flat plate using OpenFOAM. |
Slide 2 : Learning Objectives | In this tutorial I will teach you about the
Geometry of the flat plate I will also show you how to
|
Slide 3:
System Requirement |
To record this tutorial
|
Slide 4:
|
Flow over flat plate is a fundamental problem in fluid mechanics
|
Slide 5:
Flow over a flat plate diagram |
We can visualise the growth of boundary layer
|
Slide 6: Diagram of boundary conditions. | This is a diagram of flow over the flat plate
|
Click on home>> OpenFoam >> Run >> Tutorials >> Incompressible >> SimpleFoam | Go to the home folder and click on the OpenFoam folder
|
Right click >> Create new folder >> flatplate | In this, create a folder by the name flatplate.
|
Double-click pitzdaily folder | Now, let's open the pitzdaily case. |
Zoom in | Let me zoom this. |
Select 0, constant and system folders | Copy the three folders - 0, constant and system |
Copy them | Copy this |
Go back to SimpleFoam >> flatplate folder
Paste them there |
Now let us go one level back.
|
Click on constant >> polyMesh | Open the constant folder and then the polyMesh folder |
Change the geometry and boundary condition names in the blockMeshDict file. | |
I have already made the changes.
The geometry is in meters. | |
We have set the dimensions of the flatplate | |
Simplegrading (1 3 1) | We can see that simpleGrading.
|
Now close this.
| |
Similarly, make changes in the boundary condition names inside the files in the 0 folder.
| |
To calculate the values of wall functions,
| |
The system folder can be kept default
| |
Open the terminal window :
Press Ctrl+Alt+t keys simultaneously |
Now let us open the terminal window.
|
Type cd tutorials | Type cd space tutorials and press Enter. |
Type cd incompressible | Type cd incompressible press Enter. |
Type cd simpleFoam | Type cd space simpleFoam press Enter. |
Type ls | Now type ls and press Enter. |
We can see the flatplate folder. | |
Type cd flatplate | Now type cd space flatplate and press Enter. |
Type ls | Now type ls and press Enter. |
You can see the three folders 0,constant and system. | |
Type blockMesh | Now, we will mesh the geometry.
|
Press Enter.
| |
Note that if there is some error in the blockMesh file,
| |
Type paraFoam | To view the geometry, type “paraFoam”
and press Enter. |
Paraview window click on APPLY button on left hand side
|
After the ParaView window opens, on the left hand side of the object inspector menu, click Apply.
|
Slide 6 : solver | The solver we are using here is: simpleFoam.
|
Demo :
|
Let me switch back to the terminal window.
|
Type paraFoam | Once the solving is done, type paraFoam to view the results. |
In the Paraview window click on APPLY button on left hand side | On the left hand side of the Object Inspector menu, click Apply to view the geometry. |
Properties | Scroll down the properties panel of the Object Inspector menu for time step, regions and fields |
Change the drop down menu from Solid Color to U | To view the contours from the top drop down menu,
|
You can see the initial condition of velocity | |
VCR control | Now on top of the ParaView window, you will see the VCR controls. |
Click on Play button of VCR control | Click on the Play button. |
You will see the contour of Pressure or Velocity on the flat plate accordingly | |
Toggle on the Colour legend | This is the velocity contour
|
Color legend left hand side top icon | To do this, click on the colour legend icon in the Active Variable Control menu |
Clcik on APPLY button | Click Apply in the Object inspector menu
|
Click on Display | In the Object inspector menu, click on Display
|
Click on rescale to data range | Scroll down and click on Rescale to data range
|
Shift color legend on top of the geometry | Let me shift this Color legend on top |
Top menu >> Filter > Commom > glyph | To visualize the Vector Plot,
|
Go to the Properties in Object Inspector menu | |
Click Apply on the left hand side of Object Inspector Menu. | |
Changing vector size | You can change the number of vectors by changing their size at the bottom. |
Scroll down and click on edit button
|
Also, the size of the vectors can be changed by clicking on the Edit button.
|
Click the apply button | Again, click the Apply button. |
Now let me zoom this | |
Click on ZoomToBox icon | To do this, in the Active Variable Control menu, click on zoomToBox option |
And zoom over any area that you desire | |
Parabolic variation of vector plot | We can see the parabolic variation of vector plot as the flow moves over the plate. |
Delete the vector plot | Delete this. Now delete the vector plot. |
Correesponding to color of 1 in color legend | Also, we can see that the color near to 1
|
To plot the data along x and y axis | You can also plot the variation of velocity along the x and y axes using the plot data over line.
|
Slide 9
Summary
|
This brings us to the end of the tutorial.
|
Slide 10:
Assignment |
As an Assignment,
Create a geometry of flow over a flat plate Refine the grid spacing near the plate |
Slide 11 :
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 12:
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 13:
Acknowledgement
|
Spoken Tutorial project is a part of the Talk to a Teacher project,
It is supported by the National Mission on Education through ICT, MHRD, Government of India. More information on this mission is available at this URL http://spoken-tutorial.org/NMEICT-Intro |
About the contributor | This is Rahul Joshi from IIT BOMBAY signing off.
Thanks for joining. |