-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fit VL-coexistence curve from experimental data #23
Comments
Dear Greg, Do you want to plot and work with that data? If so, you can use If you also want to model that same data with an equation of state, you can use If you use an equation of state, the interpolation is done as you would need to compute the saturation property at the desired condition. I hope that helps, |
Scipy does a pretty terrible job since I only have points in vapor and liquid. I did try following those examples but I wanted more specifics on how to plot a T-Density curve after fitting an EOS adjusted to my experimental data. I know "flash" objects have this functionality. |
Hi Gregory, In cell 7 of this notebook shows how to compute the saturation pressure and saturation densities of a pure component. From there, you can plot the T-density plot you want. Just as a clarification, the flash calculation in phasepy is exclusive of mixtures, and from what I understood, you have a pure fluid. Gustavo |
I have some experimental data of water with these columns
Index(['T_K', 'dens_vap', 'dens_uncertainty', 'dens_liq', 'dens_liq_uncertainty', 'psat', 'psat_uncertainty', 'lnzsat', 'lnzsat_uncertainty']
How would I generate a VL-coexistence curve, plot it, and be able to interpolate at points on the curve
Thanks,
Greg
The text was updated successfully, but these errors were encountered: