Difference between revisions of "OpenFOAM/C3/Flow-over-a-flat-plate/English"

From Script | Spoken-Tutorial
Jump to: navigation, search
(Created page with 'Tutorial: Flow over a flat plate using OpenFOAM. Script and Narration: Rahul Joshi Keywords: Video tutorial, CFD, Flat plate, Boundary layer, glyph (vector plotting). {| …')
 
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
Tutorial: Flow over a flat plate using OpenFOAM.
 
Tutorial: Flow over a flat plate using OpenFOAM.
 
  
 
Script and Narration: Rahul Joshi
 
Script and Narration: Rahul Joshi
 
  
 
Keywords: Video tutorial, CFD, Flat plate, Boundary layer, glyph (vector plotting).  
 
Keywords: Video tutorial, CFD, Flat plate, Boundary layer, glyph (vector plotting).  
  
 
+
{|Border=1
 
+
!Visual Cue
{| style="border-spacing:0;"
+
!Narration
| 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:0.05pt solid #000000;padding:0.097cm;"| <center>Narration</center>
+
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 1
+
| 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 Flow over a flat plate using '''OpenFOAM'''.
+
| Hello and welcome to the spoken tutorial on '''Flow over a flat plate 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 : Learning Objectives
+
| 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 teach you about the
+
| In this tutorial I will teach you about   
 
+
  Geometry of the flat plate
+
 
+
I will also show you how to
+
 
+
# Change the grid spacing in '''meshing'''
+
# Post Process results in '''ParaView''' and
+
# Visualise using '''Vector Plot'''.
+
 
+
  
 +
* Geometry of the '''flat plate'''
 +
* Changing the '''grid spacing''' in '''meshing'''
 +
* '''Post processing''' results in '''ParaView''' and
 +
* '''Visualizing''' using '''Vector Plots'''
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 3:  
+
| Slide 3:  
  
 
System Requirement  
 
System Requirement  
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| To record this tutorial  
+
| 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
  
I am using '''Linux''' Operating system '''Ubuntu''' version 12.04.
+
|-
 
+
|  Slide 4:
 
+
'''OpenFOAM''' version 2.1.1
+
 
+
 
+
'''ParaView''' version 3.12.0
+
  
 +
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
 +
|
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 4:
+
| Slide 5: Flow over Flat Plate
 
+
 
+
 
+
| 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;"| '''Flow over flat plate''' is a '''fundamental problem in fluid mechanics'''
+
 
+
 
+
  
 +
|'''Flow''' over '''flat plate''' is a fundamental problem in '''fluid mechanics'''.
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 5:
+
| Slide 6: Flow over Flat Plate
  
 
Flow over a flat plate diagram
 
Flow over a flat plate 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;"| We can visualise the growth of '''boundary layer'''
+
| We can '''visualise''' the growth of the '''boundary layer'''.
  
 +
'''Boundary layer''' is a very thin region above the body where the velocity is 0.99 times the '''free stream velocity'''.
  
'''Boundary layer''' is a very thin region above the body
+
|-
 +
| Slide 7: Diagram of boundary conditions.
 +
| This is a diagram of the '''flow''' over the '''flat plate'''.
  
 +
The''' boundary conditions''' are given as follows-
  
where the velocity is 0.99 times the '''free stream velocity'''.
+
*You have the '''Inlet'''
 
+
*The '''Plate'''
 +
*'''Top'''  which is the '''Farfield'''
 +
*and '''Outlet'''  which is the''' pressure outlet boundary'''
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 6: Diagram of boundary conditions.
+
| Slide 8: Inlet parameters
| 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 a '''diagram''' of '''flow over the flat plate'''
+
|
 +
* The '''Free stream velocity U''' is '''1 m/s''', and
  
 +
* We are solving this for a '''Reynolds number (Re) = 100'''
  
The''' boundary conditions''' are given as follows
+
|-
 +
| Click on Home>> OpenFoam
 +
|Now let us go to the '''Home''' folder.
  
 +
In the '''Home''' folder, click on the '''OpenFoam''' folder.
  
You have the '''Inlet'''  
+
|-
 +
| Click on Run >> Tutorials
 +
|Then go to the '''Run''' directory.
  
 
+
You will see '''Tutorials.''' Click on it.
'''Plate'''
+
 
+
 
+
'''Top''' – which is the '''Farfield'''
+
 
+
 
+
and '''Outlet''' –which is the''' pressure outlet boundary'''
+
 
+
 
+
Free stream velocity '''U = 1 m/s''', and
+
 
+
 
+
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;"| Click on home>> OpenFoam >> Run >> Tutorials >> Incompressible >> SimpleFoam
+
| Click on Incompressible >> SimpleFoam
| 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;"| Go to the '''home''' folder and click on the '''OpenFoam''' folder
+
|Scroll down and then click on '''Incompressible'''.
  
 +
Scroll down.
  
Then go to the '''Run''' '''directory '''
+
You will see the '''simpleFoam '''folder, click on it.
  
 
+
This '''solver''' suits our '''case'''.
You will see '''Tutorials. '''Click on it.
+
 
+
 
+
'''Scroll down''' and then click on '''Incompressible.'''
+
 
+
 
+
'''Scroll down'''.
+
 
+
 
+
You will see the '''simpleFoam '''folder.
+
 
+
 
+
Click on it
+
 
+
 
+
This '''solver''' suits our case.
+
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Right click >> Create new folder >> flatplate
+
| Right click >> Create new folder >> flatplate
| 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, create a '''folder''' by the name '''flatplate.'''
+
| In this, create a '''folder''' by the name '''flatplate'''
 
+
  
Right click - '''Create New Folder -''' '''flatplate'''
+
Right click '''Create New Folder flatplate'''
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Double-click '''pitzdaily '''folder
+
| Double-click '''pitzdaily '''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;"| Now, let's open the '''pitzdaily case.'''  
+
| Now, let us open the '''pitzdaily case'''.
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Zoom in
+
| Zoom 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;"| Let me zoom this.
+
| Let me zoom this.
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Select '''0''', '''constant '''and '''system '''folders
+
| Select '''0,constant '''and '''system '''folders
| 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;"| Copy the '''three folders''' - '''0''', '''constant '''and '''system'''
+
| Copy the three 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;"| Copy them
+
| Ctrl + C.
| 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;"| Copy this
+
| Copy this.
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Go back to '''SimpleFoam''' >> '''flatplate '''folder
+
| Go back to '''SimpleFoam''' >> '''flatplate '''folder.
  
Paste them there
+
Paste them there.
| 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 go one level back.  
+
| Now let us go one level back.
  
 
+
Paste these three folders inside the''' flatplate '''folder.
Paste these '''folders''' inside the''' flatplate '''folder.
+
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Click on '''constant >> polyMesh'''
+
| Click on '''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;"| Open the '''constant folder''' and then the '''polyMesh folder'''
+
| Open the '''constant''' folder and then the '''polyMesh''' folder.
  
 
|-
 
|-
| 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;"| Change the geometry and boundary condition names in the '''blockMeshDict '''file.
+
| Change the '''geometry''' and '''boundary condition''' names in the '''blockMeshDict '''file.
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"|
+
|Open '''blockMeshDict''' file >> Scroll down.
| 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 have already made the changes.
+
| I have already made the changes.
  
 +
Let us open the '''blockMeshDict''' file.  Scroll down.
  
Let us open the blockMeshDict file
+
The '''geometry''' is in '''meters'''.
 
+
The geometry is in '''meters'''.
+
  
 
|-
 
|-
| 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 have set the '''dimensions''' of the '''flatplate'''
+
| We have set the '''dimensions''' of the '''flatplate'''.
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Simplegrading (1 3 1)  
+
| Simplegrading (1 3 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;"| We can see that '''simpleGrading. '''
+
| You can see the '''simpleGrading.'''
  
 
+
It is kept as (1 3 1) as we need a finer '''mesh''' near the '''plate'''.
It is kept as (1 3 1) as we need a finer '''mesh''' near the plate.
+
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"|
+
|Go two '''levels''' back
| 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.
 
+
  
 
Go two '''levels''' back.
 
Go two '''levels''' back.
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"|
+
|Make changes in the '''boundary condition'''
| 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;"| Similarly, make changes in the '''boundary condition''' names inside the '''files''' in the '''0''' folder.
+
| Similarly, make changes in the '''boundary condition''' names inside the files in the '''0''' folder.
  
 
+
These files have '''pressure, velocity''' and '''wall functions'''.
These '''files''' have '''pressure''', '''velocity''' and '''wall''' functions.
+
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"|
+
|Go one '''level''' back.
| 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 '''calculate''' the values of '''wall''' functions,  
+
| To calculate the values of '''wall functions''', please refer to the earlier '''tutorials''' in the '''OpenFoam''' series.
 
+
 
+
please refer to the earlier '''tutorials''' in the '''OpenFoam''' series.
+
 
+
  
 
Let us go one '''level''' back.
 
Let us go one '''level''' back.
  
 
|-
 
|-
| 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 '''system''' folder can be kept '''default'''
+
| The '''system''' folder can be kept '''default'''.
 
+
  
Let us close this
+
Let us close this.
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Open the terminal window :
+
|Let us open the '''terminal''' window :
  
 
Press Ctrl+Alt+t keys simultaneously
 
Press Ctrl+Alt+t keys simultaneously
| 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.'''
+
| Now let us open the '''terminal '''window.
  
 
+
In the '''terminal''' window, type '''run '''and press '''Enter'''.
In the '''terminal window''', 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 cd tutorials  
+
| Type cd tutorials  
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Type '''cd space tutorials '''and press''' Enter.'''
+
| Now type '''cd space tutorials '' 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  
+
| Type cd incompressible  
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Type '''cd incompressible '''press''' Enter.'''
+
| Now type '''cd incompressible '''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 simpleFoam  
+
| Type cd simpleFoam  
| 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 simpleFoam '''press''' Enter.'''
+
| Now type '''cd space simpleFoam '''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  
+
| 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.'''
+
| 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;"| We can see the '''flatplate''' folder.
+
| We can see the '''flatplate''' 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 flatplate
+
| Type cd flatplate
| 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 flatplate '''and press '''Enter.'''
+
| Now type '''cd space flatplate '''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
+
| 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.'''
+
| 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 three '''folders''' '''0,constant''' and '''system.'''
+
| You can see the three 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;"| Type blockMesh
+
| Type blockMesh
| 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 will mesh the geometry.  
+
| Now, we will mesh the '''geometry'''.
 
+
  
 
We are using a '''course mesh''' for this problem.
 
We are using a '''course mesh''' for this problem.
 
  
 
'''Meshing''' can be done by typing '''blockMesh''' in the '''terminal'''.
 
'''Meshing''' can be done 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;"|  
+
|
| 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;"| Press '''Enter.'''
+
| Press '''Enter'''.
 
+
  
 
'''Meshing''' has been done.
 
'''Meshing''' has been done.
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"|  
+
|
| 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;"| Note that if there is some error in the '''blockMesh''' file,
+
| Note that if there is some error in the '''blockMesh''' file.
 
+
  
 
it will be shown in the '''terminal''' window.
 
it will be shown 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;"| Type paraFoam
+
| Type paraFoam
| 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, type '''paraFoam'''
+
| To view the '''geometry''', type '''paraFoam''' 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;"| Paraview window click on APPLY button on left hand side
+
| '''Paraview''' window >> 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;"| After the '''ParaView''' window opens, on the left hand side of the '''object inspector''' menu, click '''Apply'''.
+
  
 +
| After the '''ParaView''' window opens, on the left hand side of the '''object inspector''' menu, click '''Apply'''.
  
 
We can see the '''geometry'''.
 
We can see the '''geometry'''.
  
 +
|-
 +
|Close the '''ParaView''' window.
 +
|Close the '''ParaView''' window.
  
Close the '''ParaView''' window.
+
Let me switch back to the''' slides'''.
 
+
 
+
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 : solver
+
| Slide 9: 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;"| The solver we are using here is: '''simpleFoam.'''
+
| The '''solver''' we are using here is '''simpleFoam'''
  
 
+
'''SimpleFoam''' is a '''steady state solver '''for *'''incompressible'''
'''SimpleFoam''' is a '''steady state solver '''for '''incompressible '''
+
*and''' turbulent flows'''
 
+
 
+
and''' turbulent''' flows
+
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Demo :
+
| Demo :
 
+
  
 
type simpleFoam
 
type simpleFoam
| 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 '''window.
+
| Let me switch back to the '''terminal '''window.
 
+
  
In the '''terminal window''' ,type '''simpleFoam''' and press '''Enter.'''
+
In the '''terminal''' window, type '''simpleFoam''' and press '''Enter'''.
  
  
Line 323: Line 272:
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Type paraFoam
+
| Type paraFoam
| 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''' to view the results.
+
| Once the solving is done, type '''paraFoam''' to view the results.
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| In the Paraview window click on APPLY button on left hand side
+
| In the '''Paraview''' window click on '''APPLY''' button on left hand side
| 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, click '''Apply t'''o view the geometry.  
+
| On the left hand side of the '''Object Inspector''' menu, click '''Apply''' to view the '''geometry'''.
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Properties
+
| Properties
| 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;"| Scroll down the '''properties''' panel of the '''Object Inspector''' menu for '''time step''', '''regions''' and '''fields'''
+
| Scroll down the '''properties''' panel of the '''Object Inspector''' menu for '''time step, regions''' and '''fields'''.
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Change the drop down menu from Solid Color to U
+
| 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;"| To view the '''contours''' from the''' '''top drop down menu,  
+
| To view the '''contours''' from the drop down menu,  
 
+
*in the '''Active Variable Control '''menu,
 
+
*change from '''solid color''' to '''capital U'''
in the '''Active Variable Control '''menu,
+
 
+
 
+
change from '''solid color''' to '''capital U'''
+
  
 
|-
 
|-
| 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 initial condition of '''velocity'''
+
| You can see the initial '''condition''' of the '''velocity'''.
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| VCR control
+
| VCR control
| 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 will see the '''VCR''' controls.
+
| Now on top of the '''ParaView''' window, you will 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;"| Click on Play button of VCR control
+
| Click on Play button of VCR control
| 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 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;"|  
+
|
| 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 see the '''contour''' of '''Pressure''' or '''Velocity''' on the flat plate accordingly
+
| You will see the '''contour''' of '''Pressure''' or '''Velocity''' on the '''flat plate''' accordingly.
  
 
|-
 
|-
| 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 '''Colour legend'''
+
| 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;"| This is the '''velocity contour'''
+
| This is the '''velocity contour'''.
 
+
 
+
'''Toggle''' on the '''Color legend'''
+
 
+
 
+
  
 +
'''Toggle''' on the '''Color legend'''.
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Color legend left hand side top icon
+
| Color legend left hand side top icon
| 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, click on the '''colour legend '''icon in the '''Active Variable Control''' menu
+
| To do this, click on the '''color legend '''icon on 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;"| Clcik on APPLY button
+
| 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;"| Click '''Apply''' in the '''Object inspector '''menu
+
| Click '''Apply''' in the '''Object inspector '''menu.
 
+
 
+
 
+
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Click on Display
+
| Click on Display
| 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 '''Object inspector '''menu, click on '''Display'''  
+
| In the '''Object inspector '''menu, click on '''Display'''.
 
+
 
+
 
+
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Click on rescale to data range
+
| Click on rescale to data range
| 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;"| '''Scroll down''' and click on '''Rescale''' '''to data range'''
+
|Scroll down and click on '''Rescale to data range'''.
 
+
 
+
 
+
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Shift color legend on top of the geometry
+
| Shift color legend on top of 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;"| Let me shift this '''Color legend''' on top
+
| Let me shift this '''Color legend''' on top.
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Top menu >> Filter > Commom > glyph
+
| Top menu >> Filter > Common > glyph
| 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 visualize the '''Vector Plot''',  
+
| To visualize the '''Vector Plot''',  
 
+
  
 
go to the '''Filters Menu''' > '''Common''' > '''glyph'''
 
go to the '''Filters Menu''' > '''Common''' > '''glyph'''
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"|
+
|Go to '''Properties'''
| 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;"| Go to the '''Properties''' in '''Object Inspector menu'''
+
| Go to the '''Properties''' in '''Object Inspector menu'''.
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"|
+
|Click '''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;"| Click '''Apply''' on the left hand side of '''Object Inspector Menu'''.
+
| Click '''Apply''' 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:none;padding:0.097cm;"| Changing vector size
+
| Changing vector size
| 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 change the number of '''vectors''' by changing their size at the bottom.
+
| You can change the number of '''vectors''' by changing their size at the bottom.
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Scroll down and click on edit button
+
| Scroll down and click on '''Edit''' button
 
+
  
 
set scale factor 0.1
 
set scale factor 0.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;"| Also, the size of the '''vectors''' can be changed by '''clicking''' on the '''Edit''' button.  
+
| Also, the size of the '''vectors''' can be changed by clicking on the '''Edit''' button.
 
+
 
+
The '''set scale''' '''factor''' can be changed to '''0.1'''
+
 
+
 
+
  
 +
The '''set scale factor''' can be changed to '''0.1'''
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Click the apply button
+
| Click the '''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;"| Again, click the '''Apply''' button.
+
| Again, click the '''Apply''' button.
  
 
|-
 
|-
| 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 zoom this
+
| Now let me zoom this.
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Click on ZoomToBox icon  
+
| Click on ZoomToBox icon  
| 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 '''Active Variable Control '''menu, click on '''zoomToBox '''option
+
| To do this, in the '''Active Variable Control '''menu, click on the '''zoomToBox '''option.
  
 
|-
 
|-
| 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;"| And '''zoom''' over any area that you desire
+
| And zoom over any area that you desire.
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Parabolic variation of vector plot
+
| Parabolic variation of vector plot
| 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 can see the '''parabolic variation''' of '''vector plot '''as the '''flow''' moves over the''' plate'''.
+
| We can see the '''parabolic variation''' of '''vector plots '''as the '''flow''' moves over the''' plate'''.
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Delete the vector plot
+
| Delete the vector plot
| 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;"| Delete this. Now delete the '''vector plot.'''
+
| Delete this. Now delete the '''vector plot'''.
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Correesponding to color of 1 in color legend
+
| Corresponding to color of 1 in 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;"| Also, we can see that the color near to 1
+
| Also, we can see that the color near to 1 corresponds to the '''velocity''' of '''0.99 '''times the '''free stream velocity'''.
 
+
 
+
corresponds to the '''velocity''' of '''0.99 '''times the free stream velocity.
+
 
+
 
+
 
+
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| To plot the data along x and y axis
+
| To plot the data along x and y axis
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| You can also plot the '''variation''' of velocity along the '''x '''and '''y '''axes using the '''plot data over line'''.
+
| We can also plot the '''variation''' of velocity along the '''x '''and '''y '''axes using the '''plot data over line'''.
 
+
 
+
 
+
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 9
+
| Slide 10: Summary
 
+
| This brings us to the end of the tutorial.
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;"| This brings us to the end of the tutorial.  
+
 
+
  
 
In this tutorial we learnt :
 
In this tutorial we learnt :
  
* '''Geometry and meshing''' of the '''flat plate geometry''' and
+
* '''Geometry''' and '''meshing''' of the '''flat plate geometry''' and
* Vector plotting in '''ParaView'''
+
* '''Vector''' plotting in '''ParaView'''
 
+
 
+
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 10:
+
| Slide 11: Assignment
 +
| As an assignment,
  
Assignment
+
Create a '''geometry''' of '''flow''' over the '''flat plate'''.
| 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,
+
  
Create a '''geometry''' of '''flow over a flat plate'''
+
Refine the '''grid spacing''' near the '''plate'''.
 
+
'''Refine the grid spacing''' near the plate
+
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 11 :
+
| Slide 12 : About Spoken tutorials
 
+
|  
About Spoken tutorials
+
* Watch the video available at this URL:
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Watch the video available at this URL:
+
  
 
http://spoken-tutorial.org/What_is_a_Spoken_Tutorial  
 
http://spoken-tutorial.org/What_is_a_Spoken_Tutorial  
  
It summarizes the Spoken Tutorial project.  
+
* It summarizes the Spoken Tutorial project.  
  
If you do not have good bandwidth, you can download and watch it.  
+
* If you do not have good bandwidth, you can download and watch it.  
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 12:  
+
| Slide 13: Spoken Tutorial Worekshops
 
+
| The Spoken Tutorial Project Team  
About Spoken tutorials
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| The Spoken Tutorial Project Team  
+
  
 
-Conducts workshops using spoken tutorials  
 
-Conducts workshops using spoken tutorials  
Line 523: Line 427:
 
-For more details, please write to  
 
-For more details, please write to  
  
contact@spoken-tutorial.org  
+
contact at the rate spoken hyphen tutorial dot org  
  
 
|-
 
|-
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 13:
+
| Slide 14: 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 15: 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 16: 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 17: 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 18:
  
 
Acknowledgement
 
Acknowledgement
Line 532: Line 468:
  
  
| 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 Tutorial project is a part of the Talk to a Teacher project,  
+
| Spoken Tutorial project is a part of the Talk to a Teacher project,  
  
It is supported by the National Mission on Education through ICT, MHRD, Government of India.
+
It is supported by the National Mission on Education through ICT, MHRD, Government of India
  
 
More information on this mission is available at this URL http://spoken-tutorial.org/NMEICT-Intro
 
More information on this mission is available at this URL http://spoken-tutorial.org/NMEICT-Intro
  
 
|-
 
|-
| 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
+
| About the contributor
| 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.
+
| This is Rahul Joshi from IIT BOMBAY signing off
  
Thanks for joining.
+
Thanks for joining
  
 
|}
 
|}

Latest revision as of 10:56, 16 August 2019

Tutorial: Flow over a flat plate using OpenFOAM.

Script and Narration: Rahul Joshi

Keywords: Video tutorial, CFD, Flat plate, Boundary layer, glyph (vector plotting).

Visual Cue Narration
Slide 1 Hello and welcome to the spoken tutorial on Flow over a flat plate using OpenFOAM.
Slide 2 : Learning Objectives In this tutorial I will teach you about
  • Geometry of the flat plate
  • Changing the grid spacing in meshing
  • Post processing results in ParaView and
  • Visualizing using Vector Plots
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: Flow over Flat Plate Flow over flat plate is a fundamental problem in fluid mechanics.
Slide 6: Flow over Flat Plate

Flow over a flat plate diagram

We can visualise the growth of the boundary layer.

Boundary layer is a very thin region above the body where the velocity is 0.99 times the free stream velocity.

Slide 7: Diagram of boundary conditions. This is a diagram of the flow over the flat plate.

The boundary conditions are given as follows-

  • You have the Inlet
  • The Plate
  • Top which is the Farfield
  • and Outlet which is the pressure outlet boundary
Slide 8: Inlet parameters
  • The Free stream velocity U is 1 m/s, and
  • We are solving this for a Reynolds number (Re) = 100
Click on Home>> OpenFoam Now let us go to the Home folder.

In the Home folder, click on the OpenFoam folder.

Click on Run >> Tutorials Then go to the Run directory.

You will see Tutorials. Click on it.

Click on Incompressible >> SimpleFoam Scroll down and then click on Incompressible.

Scroll down.

You will see the simpleFoam folder, click on it.

This solver suits our case.

Right click >> Create new folder >> flatplate In this, create a folder by the name flatplate

Right click Create New Folder flatplate

Double-click pitzdaily folder. Now, let us open the pitzdaily case.
Zoom in Let me zoom this.
Select 0,constant and system folders Copy the three folders 0, constant and system.
Ctrl + C. Copy this.
Go back to SimpleFoam >> flatplate folder.

Paste them there.

Now let us go one level back.

Paste these three folders inside the flatplate folder.

Click on constant >> polyMesh Open the constant folder and then the polyMesh folder.
Change the geometry and boundary condition names in the blockMeshDict file.
Open blockMeshDict file >> Scroll down. I have already made the changes.

Let us open the blockMeshDict file. Scroll down.

The geometry is in meters.

We have set the dimensions of the flatplate.
Simplegrading (1 3 1) You can see the simpleGrading.

It is kept as (1 3 1) as we need a finer mesh near the plate.

Go two levels back Now close this.

Go two levels back.

Make changes in the boundary condition Similarly, make changes in the boundary condition names inside the files in the 0 folder.

These files have pressure, velocity and wall functions.

Go one level back. To calculate the values of wall functions, please refer to the earlier tutorials in the OpenFoam series.

Let us go one level back.

The system folder can be kept default.

Let us close this.

Let us open the terminal window :

Press Ctrl+Alt+t keys simultaneously

Now let us open the terminal window.

In the terminal window, type run and press Enter.

Type cd tutorials Now type cd space tutorials press' Enter.
Type cd incompressible Now type cd incompressible press Enter.
Type cd simpleFoam Now type cd space simpleFoam press Enter.
Type ls Now type ls and press Enter.
We can see the flatplate folder.
Type cd flatplate Now type cd space flatplate and press Enter.
Type ls Now type ls and press Enter.
You can see the three folders 0, constant and system.
Type blockMesh Now, we will mesh the geometry.

We are using a course mesh for this problem.

Meshing can be done by typing blockMesh in the terminal.

Press Enter.

Meshing has been done.

Note that if there is some error in the blockMesh file.

it will be shown in the terminal window.

Type paraFoam To view the geometry, type paraFoam and press Enter.
Paraview window >> click on APPLY button After the ParaView window opens, on the left hand side of the object inspector menu, click Apply.

We can see the geometry.

Close the ParaView window. Close the ParaView window.

Let me switch back to the slides.

Slide 9: solver The solver we are using here is simpleFoam

SimpleFoam is a steady state solver for *incompressible

  • and turbulent flows
Demo :

type simpleFoam

Let me switch back to the terminal window.

In the terminal window, type simpleFoam and press Enter.


You will see the iterations running in the terminal window.

Type paraFoam Once the solving is done, type paraFoam to view the results.
In the Paraview window click on APPLY button on left hand side On the left hand side of the Object Inspector menu, click Apply to view the geometry.
Properties Scroll down the properties panel of the Object Inspector menu for time step, regions and fields.
Change the drop down menu from Solid Color to U To view the contours from the drop down menu,
  • in the Active Variable Control menu,
  • change from solid color to capital U
You can see the initial condition of the velocity.
VCR control Now on top of the ParaView window, you will see the VCR control.
Click on Play button of VCR control Click on the Play button.
You will see the contour of Pressure or Velocity on the flat plate accordingly.
Toggle on the Color legend This is the velocity contour.

Toggle on the Color legend.

Color legend left hand side top icon To do this, click on the color legend icon on the Active Variable Control menu.
Click on APPLY button Click Apply in the Object inspector menu.
Click on Display In the Object inspector menu, click on Display.
Click on rescale to data range Scroll down and click on Rescale to data range.
Shift color legend on top of the geometry Let me shift this Color legend on top.
Top menu >> Filter > Common > glyph To visualize the Vector Plot,

go to the Filters Menu > Common > glyph

Go to Properties Go to the Properties in Object Inspector menu.
Click Apply Click Apply on the left hand side of Object Inspector menu.
Changing vector size You can change the number of vectors by changing their size at the bottom.
Scroll down and click on Edit button

set scale factor 0.1

Also, the size of the vectors can be changed by clicking on the Edit button.

The set scale factor can be changed to 0.1

Click the Apply button Again, click the Apply button.
Now let me zoom this.
Click on ZoomToBox icon To do this, in the Active Variable Control menu, click on the zoomToBox option.
And zoom over any area that you desire.
Parabolic variation of vector plot We can see the parabolic variation of vector plots as the flow moves over the plate.
Delete the vector plot Delete this. Now delete the vector plot.
Corresponding to color of 1 in color legend Also, we can see that the color near to 1 corresponds to the velocity of 0.99 times the free stream velocity.
To plot the data along x and y axis We can also plot the variation of velocity along the x and y axes using the plot data over line.
Slide 10: Summary This brings us to the end of the tutorial.

In this tutorial we learnt :

  • Geometry and meshing of the flat plate geometry and
  • Vector plotting in ParaView
Slide 11: Assignment As an assignment,

Create a geometry of flow over the flat plate.

Refine the grid spacing near the plate.

Slide 12 : About Spoken tutorials
  • 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.
Slide 13: Spoken Tutorial Worekshops 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 14: 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 15: 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 16: 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 17: 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 18:

Acknowledgement


Spoken Tutorial 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 this mission is available at this URL http://spoken-tutorial.org/NMEICT-Intro

About the contributor This is Rahul Joshi from IIT BOMBAY signing off

Thanks for joining

Contributors and Content Editors

DeepaVedartham, Nancyvarkey, Rahuljoshi, Sneha