Difference between revisions of "DWSIM"

From Script | Spoken-Tutorial
Jump to: navigation, search
(5 intermediate revisions by 2 users not shown)
Line 10: Line 10:
  
 
The Spoken Tutorial Effort for DWSIM was contributed by Prof Kannan Moudgalya from the Spoken Tutorial Project and is supported by Rahul Jain, Kaushik Datta and Pravin Dalve from IIT Bombay.
 
The Spoken Tutorial Effort for DWSIM was contributed by Prof Kannan Moudgalya from the Spoken Tutorial Project and is supported by Rahul Jain, Kaushik Datta and Pravin Dalve from IIT Bombay.
 +
 +
'''Learners''' : UG/PG Chemical Engineering students to run the simulations and get a better understanding on a phenomenon.
  
  
Line 135: Line 137:
 
* Using Master Property Table
 
* Using Master Property Table
  
9. '''Heat Exchanger'''
+
9. '''Conversion Reactor'''
 +
 
 +
* Selecting chemical components and thermodynamics
 +
* Adding material and Energy streams to the flowsheet
 +
* Defining the properties of the streams
 +
* Using Reactions Manager
 +
* Defining Conversion reaction
 +
* Using Include, Base Component (BC)
 +
* Adding stoichiometric coefficients
 +
* Defining Conversion Reactions Parameters
 +
* Adding conversion reactor to the flowsheet
 +
* Defining conversion as percentage
 +
* Defining conversion as a function of temperature
 +
* Connecting feed, product, energy streams to the reactor
 +
* Defining Calculation mode and Reactor parameters
 +
 
 +
10. '''Equilibrium Reactor'''
 +
 
 +
* Selecting chemical components and thermodynamics
 +
* Adding Material and Energy streams to the flowsheet
 +
* Defining the properties of the streams
 +
* Using Reactions Manager
 +
* Defining Equilibrium Reaction
 +
* Using Include, Base Component (BC)
 +
* Adding stoichiometric coefficients
 +
* Defining Equilibrium Reactions Parameters and  Equilibrium Constant
 +
* Adding Equilibrium reactor to the flowsheet
 +
* Connecting Feed, Product, Energy streams to the reactor
 +
* Defining Calculation mode and Reactor Temperature
 +
 
 +
11. '''Gibbs Reactor'''
 +
 
 +
* Adding Gibbs reactor to the flowsheet
 +
* Connecting Feed, Product, Energy stream to the reactor
 +
* Defining the properties of the streams
 +
* Defining different Minimization Methods
 +
* Defining Calculation mode and Reactor Temperature
 +
* Adding Element Matrix
 +
* Comparing the results of Gibbs Reactor with Equilibrium reactor
 +
 
 +
12. '''Heat Exchanger'''
  
 
* Adding chemical components
 
* Adding chemical components
Line 152: Line 194:
 
* Defining Heat Exchanger properties
 
* Defining Heat Exchanger properties
  
10. '''Shell and Tube Heat Exchanger'''
+
13. '''Shell and Tube Heat Exchanger'''
  
 
* Selecting chemical components
 
* Selecting chemical components
Line 167: Line 209:
 
* Defining object and heat exchanger properties
 
* Defining object and heat exchanger properties
  
11. '''Binary Phase Envelope'''
+
14. '''Binary Phase Envelope'''
  
 
* Selecting chemical components and thermodynamics
 
* Selecting chemical components and thermodynamics
Line 180: Line 222:
 
* Checking Bubble Point and Dew Point Pressure
 
* Checking Bubble Point and Dew Point Pressure
  
12. '''Calculation of Bubble Points and Dew Points'''
+
15. '''Calculation of Bubble Points and Dew Points'''
  
 
* Selecting chemical components and thermodynamics
 
* Selecting chemical components and thermodynamics
Line 190: Line 232:
 
* Checking the correctness of bubble point temperature
 
* Checking the correctness of bubble point temperature
  
13. '''Absorption Column'''
+
16. '''Absorption Column'''
  
 
* Selecting chemical components and thermodynamics
 
* Selecting chemical components and thermodynamics
Line 205: Line 247:
 
* Explaining Flowsheet Object Appearance
 
* Explaining Flowsheet Object Appearance
 
* Using Master Property Table
 
* Using Master Property Table
 +
 +
17. '''Custom Unit Operation using Python'''
 +
 +
