Difference between revisions of "OpenFOAM/C2/Simulating-flow-in-a-Lid-Driven-Cavity/English"

From Script | Spoken-Tutorial
Jump to: navigation, search
m
(3 intermediate revisions by 2 users not shown)
Line 5: Line 5:
  
  
Keywords: Video tutorial,CFD.  
+
Keywords: Video tutorial,CFD,Lid Driven Cavity,Ghia et.al.  
  
  
  
 
{| style="border-spacing:0;"
 
{| style="border-spacing:0;"
| 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-top:0.05pt solid #000000;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Visual cue
| style="border:0.05pt solid #000000;padding:0.097cm;"| <center>Narration</center>
+
| style="border:0.05pt solid #000000;padding:0.097cm;"| Narration
  
 
|-
 
|-
Line 47: Line 47:
  
 
'''ParaView version 3.12.0 '''
 
'''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 4: 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;"| 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
  
  
Line 52: Line 61:
  
 
|-
 
|-
 +
 
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 4:  
 
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 4:  
  
Line 62: Line 72:
 
|-
 
|-
 
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 5 : Diagram
 
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 5 : Diagram
| 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 is diagram of '''Lid Driven Cavity '''.
+
| 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 is diagram of '''Lid Driven Cavity'''
  
 
+
|-
The '''boundary''' '''conditions''' remain the same.
+
| 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 '''boundary''' '''conditions''' remain the same
  
  
 
A '''moving wall''' and '''three fixedwalls'''
 
A '''moving wall''' and '''three fixedwalls'''
  
 
+
|-
We are '''solving''' this for '''Reynolds no (Re) = 100'''
+
| 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;"| We are '''solving''' this for '''Reynolds no (Re) = 100'''
  
  
 
The '''moving wall''' has a velocity of '''1 meters per second'''
 
The '''moving wall''' has a velocity of '''1 meters per second'''
  
 +
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Path for lid driven cavity
 +
| 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 path for the '''Lid Driven Cavity''' is the same as
  
  
 +
discussed in the '''installation tutorial'''
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Demo.
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Open a 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;"| The path for the '''Lid Driven Cavity''' is the same as discussed in the '''installation 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;"| Now Open a '''command terminal''' and
  
 +
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Press ctrl +Alt+t keys simultaneously on keyboard
 +
| 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 press '''Ctrl+Alt+t '''simultaneously on your '''keyboard'''
  
Now Open a '''command terminal''' and
+
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Path for lid driven cavity in 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;"| In the '''command terminal''' type the path for '''lid driven cavity'''
  
 +
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Type run 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;"| '''type run and press enter'''
  
To do this press '''Ctrl+Alt+t '''simultaneously on your '''keyboard'''
+
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Type cd tutorials 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;"| '''cd '''(space)''' tutorials 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 incompressible 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;"| '''cd '''(space)''' incompressible and Press enter'''
  
In the '''command terminal''' type the path for '''lid driven cavity'''
+
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Type cd icoFoam 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;"| '''cd '''(space)''' icoFoam '''(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 cd cavity
 +
| 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 cd '''(space) cavity and '''Press Enter'''
  
'''type run 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 and press enter
'''cd '''(space)''' tutorials 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;"| type '''ls''' and '''press enter'''
 
+
'''cd '''(space)''' incompressible and Press enter'''
+
 
+
'''cd '''(space)''' icoFoam '''(Note that F here is capital)''' and Press enter '''
+
 
+
 
+
'''type cd '''(space) cavity and '''Press Enter'''
+
 
+
type '''ls''' and '''press enter'''
+
 
+
 
+
In the '''file structure of cavity''' you will see 3 folders :
+
 
+
'''0 , constant , and system'''.
+
 
+
  
 +
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| 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;"| In the '''file structure of cavity''' you will see 3 folders :
  
 +
'''0 , constant , and system'''
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Demo
+
| 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
 
| 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) '''constant''' 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;"| Now type '''cd''' (space) '''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;"| Type ls 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;"| Now type '''ls '''and''' press enter'''
  
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;"| Constant >> polyMesh
 +
| 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 '''constant folder '''contains another '''folder''' named '''polymesh'''
  
  
The '''constant folder '''contains another '''folder''' named '''polymesh'''  
+
'''and a file describing the physical properties of fluid.'''
  
 +
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Cd polyMesh 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;"| Now type '''cd (space) polymesh''' and '''Press Enter'''
  
and a '''file''' describing the '''physical properties of fluid'''.
 
  
 +
'''Polymesh contains a file named blockMeshDict '''
  
Now type '''cd (space) polymesh''' 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
 +
| 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
  
 +
|-
 +
| 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;"| You can see the '''blockMeshDict'''
  
'''Polymesh''' contains a '''file''' named '''blockMeshDict'''
+
|-
 
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Type gedit blockMeshDict and press enter
 
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| To view the file type '''gedit blockMeshDict'''
Now type '''ls''' and press enter
+
 
+
 
+
You can see the '''blockMeshDict '''
+
 
+
 
+
To view the file type '''gedit blockMeshDict'''
+
  
  
Line 148: Line 177:
 
Now press enter
 
Now press enter
  
 +
|-
 +
| 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;"| This will Open up the '''blockMeshDict file'''
  
This will Open up the '''blockMeshDict file'''
 
  
 +
'''Let me drag this to the capture area'''
  
Let me '''drag''' this to the '''capture area'''
+
|-
 
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| In blockMeshDict file
 
+
| 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 contains :  
This contains :  
+
  
  
Line 164: Line 195:
 
'''-and boundary patches.'''
 
'''-and boundary patches.'''
  
 +
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| No patches and arcs in the geometry
 +
| 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;"| Since there are '''arcs''' as well as no '''patches''' to be''' merged'''
  
Since there are '''arcs''' as well as no '''patches''' to be''' merged'''
 
  
 +
'''edges and mergePatchPairs can be kept empty'''
  
'''edges and mergePatchPairs '''can be '''kept empty'''.
+
|-
 
+
| 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;"| Now close this
Now close this
+
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Demo
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Terminal type cd .. and do this twice
 
| 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 '''command terminal''' type : '''cd (space) .. (dot) (dot)'''  
 
| 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 '''command terminal''' type : '''cd (space) .. (dot) (dot)'''  
  
 +
|-
 +
| 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;"| you will come back to the''' cavity folder'''
  
do this twice
+
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Cd system 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;"| Now type '''cd''' (space) '''system''' 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 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;"| Now type '''ls''' and press enter
  
you will come back to the''' cavity folder'''
 
  
 +
this contains three '''files'''
  
Now type '''cd''' (space) '''system''' and press enter,
 
  
 +
'''controlDict, fvSchemes and fvSolutions'''
  
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;"| ControlDict
  
  
this contains three '''files'''
+
fvSolution
  
  
'''controlDict, fvSchemes and fvSolutions'''
+
fvSchemes
 
+
| 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;"| '''controlDict''' contains '''control parameters''' for start/end time.
 
+
'''controlDict''' contains '''control parameters''' for start/end time.
+
  
  
Line 208: Line 248:
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Demo:
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| 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;"| Now again type '''cd (space) (dot dot) . . '''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;"| Now again type '''cd (space) (dot dot) . . '''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;"| Cd 0 and press enter
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Now type '''cd ( space )''' 0 (zero) and Press enter
  
Now type '''cd ( space )''' 0 (zero) 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;"|
 +
| 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
  
 
+
|-
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;"| Initial values for bounary
 
+
| 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 contains the '''initial values''' for '''boundary conditions''' like  
 
+
This contains the '''initial values''' for '''boundary conditions''' like  
+
  
  
 
'''Pressure ,Velocity,Temperature etc.'''  
 
'''Pressure ,Velocity,Temperature etc.'''  
  
 
+
|-
Type''' cd ( space ) (dot dot) . .''' to return to the '''cavity folder'''.
+
| 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;"| Type''' cd ( space ) (dot dot) . .''' to return to the '''cavity folder'''
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Demo
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Mesh the geometry
 
| 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 need to '''mesh '''the''' geometry'''
 
| 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 need to '''mesh '''the''' geometry'''
  
  
We are using a '''course''' mesh here.
+
'''We are using a course mesh here.'''
  
 +
|-
 +
| 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;"| '''Mesh''' the '''geometry''' by typing '''blockMesh''' in the '''terminal'''.
  
'''Mesh''' the '''geometry''' by typing '''blockMesh''' in the '''terminal'''.
+
|-
 
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| In terminal type blockMesh 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;"| Now type '''blockMesh '''(Note that M and D here is capital)
Now type '''blockMesh '''(Note that M and D here is capital)
+
  
  
 
and press enter
 
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;"|
 +
| 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;"| '''Meshing''' is done.
  
The''' meshing''' is done.
+
|-
 +
| 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;"| If there is some '''error''' in the '''blockMesh file '''
  
  
If there is some '''error''' in the '''blockMesh file '''
+
it will be shown in the '''terminal'''
  
 
+
|-
it will be shown in the '''terminal'''.
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Type paraFoam and press enter
 
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| To view the '''geometry'''  
 
+
To view the '''geometry'''  
+
  
  
Line 261: Line 310:
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Demo:
+
| 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;"| This will open the '''paraview window'''
 
| 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 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;"| Click on apply button
 +
| 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 left hand side of the '''object inspector menu''' click on '''Apply.'''
  
Now on the left hand side of the '''object inspector menu''' click on '''Apply.'''
+
|-
 
+
| 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;"| You can see the '''lid driven cavity''' '''geometry'''
You can see the '''lid driven cavity''' '''geometry'''
+
  
  
 
close this
 
close this
 
 
 
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Demo:
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Check the mesh
 
| 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;"| Check the mesh by typing '''checkMesh''' in the''' 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;"| Check the mesh by typing '''checkMesh''' in the''' terminal'''
  
Line 286: Line 334:
 
and press enter
 
and press enter
  
 
+
|-
you can see the the '''number of cells''' ,
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| After the checkMesh 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;"| you can see the the '''number of cells''' ,
  
  
Line 295: Line 344:
 
which are associated with the '''mesh'''
 
which are associated with the '''mesh'''
  
 
+
|-
let me switch back to the '''slides'''.
+
| 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;"| Let me switch back to the '''slides'''.
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 6 : icoFoam
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide ; icoFoam
 
| 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 solver we are using here is '''icoFoam''' :
 
| 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 solver we are using here is '''icoFoam''' :
  
 
+
|-
'''icoFoam is a Transient''' '''solver''' for '''incompressible flow''' of '''newtonian fluids'''.
+
| 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;"| '''icoFoam is a Transient''' '''solver''' for '''incompressible flow''' of '''newtonian fluids'''
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Demo :
+
| 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;"| Let me switch back to the '''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;"| Let me switch back to the '''terminal'''
  
 
+
|-
In the '''terminal '''type '''icoFoam'''  
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| In terminal type icoFoam 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 '''icoFoam'''  
  
  
Line 318: Line 370:
 
and press enter
 
and press enter
  
 
+
|-
'''Iterations '''running will be seen in the '''terminal window'''.
+
| 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;"| '''Iterations '''running will be seen in the '''terminal window'''.
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Demo
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Type paraFoam 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;"| Once the solving 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;"| Once the solving is done  
  
  
 
type '''paraFoam''' in the terminal  
 
type '''paraFoam''' in the terminal  
 
  
 
to view the '''geometry''' and the '''results'''
 
to view the '''geometry''' and the '''results'''
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Demo
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Click on APPLY
 
| 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 '''object inspector menu'''
 
| 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 '''object inspector menu'''
  
  
click on '''Apply'''
+
'''click on Apply'''
  
 
+
|-
Now '''Scroll''' down the '''properties panel'''  
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Scroll down in object inspector menu
 +
| 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 '''Scroll''' down the '''properties panel'''  
  
  
Line 345: Line 401:
  
  
for t'''ime step,regions and volume fields etc'''
+
'''for time step,regions and volume fields etc'''
  
 
+
|-
'''Check or uncheck '''these '''boxes''' in the '''mesh''' part
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Check or uncheck these boxes
 +
| 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;"| '''Check or uncheck '''these '''boxes''' in the '''mesh''' part
  
  
 
to view the '''different boundary''' '''regions '''of '''Lid driven cavity'''
 
to view the '''different boundary''' '''regions '''of '''Lid driven cavity'''
  
 +
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Change from solid color to capital U
  
Now after this on top of the''' active variable control '''
 
  
 +
initial condition
  
'''dropdown menu''' change from '''solid color '''to '''capital p or U '''
 
  
 +
I will select capital 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;"| Now after this on top of the''' active variable control '''
  
which are the '''initial conditions''' such as '''pressure or velocity'''
 
  
 +
'''dropdown menu change from solid color to capital p or U'''
  
I will select '''capital U'''
 
  
 +
which are the '''initial conditions''' such as '''pressure or velocity'''
  
Now this will show the '''initial condition of velocity'''
 
  
 +
'''I will select capital U'''
  
Now on top of the''' paraview window''' you can see the''' VCR control'''
+
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| VCR control on top
 +
| 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 top of the''' paraview window''' you can see the''' VCR control'''
  
  
Click on the '''play''' button
+
'''Click on the play button'''
  
 +
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Final result of velocity in lid driven cavity
 +
| 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 this is the final '''result''' of '''velocity''' for '''lid driven cavity'''
  
Now this is the final '''result''' of '''velocity''' for '''lid driven cavity'''
+
|-
 
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| 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;"| Toggle on the '''color''' '''legend '''by clicking on  
Toggle on the '''color''' '''legend '''by clicking on  
+
  
  
 
top left of the '''active variable control menu'''
 
top left of the '''active variable control menu'''
  
 +
|-
 +
| 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;"| This is the''' color legend''' for '''U velocity'''
  
This is the''' color legend''' for '''U velocity'''
+
|-
 
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Validation of result
 
+
| 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 need to''' validate''' the '''results obtained'''
We need to''' validate''' the '''results obtained'''
+
  
  
 
To do this let us '''plot''' the '''U and V velocity'''
 
To do this let us '''plot''' the '''U and V velocity'''
  
 +
|-
 +
| 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;"| We need to '''validate''' the result obtained
  
  
 +
to do this let us plot the U and V velocity.
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Demo
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Menu > filters > data analysis > 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;"| We need to '''validate''' the result obtained to do this let us plot the U and V velocity.
+
| 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;"| For this Go to '''Filters Menu > Data Analysis > Plot Over line'''
  
 +
|-
 +
| 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;"| Click on it
  
For this Go to '''Filters Menu > Data Analysis > Plot Over line'''
+
|-
 +
| 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;"| You can see the '''X , Y and Z axis'''
  
 +
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Select the X and Y axis
  
Click on it
 
  
 
+
Select the X axis
You can see the '''X , Y and Z 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;"| Select the '''X & Y axis''' turn by turn.
 
+
 
+
Select the '''X & Y axis''' turn by turn.
+
  
  
 
I will select the '''X axis''' and click '''Apply'''
 
I will select the '''X axis''' and click '''Apply'''
  
 
+
|-
You can see the '''Pressure and velocity''' '''plots''' being plotted.
+
| 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;"| You can see the '''Pressure and velocity''' '''plots''' being plotted
 
+
 
+
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Demo:
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| For non-dimensional analysis
| 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;"| Since it is a '''non dimensional analysis'''  
+
| 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;"| Since it is a '''non dimensional analysis'''
  
  
 
we need to '''plot the graph''' for '''u/U v/s y/L''' for '''Reynolds number =100'''
 
we need to '''plot the graph''' for '''u/U v/s y/L''' for '''Reynolds number =100'''
  
 
+
|-
To do this in '''Plot Data''' click on the '''Y-axis'''
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| PLot data Line click Y axis and apply
 +
| 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 '''Plot Data''' click on the '''Y-axis'''
  
  
 
And click '''APPLY'''
 
And click '''APPLY'''
  
 +
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Plot can be seen
  
You can see the''' plot'''
+
 
 +
Go to file save data
 +
| 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''' plot'''
  
  
 
In menu bar go to '''File > Save Data '''
 
In menu bar go to '''File > Save Data '''
  
 +
|-
 +
| 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;"| Give and appropriate name to your file
  
Give and appropriate name to your file
+
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Give a name to the file
  
  
I will give this as '''cavity'''
+
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;"| I will give this as '''cavity'''
  
  
 
The file will be saved as '''.csv file'''
 
The file will be saved as '''.csv file'''
  
 
+
|-
Now click ok
+
| 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;"| Now click ok
  
  
 
Again click ok
 
Again click ok
  
 +
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Go to the cavity folder in icoFoam
  
Now go to the '''cavity folder''' of '''openfoam directory'''.
+
 
 +
cavity.csv file
 +
| 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 go to the '''cavity folder''' of '''openfoam directory'''.
  
  
 
'''Scroll '''down you can see the '''cavity.csv file'''
 
'''Scroll '''down you can see the '''cavity.csv file'''
  
 +
|-
 +
| 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;"| Open it in Open office or LibreOffice Spreadsheet
  
Open it in Open office or LibreOffice Spreadsheet
+
|-
 
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Copy u0 and points 1 and save it another page of spreadsheet
In the libreoffice spreadsheet copy  
+
| 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 libreoffice spreadsheet copy  
  
  
Line 471: Line 560:
 
in another spreadsheet  
 
in another spreadsheet  
  
 
+
|-
Now divide both these coloumns
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| U/U and y/L
 +
| 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 divide both these coloumns
  
  
 
that is '''u zero''' by '''capital U''' and '''points 1''' by '''capital L'''
 
that is '''u zero''' by '''capital U''' and '''points 1''' by '''capital L'''
  
 +
|-
 +
| 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 using chart option
  
Plot the results in '''libreoffice''' '''charts''' option on top of the menu bar.
+
of spreadsheet
 +
| 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;"| Plot the results in '''libreoffice''' '''charts''' option on top of the menu bar.
  
 
+
|-
Now let me switch back to the slides
+
| 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;"| Now let me switch back to the slides
  
 
|-
 
|-
 
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 7 : Lid Driven Cavity (OpenFOAM)
 
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 7 : Lid Driven Cavity (OpenFOAM)
| 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;"| Results obtained will be similar to this figure.
+
| 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;"| Results obtained will be similar to this figure
 
+
 
+
 
+
  
 
|-
 
|-
Line 495: Line 586:
  
  
Results '''obtained from Fluent'''.
+
Results '''obtained from Fluent'''
  
 
|-
 
|-
Line 501: Line 592:
  
 
Summary
 
Summary
 
 
 
 
| 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 we learnt how to install
 
| 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 we learnt how to install
  
Line 527: Line 615:
 
Plot the results of '''u/U and y/L'''
 
Plot the results of '''u/U and y/L'''
  
This brings us to the end of the tutorial.
+
This brings us to the end of the tutorial
  
 
|-
 
|-
Line 539: Line 627:
 
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 556: Line 644:
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 13:
 
  
Acknowledgement
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide : Forum to answer questions
 +
| 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;"| 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:none;padding:0.097cm;"| Slide : Forum to answer questions
 +
| 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;"| 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:none;padding:0.097cm;"| Slide : Lab Migration 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;"| 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:none;padding:0.097cm;"| Slide : Case Study 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;"| 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:none;padding:0.097cm;"| Slide 13:
 +
 +
Acknowledgement
 
| 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,  
  
Line 574: Line 694:
 
| 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 is Rahul Joshi from IIT BOMBAY signing off.
 
| 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 is Rahul Joshi from IIT BOMBAY signing off.
  
Thanks for joining.
+
Thanks for joining
  
 
|}
 
|}

Revision as of 16:09, 16 January 2019

Tutorial: Simulating Flow in a Lid Driven Cavity.


Script and Narration : Rahul Joshi


Keywords: Video tutorial,CFD,Lid Driven Cavity,Ghia et.al.


Visual cue Narration
Slide 1 Hello and welcome to the spoken tutorial on Simulating Flow in a Lid Driven Cavity using openfoam
Slide 2 : Learning Objectives In this tutorial I will show you


The Lid Driven Cavity file structure


Meshing the Geometry


Solving and post-processing results in Paraview


Plotting & validating results on a spreadsheet.

Slide 3:

System Requirement

To record this tutorial


I am using Linux Operating system Ubuntu version 10.04 .


OpenFOAM version 2.1.0


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 4:

About Lid Driven Cavity flow

Lid driven cavity is the most widely used 2D test


case for validation of a CFD code

Slide 5 : Diagram This is diagram of Lid Driven Cavity
The boundary conditions remain the same


A moving wall and three fixedwalls

We are solving this for Reynolds no (Re) = 100


The moving wall has a velocity of 1 meters per second

Path for lid driven cavity The path for the Lid Driven Cavity is the same as


discussed in the installation tutorial

Open a command terminal Now Open a command terminal and
Press ctrl +Alt+t keys simultaneously on keyboard To do this press Ctrl+Alt+t simultaneously on your keyboard
Path for lid driven cavity in terminal In the command terminal type the path for lid driven cavity
Type run and press enter type run and press enter
Type cd tutorials and press enter cd (space) tutorials and Press enter
Type cd incompressible and press enter cd (space) incompressible and Press enter
Type cd icoFoam and press enter cd (space) icoFoam (Note that F here is capital) and Press enter
Type cd cavity type cd (space) cavity and Press Enter
Type ls and press enter type ls and press enter
Three folders 0, constant and system In the file structure of cavity you will see 3 folders :

0 , constant , and system

Type cd constant Now type cd (space) constant and press enter
Type ls and press enter Now type ls and press enter
Constant >> polyMesh The constant folder contains another folder named polymesh


and a file describing the physical properties of fluid.

Cd polyMesh and press enter Now type cd (space) polymesh and Press Enter


Polymesh contains a file named blockMeshDict

Type ls Now type ls and press enter
You can see the blockMeshDict
Type gedit blockMeshDict and press enter To view the file type gedit blockMeshDict


(Note that M and D here are capital)


Now press enter

This will Open up the blockMeshDict file


Let me drag this to the capture area

In blockMeshDict file This contains :


-cordinates for lid driven cavity

-blocking and meshing parameters

-and boundary patches.

No patches and arcs in the geometry Since there are arcs as well as no patches to be merged


edges and mergePatchPairs can be kept empty

Now close this
Terminal type cd .. and do this twice In the command terminal type : cd (space) .. (dot) (dot)
you will come back to the cavity folder
Cd system and press enter Now type cd (space) system and press enter,
Type ls and press enter Now type ls and press enter


this contains three files


controlDict, fvSchemes and fvSolutions

ControlDict


fvSolution


fvSchemes

controlDict contains control parameters for start/end time.


fvSolution contains discritization schemes used in run time.


fvSchemes contains equation for solver,


tolerance etc.

Type cd .. and press enter Now again type cd (space) (dot dot) . . and press enter
Cd 0 and press enter Now type cd ( space ) 0 (zero) and Press enter
Now type ls and press enter
Initial values for bounary This contains the initial values for boundary conditions like


Pressure ,Velocity,Temperature etc.

Type cd .. Type cd ( space ) (dot dot) . . to return to the cavity folder
Mesh the geometry Now we need to mesh the geometry


We are using a course mesh here.

Mesh the geometry by typing blockMesh in the terminal.
In terminal type blockMesh and press enter Now type blockMesh (Note that M and D here is capital)


and press enter

Meshing is done.
If there is some error in the blockMesh file


it will be shown in the terminal

Type paraFoam and press enter To view the geometry


Type paraFoam , Note that F here is capital


and press enter

This will open the paraview window
Click on apply button Now on the left hand side of the object inspector menu click on Apply.
You can see the lid driven cavity geometry


close this

Check the mesh Check the mesh by typing checkMesh in the terminal


Note that M here is capital


and press enter

After the checkMesh command you can see the the number of cells ,


skewness and other parameters


which are associated with the mesh

Let me switch back to the slides.
Slide ; icoFoam The solver we are using here is icoFoam :
icoFoam is a Transient solver for incompressible flow of newtonian fluids
Let me switch back to the terminal
In terminal type icoFoam and press enter In the terminal type icoFoam


Note that F here is capital


and press enter

Iterations running will be seen in the terminal window.
Type paraFoam and press enter


Once the solving is done


type paraFoam in the terminal

to view the geometry and the results

Click on APPLY On the left hand side of object inspector menu


click on Apply

Scroll down in object inspector menu Now Scroll down the properties panel


of the objector inspector menu


for time step,regions and volume fields etc

Check or uncheck these boxes Check or uncheck these boxes in the mesh part


to view the different boundary regions of Lid driven cavity

Change from solid color to capital U


initial condition


I will select capital U

Now after this on top of the active variable control


dropdown menu change from solid color to capital p or U


which are the initial conditions such as pressure or velocity


I will select capital U

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


Click on the play button

Final result of velocity in lid driven cavity Now this is the final result of velocity for lid driven cavity
Toggle on the color legend Toggle on the color legend by clicking on


top left of the active variable control menu

This is the color legend for U velocity
Validation of result We need to validate the results obtained


To do this let us plot the U and V velocity

We need to validate the result obtained


to do this let us plot the U and V velocity.

Menu > filters > data analysis > plot over line For this Go to Filters Menu > Data Analysis > Plot Over line
Click on it
You can see the X , Y and Z axis
Select the X and Y axis


Select the X axis

Select the X & Y axis turn by turn.


I will select the X axis and click Apply

You can see the Pressure and velocity plots being plotted
For non-dimensional analysis Since it is a non dimensional analysis


we need to plot the graph for u/U v/s y/L for Reynolds number =100

PLot data Line click Y axis and apply To do this in Plot Data click on the Y-axis


And click APPLY

Plot can be seen


Go to file save data

You can see the plot


In menu bar go to File > Save Data

Give and appropriate name to your file
Give a name to the file


save as .csv format

I will give this as cavity


The file will be saved as .csv file

Now click ok


Again click ok

Go to the cavity folder in icoFoam


cavity.csv file

Now go to the cavity folder of openfoam directory.


Scroll down you can see the cavity.csv file

Open it in Open office or LibreOffice Spreadsheet
Copy u0 and points 1 and save it another page of spreadsheet In the libreoffice spreadsheet copy


the U0 (u velocity) and to the right points1(Y-axis) columns


in another spreadsheet

U/U and y/L Now divide both these coloumns


that is u zero by capital U and points 1 by capital L

PLot the results using chart option

of spreadsheet

Plot the results in libreoffice charts option on top of the menu bar.
Now let me switch back to the slides
Slide 7 : Lid Driven Cavity (OpenFOAM) Results obtained will be similar to this figure
Slide 8: Ghia et al.(1982) & Fluent Validate the result obtained on Lid Driven Cavity by : Ghia et al. (1982) and


Results obtained from Fluent

Slide 9

Summary

In this tutorial we learnt how to install

File structure of Lid Driven cavity

Solved lid driven cavity.

Post-processing of results

Validation

Slide 10:

Assignment

As as Assignment,

Change some parameters in the lid driven cavity

  • Velocity Magnitude in the 0 folder
  • Kinematic viscosity in transportPorpoerties in constant folder

Plot the results of u/U and y/L

This brings us to the end of the tutorial

Slide 11 :

About Spoken tutorials

The video available at this URL:

http://spoken-tutorial.org/What_is_a_Spoken_Tutorial

It summarizes the Spoken Tutorial project.

If you do not have good bandwidth, you can download and watch it.

Slide 12:

About Spoken tutorials

The Spoken Tutorial Project Team

-Conducts workshops using spoken tutorials

-Gives certificates to those who pass an online test

-For more details, please write to us at

contact @spoken-tutorial.org

Slide : 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 : 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 : 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 : 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:

Acknowledgement

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.

More information on the same is available at the following URL link http://spoken-tutorial.org/NMEICT-Intro

Slide 14:

About the contributor

This is Rahul Joshi from IIT BOMBAY signing off.

Thanks for joining

Contributors and Content Editors

Chandrika, DeepaVedartham, Nancyvarkey, Rahuljoshi