Worked example
Example: Ammonia vapour 353.15 K 41.352 bar, PR (Perry's example). The inputs, in the units selected above:
| Input | Value |
|---|---|
| Temperature | 80.000 °C |
| Pressure (absolute) | 41.352 bar |
| Critical temperature | 132.50 °C |
| Critical pressure | 112.80 bar |
| Acentric factor | 0.25261 - |
| Molar mass | 17.031 kg/kmol |
| Equation of state | Peng–Robinson |
| Phase root | Vapour (largest root) |
Applying the formula below gives:
| Result | Value |
|---|---|
| Compressibility factor | 0.74445 |
| Molar volume | 528.60 cm³/mol |
| Density | 32.219 kg/m³ |
| Fugacity coefficient | 0.79489 |
| Fugacity | 32.870 bar |
| Number of physical roots (Z > B) | 3.0000 |
Open this example in the calculator and change any input.
Formula
\(Z^3 - (1 - B)Z^2 + (A - 3B^2 - 2B)Z - (AB - B^2 - B^3) = 0\ \text{(PR)}, \quad A = \frac{ap}{R^2T^2}, \quad B = \frac{bp}{RT}\)
\(a = 0.45724\frac{R^2T_c^2}{p_c}\left[1 + \kappa(1 - \sqrt{T_r})\right]^2, \quad b = 0.07780\frac{RT_c}{p_c}, \quad \kappa = 0.37464 + 1.54226\omega - 0.26992\omega^2\)
\(\ln\phi = Z - 1 - \ln(Z - B) - \frac{A}{2\sqrt2 B}\ln\frac{Z + (1 + \sqrt2)B}{Z + (1 - \sqrt2)B}\ \text{(PR)}\)
\(Z^3 - Z^2 + (A - B - B^2)Z - AB = 0, \quad a = 0.42748\frac{R^2T_c^2}{p_c}\alpha, \quad b = 0.08664\frac{RT_c}{p_c}, \quad \kappa = 0.480 + 1.574\omega - 0.176\omega^2\ \text{(SRK)}\)
\(\ln\phi = Z - 1 - \ln(Z - B) - \frac{A}{B}\ln\left(1 + \frac{B}{Z}\right)\ \text{(SRK)}, \quad f = \phi p\)
Variables
| Symbol | Meaning | SI unit |
|---|---|---|
| \(T\) | Temperature | K |
| \(p\) | Pressure | Pa |
| \(T_c\) | Critical temperature | K |
| \(p_c\) | Critical pressure | Pa |
| \(\omega\) | Acentric factor | - |
| \(M\) | Molar mass | kg/kmol |
| \(\text{EoS}\) | Equation of state | - |
| \(\text{root}\) | Phase root | - |
| \(Z\) | Compressibility factor | - |
| \(V\) | Molar volume | m³/mol |
| \(\rho\) | Density | kg/m³ |
| \(\phi\) | Fugacity coefficient | - |
| \(f\) | Fugacity | Pa |
| \(n_r\) | Number of real roots | - |
Method and standards
Cubic equation solved analytically; fugacity coefficient from the standard closed forms.
Where it is used
- Gas density and compressibility at pressure.
- Flash and VLE starting points.
Common mistakes
- Using for polar liquids without care.
- Picking the wrong root.
Assumptions and limits
- Pure component; classical mixing rules not included.
- Only roots with Z > B are physical and counted. When vapour and liquid roots both exist, the chosen root is returned and a note says which phase has the lower fugacity (the stable one).
References
- Perry's Chemical Engineers' Handbook
- 9th ed. (McGraw-Hill, 2019)
- sec. 2
- Eq. (2-70) and Table 2-172 (cubic equations of state) and the ammonia worked example
Questions and answers
Which is better, PR or SRK?
Perry's: Peng–Robinson is better tuned to liquid densities, SRK to vapour–liquid equilibrium and vapour densities.
What does Perry's ammonia example give?
At 353.15 K and 41.35 bar, PR gives 5.29 × 10⁻⁴ m³/mol for the vapour and 3.91 × 10⁻⁵ for the liquid.
What is fugacity?
The pressure corrected for non-ideality; phases are in equilibrium when their fugacities are equal.
How accurate are liquid densities?
Often 10–20 % low; use the Rackett equation for saturated liquids.
Method and article reviewed by FireCAD engineering on 13 November 2026. Every result is checked against an independent calculation on each release: how we verify our calculators.