Compressibility factor is deviation from ideal gas ================================================== The **compressibility factor** (also called the **compression factor** or **gas deviation factor**) quantifies how far a real gas departs from ideal-gas behaviour. **Notation:** #. :math:`R` (:code:`R`) is :attr:`~symplyphysics.quantities.molar_gas_constant`. **Conditions:** #. The gas sample is at thermodynamic equilibrium. **Notes:** #. Can be equivalently defined as the ratio of the molar volume :math:`V/n` of the real gas to the molar volume :math:`RT/\rho` of the corresponding ideal gas at the same temperature and pressure. #. :math:`Z = 1` corresponds to ideal-gas behaviour. #. At high pressures repulsive interactions dominate, giving :math:`Z > 1`. #. At low pressures attractive interactions dominate, giving :math:`Z < 1`. **Links:** #. `Wikipedia – Compressibility factor `__ .. py:currentmodule:: symplyphysics.thermodynamics.equations_of_state.compressibility_factor.compressibility_factor_is_deviation_from_ideal_gas .. py:data:: compressibility_factor :attr:`~symplyphysics.symbols.thermodynamics.compressibility_factor` of the real gas. Symbol: :code:`Z` Latex: :math:`Z` Dimension: :code:`dimensionless` .. py:data:: pressure :attr:`~symplyphysics.symbols.classical_mechanics.pressure` of the gas. Symbol: :code:`p` Latex: :math:`p` Dimension: :code:`pressure` .. py:data:: volume :attr:`~symplyphysics.symbols.classical_mechanics.volume` of the gas. Symbol: :code:`V` Latex: :math:`V` Dimension: :code:`volume` .. py:data:: amount_of_substance :attr:`~symplyphysics.symbols.chemistry.amount_of_substance` of the gas. Symbol: :code:`n` Latex: :math:`n` Dimension: :code:`amount_of_substance` .. py:data:: temperature :attr:`~symplyphysics.symbols.thermodynamics.temperature` of the gas. Symbol: :code:`T` Latex: :math:`T` Dimension: :code:`temperature` .. py:data:: law :code:`Z = p * V / (n * R * T)` Latex: .. math:: Z = \frac{p V}{n R T}