Replies: 3 comments 5 replies
-
|
Beta Was this translation helpful? Give feedback.
-
Hi @EvenSol Caleb Bell has made an implementation of COSTALD in his python chemicals package. chemicals.volume.COSTALD_mixture(xs, T, Tcs, Vcs, omegas), citing Hankinson, Risdon W., and George H. Thomson. “A New Correlation for Saturated Densities of Liquids and Their Mixtures.” AIChE Journal 25, no. 4 (1979): 653-663. doi:10.1002/aic.690250412. def V_char_pseudo(TC, Pc, Omega_SRK):
"""
The function calculates characteristic volume [m3/kmole] based on equation 3.-11.4 in
"the properties of gases and liquids" 4th ed. Ried, Prausnitz, Poling.
Aplicable for all hydrocarbons, std. error <1.98 %
Input: Critical temperature TC [K], critical pressure PC [bar], Omega_SRK [-]
"""
Gas_C = 8.31451 * 0.00001
V_Char_PSEUDO = TC * Gas_C / Pc * (0.2851686 - 0.0637911 * Omega_SRK + 0.01379173 * Omega_SRK**2) * 1000
return V_Char_PSEUDO I think the COSTALD method is also described in chapter 3-11 in "The properties of gases and liquids" 4th ed. Ried, Prausnitz, Poling. I have a copy and can send scans if needed. Another important thing is to do a fall-back volume calculation in case the conditions are above the critical point for which the COSTALD density is not defined. Also a high-pressure/compressed liquid version is available (also in chemicals package). I can send some naive python code for both the saturated and the compressed version. The interesting question is if the COSTALD liquid volume also shall be applied in case of liquid or two-phase volume-flash calculations (e.g. UV-flash) (I think an option to do this could be nice). |
Beta Was this translation helpful? Give feedback.
-
For #472 I am expecting a liquid density of 643 - 646 kg/m3 (the former being Unisim and the latter being DWSIM and in-house code). Using in-house python code I get 649 kg/m3. |
Beta Was this translation helpful? Give feedback.
-
Hi
I am fairly new to NeqSim, and couldn't find a discussion page under neqsim/python so here goes (btw thanks for this very cool and useful piece of software, I think this is a substantial contribution to the chemical engineering/process discipline):
Brds
Anders
Beta Was this translation helpful? Give feedback.
All reactions