Introduction
Different methods exist to account for the intermolecular forces and the volume the gas molecules occupy. Unfortunately, each method has its own limitations, and there is no single model that can be universally used to model real gas methods. Poling 2000 provides a summary of the different methods available to approximate real gas dynamics.
The following equation describes a cubic analytic equation of state for the compressibility factor, , to compute the specific volume as a function of pressure and temperature:
where
You can solve the compressibility factor equation as a function of pressure and temperature only:
where
Finally, the following equation expresses the compressibility factor as a simple cubic equation, and you can compute its roots (as described in Spiegel 2018):
The following equation shows how you can compute the thermodynamic derivatives from the generic cubic equations:
where the coefficients are:
The derivatives of the cubic coefficients are:
The app computes the derivatives with respect to temperature the same way, by replacing with . The app then computes the derivatives of the coefficients by deriving the previous equation with respect to and .
Calculation of Enthalpy Heat Capacities and Speed of Sound
Using the departure functions and the compressibility equation, you can obtain the enthalpy and the specific heat at constant pressure as follows:
These equations are valid only for the generic cubic compressibility equation, and you cannot use them if the compressibility equation differs from the generic form presented here.
The app obtains the specific heat at constant volume from the and thermodynamic derivatives:
You can then obtain the speed of sound as follows: