play phryzby with physics

Neon and Oxygen in a Vessel

solved IdealGas

Q. A vessel contains twoVn=Vo, Tn=To non-reactive gases: neon (monatomic) and oxygen (diatomic). The ratio of their partial pressures is 3:2Pn=1.5⋅Po. What is the ratio of the number of molecules of neon to oxygen in the vessel?

Outputs
ratio?

How it's solved

Solved with IdealGas

Given

  • Pn=1.5⋅Po from “partial pressures is 3:2”
  • Vn=Vo from “A vessel contains two”
  • Tn=To from “A vessel contains two”

Find nnno.

Working
  1. ideal gas law(oxygen)Po⋅Vo=no⋅R⋅To
  2. no=Po⋅Vo8.31446262⋅To
  3. ideal gas law(neon)Pn⋅Vn=nn⋅R⋅Tn
  4. nn=1.5⋅Po⋅Vo8.31446262⋅To
  5. nnno=1.5
Conclusion

Sharing one vessel at one temperature, each gas presses in proportion to how many molecules it has, whatever those molecules are.

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 :neon_and_oxygen_in_a_vessel do4  kind :numerical5  describes "A vessel contains two non-reactive gases: neon (monatomic) and oxygen (diatomic). The ratio of their " \6            "partial pressures is 3:2. %{ratio} of neon to oxygen in the vessel?"7  asks ratio: "What is the ratio of the number of molecules"8end
solution.rb
1require_relative "../questions/neon_and_oxygen_in_a_vessel"2require_relative "../science/kinetic_theory/ideal_gas"34solve :neon_and_oxygen_in_a_vessel, using: IdealGas do5  objects :neon, :oxygen67  deduce_from "partial pressures is 3:2", neon.pressure => 1.5 * oxygen.pressure8  deduce_from "A vessel contains two", neon.volume => oxygen.volume, neon.temperature => oxygen.temperature910  answer find_relation(neon.amount / oxygen.amount), figures: 21112  conclusion "Sharing one vessel at one temperature, each gas presses in proportion to how many molecules it " \13             "has, whatever those molecules are."14end
playground.rb
1require_relative "../solutions/neon_and_oxygen_in_a_vessel"23play_with :neon_and_oxygen_in_a_vessel do4  title "Neon and Oxygen in a Vessel"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 neonPnPa0 … ∞
volume of neonVnm³0 … ∞
amount of neonnnmol—
temperature of neonTnK0 … 1e+09
pressure of oxygenPoPa0 … ∞
volume of oxygenVom³0 … ∞
amount of oxygennomol—
temperature of oxygenToK0 … 1e+09
density of groundρgkg/m³0 … ∞
molar mass of groundMgkg/mol—
density of neonρnkg/m³0 … ∞
molar mass of neonMnkg/mol—
density of oxygenρokg/m³0 … ∞
molar mass of oxygenMokg/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)
Pn⋅Vn=nn⋅R⋅Tn
ideal gas law(neon)
Po⋅Vo=no⋅R⋅To
ideal gas law(oxygen)
ρg=ng⋅MgVg
density of a gas(ground)
ρn=nn⋅MnVn
density of a gas(neon)
ρo=no⋅MoVo
density of a gas(oxygen)
Pn=1.5⋅Po
partial pressures is 3:2
Vn=Vo
A vessel contains two (volume of neon)
Tn=To
A vessel contains two (temperature of neon)