usnistgov / REFPROP-wrappers

Wrappers around NIST REFPROP for languages such as Python, MATLAB, etc.
195 stars 127 forks source link

Python two phase properties for pure and mixtures #593

Closed omarbay closed 6 months ago

omarbay commented 7 months ago

Description

I am connecting Python to NIST Refporp through your wrapper and getting props out into a csv, I managed to get the properties, however I need the function that gets properties for both liquid and vapor when the is between 0 and 1. Attached below also other properties like viscosity, etc.

image_2024-05-01_143053269

REFPROP Version: [10]
Operating System and Version: [Windows 11]
Access Method: [How you are accessing REFPROP (i.e. Python, PyCharm)]

ianhbell commented 7 months ago

Take a look here: https://refprop-docs.readthedocs.io/en/latest/DLL/high_level.html#f/_/REFPROPdll . Basically the suffix LIQ will give you the liquid phase value and VAP the vapor phase when the inputs are two-phase, so DLIQ;DVAP would be the co-existing densities