* Selecting chemical components and thermodynamics
 +
* Adding Material streams to the flowsheet
 +
* Defining the properties of the streams
 +
* Introducing Python script in the flowsheet
 +
* Introducing GetProp and SetProp function
 +
* Defining mass flow and mole flow of the compounds
 +
* Defining out.PropertyPackage.DW_CalcEquilibrium function
 +
* Defining PropertyPackages.FlashSpec function
 +
* Calculating outlet pressure of the product stream
 +
* Calculating mass and molar flow rates of product stream
 +
* Calculating enthalpy of product stream
 +
 +
18. '''Custom Unit Operation using Scilab'''
 +
 +
* Selecting chemical components and thermodynamics
 +
* Adding Material streams to the flowsheet
 +
* Defining the properties of the streams
 +
* Introducing Scilab CAPE-OPEN Unit Operation
 +
* Defining molar flow rates of the compounds
 +
* Defining molar enthalpy of the compounds
 +
* Defining pressures of the compounds
 +
* Calculating outlet pressure of the product stream
 +
* Calculating molar flow rates of product stream
 +
* Calculating molar enthalpy of product stream
 +
 +
19. '''Heterogeneous Catalytic Reaction'''
 +
 +
* Selecting chemical components and thermodynamics
 +
* Adding Material and Energy stream to the flowsheet
 +
* Defining the properties of the streams
 +
* Using Simulation Settings option
 +
* Introducing Heterogeneous Catalytic Reaction
 +
* Defining Reaction Rate
 +
* Adding Plug flow reactor to the flowsheet
 +
* Connecting feed, product, energy streams to the reactor
 +
* Defining Calculation mode and Reactor parameters
 +
* Defining Numerator and Denominator field
 +
* Defining Amount and Velocity Unit
 +
* Defining Catalyst Loading and Particle Diameter
 +
* Calculating Residence time and Conversions

Revision as of 12:21, 15 November 2019

DWSIM is an open-source CAPE-OPEN compliant chemical process simulator. It is available for Windows, Linux and Mac OS.

It allows us to conduct experiments and analyze data using advanced models and operations.The simulator allows chemical engineering students and chemical engineers to run the simulations and get a better understanding on a phenomenon.

It has built-in thermodynamic models and unit operations as well as a large range of tools for managing reactions or creating components.Some popular property packages are also available, such as Peng-Robinson, NRTL, UNIQUAC, Raoult's law, Lee-Kesler etc.

DWSIM enables us to manage the material streams and design a schematic representation of the entire mechanism with the help of object palette. It features customizable parameters for each item and PH calculation for all the compounds. It also allow us to view the properties of the pure component, calculate the critical point, perform hydrate calculations, as well as conduct the sensitivity analysis and multi-variate optimizations.

DWSIM is capable of generating distillation curves petroleum characterizations and helps us to create new compounds that can be used in experiments, along with the existing ones. Also, it can be used for performing data regression studies for two compounds using various thermodynamics models and methods, generating conclusive graphs.

The Spoken Tutorial Effort for DWSIM was contributed by Prof Kannan Moudgalya from the Spoken Tutorial Project and is supported by Rahul Jain, Kaushik Datta and Pravin Dalve from IIT Bombay.

Learners : UG/PG Chemical Engineering students to run the simulations and get a better understanding on a phenomenon.


Contents


Basic Level

1. Overview of DWSIM

  • Introduction to simulation and examples
  • What is DWSIM
  • Installation of DWSIM on Windows 7
  • Benefits of DWSIM
  • Help facility of DWSIM through F1
  • Spoken Tutorials available on DWSIM
  • Timed discussion forum of Spoken Tutorials
  • Discussion forum of FOSSEE
  • Textbook companions for DWSIM
  • Lab migration for DWSIM
  • Help documents that come with DWSIM
  • Discussion forum by the international DWSIM community
  • Wiki page for tutorials on DWSIM

2. Creating a material stream in DWSIM

  • Brief introduction to DWSIM GUI
  • Configuring simulation
  • Selecting chemical components
  • Selecting thermodynamics
  • Adding a stream to the flowsheet
  • Defining the properties of a stream
  • Choosing the units
  • Properties and appearance tab

