Menu

CoolProp with DWSIM Script

ZckWzk
2017-12-11
2018-12-05
  • ZckWzk

    ZckWzk - 2017-12-11

    how can we call CoolProp function in Script ?
    let say i want to use
    PropSI() function.

    do i need to add
    new coolprop module ?

     
  • Daniel Medeiros

    Daniel Medeiros - 2017-12-11

    With the IronPython parser you can do the following:

    import clr
    clr.AddReference("DWSIM.Thermodynamics.CoolPropInterface")
    
    import CoolProp
    
    tcrit = CoolProp.Props1SI("Water", "TCRIT")
    
    print tcrit
    
     
  • ZckWzk

    ZckWzk - 2017-12-13

    thank it work.

    i have another question about coolprop.

    how can i use fluid in coolprop database like DowJ (that i cant find in compound list DWSIM ) as component in my flowsheet.?

     
  • ZckWzk

    ZckWzk - 2018-09-11

    what if the fluid is incompressible fluid that on this list
    http://www.coolprop.org/fluid_properties/Incompressibles.html

     
    • Daniel Medeiros

      Daniel Medeiros - 2018-09-11

      Unfortunately the incompressible fluid interface is not exposed to C#/VB as of the current CoolProp version.

       
  • Ja Eddouibi

    Ja Eddouibi - 2018-11-15

    Hi daniel,
    How we can use DWSIM thermodynamic package within python.net UO. I tried the example using cantera, it works perfectly. However when i use DWSIM.Thermodynamics (from DWSIM.Thermodynamics import *) it doesn't work properly and i can't get the outlet stream properties of the UO at equilibrium.

     
    • Daniel Medeiros

      Daniel Medeiros - 2018-12-05

      I would need a code sample to check what you've did wrong.

       
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.