<?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%2FUsing-PyFoam-Utilities%2FEnglish-timed</id>
		<title>OpenFOAM/C3/Using-PyFoam-Utilities/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%2FUsing-PyFoam-Utilities%2FEnglish-timed"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=OpenFOAM/C3/Using-PyFoam-Utilities/English-timed&amp;action=history"/>
		<updated>2026-04-28T00:45:49Z</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/Using-PyFoam-Utilities/English-timed&amp;diff=41666&amp;oldid=prev</id>
		<title>Jyotisolanki at 18:31, 7 January 2018</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=OpenFOAM/C3/Using-PyFoam-Utilities/English-timed&amp;diff=41666&amp;oldid=prev"/>
				<updated>2018-01-07T18:31:43Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 18:31, 7 January 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 148:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 148:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| 03:37&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| 03:37&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| Go to the bottom of the file and '''&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Remove &lt;/del&gt;U.Component(0).'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| Go to the bottom of the file and &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Remove &lt;/ins&gt;'''U.Component(0).'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jyotisolanki</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=OpenFOAM/C3/Using-PyFoam-Utilities/English-timed&amp;diff=38616&amp;oldid=prev</id>
		<title>Pratik kamble: Created page with &quot;{| border=1 | '''Time''' | '''Narration'''  |- | 00:01 | Hello and Welcome to the spoken tutorial on Using '''PyFoam Utilities'''  |- | 00:07 | In this tutorial we will learn...&quot;</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=OpenFOAM/C3/Using-PyFoam-Utilities/English-timed&amp;diff=38616&amp;oldid=prev"/>
				<updated>2017-09-06T10:00:41Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{| border=1 | &amp;#039;&amp;#039;&amp;#039;Time&amp;#039;&amp;#039;&amp;#039; | &amp;#039;&amp;#039;&amp;#039;Narration&amp;#039;&amp;#039;&amp;#039;  |- | 00:01 | Hello and Welcome to the spoken tutorial on Using &amp;#039;&amp;#039;&amp;#039;PyFoam Utilities&amp;#039;&amp;#039;&amp;#039;  |- | 00:07 | In this tutorial we will learn...&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;
| '''Time'''&lt;br /&gt;
| '''Narration'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:01&lt;br /&gt;
| Hello and Welcome to the spoken tutorial on Using '''PyFoam Utilities'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:07&lt;br /&gt;
| In this tutorial we will learn :  About '''PyFoam Utilities'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:12&lt;br /&gt;
| How to use '''PyFoam Utilites'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:15&lt;br /&gt;
| How to run and plot data for the '''shockTube''' case using '''PyFoam Utilites'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:22&lt;br /&gt;
| To record this tutorial I am using:  '''Ubuntu Linux Operating System '''14.04&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:30&lt;br /&gt;
| '''OpenFOAM version 2.3.0'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:34&lt;br /&gt;
| '''PyFoam 0.6.5'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:37&lt;br /&gt;
| As a prerequisite user should have : basic knowledge of running commands on the '''Linux terminal'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:45&lt;br /&gt;
| And some experience of running and analyzing '''OpenFOAM''' cases&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|00:51&lt;br /&gt;
| Let me introduce you to '''PyFoam utilities.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:55&lt;br /&gt;
| '''Utilities '''are''' Python programs '''which come inbuilt with '''PyFoam.''' &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:01&lt;br /&gt;
| Each '''utility''' has a specific function.&lt;br /&gt;
|-&lt;br /&gt;
| 01:05&lt;br /&gt;
| '''Utilities''' are executed from the '''command line.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:10&lt;br /&gt;
| List of '''utilites''' that can be viewed using '''tab completion'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:16&lt;br /&gt;
| Open the '''terminal'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:18&lt;br /&gt;
|The list of '''utilities''' can be viewed by  typing '''pyFoam ''' and then pressing '''Tab '''key twice&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:29&lt;br /&gt;
| Let me switch back to the slides.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:32&lt;br /&gt;
|Each '''utility''' can be executed with the ''' minus help''' option.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:38&lt;br /&gt;
|This helps us to find out what it does and what its options are.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:44&lt;br /&gt;
| We are going to use the below '''PyFoam Utilities''' to run the '''Shock Tube''' case. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:51&lt;br /&gt;
|We will use – '''PyFoamRunner dot py''',  '''PyFoamSamplePlot dot py'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:58&lt;br /&gt;
|And then plot the necessary data using '''PyFoam'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|02:02&lt;br /&gt;
| '''PyFoamRunner dot py''' can be used to run '''cases'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:07&lt;br /&gt;
|It also generates '''log files '''for later use.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:12&lt;br /&gt;
| This '''utility''' is used to plot the various data obtained from the previously set up '''sampleDict.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:21&lt;br /&gt;
| '''Shock Tube '''is an '''instrument'''  used to replicate and direct blast waves at a sensor &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:29&lt;br /&gt;
| To model actual explosion and their effects&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:34&lt;br /&gt;
|In this case, the rectangular tube has low pressure on the right side and high pressure on the left side.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:42&lt;br /&gt;
|Both the pressures zones are separated by a thin diaphragm.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|02:47&lt;br /&gt;
| Open the '''Terminal''' ,  type the path for '''rhoCentralFoam''' inside '''compressible solver.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:56&lt;br /&gt;
| Type '''ls'''. You can see the '''shockTube''' case.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:02&lt;br /&gt;
| Type '''cd space shockTube'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|03:05&lt;br /&gt;
| You can see three folders '''0 dot org , constant '''and''' system.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:11&lt;br /&gt;
| We need to copy the '''0 '''file from''' 0 dot org.''' So type '''cp space  minus r space 0 dot org space 0''' and press Enter&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:26&lt;br /&gt;
| Now, go to the '''system''' folder by typing '''cd space system'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:32&lt;br /&gt;
| Open the '''sampleDict''' file using '''gedit'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:37&lt;br /&gt;
| Go to the bottom of the file and '''Remove U.Component(0).'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:45&lt;br /&gt;
|Replace it with '''Ux Uy '''and '''Uz.''' Remove '''rho''' as well.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|03:53&lt;br /&gt;
| Save and exit the file.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:56&lt;br /&gt;
| Go one level back by typing '''cd dot dot '''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:01&lt;br /&gt;
| Run the command '''blockMesh''' to '''mesh''' the '''geometry.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|04:06&lt;br /&gt;
| After this type '''setFields''' to set the pressure boundary condition.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:13&lt;br /&gt;
| Now we will use the '''pyFoam utility of pyFoamRunner.py'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:19&lt;br /&gt;
|Type '''pyFoamRunner dot py space '''followed by name of the '''solver i.e. RhoCentralFoam'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:28&lt;br /&gt;
|This runs the '''case''' and creates a '''postProcessing log.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:33&lt;br /&gt;
| Type '''ls.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:35&lt;br /&gt;
|We can see the log files which are generated.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:39&lt;br /&gt;
| Now '''type sample''' to run the '''sample utility.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:44&lt;br /&gt;
| After this we can plot for various '''time steps''' using '''pyFoamSamplePlot dot py space  dot slash space minus minus directory  ie. Dir equal to postProcessing/sets  space  hyphen info'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:10&lt;br /&gt;
|This will show which fields we have with us.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:14&lt;br /&gt;
| Then type ''' pyFoamSamplePlot.py space  dot slash space minus minus dir equal to postProcessing/sets space minus minus  field equal to capital T space minus minus mode equal to timesInOne space vertical pipe space gnuplot'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:44&lt;br /&gt;
| The output generated will be a '''png file.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:48&lt;br /&gt;
| Type '''ls'''. We can see the '''png''' file which is generated. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:54&lt;br /&gt;
| In this tutorial, we learnt about '''PyFoam Utilities.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:58&lt;br /&gt;
|We also learnt to-  Check for various '''pyFoam utilities'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:03&lt;br /&gt;
| '''pyFoamRunner.py''' to run the '''solver''' &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:07&lt;br /&gt;
| '''pyFoamSamplePlot''' utility to generate a '''png''' file &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|06:13&lt;br /&gt;
| Please post your timed queries in this forum.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:17&lt;br /&gt;
| Please post your general queries on '''OpenFOAM''' in this forum.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:22&lt;br /&gt;
| The '''FOSSEE '''team coordinates the TBC project.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:26&lt;br /&gt;
| The Spoken Tutorial Project is funded by NMEICT, MHRD, Govt. of India &lt;br /&gt;
&lt;br /&gt;
For more details , visit this website.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:36&lt;br /&gt;
| 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>