<?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=DWSIM%2FC3%2FCustom-Unit-Operation-using-Python%2FEnglish-timed</id>
		<title>DWSIM/C3/Custom-Unit-Operation-using-Python/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=DWSIM%2FC3%2FCustom-Unit-Operation-using-Python%2FEnglish-timed"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=DWSIM/C3/Custom-Unit-Operation-using-Python/English-timed&amp;action=history"/>
		<updated>2026-04-17T16:20:32Z</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=DWSIM/C3/Custom-Unit-Operation-using-Python/English-timed&amp;diff=55061&amp;oldid=prev</id>
		<title>PoojaMoolya: Created page with &quot;{| border=1 |-  || '''Time''' || '''Narration''' |-  || 00:01 || Welcome to this tutorial on simulating a '''Custom Unit Operation '''using '''Python.''' |-  || 00:07 || In th...&quot;</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=DWSIM/C3/Custom-Unit-Operation-using-Python/English-timed&amp;diff=55061&amp;oldid=prev"/>
				<updated>2021-04-30T10:36:02Z</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 || Welcome to this tutorial on simulating a &amp;#039;&amp;#039;&amp;#039;Custom Unit Operation &amp;#039;&amp;#039;&amp;#039;using &amp;#039;&amp;#039;&amp;#039;Python.&amp;#039;&amp;#039;&amp;#039; |-  || 00:07 || In th...&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;
|- &lt;br /&gt;
|| '''Time'''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|- &lt;br /&gt;
|| 00:01&lt;br /&gt;
|| Welcome to this tutorial on simulating a '''Custom Unit Operation '''using '''Python.'''&lt;br /&gt;
|- &lt;br /&gt;
|| 00:07&lt;br /&gt;
|| In this tutorial, we will learn to:&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 00:10&lt;br /&gt;
||  Create a custom unit operation using '''Python'''&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 00:14&lt;br /&gt;
||  Calculate '''Overall mass '''and '''mole flow rate'''&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 00:18&lt;br /&gt;
||  Calculate '''Enthalpy''' and '''outlet pressure'''&lt;br /&gt;
|- &lt;br /&gt;
|| 00:22&lt;br /&gt;
|| To record this tutorial, I am using&lt;br /&gt;
&lt;br /&gt;
'''DWSIM 5. 6 update 8''' '''(Classic UI) '''and  '''Windows 10'''&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||00:32&lt;br /&gt;
|| But, this process is identical in '''Linux, Mac OS X '''or '''FOSSEE OS on ARM'''.&lt;br /&gt;
|- &lt;br /&gt;
||00:40&lt;br /&gt;
|| To practice this tutorial, you should know to-&lt;br /&gt;
&lt;br /&gt;
Add components to a '''flowsheet'''&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||00:46&lt;br /&gt;
||  Select '''thermodynamic''' packages&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||00:49&lt;br /&gt;
||  Add '''material''' streams and specify their properties&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 00:54&lt;br /&gt;
|| The prerequisite tutorials are available on our website.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||00:58&lt;br /&gt;
|| You can access these tutorials and all the associated files from this site.&lt;br /&gt;
|- &lt;br /&gt;
||01:04&lt;br /&gt;
|| We will develop a '''flowsheet''' to determine the '''product stream temperature, pressure ''', '''Molar flowrate, compositions '''and '''molar enthalpy '''from a '''mixer model''' created using '''Python.'''&lt;br /&gt;
|- &lt;br /&gt;
|| 01:16&lt;br /&gt;
|| Here we give '''Inlet Stream Conditions''' and '''Pressure''' calculation parameter of the '''product stream.'''&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||01:22&lt;br /&gt;
|| '''DWSIM-Python''' file used in the tutorial is provided as a code file on our site.&lt;br /&gt;
&lt;br /&gt;
Download the files from '''Code Files''' link.&lt;br /&gt;
|- &lt;br /&gt;
||01:33&lt;br /&gt;
|| I have already opened '''DWSIM''' on my machine.&lt;br /&gt;
|- &lt;br /&gt;
|| 01:37&lt;br /&gt;
|| Please ensure that '''DWSIM''' opens as an '''administrator'''.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||01:42&lt;br /&gt;
||  Please note:&lt;br /&gt;
&lt;br /&gt;
If '''DWSIM''' is not opened with '''administrator privileges''', the '''Python unit operation''' will not work.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||01:50&lt;br /&gt;
|| Go to '''File''' menu and click on '''Open File'''.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 01:56&lt;br /&gt;
||I have already downloaded and extracted the file on my '''Desktop'''.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||02:01&lt;br /&gt;
|| Select the file from the '''Desktop'''.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||02:04&lt;br /&gt;
|| This file already contains all the material streams necessary for this tutorial.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 02:10&lt;br /&gt;
|| Let us maximize the simulation window.&lt;br /&gt;
|- &lt;br /&gt;
|| 02:13&lt;br /&gt;
|| Now at the bottom of the main simulation window, go to '''User Models '''tab.&lt;br /&gt;
|- &lt;br /&gt;
|| 02:19&lt;br /&gt;
|| Here we will add the '''Python script''' in the '''flowsheet'''.&lt;br /&gt;
|- &lt;br /&gt;
|| 02:23&lt;br /&gt;
|| Drag and drop '''Python Script''' to the '''flowsheet''' area.&lt;br /&gt;
|- &lt;br /&gt;
|| 02:27&lt;br /&gt;
|| Let us change the name of this '''Unit Operation '''to '''Custom Mixer'''.&lt;br /&gt;
|- &lt;br /&gt;
|| 02:32&lt;br /&gt;
|| Now, we will connect '''material streams''' to '''inlet''' and '''outlet ports''' of the '''Custom Mixer'''.&lt;br /&gt;
|- &lt;br /&gt;
|| 02:39&lt;br /&gt;
|| For this click on '''Custom Mixer.'''&lt;br /&gt;
|- &lt;br /&gt;
|| 02:42&lt;br /&gt;
|| Under '''Connections,''' click on the drop-down against '''Inlet Stream 1.'''&lt;br /&gt;
&lt;br /&gt;
And select '''Methanol.'''&lt;br /&gt;
|- &lt;br /&gt;
|| 02:51&lt;br /&gt;
|| Next, click on the drop-down against '''Inlet Stream 2''' and select '''Water.'''&lt;br /&gt;
|- &lt;br /&gt;
|| 02:58&lt;br /&gt;
|| Then, click on the drop-down against '''Outlet Stream 1''' and select '''Mixed Product.'''&lt;br /&gt;
|- &lt;br /&gt;
|| 03:06&lt;br /&gt;
|| All the connections are now complete. &lt;br /&gt;
&lt;br /&gt;
Now we will write the code to perform the computation.&lt;br /&gt;
|- &lt;br /&gt;
|| 03:12&lt;br /&gt;
|| On the left of the window, click on '''Open Python Script Editor '''button.&lt;br /&gt;
|- &lt;br /&gt;
|| 03:18&lt;br /&gt;
|| '''Custom Mixer - Script Editor''' tab opens.&lt;br /&gt;
|- &lt;br /&gt;
|| 03:22&lt;br /&gt;
|| Here we will type the '''Python script''' to perform the '''mixer''' operations.&lt;br /&gt;
|- &lt;br /&gt;
|| 03:27&lt;br /&gt;
|| First, we will import the '''thermodynamics package''' and its related functions to the '''script'''.&lt;br /&gt;
|- &lt;br /&gt;
|| 03:34&lt;br /&gt;
|| Type this code in the '''script'''.&lt;br /&gt;
&lt;br /&gt;
This is to import the '''Thermodynamics Packages''' and related '''functions''' to '''Python'''.&lt;br /&gt;
|- &lt;br /&gt;
|| 03:43&lt;br /&gt;
|| Now we will extract the '''input''' from the '''feed streams.''' &lt;br /&gt;
|- &lt;br /&gt;
|| 03:48&lt;br /&gt;
|| Type this code in the '''script'''.&lt;br /&gt;
&lt;br /&gt;
'''ims1 '''and '''ims2''' are the reference to '''material streams''' that are connected in '''Inlet Stream 1''' and '''Inlet Stream 2.'''&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||04:00&lt;br /&gt;
|| They get recorded as '''feed1''' and '''feed2.'''&lt;br /&gt;
|- &lt;br /&gt;
||04:05&lt;br /&gt;
|| Type this code in the '''script'''.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||04:08&lt;br /&gt;
|| This is to read the '''pressure''' from '''inlet material streams.'''&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||04:12&lt;br /&gt;
|| Here, the variables '''P underscore 1''' and '''P underscore 2''' store the '''pressures''' of '''Methanol''' and '''Water streams'''.&lt;br /&gt;
|- &lt;br /&gt;
|| 04:21&lt;br /&gt;
|| '''GetProp''' is a '''function''' which is used to extract information from the '''inlet material stream.'''&lt;br /&gt;
|- &lt;br /&gt;
|| 04:28&lt;br /&gt;
|| '''GetProp function''' has 5 '''arguments'''.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||04:32&lt;br /&gt;
|| These '''arguments''' have to be specified according to the information that needs to be '''extracted'''.&lt;br /&gt;
|- &lt;br /&gt;
|| 04:39&lt;br /&gt;
|| First '''argument''' is the '''property name'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||04:42&lt;br /&gt;
|| This is to specify the '''property''' which has to be stored in the '''variable'''.&lt;br /&gt;
&lt;br /&gt;
Here '''pressure''' is specified.&lt;br /&gt;
|- &lt;br /&gt;
|| 04:50&lt;br /&gt;
|| Second '''argument''' is the '''phase'''.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||04:53&lt;br /&gt;
|| This is to indicate the '''phase''' for which the '''property''' specified in the first '''argument''' has to be stored.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||05:00&lt;br /&gt;
|| Here '''Overall''' is specified.&lt;br /&gt;
|- &lt;br /&gt;
|| 05:03&lt;br /&gt;
|| Third '''argument''' is the '''component ID'''.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||05:07&lt;br /&gt;
|| Since we are storing the '''pressure''' of overall '''stream''' and not individual components, '''None''' is specified.&lt;br /&gt;
|- &lt;br /&gt;
|| 05:15&lt;br /&gt;
|| The fourth '''argument''' is the '''calculation type'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||05:19&lt;br /&gt;
|| Here we have to enter '''Pure '''or '''Mixture.'''&lt;br /&gt;
&lt;br /&gt;
Since the '''property''' calculation '''type''' doesn’t apply to '''pressure''', we will leave blank here.&lt;br /&gt;
|- &lt;br /&gt;
|| 05:30&lt;br /&gt;
|| The fifth '''argument''' is the '''basis'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||05:34&lt;br /&gt;
|| '''Mole''' or '''mass''' has to be entered here to specify the '''property''' basis.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||05:40&lt;br /&gt;
|| Since the '''property''' basis doesn’t apply to '''pressure''', we will leave it blank here.&lt;br /&gt;
|- &lt;br /&gt;
|| 05:46&lt;br /&gt;
|| Type this code in the '''script'''.&lt;br /&gt;
&lt;br /&gt;
This is to read the overall '''mass flow rates''' from the '''inlet material streams'''.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||05:54&lt;br /&gt;
|| variables '''massflow underscore 1''' and '''massflow underscore 2''' store total '''mass flow rates''' of '''Methanol''' and '''Water''' streams.&lt;br /&gt;
|- &lt;br /&gt;
|| 06:04&lt;br /&gt;
|| Type this code in the '''script'''.&lt;br /&gt;
&lt;br /&gt;
This code will read the '''mole fractions''' of the components from the '''inlet material streams'''.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||06:13&lt;br /&gt;
|| Here, we see the variables '''molefrac_1''' and '''molefrac_2. '''&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||06:20&lt;br /&gt;
|| They''' '''store '''mole fractions''' of the components from the '''streams''' in form of '''1 Dimensional array.'''&lt;br /&gt;
|- &lt;br /&gt;
|| 06:27&lt;br /&gt;
|| Type this code in the '''script'''.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||06:30&lt;br /&gt;
|| Here, variables '''moleflow underscore 1''' and '''moleflow underscore 2''' store total '''mole flow rates''' of the '''streams'''.&lt;br /&gt;
|- &lt;br /&gt;
|| 06:39&lt;br /&gt;
|| Type this code in the '''script'''.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||06:42&lt;br /&gt;
|| This is to read the specific '''enthalpy''' from the '''inlet material streams.'''&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||06:47&lt;br /&gt;
|| Variables '''enthalpy underscore 1''' and '''enthalpy underscore 2''' store the specific '''enthalpies''' of the '''streams'''.&lt;br /&gt;
|- &lt;br /&gt;
|| 06:55&lt;br /&gt;
|| Please note that the fourth '''argument''' is specified as a '''Mixture'''.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||07:00&lt;br /&gt;
|| Here we are storing the specific '''enthalpy''' of the '''overall stream'''.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||07:05&lt;br /&gt;
|| So, calculation '''type''' is specified as '''Mixture.'''&lt;br /&gt;
|- &lt;br /&gt;
|| 07:10&lt;br /&gt;
|| Type this code in the '''script'''.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||07:13&lt;br /&gt;
|| All the required '''properties''' for the '''outlet stream''' are initialized here. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||07:18&lt;br /&gt;
|| The '''variables''' are initialized as '''vectors'''.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||07:22&lt;br /&gt;
|| This makes it easy to set the values in the '''outlet stream''' using the '''SetProp function.'''&lt;br /&gt;
|- &lt;br /&gt;
|| 07:29&lt;br /&gt;
|| Now we will code the calculation routine.&lt;br /&gt;
|- &lt;br /&gt;
|| 07:33&lt;br /&gt;
|| First we will calculate the overall '''mass flow rate''' of the '''outlet stream'''.&lt;br /&gt;
|- &lt;br /&gt;
|| 07:38&lt;br /&gt;
|| Type this code in the '''script'''.&lt;br /&gt;
&lt;br /&gt;
Total '''mass flow rate''' of the '''outlet stream''' is calculated and stored in the variable '''massflow underscore 3.'''&lt;br /&gt;
|- &lt;br /&gt;
|| 07:49&lt;br /&gt;
|| Now we will calculate the overall '''mole flow rate''' of '''outlet stream'''.&lt;br /&gt;
|- &lt;br /&gt;
|| 07:55&lt;br /&gt;
|| Type this code in the '''script'''.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||07:58&lt;br /&gt;
|| Total '''mole flow rate''' of '''outlet stream''' is calculated and stored in the variable '''moleflow underscore 3'''.&lt;br /&gt;
|- &lt;br /&gt;
|| 08:06&lt;br /&gt;
|| Next we will calculate the specific '''enthalpy''' of '''outlet stream'''.&lt;br /&gt;
|- &lt;br /&gt;
|| 08:11&lt;br /&gt;
|| Type this code in the '''script'''.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||08:14&lt;br /&gt;
|| Total '''enthalpy''' of the '''outlet stream''' is calculated and stored in the variable '''totalenthalpy.'''&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||08:21&lt;br /&gt;
|| Similarly,''' '''specific '''enthalpy''' of the '''outlet stream''' is calculated and stored in the variable '''enthalpy underscore 3'''.&lt;br /&gt;
|- &lt;br /&gt;
|| 08:30&lt;br /&gt;
|| Next we will calculate the individual component '''mole flow rates''' in the '''outlet stream'''.&lt;br /&gt;
|- &lt;br /&gt;
|| 08:36&lt;br /&gt;
|| Type this code in the '''script'''.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||08:39&lt;br /&gt;
|| Mole flow rates''' of component 1 and component 2 are calculated and stored in '''totalmolflow underscore comp1''' and '''totalmolflow underscore comp2'''.&lt;br /&gt;
|- &lt;br /&gt;
|| 08:50&lt;br /&gt;
|| Now we will calculate the '''mole fraction''' of components in the '''outlet stream'''.&lt;br /&gt;
|- &lt;br /&gt;
|| 08:56&lt;br /&gt;
|| Type this code in the '''script'''.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||08:59&lt;br /&gt;
|| Component '''mole fractions''' are calculated and stored in the variable '''molfrac underscore 3'''.&lt;br /&gt;
|- &lt;br /&gt;
|| 09:06&lt;br /&gt;
|| Now we will calculate the '''outlet pressure.'''&lt;br /&gt;
|- &lt;br /&gt;
|| 09:10&lt;br /&gt;
|| Type this code in the '''script'''.&lt;br /&gt;
&lt;br /&gt;
'''Outlet pressure''' is calculated and stored in the variable '''P underscore 3'''.&lt;br /&gt;
|- &lt;br /&gt;
|| 09:19&lt;br /&gt;
|| Now we will pass the calculated '''output variables''' to the '''Mixed Product material stream'''.&lt;br /&gt;
|- &lt;br /&gt;
|| 09:26&lt;br /&gt;
|| Type this code in the '''script'''.&lt;br /&gt;
&lt;br /&gt;
'''oms1''' is the reference to the '''material stream''' connected to the '''Outlet Stream 1.'''&lt;br /&gt;
|- &lt;br /&gt;
||09:35&lt;br /&gt;
|| Type this code in the '''script'''.&lt;br /&gt;
&lt;br /&gt;
This is to clear any calculated values stored during previous runs.&lt;br /&gt;
|- &lt;br /&gt;
||09:44&lt;br /&gt;
|| Now we will pass the calculated '''output variables''' to the '''Mixed Product material stream'''.&lt;br /&gt;
|- &lt;br /&gt;
|| 09:51&lt;br /&gt;
|| Type this code in the '''script'''.&lt;br /&gt;
&lt;br /&gt;
This is to pass the calculated specific '''enthalpy''' to the '''Outlet Stream 1'''.&lt;br /&gt;
|- &lt;br /&gt;
|| 10:00&lt;br /&gt;
|| '''SetProp''' is a '''function''' used to assign values to the '''output stream'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||10:06&lt;br /&gt;
|| It is a similar '''function''' to that of '''GetProp'''.&lt;br /&gt;
&lt;br /&gt;
'''SetProp function''' has six '''arguments'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||10:14&lt;br /&gt;
|| First five '''arguments''' are same as that of '''GetProp function'''.&lt;br /&gt;
|- &lt;br /&gt;
||10:19&lt;br /&gt;
|| The sixth '''argument''' is the '''output variable'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||10:23&lt;br /&gt;
|| This is to specify the '''vector variable''' that we want to assign to that particular '''property'''.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||10:29&lt;br /&gt;
|| We want to assign the '''vector enthalpy underscore 3''' to '''enthalpy''' of the '''Outlet Stream 1'''.&lt;br /&gt;
|- &lt;br /&gt;
|| 10:37&lt;br /&gt;
|| Similarly we will pass the remaining calculated '''variables''' to the '''Outlet Stream 1'''.&lt;br /&gt;
|- &lt;br /&gt;
|| 10:42&lt;br /&gt;
|| Type this code in the '''script'''.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||10:45&lt;br /&gt;
|| This is to pass the calculated '''pressure, component mole fractions''' and '''total mass flowrate''' to the '''Outlet Stream 1'''.&lt;br /&gt;
|- &lt;br /&gt;
|| 10:53&lt;br /&gt;
|| Type this code in the '''script'''.&lt;br /&gt;
&lt;br /&gt;
This is to set the flash calculation method for the '''Outlet Stream 1'''.&lt;br /&gt;
|- &lt;br /&gt;
|| 11:01&lt;br /&gt;
|| '''out.PropertyPackage.DW_CalcEquilibrium''' is a '''function''' used to set the method of '''flash''' calculation used. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||11:11&lt;br /&gt;
|| The default '''flash '''calculation method is done with the '''Temperature and Pressure (TP Flash)'''.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||11:17&lt;br /&gt;
|| Here we do not know the '''outlet temperature'''.&lt;br /&gt;
&lt;br /&gt;
So, we set the '''flash type''' to '''Pressure and Enthalpy Flash (PH Flash).'''&lt;br /&gt;
|- &lt;br /&gt;
|| 11:26&lt;br /&gt;
|| The '''variable''' at the end of the '''PropertyPackages.FlashSpec''' signifies which '''variable''' is used for '''flash''' calculation. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||11:35&lt;br /&gt;
|| Here in the first '''argument,''' we pass the '''Pressure''' and in the next we pass the '''Enthalpy.'''&lt;br /&gt;
|- &lt;br /&gt;
||11:43&lt;br /&gt;
|| With this, the '''Python script''' is completed.&lt;br /&gt;
&lt;br /&gt;
Now we will run the '''simulation.'''&lt;br /&gt;
|- &lt;br /&gt;
|| 11:49&lt;br /&gt;
|| So, from the toolbar, click on '''Solve Flowsheet''' button.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 11:53&lt;br /&gt;
||Switch to '''Flowsheet''' tab.&lt;br /&gt;
|- &lt;br /&gt;
|| 11:56&lt;br /&gt;
|| When the calculations are completed, click on the '''Mixed Product '''in the '''flowsheet'''.&lt;br /&gt;
|- &lt;br /&gt;
|| 12:01&lt;br /&gt;
|| Under '''Stream Conditions, '''check '''Temperature''', '''Pressure''' and '''Molar Flow'''.&lt;br /&gt;
|- &lt;br /&gt;
|| 12:10&lt;br /&gt;
|| Let's summarize.&lt;br /&gt;
|- &lt;br /&gt;
|| 12:12&lt;br /&gt;
|| In this tutorial, we have learnt to&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||12:15&lt;br /&gt;
|| Create a custom unit operation using '''Python'''&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||12:18&lt;br /&gt;
|| Calculate '''Overall mass '''and '''mole flow rate'''&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||12:22&lt;br /&gt;
|| Calculate '''Enthalpy''' and '''outlet pressure'''&lt;br /&gt;
|- &lt;br /&gt;
|| 12:26&lt;br /&gt;
|| As an assignment,&lt;br /&gt;
&lt;br /&gt;
Create a custom model for a flash column to separate the gas-liquid phase for a mixture of compounds.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 12:34&lt;br /&gt;
|| Calculate the amount of liquid and vapour generated at 0.075 bar.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 12:40&lt;br /&gt;
|| Compare the results with in-built Gas-Liquid Separator available.&lt;br /&gt;
|- &lt;br /&gt;
|| 12:45&lt;br /&gt;
|| Watch the video available at the following link.&lt;br /&gt;
&lt;br /&gt;
It summarizes the Spoken Tutorial project.&lt;br /&gt;
|- &lt;br /&gt;
|| 12:52&lt;br /&gt;
|| The Spoken Tutorial Project Team&lt;br /&gt;
&lt;br /&gt;
Conducts workshops and Gives certificates.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||12:58&lt;br /&gt;
|| For more details, please write to us. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 13:01&lt;br /&gt;
|| Please post your times queries in this forum.&lt;br /&gt;
|- &lt;br /&gt;
|| 13:05&lt;br /&gt;
|| The '''FOSSEE''' team coordinates conversion of existing flow sheets into '''DWSIM.'''&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 13:11&lt;br /&gt;
|| We give honorarium and certificates.&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|- &lt;br /&gt;
|| 13:18&lt;br /&gt;
|| The '''FOSSEE''' team coordinates coding of solved examples of popular books.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 13:24&lt;br /&gt;
|| We give honorarium and certificates.&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|- &lt;br /&gt;
|| 13:31&lt;br /&gt;
|| The '''FOSSEE''' team helps migrate commercial simulator labs to '''DWSIM.'''&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 13:38&lt;br /&gt;
|| We give honorarium and certificates.&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|- &lt;br /&gt;
|| 13:45&lt;br /&gt;
|| '''Spoken Tutorial''' and '''FOSSEE''' projects are funded by '''NMEICT, MHRD''', Government of India.&lt;br /&gt;
|- &lt;br /&gt;
||13:53&lt;br /&gt;
|| This tutorial is contributed by Kaushik Datta and Priyam Nayak.&lt;br /&gt;
&lt;br /&gt;
Thanks for joining.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>PoojaMoolya</name></author>	</entry>

	</feed>