Difference between revisions of "OpenFOAM/C3/Turbulent-Flow-in-a-Lid-driven-Cavity/English"
Line 71: | Line 71: | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| This problem is identical in '''geometry and boundary | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| This problem is identical in '''geometry and boundary condition''' to the ''''Lid Driven Cavity'''' problem discussed in the basic level tutorial. |
Line 88: | Line 88: | ||
|- | |- | ||
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Steps in setting up the problem | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Steps in setting up the problem | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Now let us open the '''Terminal''' window by pressing '''Ctrl+Atl+T''' keys together | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Now let us open the '''Terminal''' window by pressing '''Ctrl+Atl+T''' keys together |
|- | |- | ||
Line 102: | Line 102: | ||
|- | |- | ||
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Type cd incompressible | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Type cd incompressible | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Now type '''cd space incompressible''' and press '''Enter'''. |
|- | |- | ||
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Type cd pisoFoam | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Type cd pisoFoam | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Now type '''cd space pisoFoam''' (Note that '''F''' here is capital ) and press '''Enter''' |
|- | |- | ||
Line 170: | Line 170: | ||
Type ls | Type ls | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| To do this, in the '''command terminal''' type '''cd 0''' and press '''Enter'''. | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| To do this, in the '''command terminal''' type '''cd space 0''' and press '''Enter'''. |
Line 238: | Line 238: | ||
− | ''' | + | '''The simulation type model''' for this '''case''' is kept as '''RASModel'''. |
Line 251: | Line 251: | ||
− | To do this, in the '''terminal''' type '''gedit transportProperties '''and press '''Enter'''. | + | To do this, in the '''terminal''' type '''gedit space transportProperties '''and press '''Enter'''. |
− | The '''transportModel '''we are using here is '''Newtonian '''and '''Viscosity''' is kept as '''1 e raise to -4''' | + | The '''transportModel '''we are using here is '''Newtonian '''and the '''Viscosity''' is kept as '''1 e raise to -4''' |
Line 277: | Line 277: | ||
− | We will keep the '''system''' folder default | + | We will keep the '''system''' folder default as there are no changes inside it. |
|- | |- | ||
Line 290: | Line 290: | ||
− | + | We can '''mesh''' the '''geometry'''. | |
Line 338: | Line 338: | ||
− | A common | + | A common visualization is '''surface plots'''. |
− | Change the display to '''Surface''' in the column and from the drop down menu change from '''solid | + | Change the display to '''Surface''' in the column and from the drop down menu change from '''solid colour''' to '''U''' |
Line 354: | Line 354: | ||
− | Click the '''Play''' button. | + | Click on the '''Play''' button. |
Line 360: | Line 360: | ||
− | You can also '''toggle''' on the ''' | + | You can also '''toggle''' on the '''colour legend''' on the left hand side top of '''ParaView active variable control menu'''. |
Line 373: | Line 373: | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Now to visualise the '''stream lines''' |
− | *On | + | *On top of the menu bar of '''ParaView''' |
− | *Go to '''Filters > Common | + | *Go to '''Filters > Common and Stream Tracers''' |
*Click on it | *Click on it | ||
Line 384: | Line 384: | ||
− | You can see the '''stream lines''' at the | + | You can see the '''stream lines''' at the centre of the '''lid driven cavity'''. |
|- | |- | ||
Line 422: | Line 422: | ||
− | Similarly you can select the '''X axis''' and plot '''streamlines''' along the '''X axis'''. | + | Similarly you can select the '''X axis''' and plot the '''streamlines''' along the '''X axis'''. |
Line 432: | Line 432: | ||
Save as .csv format | Save as .csv format | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| You can also plot the '''velocity''' along | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| You can also plot the '''velocity''' along '''X''' and '''Y''' axis using '''plot over line'''. |
− | To do this go to '''Filter > Data Analysis | + | To do this go to '''Filter > Data Analysis and Plot over line'''. |
− | Save the data as''' | + | Save the data as''' dot csv''' file from the file menu. |
Click on '''Save Data'''. | Click on '''Save Data'''. | ||
Line 451: | Line 451: | ||
Now let me switch back to the slides. | Now let me switch back to the slides. | ||
− | The results obtained can be '''validated''' by results | + | The results obtained can be '''validated''' by using results of '''Ghia et.al for Reynolds Number , Re is equal to 10000''' |
|- | |- | ||
Line 460: | Line 460: | ||
Let us summarise. | Let us summarise. | ||
− | |||
− | |||
*'''Turbulent Flow in a Lid Driven Cavity''' | *'''Turbulent Flow in a Lid Driven Cavity''' | ||
*and plotting '''stream lines '''in''' ParaView''' | *and plotting '''stream lines '''in''' ParaView''' | ||
Line 475: | Line 473: | ||
* Change it to (100 100 1) | * Change it to (100 100 1) | ||
− | * | + | * And visualise the results in '''ParaView''' using '''streamlines''' |
|- | |- | ||
Line 496: | Line 494: | ||
-Gives certificates to those who pass an online test | -Gives certificates to those who pass an online test | ||
− | -For more details, please write to | + | -For more details, please write to |
contact@spoken-tutorial.org | contact@spoken-tutorial.org | ||
Line 547: | Line 545: | ||
|- | |- | ||
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 13: Acknowledgements | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 13: Acknowledgements | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Spoken Tutorials | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Spoken Tutorials 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. | It is supported by the National Mission on Education through ICT, MHRD, Government of India. | ||
− | + | More information on the this mission is available at this URL http://spoken-tutorial.org/NMEICT-Intro | |
− | + | ||
− | More information on the | + | |
|- | |- |
Revision as of 18:24, 29 July 2019
Tutorial: Turbulent flow in a lid driven cavity
Script : Chaitanya Talnikar, Shekhar Mishra , Rahul Joshi
Narration : Rahul Joshi
Keywords: Video tutorial ,CFD,Turbulent Flow in Lid driven cavity,OpenFOAM.
|
|
Slide 1: | Hello and welcome to the spoken tutorial on modelling Turbulent flow in a Lid Driven Cavity using OpenFOAM |
Slide 2:
|
In this tutorial I will show you
|
Slide 3:
|
To record this tutorial I am using
|
Slide 4:
System Requirement
|
|
Slide 5 :
|
To practice this tutorial you should have some basic knowledge of
|
Demo:
Set up working Directory
|
This problem is identical in geometry and boundary condition to the 'Lid Driven Cavity' problem discussed in the basic level tutorial.
|
Slide 6: Solver | We are using a Transient solver for incompressible turbulent flow of Newtonian fluids called as pisoFoam |
Steps in setting up the problem | Now let us open the Terminal window by pressing Ctrl+Atl+T keys together |
In the terminal window
Type cd tutorials |
In the terminal window type run and press Enter.
|
Type cd incompressible | Now type cd space incompressible and press Enter. |
Type cd pisoFoam | Now type cd space pisoFoam (Note that F here is capital ) and press Enter |
Type ls
|
Now type ls and press Enter.
|
Type cd ras
|
Our folder name is cavity.
|
Type cd cavity
ls |
You can see the cavity folder. Let me clear this off.
|
Point to the 3 folders
Boundary and Initial conditions
|
You can see three folders 0, constant and system.
|
Inside the 0 folder
|
To do this, in the command terminal type cd space 0 and press Enter.
|
Point to the files as per narration | You can see files named as epsilon, k, nut, nutilda, p, R and U.
|
Type cd.. | Now type cd space dot dot and press Enter.
|
Type cd constant
Type ls |
Let us open the constant folder.
|
PolyMesh folder and fluid property files | In this you will see the polyMesh folder containing
|
Point to the two files as per narration | In this case you will see two more files other than transportProperties named as RASProperties and turbulenceProperties.
|
RASProperties | In the terminal type gedit (space) RASProperties and press Enter.
|
turbulentProperties | Now in the command terminal, type gedit space turbulentproperties and press Enter.
|
TransportModel
|
Now let us open the transportProperties model.
|
Do not change the blockMeshDict file
|
We are not changing the geometry in this case.
|
Type cd.. | In the terminal type cd space dot dot and press Enter.
|
Meshing the geometry
|
Now, we are done with the setup.
|
Running the solver : pisoFoam | Now we can run the solver.
|
Post-processing the results in paraview | The iterations running will stop at the end of the time step.
|
View the geometry
|
On the left hand side in the Object Inspector menu click on Apply.
|
Click on the Play button on VCR control for animation
|
Now on top of the ParaView window you can see the VCR control.
|
Visualise the streamlines
|
Now to visualise the stream lines
|
Streamlines on top | On the left hand side of the Object inspector menu you can see Apply. Click on it.
|
Streamlines view | You can also change the orientation in which the stream lines are viewed.
|
Shift to right >> change point source to line source. | Let me shift this to the right and change from point source to line source. |
Plot streamlines about X, Y and Z axis
Click on the X axis Delete this. |
You can see the X, Y and Z axes which are visible.
|
Plot data over line
|
You can also plot the velocity along X and Y axis using plot over line.
To do this go to Filter > Data Analysis and Plot over line. Save the data as dot csv file from the file menu. Click on Save Data. |
Plot the results
For Re= 10000 |
You can plot this data in libre office spreadsheet or any other plotting software of your choice.
Now let me switch back to the slides. The results obtained can be validated by using results of Ghia et.al for Reynolds Number , Re is equal to 10000 |
Slide 7:
Summary |
That's all we have in this tutorial.
Let us summarise.
This brings us to the end of the tutorial. |
Slide 8: Assignment | As an assignment
|
http://spoken-tutorial.org/What_is_a_Spoken_Tutorial
| |
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 9:
Forum to answer questions
|
|
Slide 10:
Forum to answer questions
|
|
Slide 11:
Lab Migration Project
For more details visit this site: http://cfd.fossee.in/ |
|
Slide 12:
Case Study Project
For more details visit this site: http://cfd.fossee.in/ |
|
Slide 13: Acknowledgements | Spoken Tutorials 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 the this mission is available at this URL http://spoken-tutorial.org/NMEICT-Intro |
About the contributor | The script is contributed by Shekhar Mishra and Chaitanya talnikar
This is Rahul Joshi from IIT BOMBAY signing off. Thanks for joining |