Menu

Programming with DTL in LabVIEW

2015-08-10
2015-08-19
  • Kevin Herrera Laya

    Hello

    I'm programming with DWSIM Thermodynamics Library Standalone in LabVIEW and I want to know how to use PH and PS methods to solve flashes. I mean, what enthalpy or entropy I have to provide (enthalpy, enthalpyF, enthalpyNF)? and what basis needs, molar or mass?

    I already "translate" the example in the link (https://github.com/DanWBR/DTL) to LabVIEW language and I use the PTFlash method, that one run perfectly but I do not know how to use other methods of flashes.

    If anyone can help me, thank you very much.

    Kevin Herrera Laya
    Engineer Projects.

     

    Last edit: Kevin Herrera Laya 2015-08-10
  • Daniel Medeiros

    Daniel Medeiros - 2015-08-10

    Hi Kevin,

    You must provide "enthalpy" and "entropy" in mass basis (kJ/kg). Take a look at the API documentation for more details.

     
  • Kevin Herrera Laya

    Thanks Daniel!

     
  • Daniel Medeiros

    Daniel Medeiros - 2015-08-16

    Hi Kevin,

    A quick way to check if you're passing enthalpy in the correct basis is to do a PT flash, calculate mixture enthalpy and then send the value to the PH flash routine. The resulting temperature must be the same as the one in the initial PT flash.

     
    • Kevin Herrera Laya

      Yes that's what I do for ckeck, thanks a lot!

       

Log in to post a comment.