Custom Unit Operation using Python - English
- subtitles off
- captions off
- English
- Questions posted on Forums
- DWSIM Tutorials - English
-
The DWSIM inbuilt functions
Hello,where can I find all the DWSIM inbuilt functions? such as Getphase, Getprop, Setprop, WriteMessage and ...secondly, in DWSIM Flowsheet, I make stream called feed which is ims1. ims1 includes multiple components. I want to extract mole fraction of every component by Getprop function:ims1.GetProp('fraction', 'Overall', Ethylene, '', 'mole')ims1.GetProp('fraction', 'Overall', Oxygen, '', 'mole') . .but an Error occurs! 28/12/2021 5:24:59 PMErrorUO-01: KeyNotFoundException : The given key was not present in the dictionary. at System.ThrowHelper.ThrowKeyNotFoundException() at System.Collections.Generic.Dictionary`2.get_Item(TKey key) at DWSIM.Thermodynamics.Streams.MaterialStream.GetProp(String property, String phase, Object compIds, String calcType, String basis) in C:\Users\Daniel\source\repos\DanWBR\dwsim6\DWSIM.Thermodynamics\Material Stream\MaterialStream.vb:line 3255What should I do?Regards+ Info
03-04M 10-20S Amirnmt
Answer last updated on: Aug. 27, 2021, 9:53 p.m.
-
Error while running flowsheet
After writing the Python script, the flowsheet is not working. It is showing error.
12-13M 0-10S 190020056
Answer last updated on: June 8, 2021, 6:57 p.m.
-
Flash Spec
Hello Sir/Ma'am,What are Flash Spec. calculations?How to select the variables that need to be passed to the flash spec calculations (eg. P and H were passed in the spoken tutorial)? Thanks in advance!
13-14M 20-30S Yashraj987
Answer last updated on: April 26, 2021, 11:04 a.m.
-
CAPE-OPEN Unit operation python
How do I create a CAPE OPEN based unit operation written in Python? Is there an example for Interface Reference, any example tutorial/project would be great. Thanks!
01-02M 0-10S alis
Answer last updated on: Oct. 13, 2020, 3:01 p.m.
-
1Creating a material stream in DWSIM
-
2Introduction to Flowsheeting
-
3Shortcut Distillation
-
4Rigorous Distillation
-
5Sensitivity Analysis and Adjust
-
6Plug Flow Reactor
-
7Continuous Stirred Tank Reactor
-
8Conversion Reactor
-
9Equilibrium Reactor
-
10Gibbs Reactor
-
11Heat Exchanger
-
12Shell and Tube Heat Exchanger
-
13Binary Phase Envelope
-
14Calculation of Bubble Points and Dew Points
-
15Chemsep Distillation Column
-
16Absorption Column
-
17Heterogeneous Catalytic Reaction
-
18Custom Unit Operation using Scilab
-
Custom Unit Operation using Python
-
20Creating Multiple Reactions set
Questions posted on ST Forums:
7901 visits
Outline:
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
Width: | 1114 | Height: | 704 |
---|---|---|---|
Duration: | 00:14:00 | Size: | 5.6 MB |
Show video info