Process-Simulation-using-DWSIM/C2/Simulating-a-Decanter/English
Title: Simulating a Decante
Author: Priyam Nayak
Keywords: DWSIM, Material stream, simulation, compounds, thermodynamic package, unit systems, decanter, LLE, gas-liquid separator, operating conditions, separation pressure.
| Visual Cue | Narration |
| Slide Number 1
Title Slide |
Welcome to this spoken tutorial on Simulating a Decanter in DWSIM. |
| Slide Number 2
Learning Objectives |
In this tutorial, we will learn to:
|
| Slide Number 3
System Requirements To record this tutorial, I am using
But, this process is identical in Linux, Mac OS X, or FOSSEE OS on ARM. |
This tutorial is recorded using the following setup.
The process demonstrated in this tutorial is identical in other OS as well. |
| Slide Number 4
Pre-requisites To practice this tutorial, you should know how to:
|
To practice this tutorial, you should know the following. |
| Slide Number 5
Problem Statement |
We will simulate a decanter, as shown in the figure.
This is to determine the exit composition of heavy and light liquid streams. Use the UNIQUAC property package. |
| Switch to DWSIM. | I have opened the DWSIM interface. |
| Add the compounds
P-xylene and water Property package - UNIQUAC System of Units C5 |
I have also completed configuring the simulation.
That means I have completed
|
| Point to Object Palette
Click on Separators/Tanks section. It is located at the right side of the flowsheet window. Scroll down a little to see Gas-Liquid Separator. Click and drag Gas-Liquid Separator to the flowsheet |
Now let us add a Decanter.
Go to the Separators/Tanks section in the Object Palette. Scroll down a little to see Gas-Liquid Separator. Drag and drop Gas-Liquid Separator to the flowsheet. The Gas-liquid Separator in DWSIM can be used for decanter. |
| Point to Gas-Liquid Separator added to the flowsheet.
Point to material Stream 1. Point to Material Stream 2. Point to Material Stream 3. |
This is the Gas-Liquid Separator.
It has 3 material streams auto-connected to its connection ports. Material Stream named 1 enters the Gas-Liquid Separator as feed. Material Stream named 2 leave the Gas-Liquid Separator as vapor product. Material Stream named 3 leave the Gas-Liquid Separator as a liquid project. |
| Point to the Decanter V-1
Click on the Decanter to see its property editor Highlight Light Liquid Stream connection port. Point to Heavy Liquid Stream connection port. |
Since we are going to simulate a decanter, we need two liquid streams.
Click on the Decanter to see its property editor. Currently, only one liquid stream is connected to the decanter. It is connected to the Light Liquid Stream connection port. We will connect another material stream to the Heavy Liquid Stream connection port. |
| Click >> Create and Connect. | To do this, Click on the yellow icon next to the drop-down against Heavy Liquid Stream.
It will automatically Create and Connect a Material Stream to the Decanter. |
| Hover Mouse at 4 | A material stream named 4 is created and connected to the Decanter. |
| Let us now rename all the streams and unit operation. | |
| Click >> 1 >> 1 (Material Stream) Property Editor Window.
Information >> General Info >> Object >> Feed |
Now click on the Material Stream named 1.
In this Object field under General Info section, rename 1 as Feed. |
| Click >> 2>> 2 (Material Stream) Property Editor Window.
Information >> General Info >> Object >> Vapor In this Object field under General Info section, rename 2 as Vapor. |
Now click on the Material Stream named 2.
Rename the stream 2 as Vapor. |
| Click >> 3 >> 3 (Material Stream) Property Editor Window.
In this Object field under General Info section, rename 3 as Liquid-1. |
Click on the Material Stream named 3.
Rename the stream 3 as Liquid-1. |
| Click >> 4 >> 4 (Material Stream) Property Editor Window.
In this Object field under General Info section, rename 4 as Liquid-2. |
Now click on the Material Stream named 4.
|
| Click >> V-1 >> V-1 (Gas-Liquid Separator) Property Editor Window
|
Now click on the Gas-Liquid Separator named V-1.
In this Object field under General section, rename V-1 as Decanter. |
| Now we will specify the Feed stream properties. | |
| Click on Feed.
Property editor window opens. |
Now click on the Feed.
Here, the property editor window opens. |
| Input Data >> Stream Condition >> Flash Spec>>
Temperature and Pressure (TP) |
Under Input Data, in Stream Conditions section, select Flash Spec as Temperature and Pressure (TP).
By default, Temperature and Pressure are already selected as Flash Spec. So let’s not change it. |
| Input Data >> Stream Condition >> Temperature >> 30 C
|
Change Temperature to 30 deg C and press Enter to accept the new value. |
| Input Data >> Stream Condition >> Pressure >> 1.2 bar
Press Enter |
Change Pressure to 1.2 bar and press Enter. |
| Point to Mass Flow Rate | Instead of the Overall Flow Rate, we have the individual flow rate of components.
So we will not specify anything here. |
| Click >> Compound Amounts
Basis >> Mass Flows Click Clear |
To specify the individual flow rate of components, click on Compound Amounts.
Choose the Basis as Mass Flows, if not already selected. Click on Clear to clear the default values. |
| Point to the Empty Table.
P-Xylene >> 5000 |
Now we will enter the Mass Flows for each compound.
Click on the first cell below Amount against Para xylene and enter 5000. Press Enter. |
| Water >> 1000 | For Water, type 1000 and press Enter. |
| Click >> Accept changes | On the right, click on Accept Changes button. |
| Click >> Stream Conditions
Point to Mass Flow |
Go back to Stream Conditions.
Mass Flow and Molar Flow are automatically calculated as per the entered flow rate of compounds. |
| Point to the Decanter.
Click Decanter. |
Now we click on the Decanter. |
| Decanter >> Property Editor Window. | The Decanter property editor window opens. |
| Highlight Calculation Parameters | Go to the section Calculation Parameters |
| Hover mouse at Calculation Mode
Calculation Mode >> Legacy |
The first field is Calculation Mode
Click on the drop-down against calculation mode and select Legacy |
| Highlight Outlet Pressure Calculation | Next is Outlet Pressure Calculation.
This is similar to specifying pressure for a mixer. Also, this is to be specified only when more than one feed stream enters the decanter. Since we have only one feed stream entering, we will not change anything here. |
| Point to Override Sep. Temperature
Check the check box on the left of Override Sep. Temperature Override Sep. Temperature >> 40 deg C |
Next is Override Separation Temperature.
This is to specify the operating temperature of the decanter. Check the checkbox against Override Separation Temperature. Click on the field against Override Separation Temperature and enter 40 deg celcius. |
| Point to Override Sep. Temperature
Check the check box on the left of Override Sep. Pressure Override Sep. Pressure >> 1.1 bar |
The next field is Override Separation Pressure.
This is to specify the operating pressure of the flash separator. Check the checkbox against Override Separation Pressure. Click on the field against Override Separation Pressure and enter 1.1 bar. |
| Click Solve | This completes the problem specification.
Click on the Solve button in the toolbar area. |
| Point to Messages at the bottom | Once the calculations are complete, we can see an error message at the bottom.
It says “Error in ‘Decanter’: The current calculation mode requires an Energy Stream to be connected to the Unit Operation.” This means that we have to connect an energy stream to the Decanter. |
| Click >> Create and Connect | To do this, click on the yellow icon next to the drop-down against Energy Stream.
It will automatically Create and Connect an Energy Stream to the Decanter. |
| Hover Mouse at E-1 | An energy stream named E-1 is created and connected to the Decanter. |
| Click Solve | Now, once again solve the flowsheet.
Click on the Solve button in the toolbar area. |
| Select Insert from the toolbar. | From the toolbar above select Insert. |
| Insert >> Master Property Table | Select Master Property Table. |
| Double click on Master Property Table | Double-click on the Master Property Table. |
| Point to Configure Master Property Table | Configure Master Property Table window opens. |
| Enter Name as Streamwise Results. | Now we enter the Name as Streamwise Results. |
| Object >> Feed, Vapor, Liquid-1 and Liquid-2 | Under Object check the checkboxes by selecting Feed, Vapor, Liquid-1 and Liquid-2. |
| Configure Master Property Table>> Property | Under Property, which is right beside the Object.
Now select the properties as: Temperature Pressure Mass Flow Molar Flow Molar Fraction (Vapor) Molar Fraction (Mixture) / P-xylene Molar Flow (Mixture) / P-xylene Molar Fraction (Mixture) / Water Molar Flow (Mixture) / Water |
| Close this window. | Close this window. |
| Place the cursor on the Decanter to see the table. | Move the Master Property Table for better visibility.
Here we can see the corresponding results for Decanter. |
| This brings us to the end of this tutorial. | |
| Slide
Number 6 Summary
|
Let's summarize. |
| Slide Number 7
Assignment |
As an assignment,
Simulate a Decanter with different conditions. |
| Slide Number 8
|
We invite you to participate in DWSIM Flowsheeting Project. |
| Slide Number 9
|
We invite you to migrate commercial simulator labs to DWSIM. |
| Slide Number 10
Acknowledgements |
The FOSSEE project is funded by NMEICT, Ministry of Education(MoE), Government of India. |
| Slide Number 11
|
We thank the DWSIM team for making it as an open source software.
Thank you for joining. |