play phryzby with physics

Argon and Chlorine in a Flask

solved RmsSpeed

Q. A flask contains argon and chlorine in the ratio of 2:1 by mass. The temperature of the mixtureTa=Tc is 27 °C. The atomic mass of argon is 39.9 g/molMa=39.9g/mol and the molecular mass of chlorine is 70.9 g/molMc=70.9g/mol. What is the ratio of the root mean square speeds of the molecules of argon to chlorine?

argonM = 0.0399 kg/molchlorineM = 0.0709 kg/mol
Inputs
Ma
39.9 g/mol
Mc
70.9 g/mol
Outputs
ratio?

How it's solved

Solved with RmsSpeed

Given

  • Ma=39.9g/mol
  • Mc=70.9g/mol
  • Ta=Tc from “The temperature of the mixture”

Find vrms,avrms,c.

Working
  1. rms speed of a gas(chlorine)vrms,c=(3⋅R⋅TcMc)0.5
  2. vrms,c=(24.9433879⋅Tc0.0709)0.5
  3. rms speed of a gas(argon)vrms,a=(3⋅R⋅TaMa)0.5
  4. vrms,a=(24.9433879⋅Tc0.0399)0.5
  5. vrms,avrms,c=1.33302
  6. Ma=39.9g/mol=0.0399kg/mol
  7. Mc=70.9g/mol=0.0709kg/mol
Conclusion

At one temperature every molecule has the same average kinetic energy, so the lighter argon atoms move faster, as the square root of the inverse ratio of the masses; how much of each gas there is does not matter.

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 :argon_and_chlorine_in_a_flask do4  kind :numerical5  describes "A flask contains argon and chlorine in the ratio of 2:1 by mass. The temperature of the mixture is 27 °C. " \6            "The atomic mass of argon is %{argon} and the molecular mass of chlorine is %{chlorine}. %{ratio} of " \7            "argon to chlorine?"8  given argon: "39.9 g/mol"9  given chlorine: "70.9 g/mol"10  asks ratio: "What is the ratio of the root mean square speeds of the molecules"11end
solution.rb
1require_relative "../questions/argon_and_chlorine_in_a_flask"2require_relative "../science/kinetic_theory/rms_speed"34solve :argon_and_chlorine_in_a_flask, using: RmsSpeed do5  objects :argon, :chlorine67  take argon: argon.molar_mass8  take chlorine: chlorine.molar_mass910  deduce_from "The temperature of the mixture", argon.temperature => chlorine.temperature1112  answer find_relation(argon.rms_speed / chlorine.rms_speed), figures: 31314  conclusion "At one temperature every molecule has the same average kinetic energy, so the lighter argon " \15             "atoms move faster, as the square root of the inverse ratio of the masses; how much of each gas " \16             "there is does not matter."17end
playground.rb
1require_relative "../solutions/argon_and_chlorine_in_a_flask"23play_with :argon_and_chlorine_in_a_flask do4  title "Argon and Chlorine in a Flask"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⁻¹—RmsSpeed
rms speedvrmsm/s—RmsSpeed
average thermal energyEavgJ—RmsSpeed
pressure of groundPgPa0 … ∞
volume of groundVgm³0 … ∞
amount of groundngmol—
temperature of groundTgK0 … 1e+09
pressure of argonPaPa0 … ∞
volume of argonVam³0 … ∞
amount of argonnamol—
temperature of argonTaK0 … 1e+09
pressure of chlorinePcPa0 … ∞
volume of chlorineVcm³0 … ∞
amount of chlorinencmol—
temperature of chlorineTcK0 … 1e+09
density of groundρgkg/m³0 … ∞
molar mass of groundMgkg/mol—
density of argonρakg/m³0 … ∞
molar mass of argonMakg/mol—
density of chlorineρckg/m³0 … ∞
molar mass of chlorineMckg/mol—
rms speed of groundvrms,gm/s—
rms speed of argonvrms,am/s—
rms speed of chlorinevrms,cm/s—
average thermal energy of groundEavg,gJ—
average thermal energy of argonEavg,aJ—
average thermal energy of chlorineEavg,cJ—
Pg⋅Vg=ng⋅R⋅Tg
ideal gas law
ρg=ng⋅MgVg
density of a gas
vrms,g=(3⋅R⋅TgMg)0.5
rms speed of a gas
Eavg,g=3⋅R⋅Tg2⋅NA
three halves k t for each molecule
Pg⋅Vg=ng⋅R⋅Tg
ideal gas law(ground)
Pa⋅Va=na⋅R⋅Ta
ideal gas law(argon)
Pc⋅Vc=nc⋅R⋅Tc
ideal gas law(chlorine)
ρg=ng⋅MgVg
density of a gas(ground)
ρa=na⋅MaVa
density of a gas(argon)
ρc=nc⋅McVc
density of a gas(chlorine)
vrms,g=(3⋅R⋅TgMg)0.5
rms speed of a gas(ground)
vrms,a=(3⋅R⋅TaMa)0.5
rms speed of a gas(argon)
vrms,c=(3⋅R⋅TcMc)0.5
rms speed of a gas(chlorine)
Eavg,g=3⋅R⋅Tg2⋅NA
three halves k t for each molecule(ground)
Eavg,a=3⋅R⋅Ta2⋅NA
three halves k t for each molecule(argon)
Eavg,c=3⋅R⋅Tc2⋅NA
three halves k t for each molecule(chlorine)
Ta=Tc
The temperature of the mixture