Menu

How to get two phase properties by DTL function call?

shao wen
2013-08-30
2013-09-10
  • shao wen

    shao wen - 2013-08-30

    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

     
  • Daniel Medeiros

    Daniel Medeiros - 2013-09-01

    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

     
  • Daniel Medeiros

    Daniel Medeiros - 2013-09-01

    Hi Shao,

    Please try this and let me know if it works.

     
  • Daniel Medeiros

    Daniel Medeiros - 2013-09-01

    Vapor phase should always be the first of the two, please. :-)

     
    • shao wen

      shao wen - 2013-09-04

      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

       

Log in to post a comment.