play phryzby with physics

A Tube with a Movable Piston

solved ClosedPipe

Q. A metre-long tube open at one end, with a movable piston at the other end, shows resonance with a fixed frequency source (a tuning fork of frequency 340 Hzν=340Hz) when the tube length isn=1 25.5 cmL=25.5cm or 79.3 cm. The edge effects may be neglected. Estimate the speed of sound in air at the temperature of the experiment, in m/s?

L = 0.255 mn = 1v = ?f = 340 Hz
Inputs
ν
340 Hz
L
25.5 cm
Outputs
speedv?

How it's solved

Solved with ClosedPipe

Given

  • ν=340Hz
  • L=25.5cm
  • n=1 from “when the tube length is”

Find v.

Working
  1. L=25.5cm=0.255m
  2. harmonics of a pipe closed at one end(tube)ν=n⋅v4⋅L
  3. 340=1⋅v4⋅0.255
  4. v=346.8 m/s
  5. v≈347m/sto 3 significant figures
Conclusion

Closed by the piston, the tube first resonates when it holds a quarter of a wavelength, a node at the piston and an antinode at the open end.

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_tube_with_a_movable_piston do4  kind :numerical5  describes "A metre-long tube open at one end, with a movable piston at the other end, shows resonance with a fixed " \6            "frequency source (a tuning fork of frequency %{frequency}) when the tube length is %{length} or 79.3 cm. " \7            "The edge effects may be neglected. %{speed}, in m/s?"8  given frequency: "340 Hz"9  given length: "25.5 cm"10  asks speed: "Estimate the speed of sound in air at the temperature of the experiment"11end
solution.rb
1require_relative "../questions/a_tube_with_a_movable_piston"2require_relative "../science/waves/closed_pipe"34solve :a_tube_with_a_movable_piston, using: ClosedPipe do5  objects :tube67  take frequency: tube.frequency8  take length: tube.length_of_the_pipe910  deduce_from "when the tube length is", tube.harmonic => 11112  speed = v13  answer speed:, in: "m/s", figures: 31415  conclusion "Closed by the piston, the tube first resonates when it holds a quarter of a wavelength, a node at " \16             "the piston and an antinode at the open end."17end
playground.rb
1require_relative "../solutions/a_tube_with_a_movable_piston"23play_with :a_tube_with_a_movable_piston do4  title "A Tube with a Movable Piston"5end
The laws it drew on
quantitywrittenunitswithinfrom
speed of soundvm/s—ClosedPipe
length of the pipeLm—ClosedPipe
harmonicn——ClosedPipe
frequencyνHz0 … ∞ClosedPipe
frequency of groundνgHz0 … ∞
harmonic of groundng——
length of the pipe of groundLgm—
frequency of tubeνHz0 … ∞
harmonic of tuben——
length of the pipe of tubeLm—
νp=np⋅v4⋅Lp
harmonics of a pipe closed at one end
νg=ng⋅v4⋅Lg
harmonics of a pipe closed at one end(ground)
ν=n⋅v4⋅L
harmonics of a pipe closed at one end(tube)