play phryzby with physics

Air Shared With an Evacuated Vessel

solved IdealGas

Q. A vessel containing 0.1 m³Va=0.1m³ of air at 76 cm of HgPa=76cm of Hg is connected to an evacuated vesselVs=Va+Ve, ns=na of capacity 0.09 m³Ve=0.09m³. The resultant air pressure is

airP = 101325 PaV = 0.1 m³T = 300 KnemptyV = 0.09 m³spreadP = ?VTn

How it's solved

Solved with IdealGas

Given

  • Va=0.1m³
  • Pa=76cm of Hg
  • Ve=0.09m³
  • Vs=Va+Ve from “is connected to an evacuated vessel”
  • ns=na from “is connected to an evacuated vessel”
  • Ts=Ta from “assumed”

Assumed

  • Ta=300K

Find Ps.

Working
  1. Pa=76cm of Hg=101325.014Pa
  2. is connected to an evacuated vessel (volume of spread)Vs=Va+Ve
  3. Vs=0.1+0.09
  4. Vs=0.19m³
  5. ideal gas law(air)Pa⋅Va=na⋅R⋅Ta
  6. 101325.014⋅0.1=na⋅8.31446262⋅300
  7. na=4.06219937mol
  8. is connected to an evacuated vessel (amount of spread)ns=na
  9. ns=4.06219937
  10. ns=4.06219937mol
  11. assumedTs=Ta
  12. Ts=300
  13. Ts=300K
  14. ideal gas law(spread)Ps⋅Vs=ns⋅R⋅Ts
  15. Ps⋅0.19=4.06219937⋅8.31446262⋅300
  16. Ps=40cm of Hg
  17. Ps=53328.955Pa=40cm of Hg
Conclusion

The same air at the same temperature now fills 0.19 m³ instead of 0.1 m³, so its pressure falls in the same proportion, from 76 to 40 cm of mercury.

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_shared_with_an_evacuated_vessel do4  kind :scq5  describes "A vessel containing %{volume} of air at %{pressure} is connected to an evacuated vessel of capacity " \6            "%{capacity}. The resultant air pressure is"7  given volume: "0.1 m3"8  given pressure: "76 cm of Hg"9  given capacity: "0.09 m3"1011  option "20 cm of Hg"12  option "30 cm of Hg"13  option "40 cm of Hg"14  option "60 cm of Hg"15end
solution.rb
1require_relative "../questions/air_shared_with_an_evacuated_vessel"2require_relative "../science/kinetic_theory/ideal_gas"34solve :air_shared_with_an_evacuated_vessel, using: IdealGas do5  objects :air, :spread, :empty67  take volume: air.volume, pressure: air.pressure, capacity: empty.volume89  deduce_from "is connected to an evacuated vessel", spread.volume => air.volume + empty.volume,10                                                     spread.amount => air.amount11  assume air.temperature => "300 K", spread.temperature => air.temperature1213  answer find_value(spread.pressure, in: "cm of Hg")1415  conclusion "The same air at the same temperature now fills 0.19 m³ instead of 0.1 m³, so its pressure falls in " \16             "the same proportion, from 76 to 40 cm of mercury."17end
playground.rb
1require_relative "../solutions/air_shared_with_an_evacuated_vessel"23play_with :air_shared_with_an_evacuated_vessel do4  title "Air Shared With an Evacuated 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 airPaPa0 … ∞
volume of airVam³0 … ∞
amount of airnamol—
temperature of airTaK0 … 1e+09
pressure of spreadPsPa0 … ∞
volume of spreadVsm³0 … ∞
amount of spreadnsmol—
temperature of spreadTsK0 … 1e+09
pressure of emptyPePa0 … ∞
volume of emptyVem³0 … ∞
amount of emptynemol—
temperature of emptyTeK0 … 1e+09
density of groundρgkg/m³0 … ∞
molar mass of groundMgkg/mol—
density of airρakg/m³0 … ∞
molar mass of airMakg/mol—
density of spreadρskg/m³0 … ∞
molar mass of spreadMskg/mol—
density of emptyρekg/m³0 … ∞
molar mass of emptyMekg/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)
Pa⋅Va=na⋅R⋅Ta
ideal gas law(air)
Ps⋅Vs=ns⋅R⋅Ts
ideal gas law(spread)
Pe⋅Ve=ne⋅R⋅Te
ideal gas law(empty)
ρg=ng⋅MgVg
density of a gas(ground)
ρa=na⋅MaVa
density of a gas(air)
ρs=ns⋅MsVs
density of a gas(spread)
ρe=ne⋅MeVe
density of a gas(empty)
Vs=Va+Ve
is connected to an evacuated vessel (volume of spread)
ns=na
is connected to an evacuated vessel (amount of spread)
Ts=Ta
assumed