Difference between revisions of "OpenFOAM/C2/Installing-Running/English"

From Script | Spoken-Tutorial
Jump to: navigation, search
 
Line 1: Line 1:
Tutorial; Installing and Running OpenFOAM
+
Tutorial; Installing and Running OpenFOAM and Paraview
  
  
Line 5: Line 5:
  
  
Keywords: Video tutorial,CFD.
+
Keywords: Video tutorial,CFD,Installing OpenFOAM,Paraview.
  
  
  
 
{| style="border-spacing:0;"
 
{| style="border-spacing:0;"
| style="border-top:1pt solid #000000;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.075in;padding-right:0.075in;"| <center>Visual Cue</center>
+
| style="border-top:0.05pt solid #000000;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| <center>Visual Cue</center>
| style="border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.075in;padding-right:0.075in;"| <center>Narration</center>
+
| style="border:0.05pt solid #000000;padding:0.097cm;"| <center>Narration</center>
  
 
|-
 
|-
| style="border-top:1pt solid #000000;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.075in;padding-right:0.075in;"| Slide 1:
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 1:
 
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Hello and welcome to the spoken tutorial on '''Installing and running OpenFOAM and paraView'''.
 
+
 
+
| style="border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.075in;padding-right:0.075in;"| Hello and welcome to the spoken tutorial on Installing and running OpenFOAM and paraView.
+
 
+
 
+
 
+
  
 
|-
 
|-
| style="border-top:1pt solid #000000;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.075in;padding-right:0.075in;"| Slide 2: Learning Objectives
+
| 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
| style="border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.075in;padding-right:0.075in;"| In this tutorial I will show you  
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| In this tutorial I will show you  
  
  
how to install and run  
+
how to '''install and run'''
  
  
OpenFOAM  
+
'''OpenFOAM '''
  
  
Paraview and
+
'''Paraview''' and
  
  
How to solve a lid driven cavity.
+
How to solve a '''lid driven cavity'''.
  
 
|-
 
|-
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.075in;padding-right:0.075in;"| Slide 3:
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 3:
  
 
System Requirement
 
System Requirement
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.075in;padding-right:0.075in;"| To record this 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;"| To record this tutorial  
  
  
I am using Linux Operating system Ubuntu 10.04
+
I am using '''Linux Operating system Ubuntu 10.04'''
  
  
OpenFOAM version 2.1.0
+
'''OpenFOAM version 2.1.0'''
  
  
ParaView version 3.12.0
+
'''ParaView version 3.12.0'''
  
  
Note that OpenFOAM does not run on Windows platform.
+
'''Note that OpenFOAM does not run on Windows platform'''.
  
  
Also Note OpenFOAM v 2.1.0 is compatible with linux version 10.04 and above.  
+
Also Note '''OpenFOAM v 2.1.0''' is '''compatible''' with '''linux version 10.04''' and above.  
  
 
|-
 
|-
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.075in;padding-right:0.075in;"| 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
  
 
Prerequisites
 
Prerequisites
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.075in;padding-right:0.075in;"| To practice this tutorial you should have some basic knowledge of
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| To practice this tutorial you should have some basic knowledge of
  
  
Computational Fluid Dynamics.
+
'''Computational Fluid Dynamics'''.
  
  
And Linux Commands.
+
And '''Linux Commands'''.
  
 
|-
 
|-
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.075in;padding-right:0.075in;"| Slide 5
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 5
  
 
About OpenFOAM
 
About 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;"| Let me introduce you to '''OpenFOAM'''
  
 +
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Open source software
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| It is an '''Open Source'''
  
  
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.075in;padding-right:0.075in;"| Let me introduce you to OpenFOAM
+
'''Computational Fluid Dynamics Software'''.
  
 
+
|-
It is an Open Source
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Wide range of solvers
 
+
 
+
Computational Fluid Dynamics Software.
+
  
  
It contains a wide range of solvers for solving CFD problems of
+
2d as well as 3d problems
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| It contains a wide range of '''solvers''' for solving '''CFD''' problems of
  
  
2dimensional  
+
'''2dimensional '''
  
  
Line 97: Line 93:
  
  
3dimensionals.
+
'''3dimensionals'''.
 
+
 
+
 
+
  
 
|-
 
|-
| style="border-top:1pt solid #000000;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.075in;padding-right:0.075in;"| Slide 6:
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 6:
  
 
About paraView
 
About paraView
| style="border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.075in;padding-right:0.075in;"| Now let me introduce you to Paraview:
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Now let me''' introduce''' you to '''Paraview''':
  
It is used for visualizing results obtained in OpenFOAM.
 
  
 +
It is used for '''visualizing results''' obtained in '''OpenFOAM'''.
  
 +
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 7:
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| '''OpenFOAM and paraView''' can also be installed
  
  
|-
+
through '''Synaptic package manager'''
| style="border-top:1pt solid #000000;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.075in;padding-right:0.075in;"| Slide 7:
+
| style="border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.075in;padding-right:0.075in;"| OpenFOAM and paraView can also be installed through Synaptic package manager
+
  
 
|-
 
|-
| style="border-top:1pt solid #000000;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.075in;padding-right:0.075in;"| Demo:
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Demo:
  
 
Synaptic Package Manager
 
Synaptic Package Manager
| style="border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.075in;padding-right:0.075in;"| For Synaptic Package Manager go to System > Administration > Synaptic Package Manager
+
| style="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 '''Synaptic Package Manager''' go to '''System > Administration > Synaptic Package Manager'''
  
 +
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Enter your system password
 +
| style="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 your '''password'''.
  
Type your password.
+
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Search box – type 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;"| In the '''Search Box type OpenFOAM'''
  
 +
|-
 +
| 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 '''openfoam as well as paraView'''.
  
In the Search Box type OpenFOAM
+
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Mark both Openfoam and paraview
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| '''Mark''' both of them for '''installation'''
  
 +
|-
 +
| 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''' mark''' and then '''Apply'''
  
you can see openfoam as well as paraView.
+
|-
 +
| 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;"| '''Installation''' may take some time.
  
 +
|-
 +
| 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;"| '''OpenFOAM and Paraview''' are '''installed'''.
  
Mark both of them for installation
+
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 7 :
 +
| style="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 more details on '''Synaptic Package Manager '''
  
  
Click on mark and then Apply
+
please visit our '''website '''on this URL : http://www.spoken-tutorials.org
  
  
Installation may take some time.
 
  
 
OpenFOAM and Paraview are installed.
 
  
 
|-
 
|-
| style="border-top:1pt solid #000000;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.075in;padding-right:0.075in;"| Slide 7
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 8 :
| style="border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.075in;padding-right:0.075in;"| For more details on Synaptic Package Manager
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| '''Alternately''' you can also '''install OpenFOAM and paraView '''
  
  
please visit our website on this URL : http://www.spoken-tutorials.org
+
from '''openfoam''' website on this url:  
  
  
 +
http://www.openfoam.com/download
  
 +
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Open browser
 +
| style="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 open up the '''browser '''
  
 
|-
 
|-
| style="border-top:1pt solid #000000;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.075in;padding-right:0.075in;"| Demo and slide 8:
+
| 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;"| In the browser URL type : [http://www.openfoam.com/download http://www.openfoam.com/download]
  
  
 +
Press Enter
  
| style="border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.075in;padding-right:0.075in;"| Alternately you can also install OpenFOAM and paraView from openfoam website on this url: http://www.openfoam.com/download
+
|-
 +
| 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 go to ubuntu deb pack installation
 +
| style="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 go to '''Ubuntu Deb pack '''
  
  
Let me open up the browser
+
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;"|
 +
| style="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 '''Ubuntu deb pack installation'''
  
In the browser URL type : [http://www.openfoam.com/download http://www.openfoam.com/download]
 
  
 +
Click on it
  
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;"| Let me '''zoom out'''
  
  
Scroll Down and go to Ubuntu Deb pack
+
Scroll down
  
 +
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Copy the first line to insert in command trminal
  
Let me zom this
 
  
 +
paste it in 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;"| From the '''first point of installation '''
  
Go to Ubuntu deb pack installation
 
  
 +
'''copy''' the '''command line''' and
  
Click on it
 
  
 +
'''paste''' it in the '''terminal window'''
  
Let me zoom out
 
  
  
Scroll down
 
  
 
|-
 
|-
| style="border-top:1pt solid #000000;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.075in;padding-right:0.075in;"| Demo
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Open command terminal
| style="border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.075in;padding-right:0.075in;"| From the first point of installation copy the command line and paste it in the terminal window.
+
  
  
To open up a the terminal window press Ctrl,Alt and t keys simultaneously on your keyboard
+
Press Ctrl+Alt+t on keyboard
  
or
 
  
go to Application > Accessories > Terminal  
+
Application > Accessories > 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;"| To open up a the '''terminal window'''
  
  
Open up a terminal window
+
press '''Ctrl,Alt and t keys''' simultaneously on your '''keyboard'''
  
  
Now copy this command line and paste it in the terminal window
+
or
  
  
Note that in place of 'lsb_release -cs' replace it with the name of Linux version you are using.
+
go to '''Application > Accessories > Terminal '''
  
 +
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| paste it in 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;"| Open up a '''terminal window'''
  
Switch back to the browser
 
  
 +
Now copy this '''command line''' and '''paste it''' in the '''terminal window'''
  
Above installation you can see different ubuntu versions and the code names,
+
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Replace lsb_release -cs by the ubuntu version name
 +
| style="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 in place of ''''lsb_release -cs''''
  
  
as i am using Linux 10.04 i will replace lbs_release -cs by ''lucid''.
+
replace it with the name of '''Linux version''' you are using
  
 +
|-
 +
| 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;"| '''Switch back''' to the browser
  
Open up a terminal window
 
  
 +
Scroll up
  
I will replace this by lucid
+
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Replace it by lucid for ubuntu 10.04
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| I will '''replace this''' by '''lucid'''
  
  
 
Press enter
 
Press enter
  
 +
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Installation is incomplete
  
Note that Installation here is incomplete if you follow the steps in the
 
  
 +
Follow steps for installation
 +
| style="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 '''Installation''' here is incomplete
  
sequence 1-2-3-4 you will be done through with the installation.
 
  
 +
if you follow the steps in the
  
I have already installed OpenFOAM through Synaptic Pacakage Manage some while ago.
 
  
 +
'''sequence 1-2-3-4''' you will be done through with the '''installation'''.
  
 +
|-
 +
| 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;"| I have already installed '''OpenFOAM'''
  
 +
 +
through '''Synaptic Pacakage Manage''' some while ago
  
 
|-
 
|-
| style="border-top:1pt solid #000000;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.075in;padding-right:0.075in;"| Demo:
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Configure the software and test its working
 +
| style="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 '''configure''' the '''installed software'''
  
Configure the software and test its working
+
|-
| style="border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.075in;padding-right:0.075in;"| Now we need to configure the installed software
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Edit the bash 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;"| To do this we need to '''edit''' the '''bash''' '''file'''
  
 +
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| In command terminal
  
To do this we need to edit the bash file.
 
  
 +
type gedit ~/.bashrc
 +
| style="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 a new '''command terminal'''.
  
Open a new command terminal.
 
  
 +
In the '''command terminal''' type : ''''gedit ~/.bashrc''''
  
In the command terminal type : ''''gedit ~/.bashrc''''
+
This opens up the '''bash''' '''file''',
  
This opens up the bash 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;"| Let me drag this to the '''capture area'''
  
  
Let me drag this to the capture area
+
scroll down to the bottom of the '''bash file'''
  
 +
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Browser 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;"| Now switch back to the '''browser'''
  
scroll down to the bottom of the bash file.
 
  
 +
Scroll down and go to user '''configration'''
  
Now switch back to the browser
+
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Look at the second point
  
  
Scroll down and go to user configration
+
copy the source line
  
  
Look at the second point
+
paste it at bottom of bash 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;"| Look at the '''second point'''
  
  
Line 274: Line 328:
  
  
And paste it at the botttom of the bash file
+
And paste it at the botttom of the '''bash 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;"| '''Save''' it and Close the '''bash file.'''
  
Save it and Close the bash 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;"| Now we need to test the '''installed application'''
  
 
+
|-
Now we need to test the installed application.
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Open new terminal 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;"| To do this open up a new '''command terminal''' terminal  
 
+
To do this open up a new command terminal terminal  
+
  
  
 
Let me drag this to the capture area
 
Let me drag this to the capture area
  
 
+
|-
In the command terminal type ''''icoFoam (Note that F here is capital) space -(dash) help''''.
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Type in the terminal 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;"| In the '''command terminal''' type ''''icoFoam ('''Note that F here is capital)''' space -(dash) help '''
  
  
 
Press enter
 
Press enter
  
 +
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| A mesage in the command terminal
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| A '''usage message''' will appear.
  
A usage message will appear.
+
You are now ready to start with O'''penFoam'''
  
 +
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Set up working directory
 +
| style="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 show you how to set up a '''working directory.'''
  
You are now ready to start with openFoam
+
|-
 +
| 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;"| Create a '''project or a user directory''' by the name '''run'''
  
 +
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| New terminal 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;"| Open a new '''command terminal'''
  
  
 +
Let me drag this to the '''capture area''' again
  
 
|-
 
|-
| style="border-top:1pt solid #000000;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.075in;padding-right:0.075in;"| Demo:
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Terminal window : mkdir -p $FOAM_RUN
 
+
| style="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 : '''mkdir (space) -p (space) $FOAM_RUN'''
Set up working Directory
+
 
+
 
+
 
+
| style="border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.075in;padding-right:0.075in;"| Now let me show you how to set up a working directory.
+
 
+
 
+
Create a project or a user directory by the name run.
+
 
+
 
+
Open a new command terminal.
+
 
+
 
+
Let me drag this to the capture area again
+
 
+
 
+
In the Command Terminal type : ''''mkdir (space) -p (space) $FOAM_RUN''''  
+
  
  
(Please note FOAM and RUN are in capital)
+
(Please note '''FOAM''' and '''RUN''' are in '''capital''')
  
  
 
Press Enter
 
Press Enter
  
 +
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Copy the tutorial directory
 +
| style="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 '''tutorial''' '''directory''' from openfoam distribution to '''run directory'''
  
Copy the tutorial directory from openfoam distribution to run directory:  
+
|-
 +
| 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 : '''cp (space) -r (space) $FOAM_TUTORIALS (space) $FOAM_RUN '''
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| By typing in the '''terminal '''
  
By typing in the terminal ''''cp (space) -r (space) $FOAM_TUTORIALS (space) $FOAM_RUN '''' (Press Enter)
+
'''cp (space) -r (space) $FOAM_TUTORIALS (space) $FOAM_RUN '''
  
  
(Please note TUTORIAL and FOAM are in capital)
+
'''('''Please note '''TUTORIAL''' and '''FOAM''' are in capital''')'''
  
  
Both the directories are now created.
+
'''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;"| Both the '''directories''' are now created.
  
For view the directories go to Places > Home Folder > OpenFOAM.
+
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| To view the OpenFOAM directories
 +
| style="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 view the '''directories''' go to '''Places > Home Folder > OpenFOAM.'''
  
 +
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Ttt-210, click on it
 +
| style="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 '''ttt-210''', Click on it
  
You can see ttt-210, Click on it
+
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Click on run
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| '''Run and tutorials'''
  
 +
|-
 +
| 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;"| Close this
  
Run and tutorials
 
  
 +
Now let me switch back to the '''slides'''.
  
Close this
+
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Installation from source code
 +
| style="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 some errors occurs during '''downloading''' '''OpenFOAM and Paraview'''
  
  
Now let me switch back to the slides.
+
form '''Synaptic Package Manager''' or '''Ubuntu Deb pack from website '''
 
+
  
  
 +
then you can '''download and install Openfoam''' and''' paraview '''from the''' source pack installation'''
  
 
|-
 
|-
| style="border-top:1pt solid #000000;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.075in;padding-right:0.075in;"| From source code
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Download page of openfoam site
| style="border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.075in;padding-right:0.075in;"| If some errors occurs during downloading OpenFOAM and Paraview
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Go to the '''Download''' page of '''openfoam website '''
  
  
form Synaptic Package Manager or Ubuntu Deb pack from website
+
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;"|
 +
| style="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 '''Source Pack Installation '''
  
then you can download and install Openfoam and paraview from the source pack installation:
+
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Go to packs
 +
| style="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 and '''Go to Packs '''
  
 +
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Download the two tar files
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Download these '''2 tar files and save them'''
  
For source pack installation
+
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Go to your home directory
 +
| style="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 this go to your '''home directory'''
  
 +
|-
 +
| 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;"| To do this go to '''Places > home folder'''
  
Go to the Download page of openfoam website
 
  
 +
Let me drag this to the '''capture area'''
  
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;"| Create a folder
 
+
Scroll down and click on Source Pack Installation
+
 
+
 
+
Now scroll down and Go to Packs
+
 
+
 
+
Download these 2 tar files and save them.
+
 
+
 
+
I have already downloaded and saved these tar file
+
 
+
 
+
After this go to your home directory
+
 
+
 
+
To do this go to Places > home folder
+
 
+
 
+
Let me drag this to the capture area
+
  
  
In your home directory create a folder by any name of your choice  
+
put this as '''abc'''
 +
| style="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 your home '''directory''' create a '''folder''' by any name of your choice  
  
  
Line 406: Line 473:
  
  
Copy the downloaded files in the folder you just created.
 
  
  
To do this , copy these two tar file
+
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Copy the downloaded file in this 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;"| '''Copy''' the '''downloaded''' files in the '''folder''' you just created.
  
 +
|-
 +
| 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;"| To do this , '''copy''' these two '''tar file'''
  
And paste it into the folder you just created
 
  
 +
And '''paste''' it into the '''folder''' you just created
  
Unzip or Untar these two files in the same 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;"| '''Unzip or Untar''' these two files in the same '''folder'''.
  
  
Extract here, this make take a couple of minutes
+
'''Right click > Extract here''', this make take a couple of minutes
  
 
+
|-
After this open a new command terminal
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Open new terminal window
  
  
 
In this go to your home folder
 
In this go to your home 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;"| After this open a new '''command terminal'''
  
  
type ls and press enter
+
In this go to your '''home 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;"| type '''ls''' and press enter
  
Now go to the same folder where you have untared the two tar files
+
|-
 +
| 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 go to the '''same folder where you have untared the two tar files'''
  
 +
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Type abc
 +
| style="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 )''' abc''' and press enter.
  
Now type cd space abc 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;"| To view the contents inside abc 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;"| Go to the downlaod page
 +
| style="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 back to the '''Download page of OpenFOAM website'''
  
To view the contents inside abc type ls and press enter
 
  
 +
for '''source pack installation'''
  
Now go back to the Download page of OpenFOAM website
+
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Follow the steps given on the website
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Follow the steps given below for '''ubuntu distribution'''
  
  
for source pack installation
+
for '''OpenFOAM and Paraview'''
  
 +
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Compile OpenFOAM and Paraview
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| We need to '''compile OpenFOAM and Paraview here'''
  
Follow the steps given below for ubuntu distribution for OpenFOAM and Paraview.
+
|-
 +
| 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;"| It may take about '''4 to 5 hours''' but this method always works .
  
  
We need to compile OpenFOAM and Paraview here
 
  
 
It may take about 4 to 5 hours but this method always works .
 
  
 
|-
 
|-
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.075in;padding-right:0.075in;"| Slide 9 :
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 9 :
  
 
Diagram
 
Diagram
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.075in;padding-right:0.075in;"| Let us see how to Solve a problem in OpenFOAM with an example
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Let us see how to '''Solve''' a problem in '''OpenFOAM''' with an example
  
 +
|-
 +
| 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 take “'''Lid Driven Cavity'''” as an example.
  
Let me take “Lid Driven Cavity” as an example.
+
|-
 
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Upper plate moves with a velocity and other plates are fixed
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| It is a '''2D problem''' where the upper '''plate''' moves with a certain velocity and
  
It is a 2D problem where the upper plate moves with a certain velocity a
 
  
 
+
other three sides of the '''plate '''are fixed
and other three sides of the plate are fixed.
+
  
 
|-
 
|-
| style="border-top:1pt solid #000000;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.075in;padding-right:0.075in;"| Display Slide 10 :
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide : Solver icoFoam
| style="border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.075in;padding-right:0.075in;"| The type of Solver I am using here is for incompressible flow
+
| style="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 type of '''Solver''' I am using here is for '''incompressible flow'''
  
  
Called as -icofoam
+
Called as -'''icofoam'''
  
 +
|-
 +
| 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;"| Now Open a new '''command terminal''' again
  
  
 +
Let me drag this to the '''capture area'''
  
 
|-
 
|-
| style="border-top:1pt solid #000000;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.075in;padding-right:0.075in;"| Demo:
+
| 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;"| Type the path for the '''lid driven cavity''' problem
  
Running the first example in openfoam
+
|-
| style="border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.075in;padding-right:0.075in;"| Now Open a new command terminal again
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Already set up in 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;"| Note that this '''problem''' has already been '''set up''' in '''OpenFOAM'''
  
 +
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| In terminal window type run
  
Let me drag this to the capture area
 
  
 +
run directory
 +
| style="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 ''''run''''
  
Type the path for the lid driven cavity problem
 
  
 +
This will direct you to the '''run directory''' of '''OpenFOAM'''
  
Note that this problem has already been set up in OpenFOAM
 
  
 +
-Press Enter
  
in the command terminal Type ''''run''''.
+
|-
 +
| 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
 +
| style="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) tutorial '''(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
 +
| style="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 '''(Press Enter)''' '''
  
This will direct you to the run directory of OpenFOAM -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 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;"| '''cd (space) icoFoam (Note that F here is capital) '''(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;"| '''cd (space) cavity '''(Press Enter)
  
Now type '''cd (space) tutorial '''(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;"| To view the content inside cavity '''type ls''' and press enter
  
'''cd (space) 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;"| See the three 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;"| You can see three files : '''0,constant and system'''
  
'''cd (space) icoFoam (Note that F here is capital) '''(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 we need to '''mesh''' the geometry
  
'''cd (space) cavity '''(Press Enter)
+
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Meshing using 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;"| Meshing can be done '''blockMesh '''utility of OpenFOAM
  
 +
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| In the terminal window type :
  
To view the content inside cavity '''type ls''' and press enter
+
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;"| In the '''terminal window''' type '''blockMesh'''
  
  
You can see three files : '''0,constant and system.'''
+
(Note here that '''M''' is capital)
  
  
Now we need to mesh the geometry
+
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''' has been done
  
Meshing can be done '''blockMesh '''utility of OpenFOAM
+
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| In terminal window type :
  
 +
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;"| Now run the solver ''''icoFoam'''' by typing in the '''terminal '''
  
In the \ terminal window type blockMesh (Note here that M is capital)
+
'''''icoFoam'''''
  
(Press Enter)
 
  
 +
(Note here that '''F''' is capital)
  
Meshing has been done
 
  
 +
and Press Enter.
  
Now run the solver ''''icoFoam'''' by typing in the terminal ''icoFoam''
+
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Look at the terminal 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;"| The '''iterations''' running can be seen in the '''terminal window'''
  
(Note here that F 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;"| 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;"| Here we notice we have '''completed''' the '''solving''' point.
  
 
|-
 
|-
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.075in;padding-right:0.075in;"| 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;"| To '''visualise''' these results let us open the '''paraview window.'''
  
Using paraView
+
|-
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.075in;padding-right:0.075in;"| The iterations running can 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;"| In the terminal window 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 open '''paraView''', type “'''paraFoam” '''in the terminal.
  
  
Here we notice we have completed the solving point.
+
(Note that ''''F'''' is '''capital''' here)
  
  
To visualise these results let us open the paraview window.
+
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;"| This open the '''paraview window'''
  
To open paraView, type “'''paraFoam” '''in the terminal.
 
  
(Note that 'F' is capital here) and press Enter
 
  
  
This 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;"| Left hand side in object inspector menu
  
  
On the left hand side,  
+
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;"| On the left hand side,  
  
  
In the object inspector menu,  
+
In the '''object inspector menu''',  
  
  
Click Apply to view the geometry.
+
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;"|
 +
| style="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
  
You can see the 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;"| Boundary condition
  
  
To see the boundary conditions, scroll down the object inspector menu  
+
Go to mesh parts
 +
| style="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 see the boundary conditions, scroll down the object inspector menu  
  
  
and go to Mesh Parts:
+
and go to Mesh Parts
  
 +
|-
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Uncheck the internal mesh box
 +
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Uncheck Internel Mesh and click Apply
  
Uncheck Internel Mesh 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;"|
 +
| style="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 geometry disappear.
  
 
+
|-
The geometry disappear.
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| View the moving and fixed walls
 
+
| style="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 for viewing the moving and fixedwalls
 
+
Now for viewing the moving and fixedwalls
+
  
  
 
Check both the boxes and click Apply  
 
Check both the boxes 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;"| Check and uncheck the 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;"| Now uncheck the Moving wall checkbox and click Apply
  
Now uncheck the Moving wall checkbox 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;"| Hover over 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;"| You can now see the fixedwalls and the moving wall which just now disappeared.
You can now see the fixedwalls and the moving wall which just now disappeared.
+
 
+
 
+
Thus we are done with running openfoam and paraview.
+
 
+
 
+
In future we will come across more tutorials on solvers and post- procesing the OpenFOAM results
+
 
+
 
+
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;"| Thus we are done with running openfoam and paraview
  
 +
|-
 +
| 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;"| In future we will come across more tutorials on solvers and post- procesing the OpenFOAM result
  
 +
|-
 +
| 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 slide
  
 
|-
 
|-
| style="border-top:1pt solid #000000;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.075in;padding-right:0.075in;"| Slide 11:
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide : Summary
 
+
| style="border-top:none;border-bottom: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:
Summary
+
 
+
 
+
  
| style="border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.075in;padding-right:0.075in;"| In this tutorial we learnt how to install
 
  
 
OpenFOAM and Paraview through Synaptic Package Manager and the website
 
OpenFOAM and Paraview through Synaptic Package Manager and the website
  
 
solved a lid driven cavity.
 
solved a lid driven cavity.
 
 
 
  
 
|-
 
|-
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.075in;padding-right:0.075in;"| Slide 12:
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide : Assignment
 
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| As as Assignment,  
Assignment
+
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.075in;padding-right:0.075in;"| As as Assignment,  
+
  
 
install OpenFOAM and Paraview
 
install OpenFOAM and Paraview
Line 628: Line 767:
  
 
|-
 
|-
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.075in;padding-right:0.075in;"| Slide 13 & 14 about Spoken tutorials
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 8:
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.075in;padding-right:0.075in;"| Watch the video available at this URL:
+
 
 +
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;"| 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  
Line 637: Line 778:
 
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 9:
  
Acknowde...left
+
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
| style="border-top:1pt solid #000000;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.075in;padding-right:0.075in;"| Slide 15
+
  
Acknowledgement
+
-Gives certificates to those who pass an online test
  
 +
-For more details, please write to
  
 +
contact@spoken-tutorial.com
  
| style="border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.075in;padding-right:0.075in;"| 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:none;padding:0.097cm;"| Slide 10:
 +
 
 +
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,  
  
 
It is supported by the National Mission on Education through ICT, MHRD, Government of India.  
 
It is supported by the National Mission on Education through ICT, MHRD, Government of India.  
Line 654: Line 803:
  
 
|-
 
|-
| style="border-top:1pt solid #000000;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.075in;padding-right:0.075in;"| About the contributor
+
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| About the contributor
| style="border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.075in;padding-right:0.075in;"| 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.
  
 
|}
 
|}

Latest revision as of 16:40, 6 March 2013

Tutorial; Installing and Running OpenFOAM and Paraview


Script and Narration : Rahul Joshi


Keywords: Video tutorial,CFD,Installing OpenFOAM,Paraview.


Visual Cue
Narration
Slide 1: Hello and welcome to the spoken tutorial on Installing and running OpenFOAM and paraView.
Slide 2: Learning Objectives In this tutorial I will show you


how to install and run


OpenFOAM


Paraview and


How to solve a lid driven cavity.

Slide 3:

System Requirement

To record this tutorial


I am using Linux Operating system Ubuntu 10.04


OpenFOAM version 2.1.0


ParaView version 3.12.0


Note that OpenFOAM does not run on Windows platform.


Also Note OpenFOAM v 2.1.0 is compatible with linux version 10.04 and above.

Slide 4

Prerequisites

To practice this tutorial you should have some basic knowledge of


Computational Fluid Dynamics.


And Linux Commands.

Slide 5

About OpenFOAM

Let me introduce you to OpenFOAM
Open source software It is an Open Source


Computational Fluid Dynamics Software.

Wide range of solvers


2d as well as 3d problems

It contains a wide range of solvers for solving CFD problems of


2dimensional


as well as


3dimensionals.

Slide 6:

About paraView

Now let me introduce you to Paraview:


It is used for visualizing results obtained in OpenFOAM.

Slide 7: OpenFOAM and paraView can also be installed


through Synaptic package manager

Demo:

Synaptic Package Manager

For Synaptic Package Manager go to System > Administration > Synaptic Package Manager
Enter your system password Type your password.
Search box – type OpenFOAM In the Search Box type OpenFOAM
you can see openfoam as well as paraView.
Mark both Openfoam and paraview Mark both of them for installation
Click on mark and then Apply
Installation may take some time.
OpenFOAM and Paraview are installed.
Slide 7 : For more details on Synaptic Package Manager


please visit our website on this URL : http://www.spoken-tutorials.org



Slide 8 : Alternately you can also install OpenFOAM and paraView


from openfoam website on this url:


http://www.openfoam.com/download

Open browser Let me open up the browser
In the browser URL type : http://www.openfoam.com/download


Press Enter

Scroll down and go to ubuntu deb pack installation Scroll Down and go to Ubuntu Deb pack


Let me zoom this

Go to Ubuntu deb pack installation


Click on it

Let me zoom out


Scroll down

Copy the first line to insert in command trminal


paste it in command terminal

From the first point of installation


copy the command line and


paste it in the terminal window



Open command terminal


Press Ctrl+Alt+t on keyboard


Application > Accessories > Terminal

To open up a the terminal window


press Ctrl,Alt and t keys simultaneously on your keyboard


or


go to Application > Accessories > Terminal

paste it in command terminal Open up a terminal window


Now copy this command line and paste it in the terminal window

Replace lsb_release -cs by the ubuntu version name Note that in place of 'lsb_release -cs'


replace it with the name of Linux version you are using

Switch back to the browser


Scroll up

Replace it by lucid for ubuntu 10.04 I will replace this by lucid


Press enter

Installation is incomplete


Follow steps for installation

Note that Installation here is incomplete


if you follow the steps in the


sequence 1-2-3-4 you will be done through with the installation.

I have already installed OpenFOAM


through Synaptic Pacakage Manage some while ago

Configure the software and test its working Now we need to configure the installed software
Edit the bash file To do this we need to edit the bash file
In command terminal


type gedit ~/.bashrc

Open a new command terminal.


In the command terminal type : 'gedit ~/.bashrc'

This opens up the bash file,

Let me drag this to the capture area


scroll down to the bottom of the bash file

Browser window Now switch back to the browser


Scroll down and go to user configration

Look at the second point


copy the source line


paste it at bottom of bash file

Look at the second point


Copy this line


And paste it at the botttom of the bash file

Save it and Close the bash file.
Now we need to test the installed application
Open new terminal window To do this open up a new command terminal terminal


Let me drag this to the capture area

Type in the terminal window In the command terminal type 'icoFoam (Note that F here is capital) space -(dash) help


Press enter

A mesage in the command terminal A usage message will appear.

You are now ready to start with OpenFoam

Set up working directory Now let me show you how to set up a working directory.
Create a project or a user directory by the name run
New terminal window Open a new command terminal


Let me drag this to the capture area again

Terminal window : mkdir -p $FOAM_RUN In the Command Terminal type : mkdir (space) -p (space) $FOAM_RUN


(Please note FOAM and RUN are in capital)


Press Enter

Copy the tutorial directory Copy the tutorial directory from openfoam distribution to run directory
In terminal type : cp (space) -r (space) $FOAM_TUTORIALS (space) $FOAM_RUN By typing in the terminal

cp (space) -r (space) $FOAM_TUTORIALS (space) $FOAM_RUN


(Please note TUTORIAL and FOAM are in capital)


and Press Enter

Both the directories are now created.
To view the OpenFOAM directories For view the directories go to Places > Home Folder > OpenFOAM.
Ttt-210, click on it You can see ttt-210, Click on it
Click on run Run and tutorials
Close this


Now let me switch back to the slides.

Installation from source code If some errors occurs during downloading OpenFOAM and Paraview


form Synaptic Package Manager or Ubuntu Deb pack from website


then you can download and install Openfoam and paraview from the source pack installation

Download page of openfoam site Go to the Download page of openfoam website


Now let me zoom this

Scroll down and click on Source Pack Installation
Go to packs Now scroll down and Go to Packs
Download the two tar files Download these 2 tar files and save them
Go to your home directory After this go to your home directory
To do this go to Places > home folder


Let me drag this to the capture area

Create a folder


put this as abc

In your home directory create a folder by any name of your choice


Let me put this as abc



Copy the downloaded file in this folder Copy the downloaded files in the folder you just created.
To do this , copy these two tar file


And paste it into the folder you just created

Unzip or Untar these two files in the same folder.


Right click > Extract here, this make take a couple of minutes

Open new terminal window


In this go to your home folder

After this open a new command terminal


In this go to your home folder

type ls and press enter
Now go to the same folder where you have untared the two tar files
Type abc Now type cd ( space ) abc and press enter.
To view the contents inside abc type ls and press enter
Go to the downlaod page Now go back to the Download page of OpenFOAM website


for source pack installation

Follow the steps given on the website Follow the steps given below for ubuntu distribution


for OpenFOAM and Paraview

Compile OpenFOAM and Paraview We need to compile OpenFOAM and Paraview here
It may take about 4 to 5 hours but this method always works .



Slide 9 :

Diagram

Let us see how to Solve a problem in OpenFOAM with an example
Let me take “Lid Driven Cavity” as an example.
Upper plate moves with a velocity and other plates are fixed It is a 2D problem where the upper plate moves with a certain velocity and


other three sides of the plate are fixed

Slide : Solver icoFoam The type of Solver I am using here is for incompressible flow


Called as -icofoam

Open a command terminal Now Open a new command terminal again


Let me drag this to the capture area

Path for lid driven cavity Type the path for the lid driven cavity problem
Already set up in openfoam Note that this problem has already been set up in OpenFOAM
In terminal window type run


run directory

in the command terminal Type 'run'


This will direct you to the run directory of OpenFOAM


-Press Enter

Type cd tutorials Now type cd (space) tutorial (Press Enter)
Type cd incompressible cd (space) incompressible (Press Enter)
Type cd icoFoam cd (space) icoFoam (Note that F here is capital) (Press Enter)
Type cd cavity cd (space) cavity (Press Enter)
Type ls To view the content inside cavity type ls and press enter
See the three folders You can see three files : 0,constant and system
Now we need to mesh the geometry
Meshing using blockMesh Meshing can be done blockMesh utility of OpenFOAM
In the terminal window type :

blockMesh

In the terminal window type blockMesh


(Note here that M is capital)


and Press Enter

Meshing has been done
In terminal window type :

icoFoam

Now run the solver 'icoFoam' by typing in the terminal

icoFoam


(Note here that F is capital)


and Press Enter.

Look at the terminal window The iterations running can be seen in the terminal window
Solving is done Here we notice we have completed the solving point.
To visualise these results let us open the paraview window.
In the terminal window type : paraFoam To open paraView, type “paraFoam” in the terminal.


(Note that 'F' is capital here)


and press Enter

This open the paraview window



Left hand side in object inspector menu


Click APPLY

On the left hand side,


In the object inspector menu,


Click Apply to view the geometry

You can see the Lid Driven Cavity
Boundary condition


Go to mesh parts

To see the boundary conditions, scroll down the object inspector menu


and go to Mesh Parts

Uncheck the internal mesh box Uncheck Internel Mesh and click Apply
The geometry disappear.
View the moving and fixed walls Now for viewing the moving and fixedwalls


Check both the boxes and click Apply

Check and uncheck the boxes Now uncheck the Moving wall checkbox and click Apply
Hover over the paraview window You can now see the fixedwalls and the moving wall which just now disappeared.
Thus we are done with running openfoam and paraview
In future we will come across more tutorials on solvers and post- procesing the OpenFOAM result
Let me switch back to the slide
Slide : Summary In this tutorial we learnt how to install:


OpenFOAM and Paraview through Synaptic Package Manager and the website

solved a lid driven cavity.

Slide : Assignment As as Assignment,

install OpenFOAM and Paraview

This brings us to the end of the tutorial

Slide 8:

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

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

contact@spoken-tutorial.com

Slide 10:

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

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

Thanks for joining.

Contributors and Content Editors

Chandrika, Rahuljoshi