The density of a gas can be calculated using its molecular weight, pressure, and temperature as shown below:
rhog(mw, p, tk)¶
Calculate gas density from molecular weight, pressure, and temperature.
mw (float) – Molecular weight of gas [g/mol]
p (float) – Pressure of the gas [Pa]
tk (float) – Temperature of the gas [K]
rho (float) – Density of gas [kg/m^3]
>>> rhog(28, 101325, 773) 0.4414