Beruflich Dokumente
Kultur Dokumente
+ 2
=
0.07780
0.45724
=
[1 + 1 . ]
= 0.37464 + 1.54226 0.26992
where Pc, Tc are the critical pressure and temperature, w is the acentric factor and Tr is the reduced
temperature = T/Tc.
(c) Subroutine for computing the constants of the cubic equation in Z, the compressibility factor =
PV/RT given a, b of the PR equation of state
(d) A subroutine for computing the saturated pressure at the given temperature using the
appropriate correlation
(e) A main program that reads the values of temperature and pressure and solves the cubic
equation (in Z) to get the roots for the compressibility factor and hence compute the specific
volume. The main program should also determine the state and print out the state, and specific
volume, saturated liquid and saturated vapour volume (along with units)
Note: Be careful of the units. Make sure the units for R are consistent with the units of Pc, Tc, P and T.
Use your program to print out the specific volume of any compound you choose for a range of pressures
and a range of temperatures for each pressure.