How High the Air Goes
Q. The density of the atmosphere at sea level is 1.29 kg/m³kg/m³. Assume that it does not change with altitude. Taking g as 9.8 m/s²m/s² and the pressure at sea level as 1.01 × 10⁵ PaPa, how high would the atmosphere extendPa, in metres?
Inputs
Outputs
height?
How it's solved
Solved with PressureAtDepth
Given
- kg/m³
- m/s²
- Pa
- Pa from “how high would the atmosphere extend”
Find .
Working
- pressure adds the surface s(sea level)
- Pa
- pressure of the fluid above(sea level)
- mto 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.
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"11end1require_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."18endplayground.rb
1require_relative "../solutions/how_high_the_air_goes"23play_with :how_high_the_air_goes do4 title "How High the Air Goes"5endThe laws it drew on
| quantity | written | units | within | from |
|---|---|---|---|---|
| mass | kg | 0 … ∞ | Pressure | |
| gravity | m/s² | — | Pressure | |
| thrust | N | — | Pressure | |
| area | m² | — | Pressure | |
| pressure | Pa | 0 … ∞ | Pressure | |
| pressure at the surface | Pa | — | PressureAtDepth | |
| density | kg/m³ | 0 … ∞ | PressureAtDepth | |
| depth | m | — | PressureAtDepth | |
| gauge pressure | Pa | — | PressureAtDepth | |
| pressure of ground | Pa | 0 … ∞ | ||
| thrust on ground | N | — | ||
| area of ground | m² | — | ||
| pressure of sea level | Pa | 0 … ∞ | ||
| thrust on sea level | N | — | ||
| area of sea level | m² | — | ||
| gauge pressure on ground | Pa | — | ||
| depth of ground | m | — | ||
| gauge pressure on sea level | Pa | — | ||
| depth of sea level | m | — | ||
| mass of sea level | kg | 0 … ∞ |