3. Introduction to Flowsheeting

  • Build a small flowsheet
  • Adding mixer to the flowsheet
  • Adding streams
  • Connecting material streams
  • Defining single phase and two phase streams
  • Assigning stream properties
  • Carrying out material balance calculations
  • Adding a flash vessel to the flowsheet
  • Repeating all of the above with flash vessel
  • Connecting an energy stream
  • Verifying the results of calculations
  • Saving the results to a file

4. Shorcut Distillation

  • Defining default units for variables using Units System
  • Adding short cut distillation column to the flowsheet
  • Connecting feed, output, energy streams to the column
  • Specifying condenser type
  • Specifying condenser and reboiler pressure
  • Specifying desired product composition through key values
  • Specifying a guess value of reflux ratio
  • Simulate a short cut distillation column
  • Minimum and actual number of stages
  • Minimum reflux ratio
  • Optimal feed tray location

5. Rigorous Distillation

  • Distillation column widget
  • Making use of results of shortcut distillation
  • Connecting flow and energy streams
  • Convention of DWSIM in including condenser and reboiler as stages
  • Assigning linear interpolated pressure profiles
  • Assigning pressure when new stages are added
  • Assigning individual stage pressure
  • Assigning individual stage efficiency
  • Assigning condenser and reboiler pressure, pressure drops, and type
  • Selecting solution method for rigorous distillation
  • Checking column profiles as graphs and Tables

6. Sensitivity Analysis and Adjust

  • Increasing the purity of distillate
  • Independent variable in sensitivity analysis
  • Dependent variable in sensitivity analysis
  • Narrowing down the search region
  • Graphical display of sensitivity analysis results
  • Verification of results of sensitivity analysis
  • Multiple dependent variables in sensitivity analysis
  • Manipulated variable in adjust
  • Controlled variable in adjust
  • Pushing the envelope through adjust

7. Plug Flow Reactor

  • Using Configuring simulation Wizard window
  • Adding chemical components
  • Adding Property Packages and Flash Algorithm
  • Adding System of Units
  • Adding a material stream to the flowsheet
  • Defining the properties of the stream
  • Using Reactions Manager
  • Defining Kinetic reaction
  • Using Include, BC, DO, RO
  • Adding stoichiometric coefficients
  • Setting Kinetic Reactions Parameters
  • Defining reaction order
  • Adding Plug flow reactor to the flowsheet
  • Adding material and energy stream to the flowsheet
  • Connecting feed, product, energy streams to the reactor
  • Defining Calculation mode and Reactor parameters
  • Using Solve Flowsheet button
  • Using Master Property Table
  • Defining object and property

8. Continuous Stirred Tank Reactor

  • Adding chemical components
  • Adding Property Packages and Flash Algorithm
  • Adding System of Units
  • Adding material and energy stream to the flowsheet
  • Using Reactions Manager
  • Adding CSTR to the flowsheet
  • Connecting feed, product, energy streams to the reactor
  • Defining Calculation mode and Reactor parameters
  • Using Master Property Table

9. Conversion Reactor

  • Selecting chemical components and thermodynamics
  • Adding material and Energy streams to the flowsheet
  • Defining the properties of the streams
  • Using Reactions Manager
  • Defining Conversion reaction
  • Using Include, Base Component (BC)
  • Adding stoichiometric coefficients
  • Defining Conversion Reactions Parameters
  • Adding conversion reactor to the flowsheet
  • Defining conversion as percentage
  • Defining conversion as a function of temperature
  • Connecting feed, product, energy streams to the reactor
  • Defining Calculation mode and Reactor parameters

10. Equilibrium Reactor

  • Selecting chemical components and thermodynamics
  • Adding Material and Energy streams to the flowsheet
  • Defining the properties of the streams
  • Using Reactions Manager
  • Defining Equilibrium Reaction
  • Using Include, Base Component (BC)
  • Adding stoichiometric coefficients
  • Defining Equilibrium Reactions Parameters and Equilibrium Constant
  • Adding Equilibrium reactor to the flowsheet
  • Connecting Feed, Product, Energy streams to the reactor
  • Defining Calculation mode and Reactor Temperature

11. Gibbs Reactor

  • Adding Gibbs reactor to the flowsheet
  • Connecting Feed, Product, Energy stream to the reactor
  • Defining the properties of the streams
  • Defining different Minimization Methods
  • Defining Calculation mode and Reactor Temperature
  • Adding Element Matrix
  • Comparing the results of Gibbs Reactor with Equilibrium reactor

