Hydrogen Squeezed Under Sand
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, by what factor does the pressure of the gas increase if the gas is compressed to half its original volume?
Inputs
Outputs
factor?
How it's solved
Solved with AdiabaticProcess
Given
- from “compressed to half its original volume”
Find .
Working
- pv to the gamma is kept(compressed)
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.
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"10end1require_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."16endplayground.rb
1require_relative "../solutions/hydrogen_squeezed_under_sand"23play_with :hydrogen_squeezed_under_sand do4 title "Hydrogen Squeezed Under Sand"5endThe laws it drew on
| quantity | written | units | within | from |
|---|---|---|---|---|
| pressure | Pa | 0 … ∞ | AdiabaticProcess | |
| volume | m³ | 0 … ∞ | AdiabaticProcess | |
| ratio of specific heats | — | — | AdiabaticProcess | |
| starting pressure | Pa | 0 … ∞ | AdiabaticProcess | |
| final pressure | Pa | 0 … ∞ | AdiabaticProcess | |
| starting volume | m³ | 0 … ∞ | AdiabaticProcess | |
| final volume | m³ | 0 … ∞ | AdiabaticProcess | |
| pressure of gas at start of compressed | Pa | 0 … ∞ | ||
| volume of gas at start of compressed | m³ | 0 … ∞ | ||
| ratio of specific heats of gas | — | — | ||
| pressure of gas at end of compressed | Pa | 0 … ∞ | ||
| volume of gas at end of compressed | m³ | 0 … ∞ |