I have to add another answer because I cannot comment on morristtu's reply...
IMO itIt is important to understand that the critical point of a pure substance is characterized by certain properties. For example, the first and second partial derivative of the pressure with respect to the molar volume at constant temperature vanish. Secondly, it is important to understand that the critical point given by an equation of state (EoS) is not necessarily the same point as determined by measurements.
To find the critical point of the Peng-Robinson equation of state(PR) EoS one can calculate the first and second partial derivative with respect to the molar volume, and look for a given volume/Temperaturetemperature pair where both partial derivatives vanish.
Doing so I found thatthis with a pure substance described by the Pengsolver for non-Robinson EOS haslinear equation systems (e.g. a Levenberg-Marquardt method) I found the same critical pressurepoint of CO2 to be close to $1.0T_c$ and temperature as the real pure substance$0.89\rho_c$, but that the critical molar volume is slightly off. My guess is that the Peng-Robinson EoS was constructed ingiving a way that it yields equal values for critical temperature and pressure at the expense of the$1.0p_c$, which yields a critical molar volumecompressibility of $Z_c=0.3074$.
To get good results I findrecommend the following points in morristtu's answer confusing:
- There is no reason for leaving the domain of real numbers,If you use iterative solvers be sure to check residuals and just taking the averageconvergence of the absolute values seems somewhat arbitrary to memethod.
- AtUse the critical point, there are only two phases (liquid, vapour)same constants and you cannot distinguish them. Three phases are only present at the triple point (solid, liquid, vapour).
- To me, the critical compressibility is no criterion to judge the quality of an EoS. More a means to classify itstate variables everywhere, as there are EoS's with constant or variable critical compressibilitythe solution is quite sensitive.