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
After writing the Python script, the flowsheet is not working. It is showing error.
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!
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!
6847 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
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
Show video info
Pre-requisite