Closed Darz2 closed 1 year ago
Well, p-x coordinates are only available for binary mixtures. You have a couple of options for p-x. One is just do a whole lot of bubble-point and dew point calculations and hope that the calculations all converge. The calculations are not reliable near critical points for instance.
Alternatively, you can use the isochoric tracing technique with this library in Python: https://github.com/usnistgov/isochoric .
Or you can convert all the fluid files to teqp format and use the nicer interface of teqp: https://teqp.readthedocs.io/en/latest/algorithms/VLE.html#Tracing-(isobars-and-isotherms)
It all comes down to how much work you want to do. And what more you need to do with the results.
Many Thanks!
Hi, I am using the REFRPROP 10 via python to calculate the phase diagram of the binary mixture, I was able to create the TP diagram using the code shown below:
1) This is how I loaded my REFPROP
2) Following that I used GERG 2008 model
3) I used the SATSPLNdll routine to calculate the phase diagram (TP) for a binary mixture
Likewise I did the same for other mixture and finally plotted them
Now, my question is how do I plot the pressure composition (p-x) diagram for the mixture, like the plot I get in the REFPROP GUI . Is there any specific routine to calculate the pressure and composition of the mixtures ?