Hello all ,
I am using ironpython in the custom unit operation to desing a simple abosrption column . I know that one already exists in dwsim. I am just designing this for learning purposes.
I have serached everywhere and cannot find a way to acess these values from the chemsep database.I need these values to calculate the k-values using the Wilson correlation .
I usually acess all other basic properties using the GetProp function.
I apologise for asking such a basic doubt but im quite helpless here.
Thank you.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This variable is just a placeholder for the calculated value when you force calculation of bubble and dew points for all streams in the flowsheet. It is a flash algorithm setting, checked during the call to DW_CalcEquilibrium.
Hello all ,
I am using ironpython in the custom unit operation to desing a simple abosrption column . I know that one already exists in dwsim. I am just designing this for learning purposes.
I have serached everywhere and cannot find a way to acess these values from the chemsep database.I need these values to calculate the k-values using the Wilson correlation .
I usually acess all other basic properties using the GetProp function.
I apologise for asking such a basic doubt but im quite helpless here.
Thank you.
Hi Charan,
You can get compound information from a material stream added to the flowsheet, i.e.
For the other properties, see: http://dwsim.inforside.com.br/api_help5/html/T_DWSIM_Thermodynamics_BaseClasses_ConstantProperties.htm
Regards
Daniel
Last edit: Daniel Medeiros 2018-06-04
Daniel ,
Thank you.
I used the following code to get the Bubble temperature
I always get a None as the output. Can u please tell me where am i making a mistake ?
This variable is just a placeholder for the calculated value when you force calculation of bubble and dew points for all streams in the flowsheet. It is a flash algorithm setting, checked during the call to DW_CalcEquilibrium.
See here for more details: https://github.com/DanWBR/dwsim5/blob/master/DWSIM.Thermodynamics/Base%20Classes/PropertyPackage.vb#L1443
See this for a sample on how to calculate the value directly: https://github.com/DanWBR/dwsim5/blob/master/DWSIM.UnitOperations/Unit%20Operations/Pump.vb#L698