Gas density

The density of a gas can be calculated using its molecular weight, pressure, and temperature as shown below:

\[\rho_{gas} = \frac{P \cdot MW}{R \cdot T}\]

Nomenclature

\(\rho_{gas}\) - Density of gas (kg/m³)
\(P\) - Pressure of the gas (Pa)
\(MW\) - Molecular weight of the gas (g/mol)
\(R\) - Gas constant as 8.3145 [(m³ Pa)/(K mol)]
\(T\) - Temperature of the gas (K)

Source code

chemics.gas_density.rhog(mw, p, tk)[source]

Calculate gas density from molecular weight, pressure, and temperature.

Parameters
  • mw (float) – Molecular weight of gas [g/mol]

  • p (float) – Pressure of the gas [Pa]

  • tk (float) – Temperature of the gas [K]

Returns

rho (float) – Density of gas [kg/m^3]

Examples

>>> rhog(28, 101325, 773)
0.4414