<?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-Scilab%2FEnglish-timed</id>
		<title>DWSIM/C3/Custom-Unit-Operation-using-Scilab/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-Scilab%2FEnglish-timed"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=DWSIM/C3/Custom-Unit-Operation-using-Scilab/English-timed&amp;action=history"/>
		<updated>2026-04-09T15:24:16Z</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-Scilab/English-timed&amp;diff=55062&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 '''Scilab.'''   |-  ||00:07 ||In this tut...&quot;</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=DWSIM/C3/Custom-Unit-Operation-using-Scilab/English-timed&amp;diff=55062&amp;oldid=prev"/>
				<updated>2021-04-30T10:37:37Z</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;Scilab.&amp;#039;&amp;#039;&amp;#039;   |-  ||00:07 ||In this tut...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
&lt;br /&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;
||Welcome to this tutorial on simulating a '''Custom Unit Operation''' using '''Scilab.''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||00:07&lt;br /&gt;
||In this tutorial, we will learn to: &lt;br /&gt;
&lt;br /&gt;
Create a custom unit operation using '''Scilab''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||00:14&lt;br /&gt;
|| Calculate the '''Outlet pressure '''of '''product stream''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||00:18&lt;br /&gt;
|| Calculate '''Molar flow rate '''and''' Enthalpy''' &lt;br /&gt;
&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;
|- &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;
||00:54&lt;br /&gt;
||The prerequisite tutorials are available on our website. &lt;br /&gt;
 &lt;br /&gt;
|- &lt;br /&gt;
||00:59&lt;br /&gt;
||You can access these tutorials and all the associated files from this site. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||01:05&lt;br /&gt;
||You should also have '''Scilab 5.02 '''(or higher)''' '''installed on your system. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||01:12&lt;br /&gt;
||First let us learn what is '''Scilab CAPE-OPEN Unit Operation'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||01:17&lt;br /&gt;
||It is an '''unit operation '''implementation for which the calculations can be entered in '''Scilab'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||01:25&lt;br /&gt;
||More information on this is given in the '''Additional reading material''' link of this tutorial. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||01:31&lt;br /&gt;
||We will develop a '''flowsheet''' to determine the '''product stream Temperature, Pressure,''' &lt;br /&gt;
&lt;br /&gt;
'''Molar flow rate '''and '''Molar enthalpy '''from a '''Mixer model''' created using '''Scilab'''. &lt;br /&gt;
|- &lt;br /&gt;
|| 01:42&lt;br /&gt;
|| Here we give '''Inlet Stream Conditions''' of the '''product stream'''. &lt;br /&gt;
&lt;br /&gt;
|- :&lt;br /&gt;
|| 0147&lt;br /&gt;
||Now let me open '''DWSIM (Classic UI).''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||01:52&lt;br /&gt;
||To open '''DWSIM''', go to the''' Desktop'''. &lt;br /&gt;
&lt;br /&gt;
Right-click on '''DWSIM (Classic UI)''' and click '''Run as Administrator.''' &lt;br /&gt;
 &lt;br /&gt;
