play phryzby with physics

Hydrogen Squeezed Under Sand

solved AdiabaticProcess

Q. A cylinder with a movable piston contains 3 moles of hydrogen at standard temperature and pressure. The walls of the cylinder are made of a heat insulator, and the piston is insulated by having a pile of sand on it. Taking the ratio of specific heats of hydrogen as 1.4γ=1.4, by what factor does the pressure of the gas increase if the gas is compressed to half its original volumeV1=V02?

gasγ = 1.4
Inputs
γ
1.4
Outputs
factor?

How it's solved

Solved with AdiabaticProcess

Given

  • γ=1.4
  • V1=V02 from “compressed to half its original volume”

Find P1P0.

Working
  1. pv to the gamma is kept(compressed)P0⋅V0γ=P1⋅V1γ
  2. P1=P0⋅V01.4(V02)1.4
  3. P1P0=2.63902
Conclusion

With no heat let in or out, squeezing the gas also warms it, so its pressure rises by more than the factor of two the volume alone would give.

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 :hydrogen_squeezed_under_sand do4  kind :numerical5  describes "A cylinder with a movable piston contains 3 moles of hydrogen at standard temperature and pressure. The " \6            "walls of the cylinder are made of a heat insulator, and the piston is insulated by having a pile of " \7            "sand on it. Taking the ratio of specific heats of hydrogen as %{gamma}, %{factor}?"8  given gamma: "1.4"9  asks factor: "by what factor does the pressure of the gas increase if the gas is compressed to half its original volume"10end
solution.rb
1require_relative "../questions/hydrogen_squeezed_under_sand"2require_relative "../science/thermodynamics/adiabatic_process"34solve :hydrogen_squeezed_under_sand, using: AdiabaticProcess do5  objects :gas6  gas.goes(:compressed)78  take gamma: gas.ratio_of_specific_heats910  deduce_from "compressed to half its original volume", gas.final_volume => gas.initial_volume / 21112  answer find_relation(gas.final_pressure / gas.initial_pressure), figures: 31314  conclusion "With no heat let in or out, squeezing the gas also warms it, so its pressure rises by more " \15             "than the factor of two the volume alone would give."16end
playground.rb
1require_relative "../solutions/hydrogen_squeezed_under_sand"23play_with :hydrogen_squeezed_under_sand do4  title "Hydrogen Squeezed Under Sand"5end
The laws it drew on
quantitywrittenunitswithinfrom
pressurePPa0 … ∞AdiabaticProcess
volumeVm³0 … ∞AdiabaticProcess
ratio of specific heatsγ——AdiabaticProcess
starting pressureP1Pa0 … ∞AdiabaticProcess
final pressureP2Pa0 … ∞AdiabaticProcess
starting volumeV1m³0 … ∞AdiabaticProcess
final volumeV2m³0 … ∞AdiabaticProcess
pressure of gas at start of compressedP0Pa0 … ∞
volume of gas at start of compressedV0m³0 … ∞
ratio of specific heats of gasγ——
pressure of gas at end of compressedP1Pa0 … ∞
volume of gas at end of compressedV1m³0 … ∞
P1≡Pi(start of motion)
starting pressure
P2≡Pi(end of motion)
final pressure
V1≡Vi(start of motion)
starting volume
V2≡Vi(end of motion)
final volume
P0⋅V0γ=P1⋅V1γ
pv to the gamma is kept(compressed)
V1=V02
compressed to half its original volume