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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
Hi Kevin,
You must provide "enthalpy" and "entropy" in mass basis (kJ/kg). Take a look at the API documentation for more details.
Thanks Daniel!
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.
Yes that's what I do for ckeck, thanks a lot!