A Tube with a Movable Piston
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 HzHz) when the tube length is 25.5 cmcm 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?
Inputs
Outputs
speed?
How it's solved
Solved with ClosedPipe
Given
- Hz
- cm
- from “when the tube length is”
Find .
Working
- cmm
- harmonics of a pipe closed at one end(tube)
- m/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.
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"11end1require_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."17endplayground.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"5endThe laws it drew on
| quantity | written | units | within | from |
|---|---|---|---|---|
| speed of sound | m/s | — | ClosedPipe | |
| length of the pipe | m | — | ClosedPipe | |
| harmonic | — | — | ClosedPipe | |
| frequency | Hz | 0 … ∞ | ClosedPipe | |
| frequency of ground | Hz | 0 … ∞ | ||
| harmonic of ground | — | — | ||
| length of the pipe of ground | m | — | ||
| frequency of tube | Hz | 0 … ∞ | ||
| harmonic of tube | — | — | ||
| length of the pipe of tube | m | — |