Average square speed in Maxwell—Boltzmann statistics
====================================================

For an ideal gas, the average square of speed is directly proportional to its temperature
and inversely proportional to the mass of the gas.

**Notation:**

#. :math:`k_\text{B}` (:code:`k_B`) is :attr:`~symplyphysics.quantities.boltzmann_constant`.

**Conditions:**

#. The gas is in thermal equilibrium with the environment.
#. The gas particles are distributed according to Maxwell—Boltzmann statistics.

**Links:**

#. `Wikipedia <https://en.wikipedia.org/wiki/Maxwell%E2%80%93Boltzmann_distribution#Typical_speeds>`__.

.. py:currentmodule:: symplyphysics.laws.thermodynamics.average_square_speed_in_maxwell_boltzmann_statistics

.. py:data:: average_square_speed

    Average square of the :attr:`~symplyphysics.symbols.classical_mechanics.speed` of gas molecules.

Symbol:
    :code:`avg(v^2)`

Latex:
    :math:`\langle v^{2} \rangle`

Dimension:
    :code:`velocity**2`


.. py:data:: equilibrium_temperature

    Equilibrium :attr:`~symplyphysics.symbols.thermodynamics.temperature` of the gas.

Symbol:
    :code:`T`

Latex:
    :math:`T`

Dimension:
    :code:`temperature`


.. py:data:: molecular_mass

    :attr:`~symplyphysics.symbols.basic.mass` of a gas molecule.

Symbol:
    :code:`m`

Latex:
    :math:`m`

Dimension:
    :code:`mass`


.. py:data:: law

    :code:`avg(v^2) = 3 * k_B * T / m`


    Latex:
        .. math::
            \langle v^{2} \rangle = \frac{3 k_\text{B} T}{m}