<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://script.spoken-tutorial.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=OpenFOAM%2FC2%2FInstalling-Running%2FEnglish</id>
		<title>OpenFOAM/C2/Installing-Running/English - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=OpenFOAM%2FC2%2FInstalling-Running%2FEnglish"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=OpenFOAM/C2/Installing-Running/English&amp;action=history"/>
		<updated>2026-04-09T00:07:26Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.17</generator>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=OpenFOAM/C2/Installing-Running/English&amp;diff=2946&amp;oldid=prev</id>
		<title>Rahuljoshi at 11:10, 6 March 2013</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=OpenFOAM/C2/Installing-Running/English&amp;diff=2946&amp;oldid=prev"/>
				<updated>2013-03-06T11:10:55Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://script.spoken-tutorial.org/index.php?title=OpenFOAM/C2/Installing-Running/English&amp;amp;diff=2946&amp;amp;oldid=2935&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Rahuljoshi</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=OpenFOAM/C2/Installing-Running/English&amp;diff=2935&amp;oldid=prev</id>
		<title>Rahuljoshi at 20:39, 5 March 2013</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=OpenFOAM/C2/Installing-Running/English&amp;diff=2935&amp;oldid=prev"/>
				<updated>2013-03-05T20:39:05Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://script.spoken-tutorial.org/index.php?title=OpenFOAM/C2/Installing-Running/English&amp;amp;diff=2935&amp;amp;oldid=237&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Rahuljoshi</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=OpenFOAM/C2/Installing-Running/English&amp;diff=237&amp;oldid=prev</id>
		<title>Chandrika: Created page with ''''Title of script''':  Installing and Running OpenFOAM and Paraview  '''Author''': Rahul Ashok Joshi  '''Keywords''': Video Tutorial,Computational Fluid Dynamics (CFD)  [http://…'</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=OpenFOAM/C2/Installing-Running/English&amp;diff=237&amp;oldid=prev"/>
				<updated>2012-11-27T12:53:02Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;#039;&amp;#039;&amp;#039;&amp;#039;Title of script&amp;#039;&amp;#039;&amp;#039;:  Installing and Running OpenFOAM and Paraview  &amp;#039;&amp;#039;&amp;#039;Author&amp;#039;&amp;#039;&amp;#039;: Rahul Ashok Joshi  &amp;#039;&amp;#039;&amp;#039;Keywords&amp;#039;&amp;#039;&amp;#039;: Video Tutorial,Computational Fluid Dynamics (CFD)  [http://…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''Title of script''':  Installing and Running OpenFOAM and Paraview&lt;br /&gt;
&lt;br /&gt;
'''Author''': Rahul Ashok Joshi&lt;br /&gt;
&lt;br /&gt;
'''Keywords''': Video Tutorial,Computational Fluid Dynamics (CFD)&lt;br /&gt;
&lt;br /&gt;
[http://spoken-tutorial.org/wiki/index.php/File:Tutorial1.tar.gz Click here for the slides]&lt;br /&gt;
&lt;br /&gt;
{| border=1&lt;br /&gt;
!Visual Cue&lt;br /&gt;
!Narration&lt;br /&gt;
|-&lt;br /&gt;
| Slide 1&lt;br /&gt;
|&lt;br /&gt;
Hello and welcome to the spoken tutorial on Installing and running OpenFOAM and paraView.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| Slide 2: Learning Objective&lt;br /&gt;
|In this tutorial I will show you &lt;br /&gt;
&lt;br /&gt;
how to install and run &lt;br /&gt;
&lt;br /&gt;
OpenFOAM  &lt;br /&gt;
&lt;br /&gt;
ParaView , and&lt;br /&gt;
&lt;br /&gt;
How to solve the lid driven cavity.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| Slide 3: System Requirement&lt;br /&gt;
|To record this tutorial &lt;br /&gt;
&lt;br /&gt;
I am using GNU / Linux Operating system Ubuntu 10.04&lt;br /&gt;
&lt;br /&gt;
OpenFOAM version 2.1.0&lt;br /&gt;
&lt;br /&gt;
ParaView version 3.12.0&lt;br /&gt;
&lt;br /&gt;
Note that OpenFOAM does not run on Windows platform.&lt;br /&gt;
&lt;br /&gt;
Also Note OpenFOAM v 2.1.0 is compatible with linux version 10.04 and above. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| Slide 4:Prerequisites&lt;br /&gt;
|To practice this tutorial you should have some basic knowledge of&lt;br /&gt;
&lt;br /&gt;
 Computational Fluid Dynamics.&lt;br /&gt;
&lt;br /&gt;
Linux Commands.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| Slide 5&lt;br /&gt;
|Let me introduce you to  OpenFOAM&lt;br /&gt;
&lt;br /&gt;
It is a Computational Fluid Dynamics Software.&lt;br /&gt;
&lt;br /&gt;
It contains a wide range of solvers for solving CFD problems of&lt;br /&gt;
&lt;br /&gt;
2dimensional &lt;br /&gt;
&lt;br /&gt;
as well as &lt;br /&gt;
&lt;br /&gt;
3dimensionals.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| Slide 6&lt;br /&gt;
|Now let me introduce you to Paraview:&lt;br /&gt;
It is used for visualizing results obtained in OpenFOAM.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|Slide 7: Install Openfoam and Paraview&lt;br /&gt;
|&lt;br /&gt;
OpenFOAM and Paraview can also be installed through Synaptic package manager&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|Demonstration&lt;br /&gt;
|For Synaptic Package Manager go to System &amp;gt; Administration &amp;gt; Synaptic Package Manager&lt;br /&gt;
&lt;br /&gt;
Type your password.&lt;br /&gt;
&lt;br /&gt;
In the Search Box type OpenFOAM .&lt;br /&gt;
&lt;br /&gt;
You can see both OpenFOAM and Paraview&lt;br /&gt;
&lt;br /&gt;
Mark both of them for installation &lt;br /&gt;
&lt;br /&gt;
Click on mark and then Apply&lt;br /&gt;
&lt;br /&gt;
It make take some time to install.&lt;br /&gt;
&lt;br /&gt;
OpenFOAM and Paraview are installed.&lt;br /&gt;
&lt;br /&gt;
Let me switch back to the slides&lt;br /&gt;
|-&lt;br /&gt;
|Slide 7&lt;br /&gt;
|For more details on Synaptic Package Manager &lt;br /&gt;
&lt;br /&gt;
please visit our website on this URL : http://www.spoken-tutorials.org&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|Demonstration and Slide 8&lt;br /&gt;
|Alternately you can also install OpenFOAM and paraView from openfoam website on this url: http://www.openfoam.com/download&lt;br /&gt;
&lt;br /&gt;
Open browser Firefox&lt;br /&gt;
&lt;br /&gt;
In the browser URL type : http://www.openfoam.com/download&lt;br /&gt;
&lt;br /&gt;
Ubuntu Debian pack &amp;gt; Ubuntu debian pack installation&lt;br /&gt;
Click on it&lt;br /&gt;
&lt;br /&gt;
Scroll down and go to installation&lt;br /&gt;
&lt;br /&gt;
From the first point of installation copy the first command line and paste it in command terminal.&lt;br /&gt;
|-&lt;br /&gt;
|Demonstration:&lt;br /&gt;
|From the first point of installation copy the command line and paste it in the terminal window.&lt;br /&gt;
&lt;br /&gt;
To open the terminal window press Ctrl,Alt and t keys simultaneously &lt;br /&gt;
or &lt;br /&gt;
go to Application &amp;gt; Accessories &amp;gt; Terminal &lt;br /&gt;
&lt;br /&gt;
Note in place of 'lsb_release -cs' replace it with the name of  Linux version you are using.&lt;br /&gt;
&lt;br /&gt;
Above installation you will see the code name for the different Linux versions, as i am using Linux 10.04 i will replace lbs_release -cs by lucid. &lt;br /&gt;
&lt;br /&gt;
Installation here is incomplete if you follow the steps in the sequence 1-2-3-4 you will be done through with the installation.&lt;br /&gt;
&lt;br /&gt;
I have already installed OpenFOAM through Synaptic Package Manage  some while ago.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|Demonstration:Configure Software after Installation from Synaptic Package Manager or website&lt;br /&gt;
|After the software has been installed we need to configure it, to do this we need to edit the bash file.&lt;br /&gt;
&lt;br /&gt;
Open a new terminal window.&lt;br /&gt;
&lt;br /&gt;
Open the .bashrc file by typing in terminal by  : 'gedit ~/.bashrc'&lt;br /&gt;
This opens up the bash file, scroll down to the bottom of the file.&lt;br /&gt;
&lt;br /&gt;
Under installation you can see User configuration.&lt;br /&gt;
&lt;br /&gt;
Now go to the second line and copy it.,and paste it at the bottom of the bash file :&lt;br /&gt;
'source/opt/openfoam201/etc/bashrc'&lt;br /&gt;
&lt;br /&gt;
Close the bash file.&lt;br /&gt;
&lt;br /&gt;
Now we need to test the installed application.&lt;br /&gt;
&lt;br /&gt;
To do this open up a new command terminal terminal again.&lt;br /&gt;
&lt;br /&gt;
In the command terminal type 'icoFoam -help'.&lt;br /&gt;
&lt;br /&gt;
A usage message will appear.&lt;br /&gt;
&lt;br /&gt;
You are now ready to start with OpenFoam&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|Demonstration:Set up working Directory&lt;br /&gt;
|Now let me show you how to set up a working directory.&lt;br /&gt;
&lt;br /&gt;
Create a project or a user directory by the name run.&lt;br /&gt;
&lt;br /&gt;
Open a new command terminal.&lt;br /&gt;
&lt;br /&gt;
In the Command Terminal type : 'mkdir -p $FOAM_RUN' (Press Enter)&lt;br /&gt;
&lt;br /&gt;
(Please note FOAM and RUN are in capital)&lt;br /&gt;
&lt;br /&gt;
Copy the tutorial directory from openfoam distribution to run directory: &lt;br /&gt;
'cp -r $FOAM_TUTORIALS $FOAM_RUN ' (Press Enter)&lt;br /&gt;
&lt;br /&gt;
(Please note TUTORIAL,FOAM and RUN are capital)&lt;br /&gt;
&lt;br /&gt;
Both the directories are now created.&lt;br /&gt;
&lt;br /&gt;
For viewing both the directories go to Places &amp;gt; Home Folder &amp;gt; OpenFOAM.&lt;br /&gt;
&lt;br /&gt;
Now let me shift to the slides.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|Demonstration:&lt;br /&gt;
|If some errors occurs during downloading OpenFOAM and Paraview&lt;br /&gt;
form the Ubuntu Deb pack from website or Synaptic Package Manager&lt;br /&gt;
then you can download and install Openfoam and paraview from the&lt;br /&gt;
source pack installation:&lt;br /&gt;
Go to the Download page &amp;gt; Source Pack Installation&lt;br /&gt;
&lt;br /&gt;
Go to Packs and download the 2 tar files and save them.&lt;br /&gt;
&lt;br /&gt;
Create a folder in your Home Directory by any name of your choice&lt;br /&gt;
&lt;br /&gt;
Copy the downloaded files in this folder you just created.&lt;br /&gt;
&lt;br /&gt;
Untar or unzip the files in the same folder.&lt;br /&gt;
&lt;br /&gt;
In the command terminal go to the same folder in which you have untared&lt;br /&gt;
the tar files.&lt;br /&gt;
&lt;br /&gt;
For installation we need to compile OpenFOAM and Paraview.&lt;br /&gt;
&lt;br /&gt;
Follow the steps given below for Linux distribution for OpenFOAM and&lt;br /&gt;
Paraview.&lt;br /&gt;
&lt;br /&gt;
Installation may take about 4 to 5 hours but this works always.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| Slide 9:Diagram&lt;br /&gt;
|&lt;br /&gt;
Let us see how to Solve a problem in OpenFOAM with an example&lt;br /&gt;
&lt;br /&gt;
Let me take “Lid Driven Cavity” as an example.&lt;br /&gt;
&lt;br /&gt;
It is a 2D problem where the upper plate moves with a certain velocity a&lt;br /&gt;
&lt;br /&gt;
and other three sides of the plate are fixed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|Slide 10:Solver&lt;br /&gt;
|The type of Solver I am using here is for incompressible flow-icofoam&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|Demonstration:Run OpenFOAM &lt;br /&gt;
|Open a new terminal window.&lt;br /&gt;
&lt;br /&gt;
Type 'run' in the command terminal.&lt;br /&gt;
&lt;br /&gt;
This will direct you to the run directory. (Press Enter)&lt;br /&gt;
&lt;br /&gt;
Type the path for Lid driven cavity problem:&lt;br /&gt;
&lt;br /&gt;
Now type cd tutorial    (Press Enter)&lt;br /&gt;
                 cd incompressible (Press Enter) &lt;br /&gt;
                 cd icoFoam   (Press Enter)&lt;br /&gt;
                 cd cavity   (Press Enter)&lt;br /&gt;
&lt;br /&gt;
You can see three files : 0,constant and system.&lt;br /&gt;
&lt;br /&gt;
Mesh the geometry using blockMesh utility&lt;br /&gt;
In the command terminal type blockMesh (Note here that M is capital)&lt;br /&gt;
(Press Enter)&lt;br /&gt;
&lt;br /&gt;
Now run the solver 'icoFoam' by typing in the terminal icoFoam&lt;br /&gt;
(Note here that F is capital) and Press Enter.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|Demonstration: Run Paraview&lt;br /&gt;
|&lt;br /&gt;
The iterations which are running can be seen in the terminal window.&lt;br /&gt;
&lt;br /&gt;
Here we notice we have completed the solving point.&lt;br /&gt;
&lt;br /&gt;
To visualize these results let us open the paraview window.&lt;br /&gt;
&lt;br /&gt;
To open paraView,  type “paraFoam” in the terminal.&lt;br /&gt;
(Note that 'F' is capital here) and press Enter&lt;br /&gt;
&lt;br /&gt;
Let me shift this into the capture area.&lt;br /&gt;
&lt;br /&gt;
On the left hand side, &lt;br /&gt;
&lt;br /&gt;
In the object inspector menu, &lt;br /&gt;
&lt;br /&gt;
Click on  Apply to view the geometry.&lt;br /&gt;
&lt;br /&gt;
To view the moving and the fixed walls, scroll down the object inspector menu and go to Mesh Parts:&lt;br /&gt;
&lt;br /&gt;
Uncheck Internel Mesh box. The geometry will disappear.&lt;br /&gt;
&lt;br /&gt;
Check the moving and fixed wall boxes.&lt;br /&gt;
You can see the boundary conditions.&lt;br /&gt;
&lt;br /&gt;
Now uncheck the Moving wall checkbox.You can now see the fixedwalls and the moving wall which just now disappeared.&lt;br /&gt;
&lt;br /&gt;
Thus we are done with running openfoam and paraview.&lt;br /&gt;
In future we will come across more tutorials on solvers and post- processing the results of OpenFOAM.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| Slide 11:Summary&lt;br /&gt;
|In this tutorial we learnt how to install&lt;br /&gt;
OpenFOAM and Paraview through Synaptic Package Manager and the website&lt;br /&gt;
solved a lid driven cavity.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| Slide 12:Assignment&lt;br /&gt;
|As as Assignment, &lt;br /&gt;
please  install OpenFOAM and Paraview&lt;br /&gt;
This brings us to the end of the tutorial&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| Slide 13 &amp;amp; 14:About Spoken Tutorial&lt;br /&gt;
|&lt;br /&gt;
The video available at this URL:&lt;br /&gt;
http://spoken-tutorial.org/What_is_a_Spoken_Tutorial &lt;br /&gt;
 It summarizes the Spoken Tutorial project. &lt;br /&gt;
If you do not have good bandwidth, you can download and watch it. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| Slide 15:Acknowledgement&lt;br /&gt;
|Spoken Tutorials are part of Talk to a Teacher project, &lt;br /&gt;
It is supported by the National Mission on Education through ICT, MHRD, Government of India. &lt;br /&gt;
&lt;br /&gt;
This project is coordinated by http://spoken-tutorial.org &lt;br /&gt;
&lt;br /&gt;
More information on the same is available at the following URL link http://spoken-tutorial.org/NMEICT-Intro&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|Slide 16:About the contributor&lt;br /&gt;
|This is Rahul Joshi from IIT BOMBAY signing off.&lt;br /&gt;
Thanks for joining.&lt;/div&gt;</summary>
		<author><name>Chandrika</name></author>	</entry>

	</feed>