Real gases do not perfectly obey the ideal gas laws, especially at high pressures and low temperatures or when they are about to condense to a liquid. These deviations occur due to intermolecular forces between gas molecules. Repulsive forces aid expansion and are significant when molecules are very close together, typically at high pressure. Attractive forces assist compression and have a longer range, being effective over several molecular diameters. They become significant when molecules are close but not necessarily in contact, and they diminish when the molecules are far apart.
At low pressures, where molecules are widely spaced and intermolecular interactions are minimal, gases behave nearly ideally. At moderate pressures, attractive forces exceed repulsive forces, making the gas more compressible than an ideal gas. At high pressures, repulsive forces dominate, causing the gas to be less compressible.
The compression factor, Z, is used to quantify the deviation of a real gas from ideal behavior. It's the ratio of the measured molar volume of a gas to the molar volume of an ideal gas at the same pressure and temperature. An ideal gas has Z = 1 at all pressures. Real gases have Z ≈ 1 at very low pressures, behaving nearly perfectly. At high pressures, Z > 1 due to dominant repulsive forces, and at intermediate pressures, most gases have Z < 1, indicating that attractive forces are reducing the molar volume relative to that of an ideal gas.
The ideal gas law (pVm = RT) is a good first approximation for real gases at high temperatures and large molar volumes. The virial equation of state refines this by adding terms for pressure variables. The compression factor, Z, and virial coefficients, which depend on temperature, measure deviations from ideal behavior. Although a real gas may align with the ideal gas behavior at low pressures, not all its properties necessarily coincide with those of an ideal gas. The Boyle temperature is where the real gas properties match the ideal gas as pressure approaches zero.
Gases behave almost ideally at low pressure and high temperature because their molecules remain far apart, making intermolecular attractions and repulsions negligible. Under these conditions, the gas closely follows the equation pVm = RT, where Vm is the molar volume of a gas.
However, real gases follow the van der Waals equation because they deviate from ideality at high pressures and low temperatures, where intermolecular forces and the volume occupied by the molecules become significant.
To quantify this deviation of gases from the ideal behavior, the compression factor, Z, is defined as the ratio of the molar volume of a real gas to that of an ideal gas under the same conditions.
For an ideal gas, Z equals one at all pressures. For real gases, Z approximates one at very low pressures, and exceeds one at high pressures, while Z is less than one for most gases at moderate pressures.
The virial equation of state refines the ideal gas law by adding terms for pressure variables.
It uses Z and temperature-dependent virial coefficients to measure deviations from ideal gas behavior.