play phryzby with physics

Oxygen Drawn from a Cylinder

solved Moles

Q. An oxygen cylinderVl=Vf of volume 30 LVf=30L has an initial gauge pressure of 15 atmPf=15atm and a temperature of 27 °CTf=300K. After some oxygenMw=Mf is withdrawn from the cylindernw=nf-nl, the gauge pressure drops to 11 atmPl=11atm and its temperature drops to 17 °CTl=290K. The molecular mass of O2 is 32 g/molMf=32g/mol. Estimate the mass of oxygen taken out of the cylinder, in kilograms?

fullP = 1.52×10⁶ PaV = 0.03 m³T = 300 KnM = 0.032 kg/molleftP = 1.11×10⁶ PaVT = 290 KnNwithdrawnnMm = ?N
Inputs
Vf
30 L
Pf
15 atm
Pl
11 atm
Mf
32 g/mol
Outputs
massmw?

How it's solved

Solved with Moles

Given

  • Vf=30L
  • Pf=15atm
  • Pl=11atm
  • Mf=32g/mol
  • Tf=300K from “a temperature of 27 °C”
  • Tl=290K from “drops to 17 °C”
  • Vl=Vf from “An oxygen cylinder”
  • Mw=Mf from “some oxygen”
  • nw=nf-nl from “withdrawn from the cylinder”

Find mw.

Working
  1. Vf=30L=0.03m³
  2. Pf=15atm=1.519875×106Pa
  3. Pl=11atm=1.114575×106Pa
  4. Mf=32g/mol=0.032kg/mol
  5. ideal gas law(full)Pf⋅Vf=nf⋅R⋅Tf
  6. 1.519875×106⋅0.03=nf⋅8.31446262⋅300
  7. nf=18.2798946mol
  8. An oxygen cylinderVl=Vf
  9. Vl=0.03
  10. Vl=0.03m³
  11. ideal gas law(left)Pl⋅Vl=nl⋅R⋅Tl
  12. 1.114575×106⋅0.03=nl⋅8.31446262⋅290
  13. nl=13.8675062mol
  14. withdrawn from the cylindernw=nf-nl
  15. nw=18.2798946-13.8675062
  16. nw=4.41238834mol
  17. some oxygenMw=Mf
  18. Mw=0.032
  19. Mw=0.032kg/mol
  20. mass of a gas(withdrawn)mw=nw⋅Mw
  21. mw=4.41238834⋅0.032
  22. mw=0.1412kg
  23. mw≈0.14kgto 2 significant figures
Conclusion

The cylinder keeps its volume, so the ideal gas law counts the moles in it before and after; the moles missing, times the mass of a mole, went out with the oxygen drawn.

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 :oxygen_drawn_from_a_cylinder do4  kind :numerical5  describes "An oxygen cylinder of volume %{volume} has an initial gauge pressure of %{initial_pressure} and a " \6            "temperature of 27 °C. After some oxygen is withdrawn from the cylinder, the gauge pressure drops to " \7            "%{final_pressure} and its temperature drops to 17 °C. The molecular mass of O2 is %{molar_mass}. %{mass}, " \8            "in kilograms?"9  given volume: "30 L"10  given initial_pressure: "15 atm"11  given final_pressure: "11 atm"12  given molar_mass: "32 g/mol"13  asks mass: "Estimate the mass of oxygen taken out of the cylinder"14end
solution.rb
1require_relative "../questions/oxygen_drawn_from_a_cylinder"2require_relative "../science/kinetic_theory/moles"34solve :oxygen_drawn_from_a_cylinder, using: Moles do5  objects :full, :left, :withdrawn67  take volume: full.volume8  take initial_pressure: full.pressure9  take final_pressure: left.pressure10  take molar_mass: full.molar_mass1112  deduce_from "a temperature of 27 °C", full.temperature => "300 K"13  deduce_from "drops to 17 °C", left.temperature => "290 K"14  deduce_from "An oxygen cylinder", left.volume => full.volume15  deduce_from "some oxygen", withdrawn.molar_mass => full.molar_mass16  deduce_from "withdrawn from the cylinder", withdrawn.amount => full.amount - left.amount1718  mass = withdrawn.mass19  answer mass:, in: "kg", figures: 22021  conclusion "The cylinder keeps its volume, so the ideal gas law counts the moles in it before and after; the " \22             "moles missing, times the mass of a mole, went out with the oxygen drawn."23end
playground.rb
1require_relative "../solutions/oxygen_drawn_from_a_cylinder"23play_with :oxygen_drawn_from_a_cylinder do4  title "Oxygen Drawn from a Cylinder"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 fullPfPa0 … ∞
volume of fullVfm³0 … ∞
amount of fullnfmol—
temperature of fullTfK0 … 1e+09
pressure of leftPlPa0 … ∞
volume of leftVlm³0 … ∞
amount of leftnlmol—
temperature of leftTlK0 … 1e+09
pressure of withdrawnPwPa0 … ∞
volume of withdrawnVwm³0 … ∞
amount of withdrawnnwmol—
temperature of withdrawnTwK0 … 1e+09
density of groundρgkg/m³0 … ∞
molar mass of groundMgkg/mol—
density of fullρfkg/m³0 … ∞
molar mass of fullMfkg/mol—
density of leftρlkg/m³0 … ∞
molar mass of leftMlkg/mol—
density of withdrawnρwkg/m³0 … ∞
molar mass of withdrawnMwkg/mol—
mass of groundmgkg0 … ∞
mass of fullmfkg0 … ∞
mass of leftmlkg0 … ∞
mass of withdrawnmwkg0 … ∞
molecules of groundNg——
molecules of fullNf——
molecules of leftNl——
molecules of withdrawnNw——
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)
Pf⋅Vf=nf⋅R⋅Tf
ideal gas law(full)
Pl⋅Vl=nl⋅R⋅Tl
ideal gas law(left)
Pw⋅Vw=nw⋅R⋅Tw
ideal gas law(withdrawn)
ρg=ng⋅MgVg
density of a gas(ground)
ρf=nf⋅MfVf
density of a gas(full)
ρl=nl⋅MlVl
density of a gas(left)
ρw=nw⋅MwVw
density of a gas(withdrawn)
mg=ng⋅Mg
mass of a gas(ground)
mf=nf⋅Mf
mass of a gas(full)
ml=nl⋅Ml
mass of a gas(left)
mw=nw⋅Mw
mass of a gas(withdrawn)
Ng=ng⋅NA
molecules in a gas(ground)
Nf=nf⋅NA
molecules in a gas(full)
Nl=nl⋅NA
molecules in a gas(left)
Nw=nw⋅NA
molecules in a gas(withdrawn)
Vl=Vf
An oxygen cylinder
Mw=Mf
some oxygen
nw=nf-nl
withdrawn from the cylinder