play phryzby with physics

A Swimmer Under a Lake

solved PressureAtDepth

Q. A swimmer is 10 mh=10m below the surface of a lake. Taking the density of water as 1000 kg/m³ρ=1000kg/m³, g as 10 m/s²g=10m/s² and atmospheric pressure as 1.01 × 10⁵ PaPa=1.01×105Pa, what is the pressure on the swimmer, in pascals?

P_a = 101000 Pah = 10 mswimmerP_gP = ?ρ = 1000 kg/m³g = 10 m/s²
Inputs
h
10.00 m
ρ
1000 kg/m³
g
10 m/s²
Pa
1.01e+05 Pa
Outputs
pressureP?

How it's solved

Solved with PressureAtDepth

Given

  • h=10m
  • ρ=1000kg/m³
  • g=10m/s²
  • Pa=1.01×105Pa

Find P.

Working
  1. pressure of the fluid above(swimmer)Pg=ρ⋅g⋅h
  2. Pg=1000⋅10⋅10
  3. Pg=100000Pa
  4. pressure adds the surface s(swimmer)P=Pa+Pg
  5. P=101000+100000
  6. P=201000Pa
  7. P≈2.01×105Pato 3 significant figures
Conclusion

The swimmer carries the air above the lake and the water above them too; ten metres of water weighs about as much as the whole atmosphere.

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 :a_swimmer_under_a_lake do4  kind :numerical5  describes "A swimmer is %{depth} below the surface of a lake. Taking the density of water as %{density}, g as " \6            "%{gravity} and atmospheric pressure as %{atmosphere}, %{pressure}, in pascals?"7  given depth: "10 m"8  given density: "1000 kg/m3"9  given gravity: "10 m/s2"10  given atmosphere: "1.01e5 Pa"11  asks pressure: "what is the pressure on the swimmer"12end
solution.rb
1require_relative "../questions/a_swimmer_under_a_lake"2require_relative "../science/mechanical_properties_of_fluids/pressure_at_depth"34solve :a_swimmer_under_a_lake, using: PressureAtDepth do5  objects :swimmer67  take depth: swimmer.depth8  take density: rho9  take gravity: g10  take atmosphere: P_a1112  pressure = swimmer.pressure13  answer pressure:, in: "Pa", figures: 31415  conclusion "The swimmer carries the air above the lake and the water above them too; ten metres of " \16             "water weighs about as much as the whole atmosphere."17end
playground.rb
1require_relative "../solutions/a_swimmer_under_a_lake"23play_with :a_swimmer_under_a_lake do4  title "A Swimmer Under a Lake"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 swimmerPPa0 … ∞
thrust on swimmerFN—
area of swimmerAm²—
gauge pressure on groundPg,gPa—
depth of groundhgm—
gauge pressure on swimmerPgPa—
depth of swimmerhm—
mass of swimmermkg0 … ∞
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(swimmer)
Pg,g=ρ⋅g⋅hg
pressure of the fluid above(ground)
Pg=ρ⋅g⋅h
pressure of the fluid above(swimmer)
Pg=Pa+Pg,g
pressure adds the surface s(ground)
P=Pa+Pg
pressure adds the surface s(swimmer)