play phryzby with physics

Air Molecules in a Room

solved Moles

Q. Estimate the total number of air molecules (inclusive of oxygen, nitrogen, water vapour and other constituents) in a room of capacity 25.0 m³V=25.0m³ at a temperature of 27 °CT=300K and 1 atmP=1atm pressure?

airP = 101325 PaV = 25 m³T = 300 KnN = ?
Inputs
V
25 m³
P
1 atm
Outputs
moleculesN?

How it's solved

Solved with Moles

Given

  • V=25.0m³
  • P=1atm
  • T=300K from “a temperature of 27 °C”

Find N.

Working
  1. P=1atm=101325Pa
  2. ideal gas law(air)P⋅V=n⋅R⋅T
  3. 101325⋅25=n⋅8.31446262⋅300
  4. n=1015.5497mol
  5. molecules in a gas(air)N=n⋅NA
  6. N=1015.5497⋅6.02214076×1023
  7. N=6.11578323×1026
  8. N≈6.1×1026to 2 significant figures
Conclusion

The ideal gas law counts the moles from the pressure, volume and temperature alone, whatever mix of molecules the air is, and each mole holds Avogadro's number of them.

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 :air_molecules_in_a_room do4  kind :numerical5  describes "%{molecules} (inclusive of oxygen, nitrogen, water vapour and other constituents) in a room of capacity " \6            "%{volume} at a temperature of 27 °C and %{pressure} pressure?"7  given volume: "25.0 m3"8  given pressure: "1 atm"9  asks molecules: "Estimate the total number of air molecules"10end
solution.rb
1require_relative "../questions/air_molecules_in_a_room"2require_relative "../science/kinetic_theory/moles"34solve :air_molecules_in_a_room, using: Moles do5  objects :air67  take volume: air.volume8  take pressure: air.pressure910  deduce_from "a temperature of 27 °C", air.temperature => "300 K"1112  molecules = air.molecules13  answer molecules:, figures: 21415  conclusion "The ideal gas law counts the moles from the pressure, volume and temperature alone, whatever mix of " \16             "molecules the air is, and each mole holds Avogadro's number of them."17end
playground.rb
1require_relative "../solutions/air_molecules_in_a_room"23play_with :air_molecules_in_a_room do4  title "Air Molecules in a Room"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
avogadro constantNAmol⁻¹—Moles
massmkg0 … ∞Moles
moleculesN——Moles
pressure of groundPgPa0 … ∞
volume of groundVgm³0 … ∞
amount of groundngmol—
temperature of groundTgK0 … 1e+09
pressure of airPPa0 … ∞
volume of airVm³0 … ∞
amount of airnmol—
temperature of airTK0 … 1e+09
density of groundρgkg/m³0 … ∞
molar mass of groundMgkg/mol—
density of airρkg/m³0 … ∞
molar mass of airMkg/mol—
mass of groundmgkg0 … ∞
mass of airmkg0 … ∞
molecules of groundNg——
molecules of airN——
Pg⋅Vg=ng⋅R⋅Tg
ideal gas law
ρg=ng⋅MgVg
density of a gas
mg=ng⋅Mg
mass of a gas
Ng=ng⋅NA
molecules in a gas
Pg⋅Vg=ng⋅R⋅Tg
ideal gas law(ground)
P⋅V=n⋅R⋅T
ideal gas law(air)
ρg=ng⋅MgVg
density of a gas(ground)
ρ=n⋅MV
density of a gas(air)
mg=ng⋅Mg
mass of a gas(ground)
m=n⋅M
mass of a gas(air)
Ng=ng⋅NA
molecules in a gas(ground)
N=n⋅NA
molecules in a gas(air)