Difference between revisions of "OpenFOAM/C3/Turbulent-Flow-in-a-Lid-driven-Cavity/English"
Rahuljoshi (Talk | contribs) (Created page with 'Tutorial: Turbulence flow in a lid driven cavity Script : Chaitanya Talnikar, Shekhar Mishra Narration : Rahul Joshi Keywords: Video tutorial ,CFD. {| style="border-spac…') |
Rahuljoshi (Talk | contribs) |
||
Line 1: | Line 1: | ||
− | Tutorial: | + | Tutorial: Turbulent flow in a lid driven cavity |
− | Script : Chaitanya Talnikar, Shekhar Mishra | + | Script : Chaitanya Talnikar, Shekhar Mishra , Rahul Joshi |
Line 8: | Line 8: | ||
− | Keywords: Video tutorial ,CFD. | + | Keywords: Video tutorial ,CFD,Turbulent Flow in Lid driven cavity,OpenFOAM. |
{| style="border-spacing:0;" | {| style="border-spacing:0;" | ||
− | | style="border-top: | + | | style="border-top:0.05pt solid #000000;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| <center>Visual Cue</center> |
− | | style="border: | + | | style="border:0.05pt solid #000000;padding:0.097cm;"| <center>Narration</center> |
|- | |- | ||
− | | style="border-top: | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 1: |
+ | |||
+ | |||
+ | |||
+ | | 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;"| Hello and welcome to the spoken tutorial on modelling turbulent flow in a Lid Driven Cavity using OpenFOAM | ||
− | |||
|- | |- | ||
− | | style="border-top: | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 2: |
− | | style="border | + | |
+ | |||
+ | Learning Objectives | ||
+ | | 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 this tutorial I will show you | ||
Line 31: | Line 37: | ||
− | Plotting streamlines in Paraview | + | Plotting streamlines in Paraview |
+ | |||
+ | |||
+ | |||
|- | |- | ||
− | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 3: |
+ | |||
System Requirement | System Requirement | ||
− | | style="border-top:none;border-bottom: | + | | 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 |
Line 49: | Line 59: | ||
|- | |- | ||
− | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 4 : |
+ | |||
Prerequisites | Prerequisites | ||
− | | style="border-top:none;border-bottom: | + | | 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 practice this tutorial you should have some basic knowledge of |
Line 58: | Line 69: | ||
− | + | Knowledge of how to solve flow in a Lid driven cavity | |
+ | |||
+ | |||
+ | If not so please refer to the revelent tutorial on our website | ||
Line 64: | Line 78: | ||
|- | |- | ||
− | | style="border-top: | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Demo: |
Set up working Directory | Set up working Directory | ||
Line 70: | Line 84: | ||
− | | style="border | + | | 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 |
+ | |||
+ | |||
+ | conditions to the 'Lid Driven Cavity' problem discussed in the | ||
+ | |||
+ | |||
+ | basic level tutorial. | ||
Please make a note this problem is already set up in pisoFoam solver in OpenFoam directory. | Please make a note this problem is already set up in pisoFoam solver in OpenFoam directory. | ||
+ | |||
+ | |||
+ | The boundary conditions are Lid velocity , U =1m/s | ||
+ | |||
+ | |||
+ | And we are solving this for a Reynolds number Re =10000 | ||
|- | |- | ||
− | | style="border-top: | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 5: Solver |
− | | style="border | + | | 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 will be using the Transient solver for incompressible, |
+ | |||
+ | |||
+ | turbulent flow of Newtonian fluids. | ||
Line 86: | Line 115: | ||
|- | |- | ||
− | | style="border-top: | + | | 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 | + | | 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 me open the terminal window |
Line 96: | Line 125: | ||
|- | |- | ||
− | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| In the terminal window |
− | | style="border-top:none;border-bottom: | + | |
+ | |||
+ | Go to the pisoFoam 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;"| In the terminal window type run and press enter | ||
Line 106: | Line 138: | ||
− | type cd pisoFoam and press enter | + | type cd pisoFoam (Note that F here is capital ) 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;"| Two Folders les and ras | ||
+ | |||
+ | |||
+ | Cavity folder inside RAS | ||
+ | | 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 ls and press enter | ||
− | |||
In this you will see two folders les and ras | In this you will see two folders les and ras | ||
− | Our problem is setup inside ras which is called as reynolds averaged stress | + | Our problem is setup inside ras folder which is called as reynolds averaged stress |
+ | |||
+ | |||
+ | |||
+ | |||
+ | |- | ||
+ | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Cavity 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;"| Our folder name is cavity. | ||
Now type cd ras and press enter | Now type cd ras and press enter | ||
+ | |||
+ | |||
+ | Now type ls and press enter | ||
+ | |||
+ | |||
+ | You can see the cavity folder | ||
type cd cavity and press enter | type cd cavity and press enter | ||
+ | |||
+ | |||
+ | Now type ls and press enter | ||
|- | |- | ||
− | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Boundary and Initial conditions |
− | | style="border-top:none;border-bottom: | + | |
+ | |||
+ | 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;"| In this you will see three folders 0,constant and system. | ||
Line 130: | Line 187: | ||
Let us take a look at the files in the '0' directory. | Let us take a look at the files in the '0' directory. | ||
+ | |||
+ | |- | ||
+ | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Inside the 0 folder | ||
+ | |||
+ | |||
+ | ls to view the files inside this folder | ||
+ | |||
+ | |||
+ | Do not edit the files unitil inlet parameters don't change | ||
+ | |||
+ | |||
+ | Refer to the earlier tutorial on channel flow for calculating these values | ||
+ | |||
− | Type the following command | + | | 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;"| Type the following command |
cd 0 and press enter | cd 0 and press enter | ||
− | + | Now type ls and press enter | |
+ | |||
+ | |||
+ | You can see files named as epsilon, k, nut, nutilda,p,R and U. | ||
Line 143: | Line 216: | ||
− | If any changes | + | If any changes are to be done please refer to the tutorial |
+ | |||
+ | |||
+ | On Simulating flow in a channel using OpenFoam | ||
+ | |||
+ | |||
+ | to calculate these values. | ||
Line 149: | Line 228: | ||
|- | |- | ||
− | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Let us view the constant folder |
− | | style="border-top:none;border-bottom: | + | | 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 .. and press enter |
+ | |||
+ | |||
+ | Let me clear this off | ||
Line 156: | Line 238: | ||
− | In this you will see the polyMesh folder containing the geometry of the case inside blockMeshDict | + | To do this type cd constant 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;"| PolyMesh folder and fluid property files | ||
+ | |||
+ | |||
+ | |||
+ | | 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 this you will see the polyMesh folder containing the geometry | ||
+ | |||
+ | |||
+ | of the case inside blockMeshDict | ||
Line 162: | Line 254: | ||
− | + | In this you will see two more files named RASProperties and turbulenceProperties | |
− | In the terminal type gedit RASProperties and press enter. | + | Let us open these two files |
+ | |||
+ | |- | ||
+ | | 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 RASProperties and press enter. | ||
+ | |||
RASProperties contain the Reynolds average stress model for the case. | RASProperties contain the Reynolds average stress model for the case. | ||
− | + | Which is kept as kepsilon | |
− | + | close this | |
+ | |- | ||
+ | | 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;"| in the terminal now type gedit turbulentproperties and press enter | ||
− | |||
+ | Scroll down | ||
− | In the terminal window type cd .. | + | |
+ | turbulentProperties contain the turbulent model , | ||
+ | |||
+ | |||
+ | Simulation type for this case is kept as RASModel | ||
+ | |||
+ | |- | ||
+ | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| TransportModel | ||
+ | |||
+ | |||
+ | 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;"| In the terminal window type cd .. | ||
and press enter. | and press enter. | ||
− | + | The transportModel we are using here is Newtonian | |
+ | |||
+ | |||
+ | Viscosity is kept as 1 e raise to -4 | ||
+ | |||
+ | |||
+ | close this file | ||
|- | |- | ||
− | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Do ot change the blockMeshDict file |
− | + | ||
− | + | The system folder is to be kept default | |
+ | | 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 not changing the geometry in this case | ||
− | + | So we need not go inside the polyMesh | |
− | the | + | and look at the blockMeshDict file |
− | It | + | It can be kept as it is |
+ | |||
+ | |||
+ | In the terminal type cd .. and press enter | ||
+ | |||
+ | We will keep the system folder default | ||
+ | As there are no changes inside it | ||
|- | |- | ||
− | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Meshing the geometry |
+ | blockMesh | ||
− | |||
+ | 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 | ||
− | To visualize the results open the paraview window. | + | |
+ | Now we can mesh the geometry | ||
+ | |||
+ | |||
+ | To do this in the teminal window type blockMesh and press Enter | ||
+ | |||
+ | |||
+ | Meshing has been done | ||
+ | |||
+ | |- | ||
+ | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Running the solver : 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;"| Now we can run the solver | ||
+ | |||
+ | |||
+ | To do this in the terminal type 'pisoFoam' and press enter | ||
+ | |||
+ | |||
+ | the iterations running can be seen in the terminal window. | ||
+ | |||
+ | |||
+ | It may take some time till the iterations 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:0.05pt solid #000000;padding:0.097cm;"| Iterations will stop at the end of the time step. | ||
+ | |||
+ | |||
+ | To visualize the results let us open the paraview window. | ||
Line 219: | Line 371: | ||
− | + | This will open the paraview window | |
+ | |||
+ | |- | ||
+ | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| View the geometry | ||
+ | |||
+ | |||
+ | Lid driven cavity geometry | ||
+ | |||
+ | |||
+ | Change the drop down menu from solid color to U | ||
+ | | 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;"| On the left hand side in the Object Inspector menu click on Apply | ||
Line 228: | Line 390: | ||
− | Change the display to Surface in the column and | + | Change the display to Surface in the column and |
− | Click the | + | from the drop down menu change from solid color to U |
+ | |||
+ | |- | ||
+ | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Click on the Play button on VCR control for animation | ||
+ | |||
+ | |||
+ | Toggle on the color legend | ||
+ | | 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;"| On top of the paraview window you can see the VCR control | ||
+ | |||
+ | |||
+ | Click the play button | ||
Line 237: | Line 409: | ||
− | Also toggle on the color legend on the left hand side top of paraview active variable control menu. | + | Also toggle on the color legend on the left hand side top |
+ | |||
+ | |||
+ | of paraview active variable control menu. | ||
+ | |||
+ | |||
+ | Click on it | ||
|- | |- | ||
− | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Visualise the streamlines |
− | | style="border-top:none;border-bottom: | + | |
+ | |||
+ | Filters > Common > Stream Tracers | ||
+ | |||
+ | |||
+ | |||
+ | | 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 visualise the stream lines | ||
Line 250: | Line 434: | ||
− | On the left hand side in Object inspector menu click on Apply. | + | Click on it |
+ | |||
+ | |- | ||
+ | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Streamlines on top of the | ||
+ | | 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;"| On the left hand side in Object inspector menu click on Apply. | ||
Line 259: | Line 447: | ||
− | To do this scroll down | + | To do this scroll down |
− | + | You can see the seed type | |
+ | Let me shift this to the right | ||
+ | |||
+ | and change the seed type from point source to line source | ||
|- | |- | ||
− | | style="border-top: | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Plot streamlines about X, Y and Z axis |
− | + | ||
− | |||
− | + | Click on the Y axis | |
− | |||
− | + | ||
+ | | 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;"| X, Y and Z axis are visible select any one of these axis | ||
+ | |||
+ | |||
+ | in which you would like to view the stream lines. | ||
+ | |||
+ | |||
+ | Click on the Y axis | ||
+ | |||
+ | |||
+ | You can see the streamlines along the Y axis. | ||
+ | |||
+ | |||
+ | Similarly you can select the X axis and | ||
+ | |||
+ | |||
+ | plot streamlines along the X axis | ||
+ | |||
+ | |||
+ | Now delete this | ||
|- | |- | ||
− | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Plot data over line |
− | |||
+ | 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 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 | |
− | + | |- | |
+ | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Plot the results | ||
− | + | ||
+ | Validate the results with Ghia et.al. | ||
+ | |||
+ | 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 libreoffice spreadsheet or any other plotting software of your choice | ||
+ | |||
+ | 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 | ||
|- | |- | ||
− | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide : |
− | + | Summary | |
− | | style="border-top:none;border-bottom: | + | | 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;"| 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 | ||
|- | |- | ||
− | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide : 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 | ||
− | + | Change it to (100 100 1) | |
− | | style="border-top:none;border-bottom: | + | |
+ | 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:0.05pt solid #000000;padding:0.097cm;"| The video available at this URL: | ||
http://spoken-tutorial.org/What_is_a_Spoken_Tutorial | http://spoken-tutorial.org/What_is_a_Spoken_Tutorial | ||
Line 316: | Line 547: | ||
|- | |- | ||
− | | style="border-top:none;border-bottom: | + | | 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;"| The Spoken Tutorial Project Team | |
− | + | ||
− | | style="border-top:none;border-bottom: | + | |
-Conducts workshops using spoken tutorials | -Conducts workshops using spoken tutorials | ||
Line 330: | Line 559: | ||
|- | |- | ||
− | | style="border-top: | + | | 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;"| Spoken Tutorials are part of Talk to a Teacher project, | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | | style="border | + | |
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. | ||
Line 345: | Line 569: | ||
|- | |- | ||
− | | style="border-top: | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| About the contributor |
− | | style="border | + | | 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 script is contributed by Shekhar Mishra and Chaitanya talnikar |
This is Rahul Joshi from IIT BOMBAY signing off. | This is Rahul Joshi from IIT BOMBAY signing off. | ||
− | Thanks for joining | + | Thanks for joining |
|} | |} |
Revision as of 12:31, 27 February 2013
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 Linux operating system Ubuntu 12.04
|
Slide 4 :
|
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 5: Solver | We will be using the Transient solver for incompressible,
|
Steps in setting up the problem | Now let me 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
|
In this you will see three folders 0,constant and system.
|
Inside the 0 folder
|
Type the following command
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 RASProperties and press enter.
|
turbulentProperties | in the terminal now type gedit turbulentproperties and press enter
|
TransportModel
|
In the terminal window type cd ..
and press enter.
|
Do ot change the blockMeshDict file
|
We are not changing the geometry in this case
|
Meshing the geometry
|
We are done with the setup
|
Running the solver : pisoFoam | Now we can run the solver
|
Post-processing the results in paraview | Iterations 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
|
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 in Object inspector menu click on Apply.
|
Plot streamlines about X, Y and Z axis
|
X, Y and Z axis are visible select any one of these axis
|
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 libreoffice spreadsheet or any other plotting software of your choice
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 :
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 : Assignment | As an assignment
Modify the grid size of the cavity Change it to (100 100 1) Visualise the results in paraview using streamlines |
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. | |
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 contacts@spoken-tutorial.org | |
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 |