play phryzby with physics

An Unknown Gas Weighed by Its Density

solved IdealGas

Q. The density of an unknown gas at 97 °CT=97°C and 0.95 atmP=0.95atm is 2.5 g/litreρ=2.5g/litre. Assuming the gas to be an ideal one, the molecular weight of this gas should be nearly, in g/mol?

gasP = 96259 PaV = 1×10⁻³ m³T = 370 KnM = ?ρ = 2.5 kg/m³
Inputs
T
97 °C
P
0.95 atm
ρ
2.5 g/litre
Outputs
molar massM?

How it's solved

Solved with IdealGas

Given

  • T=97°C
  • P=0.95atm
  • ρ=2.5g/litre

Assumed

  • V=1L

Find M.

Working
  1. T=97°C=370.15K
  2. P=0.95atm=96258.75Pa
  3. ρ=2.5g/litre=2.5kg/m³
  4. V=1L=0.001m³
  5. ideal gas law(gas)P⋅V=n⋅R⋅T
  6. 96258.75⋅0.001=n⋅8.31446262⋅370.15
  7. n=0.0312772297mol
  8. density of a gas(gas)ρ=n⋅MV
  9. 2.5=0.0312772297⋅M0.001
  10. M=79.93g/mol
  11. M=0.0799303528kg/mol=79.9303528g/mol
  12. M≈80g/molto 2 significant figures
Conclusion

A litre of any ideal gas at this temperature and pressure holds the same number of moles, so its mass over that number of moles is the molar mass; 97 °C is 370 K on the absolute scale the gas law needs.

The web of concepts

given read from the words equation asked

The Ruby that solves it

The question and its solution are small Ruby files. The engine runs them.

question.rb
1require_relative "../physics"23question :an_unknown_gas_weighed_by_its_density do4  kind :numerical5  describes "The density of an unknown gas at %{temperature} and %{pressure} is %{density}. Assuming the gas to be " \6            "an ideal one, %{molar_mass}, in g/mol?"7  given temperature: "97 °C"8  given pressure: "0.95 atm"9  given density: "2.5 g/litre"10  asks molar_mass: "the molecular weight of this gas should be nearly"11end
solution.rb
1require_relative "../questions/an_unknown_gas_weighed_by_its_density"2require_relative "../science/kinetic_theory/ideal_gas"34solve :an_unknown_gas_weighed_by_its_density, using: IdealGas do5  objects :gas67  take temperature: gas.temperature, pressure: gas.pressure, density: gas.density89  assume gas.volume => "1 L"1011  molar_mass = gas.molar_mass12  answer molar_mass:, in: "g/mol", figures: 21314  conclusion "A litre of any ideal gas at this temperature and pressure holds the same number of moles, so its " \15             "mass over that number of moles is the molar mass; 97 °C is 370 K on the absolute scale the gas law " \16             "needs."17end
playground.rb
1require_relative "../solutions/an_unknown_gas_weighed_by_its_density"23play_with :an_unknown_gas_weighed_by_its_density do4  title "An Unknown Gas Weighed by Its Density"5end
The laws it drew on
quantitywrittenunitswithinfrom
gas constantRJ mol⁻¹ K⁻¹—IdealGas
pressurePPa0 … ∞IdealGas
volumeVm³0 … ∞IdealGas
amountnmol—IdealGas
temperatureTK0 … 1e+09IdealGas
molar massMkg/mol—IdealGas
densityρkg/m³0 … ∞IdealGas
pressure of groundPgPa0 … ∞
volume of groundVgm³0 … ∞
amount of groundngmol—
temperature of groundTgK0 … 1e+09
pressure of gasPPa0 … ∞
volume of gasVm³0 … ∞
amount of gasnmol—
temperature of gasTK0 … 1e+09
density of groundρgkg/m³0 … ∞
molar mass of groundMgkg/mol—
density of gasρkg/m³0 … ∞
molar mass of gasMkg/mol—
Pg⋅Vg=ng⋅R⋅Tg
ideal gas law
ρg=ng⋅MgVg
density of a gas
Pg⋅Vg=ng⋅R⋅Tg
ideal gas law(ground)
P⋅V=n⋅R⋅T
ideal gas law(gas)
ρg=ng⋅MgVg
density of a gas(ground)
ρ=n⋅MV
density of a gas(gas)