<?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%2FC3%2FInstalling-and-Running-PyFoam%2FEnglish-timed</id>
		<title>OpenFOAM/C3/Installing-and-Running-PyFoam/English-timed - 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%2FC3%2FInstalling-and-Running-PyFoam%2FEnglish-timed"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=OpenFOAM/C3/Installing-and-Running-PyFoam/English-timed&amp;action=history"/>
		<updated>2026-04-12T05:59:30Z</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/C3/Installing-and-Running-PyFoam/English-timed&amp;diff=38554&amp;oldid=prev</id>
		<title>Pratik kamble: Created page with &quot;{| border=1 | &lt;center&gt;'''Time'''&lt;/center&gt; | &lt;center&gt;'''Narration'''&lt;/center&gt;  |- | 00:01 | Hello and welcome to the spoken tutorial on installing and running '''PyFoam'''  |-...&quot;</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=OpenFOAM/C3/Installing-and-Running-PyFoam/English-timed&amp;diff=38554&amp;oldid=prev"/>
				<updated>2017-09-04T06:13:26Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{| border=1 | &amp;lt;center&amp;gt;&amp;#039;&amp;#039;&amp;#039;Time&amp;#039;&amp;#039;&amp;#039;&amp;lt;/center&amp;gt; | &amp;lt;center&amp;gt;&amp;#039;&amp;#039;&amp;#039;Narration&amp;#039;&amp;#039;&amp;#039;&amp;lt;/center&amp;gt;  |- | 00:01 | Hello and welcome to the spoken tutorial on installing and running &amp;#039;&amp;#039;&amp;#039;PyFoam&amp;#039;&amp;#039;&amp;#039;  |-...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{| border=1&lt;br /&gt;
| &amp;lt;center&amp;gt;'''Time'''&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;'''Narration'''&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:01&lt;br /&gt;
| Hello and welcome to the spoken tutorial on installing and running '''PyFoam'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:07&lt;br /&gt;
| In this tutorial, we will learn how to Install and check '''PyFoam''' and the required steps for the same.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:17&lt;br /&gt;
| What is '''PyFoam'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:19&lt;br /&gt;
| Checking installation of '''OpenFOAM'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:22&lt;br /&gt;
| Installing '''Python, Numpy and Gnuplot '''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:27&lt;br /&gt;
| Install '''PyFoam''' using '''pip''' &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:30&lt;br /&gt;
| Install '''PyFoam''' using sources &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:33&lt;br /&gt;
| And  Check if '''PyFoam''' is working&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:38&lt;br /&gt;
| To record this tutorial I am using &lt;br /&gt;
'''Ubuntu Linux''' Operating system '''14.04'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:45&lt;br /&gt;
|  '''OpenFOAM''' version 2.3.0 &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:48&lt;br /&gt;
| Note that '''PyFoam''' will also work with '''OpenFoam v1.6 and above '''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:55&lt;br /&gt;
| To practice this tutorial, the user should have  Basic knowledge of '''Linux terminal commands'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:02&lt;br /&gt;
| Experience with running and analyzing '''OpenFOAM''' cases&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:07&lt;br /&gt;
|  If not, please go through the '''Linux''' tutorial series on this website&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:13&lt;br /&gt;
| What is '''PyFoam? '''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:15&lt;br /&gt;
| '''PyFoam''' is a collection of Python libraries and utilities &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:20&lt;br /&gt;
| It can be used to manipulate '''OpenFOAM simulations'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:25&lt;br /&gt;
| It is Designed to make working with '''OpenFOAM''' easier&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:29&lt;br /&gt;
| '''PyFoam''' can be also be used for  '''iteratively''' running '''simulations'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:34&lt;br /&gt;
|  automate data collection&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:37&lt;br /&gt;
|  parametrically modify case files and many other such useful activities.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:44&lt;br /&gt;
| Note that '''PyFoam '''works over '''OpenFOAM'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:48&lt;br /&gt;
| So, we need to always have an installation of '''OpenFOAM''' in our computer. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:54&lt;br /&gt;
| First we check if our installation of '''OpenFOAM''' has been done properly.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:00&lt;br /&gt;
| Open the '''terminal''', and type '''icoFoam space hyphen help'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:07&lt;br /&gt;
| You should get the details of''' icoFoam''' and '''OpenFOAM''' version and help text &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|02:15&lt;br /&gt;
| Now we will install the necessary prerequisites for '''PyFoam''', such as '''Python, Pip, Numpy''' and '''Gnuplot'''  using the '''terminal'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:29&lt;br /&gt;
| First we will type - '''sudo apt-get install python hyphen dev '''and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:39&lt;br /&gt;
| After this, type '''sudo apt-get install python-pip '''and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:49&lt;br /&gt;
| Then, type '''pip install Numpy'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:53&lt;br /&gt;
| Then, type '''sudo apt-get install gnuplot space gnuplot hyphen x11 '''and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:04&lt;br /&gt;
| With this we are done with installing the pre-requisites.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|03:09&lt;br /&gt;
| Now we will install  '''PyFoam''' using '''pip'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:13&lt;br /&gt;
| Open the '''terminal''' and type: '''pip install PyFoam '''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|03:20&lt;br /&gt;
| We can also install '''PyFoam''' from '''source'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:24&lt;br /&gt;
| To do so, open the browser and in the URL window, type '''http://www.pypi.com'''&lt;br /&gt;
Search for '''PyFoam '''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:38&lt;br /&gt;
| Download '''PyFoam-0.6.5.tar.gz''' &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:46&lt;br /&gt;
| In the '''terminal''', go to '''Downloads folder'''.   Type '''tar -xvf space PyFoam hyphen 0.6.5.tar.gz '''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:00&lt;br /&gt;
| Then Type '''cd''' followed by the name of the folder '''PyFoam hyphen 0.6.5'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:07&lt;br /&gt;
| After this, type '''sudo python setup dot py' space install''' &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:16&lt;br /&gt;
| Now we have to check if '''PyFoam''' is detecting  '''OpenFoam''' and working properly. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:22&lt;br /&gt;
| Switch to '''terminal''' again.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:25&lt;br /&gt;
| Type '''python''' .  Type '''import PyFoam''' &lt;br /&gt;
&lt;br /&gt;
'''import PyFoam dot FoamInformation '''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:35&lt;br /&gt;
| Then type '''print PyFoam dot FoamInformation dot foamTutorials''' followed by open-close brackets.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:45&lt;br /&gt;
| This should print the directory of the '''OpenFOAM Tutorials'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:50&lt;br /&gt;
| Now let us summarise. In this tutorial, we learnt about '''PyFoam'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:55&lt;br /&gt;
| We also learnt to check the installation of '''OpenFoam'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:00&lt;br /&gt;
|  Install '''PyFoam''' using '''pip'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:03&lt;br /&gt;
|  install '''PyFoam''' using '''sources''' and check if '''PyFoam''' is working&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:09&lt;br /&gt;
| Please post your timed queries in this forum.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:13&lt;br /&gt;
| Please post your general queries on OpenFOAM in this forum.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|05:18&lt;br /&gt;
| The '''FOSSEE '''team coordinates the TBC project.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:22&lt;br /&gt;
| The Spoken Tutorial project is funded by NMEICT, MHRD, Govt. of India. For more details , visit this website.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:33&lt;br /&gt;
| The script is prepared by Anmol Sahoo and this is Rahul Joshi from IIT Bombay signing off. Thanks for watching&lt;br /&gt;
&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Pratik kamble</name></author>	</entry>

	</feed>