12. Heat Exchanger

  • Adding chemical components
  • Adding Property Packages and Flash Algorithm
  • Adding System of Units
  • Adding material streams to the flowsheet
  • Defining the properties of the streams
  • Adding Heat Exchanger to the flowsheet
  • Connecting inlet and outlet streams to the Exchanger
  • Defining Calculation Type and Flow Direction
  • Defining Cold and Hot Fluid Pressure Drop
  • Defining Overall Heat Transfer Coefficient
  • Defining Heat Exchanged Area
  • Using Master Property Table
  • Defining object and property
  • Defining Heat Exchanger properties

13. Shell and Tube Heat Exchanger

  • Selecting chemical components
  • Selecting thermodynamics
  • Adding material streams to the flowsheet
  • Defining the properties of the streams
  • Adding heat exchanger to the flowsheet
  • Connecting inlet and outlet streams to the exchanger
  • Defining calculation type and flow direction
  • Defining cold and hot fluid pressure drop
  • Changing the shell side configurations
  • Changing the tube side configurations
  • Using master property table
  • Defining object and heat exchanger properties

14. Binary Phase Envelope

  • Selecting chemical components and thermodynamics
  • Adding material stream to the flowsheet
  • Defining the properties of the streams
  • Adding Utilities to the flowsheet
  • Introducing Binary Phase Envelope Utility
  • Generating Txy, xy, Pxy plot
  • Introducing Bubble Point and Dew Point curve
  • Introducing Equilibrium Curve
  • Checking Bubble Point and Dew Point temperature
  • Checking Bubble Point and Dew Point Pressure

15. Calculation of Bubble Points and Dew Points

  • Selecting chemical components and thermodynamics
  • Adding material streams to the flowsheet
  • Defining the properties of the streams
  • Adding Utilities to the flowsheet
  • Introducing Phase Envelope Utility
  • Generating the bubble and dew points
  • Checking the correctness of bubble point temperature

16. Absorption Column

  • Selecting chemical components and thermodynamics
  • Adding material streams to the flowsheet
  • Defining the properties of the streams
  • Adding CAPE-OPEN Unit Operation to the flowsheet
  • Specifying CAPE-OPEN Object Editor
  • Specifying operation, stages
  • Specifying pressure and thermo
  • Specifying ChemSep column properties
  • Connecting inlet feed streams and outlet streams
  • Specifying K-value and Equation of state
  • Selecting solution Method
  • Explaining Flowsheet Object Appearance
  • Using Master Property Table

17. Custom Unit Operation using Python

  • Selecting chemical components and thermodynamics
  • Adding Material streams to the flowsheet
  • Defining the properties of the streams
  • Introducing Python script in the flowsheet
  • Introducing GetProp and SetProp function
  • Defining mass flow and mole flow of the compounds
  • Defining out.PropertyPackage.DW_CalcEquilibrium function
  • Defining PropertyPackages.FlashSpec function
  • Calculating outlet pressure of the product stream
  • Calculating mass and molar flow rates of product stream
  • Calculating enthalpy of product stream

18. Custom Unit Operation using Scilab

  • Selecting chemical components and thermodynamics
  • Adding Material streams to the flowsheet
  • Defining the properties of the streams
  • Introducing Scilab CAPE-OPEN Unit Operation
  • Defining molar flow rates of the compounds
  • Defining molar enthalpy of the compounds
  • Defining pressures of the compounds
  • Calculating outlet pressure of the product stream
  • Calculating molar flow rates of product stream
  • Calculating molar enthalpy of product stream

19. Heterogeneous Catalytic Reaction

  • Selecting chemical components and thermodynamics
  • Adding Material and Energy stream to the flowsheet
  • Defining the properties of the streams
  • Using Simulation Settings option
  • Introducing Heterogeneous Catalytic Reaction
  • Defining Reaction Rate
  • Adding Plug flow reactor to the flowsheet
  • Connecting feed, product, energy streams to the reactor
  • Defining Calculation mode and Reactor parameters
  • Defining Numerator and Denominator field
  • Defining Amount and Velocity Unit
  • Defining Catalyst Loading and Particle Diameter
  • Calculating Residence time and Conversions

Contributors and Content Editors

Kaushik Datta, Nancyvarkey, PoojaMoolya