|- &lt;br /&gt;
|| 02:04&lt;br /&gt;
|| '''Welcome to DWSIM''' window opens. &lt;br /&gt;
&lt;br /&gt;
Close this window. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||02:10&lt;br /&gt;
||Now go to the '''File''' menu and select '''New Steady-state Simulation.''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||02:18&lt;br /&gt;
||'''Simulation Configuration Wizard''' window appears. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||02:22&lt;br /&gt;
||At the bottom, click on the '''Next '''button. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||02:26&lt;br /&gt;
||In the '''Compounds search''' tab, type '''Water.''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||02:30&lt;br /&gt;
||Select '''Water '''from the '''ChemSep database'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||02:34 &lt;br /&gt;
||Similarly, add '''Methanol.''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||02:38&lt;br /&gt;
||Followed by '''Ethanol.''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||02:41&lt;br /&gt;
||And then click on the '''Next''' button at the bottom. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||02:45&lt;br /&gt;
||The '''Property Packages '''window opens. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||02:49&lt;br /&gt;
||From '''Available Property Packages''' list, double-click on '''Raoult’s Law.''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||02:55&lt;br /&gt;
||Then click on the '''Next '''button at the bottom. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||02:59&lt;br /&gt;
||The next option after this, is '''System of Units.''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||03:04&lt;br /&gt;
||Under '''System of Units, '''select '''SI'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||03:08&lt;br /&gt;
||Click on the '''Finish '''button at the bottom. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||03:12&lt;br /&gt;
||Let us maximize the simulation window. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||03:16&lt;br /&gt;
||Let’s insert the '''feed streams''' that enter the '''Custom Mixer'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 03:21&lt;br /&gt;
||Go to '''Streams '''tab, at the bottom of the '''main simulation'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||03:26&lt;br /&gt;
||From the displayed list, drag and drop three '''Material Streams''' to the '''Flowsheet'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||03:32&lt;br /&gt;
||Click on the first '''material stream''' named as '''MSTR-000''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||03:38&lt;br /&gt;
||Let’s change the name of this '''stream''' to '''Water.''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 03:42&lt;br /&gt;
||Now we will specify the '''Water stream''' properties. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||03:47&lt;br /&gt;
||Go to '''Input Data.''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||03:49&lt;br /&gt;
||Under '''Stream Conditions '''tab, select '''Flash Spec''' as '''Temperature and Pressure (TP).''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||03:55&lt;br /&gt;
||By default, '''Temperature '''and''' Pressure '''should already be selected as '''Flash Spec.''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||04:01&lt;br /&gt;
||Change '''Temperature''' to '''300 Kelvin''' and press '''Enter.''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||04:07&lt;br /&gt;
||Change '''Pressure''' to '''100000 Pascals''' and press '''Enter.''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||04:12&lt;br /&gt;
||Change '''Mass Flow''' to '''10 kg per second''' and press '''Enter.''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||04:17&lt;br /&gt;
||Now let us specify the '''Water stream compositions.''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||04:21&lt;br /&gt;
||For this, click on '''Compound Amounts''' tab under '''Input Data.''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||04:27&lt;br /&gt;
||Choose the '''Basis''' as '''Mole Fractions''', if not already selected. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||04:32&lt;br /&gt;
||By default, '''Mole Fractions''' is already selected as '''Basis.''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||04:37&lt;br /&gt;
||Now for '''Water''', enter the '''Amount''' as '''1''' and press '''Enter.''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||04:43&lt;br /&gt;
||For '''Methanol, '''enter '''0''' and press '''Enter'''. &lt;br /&gt;
 &lt;br /&gt;
|- &lt;br /&gt;
||04:48&lt;br /&gt;
||For '''Ethanol, '''enter '''0''' and press '''Enter'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||04:53&lt;br /&gt;
||On the right, click on the '''Accept Changes''' button. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 04:57&lt;br /&gt;
||Similarly, we will define the other two '''material streams.''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||05:02&lt;br /&gt;
||Click on the second '''material stream''' named '''MSTR-001.''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||05:07&lt;br /&gt;
||Let’s change the name of this '''stream''' to '''Methanol.''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 05:12&lt;br /&gt;
||Now we will specify the '''Methanol stream''' properties. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||05:17&lt;br /&gt;
||Go to '''Input Data.''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||05:19&lt;br /&gt;
||Under '''Stream Conditions tab''', select '''Flash Spec''' as '''Temperature and Pressure (TP).''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||05:25&lt;br /&gt;
||Change '''Temperature''' to '''305 Kelvin''' and press '''Enter.''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||05:31&lt;br /&gt;
||Change '''Pressure''' to '''150000 Pa'scals'' and press '''Enter.''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||05:37&lt;br /&gt;
||Change '''Mass Flow''' to '''15 kg per second''' and press '''Enter.''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||05:43&lt;br /&gt;
||Now click on the '''Compound Amounts''' tab under''' Input Data.''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||05:48&lt;br /&gt;
||Choose '''Basis''' as '''Mole Fractions.''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||05:52&lt;br /&gt;
||Now for '''Water''', enter the '''Amount''' as '''0''' and press '''Enter.''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||05:59&lt;br /&gt;
||For '''Methanol, '''enter '''1''' and press '''Enter'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||06:04&lt;br /&gt;
||For '''Ethanol, '''enter '''0''' and press '''Enter'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||06:09&lt;br /&gt;
||On the right, click on the '''Accept Changes''' button. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||06:13&lt;br /&gt;
||Now, click on the third '''material stream''' named as '''MSTR-002.''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||06:20&lt;br /&gt;
||Let’s change the name of this '''stream''' to '''Ethanol.''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 06:25&lt;br /&gt;
||Now we will specify the '''Ethanol stream''' properties. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||06:30&lt;br /&gt;
||Go to '''Input Data.''' &lt;br /&gt;
&lt;br /&gt;
Under '''Stream Conditions '''tab, select '''Flash Spec''' as '''Temperature and Pressure (TP)''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||06:39&lt;br /&gt;
||Change '''Temperature''' to '''310 Kelvin''' and press '''Enter.''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||06:45&lt;br /&gt;
||Change '''Pressure''' to '''200000 Pascal''' and press '''Enter.''' &lt;br /&gt;
 &lt;br /&gt;
