Difference between revisions of "OpenFOAM/C3/Turbulent-Flow-in-a-Lid-driven-Cavity/English"
m |
|||
Line 47: | Line 47: | ||
System Requirement | System Requirement | ||
− | | 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 record this tutorial I am using '''Linux operating system''' '''Ubuntu 12.04''' | + | | 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 record this tutorial I am using |
+ | * '''Linux operating system''' '''Ubuntu 12.04''' | ||
− | '''OpenFoam version 2.1.1''' | + | * '''OpenFoam version 2.1.1''' |
− | '''Paraview version 3.12.0''' | + | * '''Paraview version 3.12.0''' |
|- | |- | ||
Line 76: | Line 77: | ||
− | '''Turbulence modelling''' | + | * '''Turbulence modelling''' |
− | Knowledge of how to solve flow in a '''Lid driven cavity''' | + | * Knowledge of how to solve flow in a '''Lid driven cavity''' |
− | If not so please refer to the revelent '''tutorial''' on our website | + | * If not so please refer to the revelent '''tutorial''' on our website |
Line 121: | Line 122: | ||
'''turbulent flow of Newtonian fluids'''. | '''turbulent flow of Newtonian fluids'''. | ||
− | + | called as '''pisoFoam''' | |
− | + | ||
Line 129: | Line 129: | ||
|- | |- | ||
| 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 | + | | 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 180: | Line 180: | ||
− | You can see the '''cavity''' folder | + | You can see the '''cavity''' folder. Let me clear this off. |
Line 193: | Line 193: | ||
0 folder | 0 folder | ||
− | | 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;"| You can see three folders''' 0,constant and system'''. |
Line 215: | Line 215: | ||
− | | 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;"| To do this, In the command '''terminal''' type |
'''cd 0''' and press enter | '''cd 0''' and press enter | ||
Line 284: | Line 284: | ||
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| RASProperties | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| RASProperties | ||
| 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;"| In the terminal type''' gedit (space) RASProperties''' 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;"| In the terminal type''' gedit (space) RASProperties''' and press enter. | ||
− | |||
− | |||
− | |||
Line 295: | Line 292: | ||
− | Which is kept as ''' | + | Which is kept as '''kEpsilon''' |
Line 302: | Line 299: | ||
|- | |- | ||
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| turbulentProperties | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| turbulentProperties | ||
− | | 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 in the command terminal | + | | 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 in the command terminal, type |
Line 321: | Line 318: | ||
Change the value of viscosity | Change the value of viscosity | ||
− | | 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 '''transportProperties''' | + | | 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 '''transportProperties''' model |
− | In the terminal | + | To do this, In the terminal type '''gedit transportProperties '''and press enter. |
Line 336: | Line 333: | ||
|- | |- | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Do | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Do not change the blockMeshDict file |
Line 368: | Line 365: | ||
Meshing is done | Meshing is done | ||
− | | 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;"| We are done with the setup | + | | 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, We are done with the setup |
Line 374: | Line 371: | ||
− | To do this in the | + | To do this in the terminal window '''type blockMesh''' and press Enter |
Line 390: | Line 387: | ||
− | It may take some time | + | It may take some time for the '''iterations''' to stop. |
|- | |- | ||
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Post-processing the results in paraview | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Post-processing the results in paraview | ||
− | | 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;"| '''Iterations''' will stop at the end of the time step. | + | | 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;"| The '''Iterations''' running will stop at the end of the time step. |
Line 450: | Line 447: | ||
− | Click on it | + | Click on it, You can see the colour legend |
|- | |- | ||
Line 491: | Line 488: | ||
− | and change | + | and change from''' point source to line source''' |
|- | |- | ||
Line 544: | Line 541: | ||
For Re= 10000 | For Re= 10000 | ||
− | | 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 plot this data in ''' | + | | 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 plot this data in '''libre office spreadsheet '''or any other '''plotting''' software of your choice |
Now let me switch back to the slides | Now let me switch back to the slides | ||
Line 568: | Line 565: | ||
| 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;"| As an assignment | | 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;"| As an assignment | ||
− | Modify the '''grid size''' of the cavity | + | * Modify the '''grid size''' of the cavity |
− | Change it to (100 100 1) | + | * Change it to (100 100 1) |
− | Visualise the results in paraview using '''streamlines''' | + | * Visualise the results in paraview using '''streamlines''' |
|- | |- | ||
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;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;"| | + | | 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;"| |
+ | * Watch the video available at this URL: | ||
http://spoken-tutorial.org/What_is_a_Spoken_Tutorial | http://spoken-tutorial.org/What_is_a_Spoken_Tutorial | ||
− | It summarizes the Spoken Tutorial project. | + | * It summarizes the Spoken Tutorial project. |
− | If you do not have good bandwidth, you can download and watch it. | + | * If you do not have good bandwidth, you can download and watch it. |
|- | |- | ||
Line 600: | Line 598: | ||
Forum to answer questions | Forum to answer questions | ||
− | + | * Do you have questions on THIS Spoken Tutorial? | |
− | Choose the minute and second where you have the question | + | * Choose the minute and second where you have the question |
− | Explain your question briefly | + | * Explain your question briefly |
− | Someone from the FOSSEE team will answer them. Please visit | + | * Someone from the FOSSEE team will answer them. Please visit |
http://forums.spoken-tutorial.org/ | http://forums.spoken-tutorial.org/ | ||
+ | | 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;"| | ||
|- | |- | ||
Line 610: | Line 609: | ||
Forum to answer questions | Forum to answer questions | ||
− | + | * Questions not related to the Spoken Tutorial? | |
− | Do you have general/technical questions on the Software? | + | * Do you have general/technical questions on the Software? |
− | Please visit the FOSSEE forum | + | * Please visit the FOSSEE forum |
http://forums.fossee.in/ | http://forums.fossee.in/ | ||
− | Choose the Software and post your question | + | * Choose the Software and post your question |
+ | | 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;"| | ||
Line 621: | Line 621: | ||
Lab Migration Project | Lab Migration Project | ||
− | + | * We coordinate migration from commercial CFD software like ANSYS to OpenFOAM | |
− | We conduct free Workshops and provide solutions to CFD Problem Statements in OpenFOAM | + | * We conduct free Workshops and provide solutions to CFD Problem Statements in OpenFOAM |
For more details visit this site: | For more details visit this site: | ||
http://cfd.fossee.in/ | http://cfd.fossee.in/ | ||
+ | | 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;"| | ||
Line 631: | Line 632: | ||
Case Study Project | Case Study Project | ||
− | + | * We invite students to solve a feasible CFD problem statement of reasonable complexity using OpenFOAM | |
− | We give honorarium and certificate to those who do this | + | * We give honorarium and certificate to those who do this |
For more details visit this site: | For more details visit this site: | ||
http://cfd.fossee.in/ | http://cfd.fossee.in/ | ||
+ | | 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:none;padding:0.097cm;"| | + | | 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 are part of Talk to a Teacher project, | | 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 are part of Talk to a Teacher project, | ||
Revision as of 17:15, 29 May 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
|
Slide 6: Solver | We will be using the Transient solver for incompressible,
called as pisoFoam
|
Steps in setting up the problem | Now let us open the terminal window
|
In the terminal window
|
In the terminal window type run and press enter
|
Two Folders les and ras
|
Now type ls and press enter
|
Cavity folder | Our folder name is cavity.
|
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 0 and press enter
|
Let us view the constant folder | Now type cd .. and press enter
|
PolyMesh folder and fluid property files
|
In this you will see the polyMesh folder containing the geometry
|
RASProperties | In the terminal type gedit (space) RASProperties and press enter.
|
turbulentProperties | Now in the command terminal, type
|
TransportModel
|
Now let us open the transportProperties model
|
Do not change the blockMeshDict file
|
We are not changing the geometry in this case
|
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
|
To visualise the stream lines
|
Streamlines on top of the | On the left hand side of the Object inspector menu click on Apply.
|
Plot streamlines about X, Y and Z axis
|
You can see the X, Y and Z axis which are visible
|
Plot data over line
|
You can also plot the velocity along the x and y axis using plot over line
To do this go to Filter > Data Analysis > Plot over line Save the data as .(dot) csv file from 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 results obtained by Ghia et.al for Reynolds No , Re= 10000 |
Slide 7:
Summary |
Thats all we have in this tutorial
Let us summarise In this tutorial we learnt Turbulent Flow in a Lid Driven Cavity And plotting streamlines in paraView 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 us at 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 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.org More information on the same is available at the following URL link 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 |