Difference between revisions of "OpenFOAM/C3/Turbulent-Flow-in-a-Lid-driven-Cavity/English"

From Script | Spoken-Tutorial
Jump to: navigation, search
(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…')
 
 
(31 intermediate revisions by 4 users not shown)
Line 1: Line 1:
Tutorial: Turbulence flow in a lid driven cavity
+
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:1pt solid #000000;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| <center>Visual Cue</center>
+
| 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:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| <center>Narration</center>
+
| style="border:0.05pt solid #000000;padding:0.097cm;"| <center>Narration</center>
  
 
|-
 
|-
| style="border-top:1pt solid #000000;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Slide 1:  
+
| 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:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 2:
  
| style="border:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Hello and welcome to the spoken tutorial on modelling turbulent flow in a lid driven cavity using OpenFOAM.
 
  
|-
+
Learning Objectives
| style="border-top:1pt solid #000000;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Slide 2: 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  
| style="border:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| In this tutorial I will show you  
+
  
 +
* Solving '''turbulent case''' in '''OpenFOAM''' and
 +
* Plotting '''streamlines''' in '''ParaView'''
  
Solving turbulent flow case in OpenFOAM
+
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 3:
  
  
Plotting streamlines in Paraview.
+
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 version 12.04'''
 +
* '''OpenFoam version 2.1.1''' and
 +
* '''ParaView version 3.12.0'''
  
 
|-
 
|-
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Slide 3:
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 4:
  
 
System Requirement
 
System Requirement
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| To record this tutorial i am using Linux operating system Ubuntu 12.04
+
* The tutorials were recorded using the versions specified in previous slide
  
 +
* Subsequently the tutorials were edited to latest versions
  
OpenFoam version 2.1.1
+
* To install latest system requirements go to Installation Sheet
  
 +
| 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;"|
  
Paraview version 3.12.0
+
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 5 :
  
  
 +
Prerequisites
 +
| 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
  
 +
* '''Turbulence modelling'''
 +
* Knowledge of how to solve '''flow''' in a '''Lid driven cavity'''
 +
* If not so please refer to the relevant tutorial on our website
  
 
|-
 
|-
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Slide 4
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Demo:
  
Prerequisites
+
Set up working Directory
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| To practice this tutorial you should have some basic knowledge of
+
  
  
Turbulence modelling
 
  
 +
| 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
  
Also watch the spoken-tutorial on “Simulating flow in a Lid Driven Cavity”.
 
  
 +
Please make a note this problem is already set up in '''pisoFoam solver''' in '''OpenFoam''' directory
  
  
 +
The '''boundary conditions''' are the '''Lid velocity U is 1 m/s'''
 +
 +
 +
And we are solving this for a '''Reynolds number Re equal to 10000'''
  
 
|-
 
|-
| style="border-top:1pt solid #000000;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Demo:
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 6: Solver
 +
| 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 using a '''Transient solver''' for '''incompressible turbulent flow of Newtonian fluids''' called as '''pisoFoam'''
  
Set up working Directory
+
|-
 +
| 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:none;padding:0.097cm;"| In the terminal window
  
 +
Type cd tutorials
  
| style="border:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| This problem is identical in geometry and boundary conditions to the 'Lid Driven Cavity' problem discussed in the basic level tutorial.
+
| 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'''
  
  
Please make a note this problem is already set up in pisoFoam solver in OpenFoam directory.
+
Now type '''cd space tutorials''' and press '''Enter'''
  
 
|-
 
|-
| style="border-top:1pt solid #000000;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Slide 5: Solver
+
| 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:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| We will be using the Transient solver for incompressible, turbulent flow of Newtonian fluids.
+
| 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:0.05pt solid #000000;padding:0.097cm;"| Now type '''cd space 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;"| Type ls
 +
 
 +
 
 +
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'''
  
It is called pisoFoam
 
  
 +
In this you will see two folders '''les''' and '''ras'''
  
  
 +
Our problem setup is inside '''ras''' folder which is called as '''reynolds averaged stress'''
  
 
|-
 
|-
| style="border-top:1pt solid #000000;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Slide: 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;"| Type cd ras
| style="border:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Now let me open the terminal window
+
  
  
To do this press Ctrl+Atl+t keys simultaneously on your keyboard.
+
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;"| Our folder name is '''cavity'''
  
  
 +
Now type '''cd space ras''' and press '''Enter'''
  
 +
 +
Now type''' ls''' and press '''Enter'''
  
 
|-
 
|-
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Demo: Meshing
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Type cd cavity
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| In the terminal window type run and press enter
+
  
 +
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;"| You can see the '''cavity''' folder. Let me clear this off
  
Now type cd tutorials and press enter
 
  
 +
Now type '''cd space cavity''' and press '''Enter'''
  
type cd incompressible and press enter
 
  
 +
Now type''' ls''' and press '''Enter'''
  
type cd pisoFoam 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;"| Point to the 3 folders
  
Now type ls and press enter
+
Boundary and Initial conditions
  
In this you will see two folders les and ras
 
  
 +
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;"| You can see three folders ''' 0, constant''' and '''system'''
  
Our problem is setup inside ras which is called as reynolds averaged stress by the name cavity.
 
  
 +
The '''initial conditions''' are specified within the files in the ''''0'''' directory
  
Now type cd ras and press enter
 
  
 +
Now let us take a look at the files in the ''''0'''' directory
  
type cd cavity 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;"| Inside the 0 folder
  
 +
 +
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 space 0''' and press '''Enter'''
 +
 +
 +
Now type '''ls''' and press '''Enter'''
 
|-
 
|-
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Demo: Boundary and Initial Conditions
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"|Point to the files as per narration
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| In this you will see three folders 0,constant and system.
+
| 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 the files named as '''epsilon, k, nut, nutilda, p, R''' and '''U'''
  
  
The initial conditions are specified within the files in the '0' directory.
+
These files are to be kept as default until the '''inlet parameters''' don't change
  
  
Let us take a look at the files in the '0' directory.
+
If any changes are to be done please refer to the tutorial on '''Simulating flow in a channel''' using OpenFoam, to calculate these values
  
 +
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Type cd..
 +
| 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 dot dot''' and press '''Enter'''
  
Type the following command
 
  
cd 0 and press enter
+
Let me clear this off
  
 +
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Type cd constant
  
We can see files named as p, U, epsilon, k, nut, nutilda.
+
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;"| Let us open the '''constant''' folder
  
  
These files are to be kept as default until the inlet parameters don't change.
+
To do this type '''cd space constant''' and press '''Enter'''
  
  
If any changes do occur refer to the tutorial on Simulating flow in a channel using OpenFoam to calculate these values.
+
Now type '''ls''' 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'''
 +
*and the '''fluid properties'''
  
 +
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Point to the two files as per narration
 +
| 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 '''case''' you will see two more files other than '''transportProperties''' named as '''RASProperties''' and''' turbulenceProperties'''
 +
 +
 +
Let us open these two '''files'''
  
 
|-
 
|-
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Transport Properties
+
| 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:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Now type cd.. 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'''
  
  
Let us open the constant folder.
+
Scroll down
  
  
In this you will see the polyMesh folder containing the geometry of the case inside blockMeshDict
+
'''RASProperties''' contain the '''Reynolds average stress model''' for this case, which is kept as '''kEpsilon'''
  
  
And the fluid properties.
+
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;"| Now in the '''command terminal''', type '''gedit space turbulentproperties''' and press '''Enter'''
  
You will see two more files named RASProperties and turbulenceProperties, we will open these two files.
 
  
 +
Scroll down
  
In the terminal type gedit RASProperties and press enter.
 
  
RASProperties contain the Reynolds average stress model for the case.
+
'''The simulation type model''' for this '''case''' is kept as '''RASModel'''
  
  
close this and in the terminal now type gedit turbulentproperties and press enter
+
Close this
  
 +
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| TransportModel
  
turbulentProperties contain the turbulent model ,here we use a very common turbulent model named k epsilon.
 
  
 +
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 model'''
  
The transport properties the model is kept newtonain.
 
  
 +
To do this, in the '''terminal''' type '''gedit space transportProperties '''and press '''Enter'''
  
In the terminal window type cd ..
 
  
and press enter.
+
The '''transportModel '''we are using here is '''Newtonian '''and the '''Viscosity''' is kept as '''1 e raise to -4'''
  
  
We will keep the system folder default.
+
Close this
  
 
|-
 
|-
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Demo: Time Step
+
| 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
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Now we are done with the setup, run the solver
+
  
  
This can be done by typing 'pisoFoam' in the terminal.
+
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'''
  
  
And press enter
+
So we need not go inside the '''polyMesh '''folder and look at the '''blockMeshDict''' file
  
  
the iterations running will be seen in the terminal window.
+
It can be kept as it is
  
 +
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Type cd..
 +
| 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 '''cd space dot dot''' and press '''Enter'''
  
It may take some time till the iterations stop.
 
  
 +
We will keep the '''system''' folder default as there are no changes inside it
  
 +
|-
 +
| 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;"| Now, we are done with the setup
 +
 +
 +
We can '''mesh''' the '''geometry'''
 +
 +
 +
To do this in the '''terminal''' window '''type blockMesh''' and press '''Enter'''
 +
 +
 +
'''Meshing '''has been done
  
 
|-
 
|-
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Demo: Post processing
+
| 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'''
  
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Iterations will stop at the end of the time step.
+
The '''iterations''' running can be seen in the '''terminal''' window
  
  
To visualize the results open the paraview window.
+
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:0.05pt solid #000000;padding:0.097cm;"| The '''iterations''' running will stop at the end of the '''time step'''
  
To do this in the terminal type paraFoam and press enter.
 
  
 +
To visualize the results let us open the '''ParaView''' window
  
Now click on Apply in the column on the left of the screen under object inspector menu.
 
  
 +
To do this in the '''terminal''' type '''paraFoam''' and press '''Enter'''
  
You can see the lid driven cavity geometry.
 
  
 +
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'''
  
A common visualisation is surface plots.
 
  
 +
You can see the '''lid driven cavity geometry'''
  
Change the display to Surface in the column and from the drop down menu change from solid color to U.
 
  
 +
A common visualization is '''surface plots'''
  
Click the play button of the VCR control menu on top of paraview window.
 
  
 +
Change the display to '''Surface''' in the column.
  
You can see the motion of the fluid inside the cavity.
+
And from the drop down menu change from '''solid colour''' to  capital '''U'''
  
  
Also toggle on the color legend on the left hand side top of paraview active variable control menu.
+
You can see the '''initial condition''' of '''velocity'''
  
 
|-
 
|-
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Demo: Streamlines
+
| 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
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| To visualise the stream lines
+
  
  
On the top menu bar of paraview
+
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;"| Now on the top of the '''ParaView''' window you can see the '''VCR control'''
  
  
Go to Filters > Common > Stream Tracers
+
Click on the '''Play''' button
  
  
On the left hand side in Object inspector menu click on Apply.
+
You can see the motion of the fluid inside the '''cavity'''
  
  
You can see the stream lines near the top surface of moving wall.
+
You can also '''toggle''' on the '''colour legend''' from the left hand side top of '''ParaView active variable control menu'''
  
  
You can also change the orientation in which the stream lines are viewed.
+
Click on it. You can see the colour '''legend'''
  
 +
|-
 +
| 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
  
To do this scroll down and change the seed type from point source to line source.
 
  
 +
Filters > Common > Stream Tracers
  
X, Y and Z axis are visible select any one of these axis in which you would like to view the stream lines.
 
  
  
 +
| 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 top of the menu bar of '''ParaView'''
 +
*Go to '''Filters > Common and  Stream Tracer'''
 +
*Click on it
  
 
|-
 
|-
| style="border-top:1pt solid #000000;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Slide 11:
+
| 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
| style="border:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| You can also plot the velocity along the x and y axis using plot over line.
+
| 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 of the '''Object inspector menu''' you can see '''Apply'''. Click on it
  
Save the data as. csv file from file option in paraview menu bar.
 
  
You can plot this data in libreoffice spreadsheet or any other plotting software of your choice.
+
You can see the '''stream lines''' at the centre of the '''lid driven cavity'''
  
The results obtained can be validated by results obtained by Ghia et.al at Re= 10000.
+
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Streamlines view
 +
| 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 change the '''orientation''' in which the '''stream lines''' are viewed
  
Let me switch back to the slides.
+
 
 +
To do this , scroll down
 +
 
 +
 
 +
You can see the''' seed type'''
  
 
|-
 
|-
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Slide 12:
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Shift to right >> change point source to line source
 +
| 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;"| Let me shift this to the right and change from''' point source''' to '''line source'''
  
Summary
+
|-
 +
| 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:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| In this tutorial we learnt how to setup
+
Click on the X axis
  
OpenFOAM to solve the lid driven cavity problem with turbulence.
+
Delete this
  
Visualised the streamlines 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;"| You can see the '''X, Y''' and '''Z axes''' which are visible
  
This brings us to the end of the tutorial
+
 
 +
Select any of these axis in which you would like to view the '''stream lines'''
 +
 
 +
 
 +
I will select the '''Y axis''' and click '''Apply'''
 +
 
 +
 
 +
You can see the '''streamlines''' along the Y axis
 +
 
 +
 
 +
Similarly you can select the '''X axis''' and plot the '''streamlines''' along the '''X axis'''
 +
 
 +
 
 +
Now delete this
  
 
|-
 
|-
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Slide 13:
+
| 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
  
Assignment
 
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| As an assignment modify the grid size and change it to (100 100 1)
 
  
Visualise the flow using streamlines in paraview
+
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 '''X''' and '''Y''' axis using '''plot over line'''
 +
 
 +
To do this go to '''Filters > Data Analysis and Plot over line'''
 +
 
 +
Save the data as''' dot csv''' from the '''File''' menu
 +
 
 +
Click on '''Save Data'''
  
 
|-
 
|-
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Slide 14:
+
| 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
  
  
About Spoken tutorials
+
Validate the results with Ghia et.al.
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| The video available at this URL:
+
  
http://spoken-tutorial.org/What_is_a_Spoken_Tutorial
+
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
  
It summarizes the Spoken Tutorial project.
+
Now let me switch back to the slides
  
If you do not have good bandwidth, you can download and watch it.  
+
The results obtained can be '''validated''' by using results of '''Ghia et.al for Reynolds Number, Re equal to 10000'''
  
 
|-
 
|-
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Slide 15:
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 7:  
  
About spoken tutorials
+
Summary
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| The Spoken Tutorial Project Team  
+
| 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;"| That's all we have in this tutorial
 +
 
 +
Let us summarise.
 +
*'''Turbulent Flow in a Lid Driven Cavity'''
 +
*and plotting '''stream lines '''in''' ParaView'''
 +
 
 +
This brings us to the end of the tutorial
 +
 
 +
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 8: 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
 +
 
 +
* And 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;"|
 +
* 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
 +
 
 +
|-
 +
| 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  
  
 
-Conducts workshops using spoken tutorials  
 
-Conducts workshops using spoken tutorials  
Line 325: Line 495:
 
-Gives certificates to those who pass an online test  
 
-Gives certificates to those who pass an online test  
  
-For more details, please write to us at
+
-For more details please write to  
  
contacts@spoken-tutorial.org  
+
contact at the rate spoken hyphen tutorial dot org  
  
 
|-
 
|-
| style="border-top:1pt solid #000000;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Slide 16:
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 9:  
  
Acknowledgement
+
Forum to answer questions
 +
* Do you have questions on THIS Spoken Tutorial?
 +
* Choose the minute and second where you have the question
 +
* Explain your question briefly
 +
* Someone from the FOSSEE team will answer them. Please visit
 +
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;"|
  
 +
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 10:
  
 +
Forum to answer questions
 +
* Questions not related to the Spoken Tutorial?
 +
* Do you have general/technical questions on the Software?
 +
* Please visit the FOSSEE forum
 +
http://forums.fossee.in/
 +
* 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;"|
  
| style="border:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| 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.  
+
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 11:
 +
 
 +
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
 +
For more details visit this site:
 +
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;"| Slide 12:
 +
 
 +
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
 +
For more details visit this site:
 +
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;"| 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 project is a part of the Talk to a Teacher project
  
This project is coordinated by http://spoken-tutorial.org
+
It is supported by the National Mission on Education through ICT, MHRD, Government of India
  
More information on the same is available at the following URL link http://spoken-tutorial.org/NMEICT-Intro
+
More information on the this mission is available at this URL http://spoken-tutorial.org/NMEICT-Intro
  
 
|-
 
|-
| style="border-top:1pt solid #000000;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| About the contributor
+
| 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:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| The script is contributed by Shekhar Mishra and Chaitanya talnikar
+
| 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
  
 
|}
 
|}

Latest revision as of 14:41, 5 August 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.


Visual Cue
Narration
Slide 1: Hello and welcome to the spoken tutorial on modelling Turbulent flow in a Lid Driven Cavity using OpenFOAM
Slide 2:


Learning Objectives

In this tutorial I will show you
  • Solving turbulent case in OpenFOAM and
  • Plotting streamlines in ParaView
Slide 3:


System Requirement

To record this tutorial I am using
  • Linux operating system Ubuntu version 12.04
  • OpenFoam version 2.1.1 and
  • ParaView version 3.12.0
Slide 4:

System Requirement

  • The tutorials were recorded using the versions specified in previous slide
  • Subsequently the tutorials were edited to latest versions
  • To install latest system requirements go to Installation Sheet
Slide 5 :


Prerequisites

To practice this tutorial you should have some basic knowledge of
  • Turbulence modelling
  • Knowledge of how to solve flow in a Lid driven cavity
  • If not so please refer to the relevant tutorial on our website
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


Please make a note this problem is already set up in pisoFoam solver in OpenFoam directory


The boundary conditions are the Lid velocity U is 1 m/s


And we are solving this for a Reynolds number Re equal to 10000

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


Now type cd space tutorials 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


Two Folders les and ras


Cavity folder inside RAS

Now type ls and press Enter


In this you will see two folders les and ras


Our problem setup is inside ras folder which is called as reynolds averaged stress

Type cd ras


ls

Our folder name is cavity


Now type cd space ras and press Enter


Now type ls and press Enter

Type cd cavity

ls

You can see the cavity folder. Let me clear this off


Now type cd space cavity and press Enter


Now type ls and press Enter

Point to the 3 folders

Boundary and Initial conditions


0 folder

You can see three folders 0, constant and system


The initial conditions are specified within the files in the '0' directory


Now let us take a look at the files in the '0' directory

Inside the 0 folder


Type ls

To do this, in the command terminal type cd space 0 and press Enter


Now type ls and press Enter

Point to the files as per narration You can see the files named as epsilon, k, nut, nutilda, p, R and U


These files are to be kept as default until the inlet parameters don't change


If any changes are to be done please refer to the tutorial on Simulating flow in a channel using OpenFoam, to calculate these values

Type cd.. Now type cd space dot dot and press Enter


Let me clear this off

Type cd constant

Type ls

Let us open the constant folder


To do this type cd space constant and press Enter


Now type ls and press Enter

PolyMesh folder and fluid property files In this you will see the polyMesh folder containing
  • the geometry of the case inside blockMeshDict
  • and the fluid properties
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


Let us open these two files

RASProperties In the terminal type gedit (space) RASProperties and press Enter


Scroll down


RASProperties contain the Reynolds average stress model for this case, which is kept as kEpsilon


Close this

turbulentProperties Now in the command terminal, type gedit space turbulentproperties and press Enter


Scroll down


The simulation type model for this case is kept as RASModel


Close this

TransportModel


Change the value of viscosity

Now let us open the transportProperties model


To do this, in the terminal type gedit space transportProperties and press Enter


The transportModel we are using here is Newtonian and the Viscosity is kept as 1 e raise to -4


Close this

Do not change the blockMeshDict file


The system folder is to be kept default

We are not changing the geometry in this case


So we need not go inside the polyMesh folder and look at the blockMeshDict file


It can be kept as it is

Type cd.. In the terminal type cd space dot dot and press Enter


We will keep the system folder default as there are no changes inside it

Meshing the geometry


blockMesh


Meshing is done

Now, we are done with the setup


We can mesh the geometry


To do this in the terminal window type blockMesh and press Enter


Meshing has been done

Running the solver : pisoFoam 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 for the iterations to stop

Post-processing the results in paraview The iterations running will stop at the end of the time step


To visualize the results let us open the ParaView window


To do this in the terminal type paraFoam and press Enter


This will open the ParaView window

View the geometry


Lid driven cavity geometry


Change the drop down menu from solid color to U

On the left hand side in the Object Inspector menu click on Apply


You can see the lid driven cavity geometry


A common visualization is surface plots


Change the display to Surface in the column.

And from the drop down menu change from solid colour to capital U


You can see the initial condition of velocity

Click on the Play button on VCR control for animation


Toggle on the color legend

Now on the top of the ParaView window you can see the VCR control


Click on the Play button


You can see the motion of the fluid inside the cavity


You can also toggle on the colour legend from the left hand side top of ParaView active variable control menu


Click on it. You can see the colour legend

Visualise the streamlines


Filters > Common > Stream Tracers


Now to visualise the stream lines
  • On top of the menu bar of ParaView
  • Go to Filters > Common and Stream Tracer
  • Click on it
Streamlines on top On the left hand side of the Object inspector menu you can see Apply. Click on it


You can see the stream lines at the centre of the lid driven cavity

Streamlines view You can also change the orientation in which the stream lines are viewed


To do this , scroll down


You can see the seed type

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 Y axis

Click on the X axis

Delete this

You can see the X, Y and Z axes which are visible


Select any of these axis in which you would like to view the stream lines


I will select the Y axis and click Apply


You can see the streamlines along the Y axis


Similarly you can select the X axis and plot the streamlines along the X axis


Now delete this

Plot data over line


Save as .csv format

You can also plot the velocity along X and Y axis using plot over line

To do this go to Filters > Data Analysis and Plot over line

Save the data as dot csv from the File menu

Click on Save Data

Plot the results


Validate the results with Ghia et.al.

For Re= 10000

You can plot this data in LibreOffice 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 equal to 10000

Slide 7:

Summary

That's all we have in this tutorial

Let us summarise.

  • Turbulent Flow in a Lid Driven Cavity
  • and plotting stream lines in ParaView

This brings us to the end of the tutorial

Slide 8: Assignment As an assignment
  • Modify the grid size of the cavity
  • Change it to 100 100 1
  • And visualise the results in ParaView using streamlines
  • 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
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 at the rate spoken hyphen tutorial dot org

Slide 9:

Forum to answer questions

  • Do you have questions on THIS Spoken Tutorial?
  • Choose the minute and second where you have the question
  • Explain your question briefly
  • Someone from the FOSSEE team will answer them. Please visit

http://forums.spoken-tutorial.org/

Slide 10:

Forum to answer questions

  • Questions not related to the Spoken Tutorial?
  • Do you have general/technical questions on the Software?
  • Please visit the FOSSEE forum

http://forums.fossee.in/

  • Choose the Software and post your question


Slide 11:

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

For more details visit this site: http://cfd.fossee.in/


Slide 12:

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

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

Contributors and Content Editors

DeepaVedartham, Nancyvarkey, Pravin1389, Rahuljoshi