|- &lt;br /&gt;
||06:51&lt;br /&gt;
||Change '''Mass Flow''' to '''20 kg per second''' and press '''Enter.''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||06:57&lt;br /&gt;
||Then under '''Input Data '''click on '''Compound Amounts '''tab. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||07:03&lt;br /&gt;
||Choose the '''Basis''' as '''Mole Fractions.''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||07:07&lt;br /&gt;
||For '''Water''', enter the '''Amount''' as '''0''' and press '''Enter.''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||07:13&lt;br /&gt;
||For '''Methanol, '''enter '''0''' and press '''Enter'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||07:18&lt;br /&gt;
||For '''Ethanol, '''enter '''1''' and press '''Enter'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||07:23&lt;br /&gt;
||On the right side, click on the '''Accept Changes''' button. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 07:27&lt;br /&gt;
||Now, let us insert another '''material stream''' that exits the '''custom mixer'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||07:33&lt;br /&gt;
||To do that, let us drag one '''material stream '''to the '''flowsheet'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 07:38&lt;br /&gt;
||Let us arrange the '''stream'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 07:41&lt;br /&gt;
||We will leave that '''stream''' as unspecified. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||07:45&lt;br /&gt;
||Then we will change the name of this '''stream '''to '''Mixed Product.''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||07:50&lt;br /&gt;
||At the bottom of the main simulation window, go to '''CAPE-OPEN '''tab. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||07:55&lt;br /&gt;
||Drag and drop '''CAPE-OPEN Unit Operation''' to the '''flowsheet''' area. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||08:01&lt;br /&gt;
||Add '''CAPE-OPEN Unit Operation '''window opens. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||08:05&lt;br /&gt;
||From the displayed list, select '''SciLab Unit Operation.''' &lt;br /&gt;
&lt;br /&gt;
Click on '''OK '''at the bottom. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||08:13&lt;br /&gt;
||Let us change the name of this '''Unit Operation '''to '''Custom Mixer'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 08:19&lt;br /&gt;
||Now, we will create the '''inlet''' and '''outlet connection ports''' for the '''Custom Mixer'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||08:26&lt;br /&gt;
||For this, click on '''Custom Mixer.''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||08:30&lt;br /&gt;
||From '''Property Editor window, '''click on '''Open CAPE-OPEN Object Editor.''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||08:36&lt;br /&gt;
||'''Scilab CAPE-OPEN Unit Operation '''window opens. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||08:40&lt;br /&gt;
||Click on '''Ports''' tab. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||08:43&lt;br /&gt;
||Under '''Feed ports''', there is an '''Add''' button at the bottom. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||08:49&lt;br /&gt;
||Click on '''Add''' button thrice to create three '''inlet ports''' for the three '''input material streams'''. &lt;br /&gt;
 &lt;br /&gt;
|- &lt;br /&gt;
||08:55&lt;br /&gt;
||Under '''Product ports''', click on '''Add''' button at the bottom. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||09:02&lt;br /&gt;
||This will create an '''outlet port''' for the output '''material stream'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||09:07&lt;br /&gt;
||Click on the '''Close '''button at the bottom. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||09:11&lt;br /&gt;
||Go to '''Property Editor Window'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||09:14&lt;br /&gt;
||Under '''Connections, '''go to '''inlet''' tab. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||09:18&lt;br /&gt;
||Click on the drop-down against '''Feed 1 '''and select '''Water.''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||09:25&lt;br /&gt;
||Next, click on the drop-down against '''Feed 2''' and select '''Methanol.''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||09:33&lt;br /&gt;
||Next, click on the drop-down against '''Feed 3''' and select '''Ethanol.''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||09:42&lt;br /&gt;
||Now click on the '''Outlet''' tab. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||09:45&lt;br /&gt;
||Click on the drop-down against '''Product 1 '''and select '''Mixed Product.''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||09:52&lt;br /&gt;
||All the connections now are completed. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||09:56&lt;br /&gt;
||Now we will write the code to perform the computation. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||10:01&lt;br /&gt;
||Click on '''Open CAPE-OPEN Object Editor.''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||10:05&lt;br /&gt;
||Click on '''SciLab''' tab. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||10:08&lt;br /&gt;
||First we will get the '''feed properties''' of the '''material streams'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||10:13&lt;br /&gt;
||Then we will write the '''calculation routines'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||10:17&lt;br /&gt;
||Type this code in the '''Script '''tab. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||10:20&lt;br /&gt;
||This is to read the '''molar flow rate''' of the '''compounds''' from the '''inlet material streams'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||10:26&lt;br /&gt;
||Here,''' f1, f2''' and '''f3 '''are the '''variables'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||10:31&lt;br /&gt;
||They store '''molar flow rate''' of the '''compounds''' from the '''inlet material streams'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||10:37&lt;br /&gt;
||'''getFeedProp''' is the '''command''' used to read the specified '''feed property'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||10:42&lt;br /&gt;
||'''1, 2''' and '''3''' are the '''feed port numbers''' in '''SciLab''' to which the '''material streams''' in '''DWSIM''' is connected. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||10:52&lt;br /&gt;
||'''flow''' is the '''keyword'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||10:54&lt;br /&gt;
||'''flow''' indicates that '''components''' in the '''streams''', has to be stored in''' f1,f2,f3''' in form of an '''array'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||11:03&lt;br /&gt;
||Type this code in the '''Script''' tab. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||11:06&lt;br /&gt;
||This is to read the '''molar enthalpy''' of the '''inlet streams''' from the added '''inlet material stream'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||11:13&lt;br /&gt;
||Here, variables''' h1, h2''' and '''h3''' store the '''molar enthalpy''' of the added '''input material streams'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||11:21&lt;br /&gt;
||'''enthalpy''' is the '''keyword'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||11:24&lt;br /&gt;
||It indicate that '''molar enthalpy''' of '''material streams''' has to be stored in '''h1, h2''' and '''h3'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||11:32&lt;br /&gt;
||Next, type this code. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||11:35&lt;br /&gt;
||This is to read the '''pressure''' of the '''inlet streams''' from the added '''inlet material stream'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||11:41&lt;br /&gt;
||Here, variables''' p1, p2''' and '''p3''' store the '''pressures''' of '''Water, Methanol''' and '''Ethanol streams'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||11:49&lt;br /&gt;
||'''pressure''' is the '''keyword'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||11:51&lt;br /&gt;
||It indicates that the '''pressure''' of '''material streams''' has to be stored in the variables''' p1, p2''' and '''p3'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 11:59&lt;br /&gt;
||Now we will code the '''calculation routine''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 12:03&lt;br /&gt;
||First we will calculate the '''outlet pressure'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||12:07&lt;br /&gt;
||For this let us consider the '''outlet pressure''' to be '''average pressure''' of all the '''3 inlet streams'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||12:15&lt;br /&gt;
||Now, type this code. &lt;br /&gt;
&lt;br /&gt;
'''Outlet pressure''' is calculated and stored in the '''variable p.''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 12:24&lt;br /&gt;
||Now we will calculate the '''molar flow rate''' of the compounds in the '''output stream'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||12:30&lt;br /&gt;
||Type this code in the '''Script '''tab. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||12:33&lt;br /&gt;
||'''Molar flow rate''' of '''compounds''' in the '''product stream''' is calculated. &lt;br /&gt;
&lt;br /&gt;
It is stored in the '''variable f''' in form of an '''array'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 12:43&lt;br /&gt;
||Now we will calculate the total '''molar flow rate''' of the '''product stream'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||12:49&lt;br /&gt;
||Type this code in the '''Script''' tab. &lt;br /&gt;
&lt;br /&gt;
'''Molar flow rate '''of '''product stream''' is calculated and stored in the '''variable totF'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 12:58&lt;br /&gt;
||Now we will calculate the '''enthalpy''' of the '''product stream'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||13:04&lt;br /&gt;
||Type this code. &lt;br /&gt;
&lt;br /&gt;
'''Enthalpy''' of the '''product stream''' is calculated and stored in the '''variable h'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 13:12&lt;br /&gt;
||Now we will pass the '''calculated variables''' to the '''Mixed Product material stream'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||13:18&lt;br /&gt;
||Type this code. &lt;br /&gt;
&lt;br /&gt;
'''setProduct''' indicates that, '''variables''' in the braces are to be passed to the '''stream''' in the '''product'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||13:28&lt;br /&gt;
||At the bottom, click '''Test.''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||13:31&lt;br /&gt;
||'''Values''' stored and calculated in all the '''variables''', are displayed in the '''Output''' tab. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||13:37&lt;br /&gt;
||Click '''Close '''button at the bottom. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 13:40&lt;br /&gt;
||Now we will run the '''simulation.''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||13:43&lt;br /&gt;
||So, from the toolbar, click on '''Solve Flowsheet''' button. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||13:48&lt;br /&gt;
||When the calculations are completed, click on the '''Mixed Product '''in the '''flowsheet'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||13:53&lt;br /&gt;
||Under '''Stream Conditions,''' check '''Temperature, Pressure, Molar Flow'''. &lt;br /&gt;
|- &lt;br /&gt;
|| 14:02&lt;br /&gt;
||Let's summarize. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 14:04&lt;br /&gt;
||In this tutorial, we have learnt to &lt;br /&gt;
&lt;br /&gt;
Create a '''custom unit operation''' using''' Scilab''' , Calculate the '''Outlet pressure '''of '''product stream''', Calculate '''Molar flow rate '''and''' Enthalpy''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||14:19&lt;br /&gt;
||As an assignment, &lt;br /&gt;
&lt;br /&gt;
Create a custom '''model''' for a '''heater''' to heat the given mixture of compounds for different '''Inlet stream conditions'''.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||14:29&lt;br /&gt;
||Watch the video available at following link. &lt;br /&gt;
&lt;br /&gt;
It summarizes the Spoken Tutorial project. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||14:37&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;
||14:42&lt;br /&gt;
||For more details, please write to us. &lt;br /&gt;
|- &lt;br /&gt;
||14:46&lt;br /&gt;
||Please post your times queries in this forum. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||14:50&lt;br /&gt;
||The '''FOSSEE''' team coordinates conversion of existing flow sheets into '''DWSIM.''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||14:56&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;
|- &lt;br /&gt;
||15:03&lt;br /&gt;
||The '''FOSSEE''' team coordinates coding of solved examples of popular books. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||15:09&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;
|- &lt;br /&gt;
||15:16&lt;br /&gt;
||The '''FOSSEE''' team helps migrate commercial simulator labs to '''DWSIM.''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||15:22&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;
|- &lt;br /&gt;
||15:29&lt;br /&gt;
||'''Spoken Tutorial''' and '''FOSSEE''' projects are funded by '''NMEICT, MHRD''', Government of India. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||15:38&lt;br /&gt;
||This tutorial is contributed by Kaushik Datta and Priyam Nayak. Thanks for joining. &lt;br /&gt;
&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>PoojaMoolya</name></author>	</entry>

	</feed>