<?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-version-7%2FC3%2F2D-Dam-Break-Simulation-using-OpenFOAM%2FEnglish</id>
		<title>OpenFOAM-version-7/C3/2D-Dam-Break-Simulation-using-OpenFOAM/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-version-7%2FC3%2F2D-Dam-Break-Simulation-using-OpenFOAM%2FEnglish"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=OpenFOAM-version-7/C3/2D-Dam-Break-Simulation-using-OpenFOAM/English&amp;action=history"/>
		<updated>2026-05-02T12:45:17Z</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-version-7/C3/2D-Dam-Break-Simulation-using-OpenFOAM/English&amp;diff=56770&amp;oldid=prev</id>
		<title>Evan: Created page with &quot;'''Title of the script''': 2D Dam Break Simulation using OpenFOAM  '''Author''': Ashley Melvin  '''Keywords''': OpenFOAM, ParaView, CFD, computational fluid dynamics, blockMes...&quot;</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=OpenFOAM-version-7/C3/2D-Dam-Break-Simulation-using-OpenFOAM/English&amp;diff=56770&amp;oldid=prev"/>
				<updated>2025-01-02T06:35:48Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;Title of the script&amp;#039;&amp;#039;&amp;#039;: 2D Dam Break Simulation using OpenFOAM  &amp;#039;&amp;#039;&amp;#039;Author&amp;#039;&amp;#039;&amp;#039;: Ashley Melvin  &amp;#039;&amp;#039;&amp;#039;Keywords&amp;#039;&amp;#039;&amp;#039;: OpenFOAM, ParaView, CFD, computational fluid dynamics, blockMes...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''Title of the script''': 2D Dam Break Simulation using OpenFOAM&lt;br /&gt;
