Would you please show me how to get two phase properties such as K value and surface tension from the Calculator interface of DWSIM standalone thermodynamic library (DTL).
I have only found how to get single phase properties from DTL examples.
BR,
Shao
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Unfortunately two phase properties are not exposed through the interface, but the K-value can be calculated indirectly by fugacity of mole fraction ratios.
I'll include an interface to the function to get two phase properties in the next revision, since they're already there.
Regards,
Daniel
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Fail to build using attached new DLL.(VS2010 example.cs)
Compiler error is as follows:
Cannot find the interop type that matches the embedded type 'CAPEOPEN110.ICapeThermoCalculationRoutine'. Are you missing an assembly reference?
There are 13 more similar errors. All associated with CapeOpen interfaces.
Is there something wrong with embedding CapeOpen COM component?
BR,
Shao
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
Would you please show me how to get two phase properties such as K value and surface tension from the Calculator interface of DWSIM standalone thermodynamic library (DTL).
I have only found how to get single phase properties from DTL examples.
BR,
Shao
Hi Shao,
Unfortunately two phase properties are not exposed through the interface, but the K-value can be calculated indirectly by fugacity of mole fraction ratios.
I'll include an interface to the function to get two phase properties in the next revision, since they're already there.
Regards,
Daniel
Hi Shao,
Please try this and let me know if it works.
Vapor phase should always be the first of the two, please. :-)
Fail to build using attached new DLL.(VS2010 example.cs)
Compiler error is as follows:
Cannot find the interop type that matches the embedded type 'CAPEOPEN110.ICapeThermoCalculationRoutine'. Are you missing an assembly reference?
There are 13 more similar errors. All associated with CapeOpen interfaces.
Is there something wrong with embedding CapeOpen COM component?
BR,
Shao
Hi shao,
try referencing this in your project while I fix the error: https://github.com/DanWBR/dwsim3/blob/master/DWSIM/References/Interop.CAPEOPEN110.dll?raw=true