play phryzby with physics

How High the Air Goes

solved PressureAtDepth

Q. The density of the atmosphere at sea level is 1.29 kg/m³ρ=1.29kg/m³. Assume that it does not change with altitude. Taking g as 9.8 m/s²g=9.8m/s² and the pressure at sea level as 1.01 × 10⁵ PaP=1.01×105Pa, how high would the atmosphere extendPa=0Pa, in metres?

P_a = 0 Pah = ?sea levelP_gP = 101000 Paρ = 1.29 kg/m³g = 9.8 m/s²
Inputs
ρ
1.29 kg/m³
g
9.8 m/s²
P
1.01e+05 Pa
Outputs
heighth?

How it's solved

Solved with PressureAtDepth

Given

  • ρ=1.29kg/m³
  • g=9.8m/s²
  • P=1.01×105Pa
  • Pa=0Pa from “how high would the atmosphere extend”

Find h.

Working
  1. pressure adds the surface s(sea level)P=Pa+Pg
  2. 101000=0+Pg
  3. Pg=101000Pa
  4. pressure of the fluid above(sea level)Pg=ρ⋅g⋅h
  5. 101000=1.29⋅9.8⋅h
  6. h=7989.24 m
  7. h≈7.99×103mto 3 significant figures
Conclusion

Sea level sits at the bottom of an ocean of air; if the air were as dense all the way up, its pressure would be used up within a few kilometres.

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 :how_high_the_air_goes do4  kind :numerical5  describes "The density of the atmosphere at sea level is %{density}. Assume that it does not change with altitude. " \6            "Taking g as %{gravity} and the pressure at sea level as %{sea_level}, %{height}, in metres?"7  given density: "1.29 kg/m3"8  given gravity: "9.8 m/s2"9  given sea_level: "1.01e5 Pa"10  asks height: "how high would the atmosphere extend"11end
solution.rb
1require_relative "../questions/how_high_the_air_goes"2require_relative "../science/mechanical_properties_of_fluids/pressure_at_depth"34solve :how_high_the_air_goes, using: PressureAtDepth do5  objects :sea_level67  take density: rho8  take gravity: g9  take sea_level: sea_level.pressure1011  deduce_from "how high would the atmosphere extend", P_a => "0 Pa"1213  height = sea_level.depth14  answer height:, in: "m", figures: 31516  conclusion "Sea level sits at the bottom of an ocean of air; if the air were as dense all the way up, " \17             "its pressure would be used up within a few kilometres."18end
playground.rb
1require_relative "../solutions/how_high_the_air_goes"23play_with :how_high_the_air_goes do4  title "How High the Air Goes"5end
The laws it drew on
quantitywrittenunitswithinfrom
massmkg0 … ∞Pressure
gravitygm/s²—Pressure
thrustFN—Pressure
areaAm²—Pressure
pressurePPa0 … ∞Pressure
pressure at the surfacePaPa—PressureAtDepth
densityρkg/m³0 … ∞PressureAtDepth
depthhm—PressureAtDepth
gauge pressurePgPa—PressureAtDepth
pressure of groundPgPa0 … ∞
thrust on groundFgN—
area of groundAgm²—
pressure of sea levelPPa0 … ∞
thrust on sea levelFN—
area of sea levelAm²—
gauge pressure on groundPg,gPa—
depth of groundhgm—
gauge pressure on sea levelPgPa—
depth of sea levelhm—
mass of sea levelmkg0 … ∞
Ps=FsAs
pressure is force over area
Pg,p=ρ⋅g⋅hp
pressure of the fluid above
Pp=Pa+Pg,p
pressure adds the surface s
Pg=FgAg
pressure is force over area(ground)
P=FA
pressure is force over area(sea level)
Pg,g=ρ⋅g⋅hg
pressure of the fluid above(ground)
Pg=ρ⋅g⋅h
pressure of the fluid above(sea level)
Pg=Pa+Pg,g
pressure adds the surface s(ground)
P=Pa+Pg
pressure adds the surface s(sea level)