&lt;br /&gt;
'''Author''': Ashley Melvin&lt;br /&gt;
&lt;br /&gt;
'''Keywords''': OpenFOAM, ParaView, CFD, computational fluid dynamics, blockMesh, VOF, volume of fluid, multiphase flow, dam break, scotch decomposition, setFields, FOSSEE, spoken tutorial, video tutorial.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| border=1&lt;br /&gt;
|- &lt;br /&gt;
| align=center| '''Visual Cue'''&lt;br /&gt;
| align=center| '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide'''&lt;br /&gt;
&lt;br /&gt;
'''Opening Slide'''&lt;br /&gt;
|| Welcome to this tutorial on '''2D Dam Break Simulation'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Learning Objectives'''&lt;br /&gt;
|| In this tutorial, we will learn how to,&lt;br /&gt;
&lt;br /&gt;
* Set up''' '''a case of '''multiphase''' '''flow'''&lt;br /&gt;
* '''Decompose''' the domain using '''scotch decomposition''' method&lt;br /&gt;
* Specify a '''non-uniform initial condition''', and&lt;br /&gt;
* View the results of a '''multiphase''' '''simulation''' in '''ParaView'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide'''&lt;br /&gt;
&lt;br /&gt;
'''System Specifications'''&lt;br /&gt;
|| To record this tutorial, I am using,&lt;br /&gt;
&lt;br /&gt;
Ubuntu Linux OS version 22.04* '''OpenFOAM''' version 9&lt;br /&gt;
* '''ParaView''' version 5.10.1, and&lt;br /&gt;
* '''gedit Text Editor'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide'''&lt;br /&gt;
&lt;br /&gt;
'''Prerequisites'''* If not, please go through the prerequisite '''OpenFOAM '''tutorial on https://spoken-tutorial.org&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|| As a prerequisite,&lt;br /&gt;
* You should have basic knowledge of '''multiphase flows'''.&lt;br /&gt;
* You should also be familiar with '''parallel computing''' in '''OpenFOAM'''.&lt;br /&gt;
* If not, please go through the prerequisite '''OpenFOAM '''tutorials on this website.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide'''&lt;br /&gt;
&lt;br /&gt;
'''Code Files'''&lt;br /&gt;
||&lt;br /&gt;
* The files used in this tutorial are available in the '''Code''' '''Files''' link on this tutorial page &lt;br /&gt;
* Please download and extract them&lt;br /&gt;
* Make a copy and then use them while practicing&lt;br /&gt;
* Copy the '''damBreak '''folder into the '''run directory''' to follow along &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide'''&lt;br /&gt;
&lt;br /&gt;
'''Breaking of a Dam'''&lt;br /&gt;
||&lt;br /&gt;
* We will be solving the '''dam break''' problem shown in the figure.&lt;br /&gt;
* Initially, there is a '''water column''' in the domain, and &lt;br /&gt;
* It is surrounded by '''air'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| Only Narration&lt;br /&gt;
|| Let’s see what happens when a '''dam''', that holds the '''water column''', suddenly breaks.&lt;br /&gt;
|- &lt;br /&gt;
|| '''CTRL + ALT + T''' keys&lt;br /&gt;
|| Open the '''terminal''' by pressing '''Ctrl''', '''Alt''' and '''T''' keys together. &lt;br /&gt;
|- &lt;br /&gt;
|| [Terminal] Type:&lt;br /&gt;
&lt;br /&gt;
'''cd $FOAM_RUN'''&lt;br /&gt;
|| Type this '''command''' and press '''Enter''' to move into the '''run directory'''.&lt;br /&gt;
|-&lt;br /&gt;
|| [Terminal] Type:&lt;br /&gt;
&lt;br /&gt;
'''cd damBreak'''&lt;br /&gt;
|| Let’s move into the '''damBreak''' folder using the following '''command'''.&lt;br /&gt;
|- &lt;br /&gt;
|| [Terminal] Type:&lt;br /&gt;
&lt;br /&gt;
'''gedit system/blockMeshDict'''&lt;br /&gt;
|| Let’s open the '''blockMeshDict''' file in a '''text editor'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide'''&lt;br /&gt;
&lt;br /&gt;
'''Dam Break Geometry'''&lt;br /&gt;
|| The geometry is divided into '''5 blocks''' as shown in the diagram.&lt;br /&gt;
|- &lt;br /&gt;
|| [gedit - '''blockMeshDict'''] Highlight:&lt;br /&gt;
&lt;br /&gt;
Blocks List [https://imgur.com/4clg8w3.png Link]&lt;br /&gt;
|| The '''5 blocks''' are defined as shown.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide'''&lt;br /&gt;
&lt;br /&gt;
'''Boundaries'''&lt;br /&gt;
|| The '''boundaries''' of the geometry are:&lt;br /&gt;
* '''leftWall'''&lt;br /&gt;
* '''rightWall'''&lt;br /&gt;
* '''lowerWall''', and&lt;br /&gt;
* '''atmosphere'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It is named so, as it is exposed to the '''atmosphere'''.&lt;br /&gt;
|- &lt;br /&gt;
|| [gedit - '''blockMeshDict'''] Highlight:&lt;br /&gt;
&lt;br /&gt;
Boundary List [https://imgur.com/OjuyDUc.png Link]&lt;br /&gt;
|| The '''4 faces''' are defined in the '''boundary list''' as shown.&lt;br /&gt;
|- &lt;br /&gt;
|| [gedit - '''blockMeshDict'''] &lt;br /&gt;
&lt;br /&gt;
Close the window&lt;br /&gt;
|| Close the '''blockMeshDict''' file.&lt;br /&gt;
|- &lt;br /&gt;
|| Only Narration&lt;br /&gt;
|| Now, let’s view the '''initial''' and '''boundary''' '''conditions''' files.&lt;br /&gt;
|- &lt;br /&gt;
|| [Terminal] Type:&lt;br /&gt;
&lt;br /&gt;
'''gedit 0/p_rgh'''&lt;br /&gt;
|| Let’s view the '''initial''' and '''boundary '''values of '''p_rgh'''&lt;br /&gt;
|- &lt;br /&gt;
|| Only Narration&lt;br /&gt;
|| '''p_rgh''' is the '''pressure''' without the '''hydrostatic''' contribution.&lt;br /&gt;
|- &lt;br /&gt;
|| [gedit - '''p_rgh'''] Highlight:&lt;br /&gt;
&lt;br /&gt;
'''fixedFluxPressure '''[https://imgur.com/WmtpcPZ.png Link]&lt;br /&gt;
|| All three '''walls''' are imposed with '''fixedFluxPressure''' boundary conditions.&lt;br /&gt;
|- &lt;br /&gt;
|| [gedit - '''p_rgh'''] Highlight:&lt;br /&gt;
&lt;br /&gt;
'''value uniform 0''' [https://imgur.com/QoMav70.png Link]&lt;br /&gt;
|| For the '''type fixedFluxPressure''', '''value''' is just a '''placeholder''' for the first '''time-step'''.&lt;br /&gt;
|- &lt;br /&gt;
|| [gedit - '''p_rgh'''] Highlight:&lt;br /&gt;
&lt;br /&gt;
'''atmosphere''' boundary condition [https://imgur.com/JK3soLy.png Link]&lt;br /&gt;
|| The '''top boundary''' is exposed to the '''atmosphere'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Therefore, a '''totalPressure''' of '''0 Pa''' is imposed.&lt;br /&gt;
|- &lt;br /&gt;
|| Only Narration&lt;br /&gt;
|| The additional reading material has more details on '''p_rgh''' and its '''boundary conditions'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please refer to it.&lt;br /&gt;
|- &lt;br /&gt;
|| [gedit - '''p_rgh'''] &lt;br /&gt;
&lt;br /&gt;
Close the window&lt;br /&gt;
|| Close the '''p_rgh''' file.&lt;br /&gt;
|- &lt;br /&gt;
|| [Terminal] Type:&lt;br /&gt;
&lt;br /&gt;
'''gedit 0/alpha.water.orig'''&lt;br /&gt;
|| Let’s view the '''initial''' and '''boundary '''values of '''phase fraction '''of''' water'''.&lt;br /&gt;
|- &lt;br /&gt;
|| [gedit - '''alpha.water.orig'''] Highlight:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''internalField uniform 0''' [https://imgur.com/1aaDdh8.png Link]&lt;br /&gt;
|| The domain is initialized uniformly with a value of 0.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This means the entire domain consists of only air.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We will be initializing the section of the domain with the '''water column''' later.&lt;br /&gt;
|- &lt;br /&gt;
|| [gedit - '''alpha.water.orig'''] Highlight:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''zeroGradient '''[https://imgur.com/v9BoZsx.png Link]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Point to the contact angles and walls.&lt;br /&gt;
|| The '''surface tension''' effects between the walls and the '''fluid-interface''' are ignored.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thus, the '''contact angle''' between the '''walls''' and the '''fluid-interface''' is '''90 degrees'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Therefore, all three '''walls''' are imposed with '''zeroGradient''' boundary condition.&lt;br /&gt;
|- &lt;br /&gt;
|| [gedit - '''alpha.water.orig'''] Highlight:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''type inletOutlet '''[https://imgur.com/HN6b9Ve.png Link]&lt;br /&gt;
|| The '''inletOutlet''' type '''boundary condition''' is imposed on the '''top boundary'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It acts as a '''zeroGradient boundary condition''' for outflow.&lt;br /&gt;
|- &lt;br /&gt;
|| [gedit - '''alpha.water.orig'''] Highlight:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''inletValue uniform 0 '''[https://imgur.com/RGjo8lX.png Link]&lt;br /&gt;
|| For inflow, this type of '''boundary condition''' takes the '''inletValue''' as the '''fixedValue'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We have specified the '''inletValue''' as '''0''', corresponding to''' 100 percent''' '''air'''.&lt;br /&gt;
|- &lt;br /&gt;
|| [gedit - '''alpha.water.orig'''] Highlight:&lt;br /&gt;
&lt;br /&gt;
'''value uniform 0''' [https://imgur.com/G78q4oa.png Link]&lt;br /&gt;
|| For the '''type inletOutlet''', '''value''' is just a '''placeholder''' for the first '''time-step'''.&lt;br /&gt;
|- &lt;br /&gt;
|| [gedit - '''alpha.water.orig'''] &lt;br /&gt;
&lt;br /&gt;
Close the window&lt;br /&gt;
|| Close the '''phase fraction''' file.&lt;br /&gt;
|- &lt;br /&gt;
|| [Terminal] Type:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''gedit 0/U'''&lt;br /&gt;
|| Let’s view the '''initial''' and '''boundary '''values of '''U'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''U '''is the '''Velocity Boundary Conditions''' file.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide'''&lt;br /&gt;
&lt;br /&gt;
'''Velocity Boundary Conditions'''* walls - '''noSlip'''&lt;br /&gt;
* top (atmosphere) - '''pressureInletOutletVelocity'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|| Let’s look at the '''boundary conditions''' of '''velocity'''.* At the walls, '''noSlip''' condition is imposed&lt;br /&gt;
* At the top boundary''',''' '''pressureInletOutletVelocity''' type '''boundary condition '''is imposed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide'''&lt;br /&gt;
&lt;br /&gt;
'''pressureInletOutletVelocity '''&lt;br /&gt;
|| The '''pressureInletOutletVelocity '''&lt;br /&gt;
* Acts as a '''zeroGradient boundary condition''' for outflow.&lt;br /&gt;
* And for inflow, it acts as a '''fixedValue''' '''boundary condition'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| [gedit - '''U''']&lt;br /&gt;
&lt;br /&gt;
Close the window&lt;br /&gt;
|| Close the '''U''' file.&lt;br /&gt;
|- &lt;br /&gt;
|| [Terminal] Type:&lt;br /&gt;
&lt;br /&gt;
'''ls constant'''&lt;br /&gt;
|| Let’s look at the constant files used in the simulation.&lt;br /&gt;
|- &lt;br /&gt;
|| [Terminal] Highlight:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''momentumTransport'''&lt;br /&gt;
|| In this simulation, the flow is considered to be '''laminar'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The same is specified in the '''momentumTransport '''file.&lt;br /&gt;
|- &lt;br /&gt;
|| [Terminal] Type:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''gedit constant/momentumTransport'''&lt;br /&gt;
|| Let's view the contents of the''' momentumTransport''' file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''simulationType''' is specified as '''laminar'''.&lt;br /&gt;
|- &lt;br /&gt;
|| [gedit - '''momentumTransport''']&lt;br /&gt;
&lt;br /&gt;
Close the window&lt;br /&gt;
|| Close the '''momentumTransport''' file.&lt;br /&gt;
|- &lt;br /&gt;
|| [Terminal] Highlight:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''g'''&lt;br /&gt;
|| The simulation requires the '''acceleration due to gravity, '''to be specified.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''g''' file is used to specify the '''acceleration due to gravity'''. This has been discussed in the previous tutorials in this series. &lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Transport Properties'''&lt;br /&gt;
|| These are the '''transport properties''' of '''water''' and '''air''' used in this simulation.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Transport Properties'''&lt;br /&gt;
&lt;br /&gt;
Highlight: Newtonian [https://imgur.com/Pdn13Gv.png Link]&lt;br /&gt;
|| Both '''water''' and '''air '''are considered to be '''Newtonian''' fluids.&lt;br /&gt;
|- &lt;br /&gt;
|| [Terminal] Type:&lt;br /&gt;
&lt;br /&gt;
'''gedit constant/transportProperties'''&lt;br /&gt;
|| Let’s open the '''transportProperties''' file in a '''text editor'''.&lt;br /&gt;
|- &lt;br /&gt;
|| [gedit - '''transportProperties'''] Highlight:&lt;br /&gt;
&lt;br /&gt;
'''phases (water air) '''[https://imgur.com/kpH02Yo.png Link]&lt;br /&gt;
|| The two '''phases''' in this simulation are '''water''' and '''air'''.&lt;br /&gt;
|- &lt;br /&gt;
|| [gedit - '''transportProperties'''] Highlight:&lt;br /&gt;
&lt;br /&gt;
Properties of water and air [https://imgur.com/nKWp8rv.png Link]&lt;br /&gt;
|| The properties of '''water''' and '''air''' are specified as shown.&lt;br /&gt;
|- &lt;br /&gt;
|| [gedit - '''transportProperties'''] Highlight:&lt;br /&gt;
&lt;br /&gt;
'''sigma 0.07 '''[https://imgur.com/bdnBZhj.png Link]&lt;br /&gt;
|| The '''surface tension''' between '''water''' and '''air''' is taken to be '''0.07 Newton per meter'''.&lt;br /&gt;
|- &lt;br /&gt;
|| [gedit - '''transportProperties'''] &lt;br /&gt;
&lt;br /&gt;
Close the window&lt;br /&gt;
|| Close the '''transportProperties''' file.&lt;br /&gt;
|- &lt;br /&gt;
|| Only Narration&lt;br /&gt;
|| Now let’s look at how the domain is '''decomposed''' for the '''parallel run'''.&lt;br /&gt;
|- &lt;br /&gt;
|| [Terminal] Type:&lt;br /&gt;
&lt;br /&gt;
'''gedit system/decomposeParDict'''&lt;br /&gt;
|| Let’s open the '''decomposePar''' dictionary in a '''text editor'''.&lt;br /&gt;
|- &lt;br /&gt;
|| [gedit - '''decomposeParDict'''] Highlight:&lt;br /&gt;
&lt;br /&gt;
'''numberOfSubdomains 4 '''[https://imgur.com/fbjxny0.png Link]&lt;br /&gt;
|| The domain is '''decomposed''' into '''4 sub-domains'''.&lt;br /&gt;
|- &lt;br /&gt;
|| [gedit - '''decomposeParDict'''] Highlight:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''method scotch '''[https://imgur.com/50ehP2I.png Link]&lt;br /&gt;
|| The domain is '''decomposed''' using the '''scotch decomposition''' method.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Scotch decomposition''' requires no geometric input.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It attempts to minimize the number of '''processor boundaries'''.&lt;br /&gt;
|- &lt;br /&gt;
|| [gedit - '''decomposeParDict'''] &lt;br /&gt;
&lt;br /&gt;
Close the window&lt;br /&gt;
|| Close the '''decomposeParDict''' file.&lt;br /&gt;
|- &lt;br /&gt;
|| Only Narration&lt;br /&gt;
|| Now, let’s see how to '''initialize''' the section of the domain with a '''water column'''.&lt;br /&gt;
|- &lt;br /&gt;
|| [Terminal] Type:&lt;br /&gt;
&lt;br /&gt;
'''gedit system/setFieldsDict'''&lt;br /&gt;
|| Such '''non-uniform''' initial conditions are specified using the '''setFields''' dictionary.&lt;br /&gt;
|- &lt;br /&gt;
|| [gedit - '''setFieldsDict'''] Highlight:&lt;br /&gt;
&lt;br /&gt;
'''defaultFieldValues '''[https://imgur.com/Ii1maj0.png Link]&lt;br /&gt;
|| The default value of '''fields''' for the domain is specified using the '''defaultFieldValues''' list.&lt;br /&gt;
|- &lt;br /&gt;
|| [gedit - '''setFieldsDict'''] Highlight: [https://imgur.com/PlQWgJD.png Link]&lt;br /&gt;
&lt;br /&gt;
'''volScalarFieldValue alpha.water 0'''&lt;br /&gt;
|| The default value of '''phase fraction''' of '''water''' is specified as '''0'''.&lt;br /&gt;
|- &lt;br /&gt;
|| [gedit - '''setFieldsDict'''] Highlight:&lt;br /&gt;
&lt;br /&gt;
'''regions '''[https://imgur.com/caYouzm.png Link]&lt;br /&gt;
|| Next, we set the '''regions''' where the '''field''' values are different from the default values.&lt;br /&gt;
|- &lt;br /&gt;
|| [gedit - '''setFieldsDict'''] Highlight:&lt;br /&gt;
&lt;br /&gt;
'''boxToCell '''[https://imgur.com/fuxtALG.png Link]&lt;br /&gt;
|| We specify the '''cells''' within a '''bounding box''' using''' boxToCell'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This '''bounding box''' contains the '''cells''' that hold the '''water column'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide'''&lt;br /&gt;
&lt;br /&gt;
'''boxToCell'''* box (minx miny minz) (maxx maxy maxz)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
||&lt;br /&gt;
* '''boxToCell''' creates a '''bounding box''' within a '''vector minimum''' and '''maximum''' to define the '''cells'''&lt;br /&gt;
* This is the syntax of '''boxToCell'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Water Column'''&lt;br /&gt;
|| The section occupied by the '''water column''' is shown in the figure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We have considered the '''thickness''' of the geometry to be '''0.1 meter'''. &lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide'''&lt;br /&gt;
&lt;br /&gt;
'''boxToCell'''&lt;br /&gt;
|| For the '''water column''', &lt;br /&gt;
* The '''vector minimum''' is the '''origin''', and&lt;br /&gt;
* The '''vector maximum''' is '''(0.5,1,0.1)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| [gedit - '''setFieldsDict'''] Highlight:&lt;br /&gt;
&lt;br /&gt;
'''box (0 0 0) (0.5 1 0.1) '''[https://imgur.com/nHT9nNA.png Link]&lt;br /&gt;
|| We specify the '''bounding box''' as shown.&lt;br /&gt;
|- &lt;br /&gt;
|| [gedit - '''setFieldsDict'''] Highlight:&lt;br /&gt;
&lt;br /&gt;
fieldValues List [https://imgur.com/32cJriX.png Link]&lt;br /&gt;
|| The '''fieldValues''' to be specified within the '''box''' is defined as shown.&lt;br /&gt;
|- &lt;br /&gt;
|| [gedit - '''setFieldsDict'''] Highlight:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''alpha.water 1 '''[https://imgur.com/xJjpWjo.png Link]&lt;br /&gt;
|| The '''phase fraction''' of '''water''' is specified to be '''1''' within the '''box'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This means that the '''box''' is completely filled with '''water'''.&lt;br /&gt;
|- &lt;br /&gt;
|| [gedit - '''setFieldsDict'''] &lt;br /&gt;
&lt;br /&gt;
Close the window&lt;br /&gt;
|| Close the '''setFieldsDict''' file.&lt;br /&gt;
|- &lt;br /&gt;
|| [Terminal] Type:&lt;br /&gt;
&lt;br /&gt;
'''blockMesh'''&lt;br /&gt;
|| Let’s '''mesh''' the geometry using the '''blockMesh command'''.&lt;br /&gt;
|- &lt;br /&gt;
|| [Terminal] Type:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''setFields'''&lt;br /&gt;
|| Then, let’s set the fields in the domain using the '''setFields command'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that the '''setFields''' '''command''' should be executed only after meshing.&lt;br /&gt;
|- &lt;br /&gt;
|| Only Narration&lt;br /&gt;
|| The additional reading material has more details on the '''setFields '''utility.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please refer to it.&lt;br /&gt;
|- &lt;br /&gt;
|| [Terminal] Type:&lt;br /&gt;
&lt;br /&gt;
'''decomposePar'''&lt;br /&gt;
|| Let’s '''decompose''' the domain using the '''decomposePar command'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide'''&lt;br /&gt;
&lt;br /&gt;
'''interFoam'''* Captures the '''interface''' of '''2 immiscible fluids''' using the '''volume of fluid '''('''VOF''') method.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|| We will use the '''interFoam''' solver to simulate this problem.&lt;br /&gt;
* It solves '''incompressible''', '''isothermal''', '''turbulent''', '''multiphase flows'''.&lt;br /&gt;
* It captures the '''interface''' of '''2 immiscible fluids''' using the '''volume of fluid''' method.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| [Terminal] Type:&lt;br /&gt;
&lt;br /&gt;
'''mpirun -np 4 interFoam -parallel'''&lt;br /&gt;
|| Let’s start the simulation using the following '''command'''.&lt;br /&gt;
|- &lt;br /&gt;
|| [Terminal] Type:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''reconstructPar'''&lt;br /&gt;
|| Since we had run our simulation in '''parallel''', our solution is '''decomposed'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let’s reconstruct our solution using the '''reconstructPar''' '''command'''.&lt;br /&gt;
|- &lt;br /&gt;
|| [Terminal] Type:&lt;br /&gt;
&lt;br /&gt;
'''paraFoam'''&lt;br /&gt;
|| Let’s now view the simulated results in '''ParaView'''.&lt;br /&gt;
|- &lt;br /&gt;
|| [ParaView] '''Properties''' '''Tab'''&lt;br /&gt;
&lt;br /&gt;
Click on '''Apply'''&lt;br /&gt;
|| Click on the '''Apply''' button to view the geometry.&lt;br /&gt;
|- &lt;br /&gt;
|| [ParaView] '''Active Variable Controls'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''vtkBlockColors''' &amp;gt;&amp;gt; Click on '''alpha.water '''[https://imgur.com/1nOhPK9.png Link]&lt;br /&gt;
|| Let’s view the '''contours''' of '''phase fraction''' of '''water'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''vtkBlockColors''' dropdown in the '''Active Variable Controls''' and select '''alpha.water'''.&lt;br /&gt;
|- &lt;br /&gt;
|| [ParaView] '''Layout Window'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Initial Phase Fraction Contour&lt;br /&gt;
|| You can see the '''initial contours''' of '''phase fraction '''of''' water''' showing the '''water column'''.&lt;br /&gt;
|- &lt;br /&gt;
|| [ParaView] '''VCR Controls'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''Play '''[https://imgur.com/IFMlIWa.png Link]&lt;br /&gt;
|| Let’s see how the '''contours''' change with time.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Play''' button in the '''VCR Controls'''.&lt;br /&gt;
|- &lt;br /&gt;
|| [ParaView] '''Layout Window'''&lt;br /&gt;
&lt;br /&gt;
Phase Fraction Contour animation &lt;br /&gt;
|| The animation shows the '''water''' flow for '''5 seconds''' from the instance when the '''dam''' was '''broken'''.&lt;br /&gt;
|- &lt;br /&gt;
|| [ParaView] '''Close ParaView'''&lt;br /&gt;
|| Close the '''ParaView''' window.&lt;br /&gt;
|- &lt;br /&gt;
|| Only Narration&lt;br /&gt;
|| With this we have come to the end of the tutorial.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let’s summarize.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide'''&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
|| In this tutorial, we have learnt to:&lt;br /&gt;
* Set up''' '''a case of '''multiphase''' '''flow'''&lt;br /&gt;
* '''Decompose''' the domain using '''scotch decomposition''' method&lt;br /&gt;
* Specify a '''non-uniform initial condition''', and&lt;br /&gt;
* View the results of a '''multiphase''' '''simulation''' in '''ParaView'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide'''&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|| As an assignment:* For the same domain, increase the '''height''' of the '''water column''' to '''1.5 meter''', and &lt;br /&gt;
* Run the simulation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide'''&lt;br /&gt;
&lt;br /&gt;
'''About the Spoken Tutorial Project'''&lt;br /&gt;
|| The video at the following link summarizes the Spoken Tutorial project.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please download and watch it.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide'''&lt;br /&gt;
&lt;br /&gt;
'''Spoken Tutorial Workshops'''&lt;br /&gt;
|| We conduct workshops using Spoken Tutorials and give certificates.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please contact us.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide'''&lt;br /&gt;
&lt;br /&gt;
'''Spoken Tutorial Forum'''&lt;br /&gt;
|| Please post your timed queries in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide'''&lt;br /&gt;
&lt;br /&gt;
'''FOSSEE Forum'''&lt;br /&gt;
|| * Do you have any general/technical questions?&lt;br /&gt;
* Please visit the forum given in the link.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide'''&lt;br /&gt;
&lt;br /&gt;
'''FOSSEE Case Study Project'''&lt;br /&gt;
||&lt;br /&gt;
* The FOSSEE team coordinates solving feasible CFD problems of reasonable complexity using OpenFOAM.&lt;br /&gt;
* We give honorarium and certificates to those who do this.&lt;br /&gt;
* For more details, please visit these sites.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide'''&lt;br /&gt;
&lt;br /&gt;
'''Acknowledgement '''&lt;br /&gt;
|| The Spoken Tutorial project was established by the Ministry of Education, Govt. of India.&lt;br /&gt;
|-&lt;br /&gt;
|| Only Narration&lt;br /&gt;
|| This tutorial is contributed by Ashley Melvin, Ashuthosh P S, John Pinto and Payel Mukherjee from IIT Bombay.&lt;br /&gt;
&lt;br /&gt;
Thank you for joining.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Evan</name></author>	</entry>

	</feed>