play phryzby with physics

A Pipe Open at Both Ends

solved StandingWaves

Q. A pipe, 30.0 cmL=30.0cm long, is open at both ends. Taking the speed of sound in air as 330 m/sv=330m/s, which harmonic mode of the pipe resonates a 1.1 kHzν=1.1kHz source?

L = 0.3 mn = ?v = 330 m/sf = 1100 Hz
Inputs
L
30 cm
v
330.0 m/s
ν
1.1 kHz
Outputs
harmonicn?

How it's solved

Solved with StandingWaves

Given

  • L=30.0cm
  • v=330m/s
  • ν=1.1kHz

Find n.

Working
  1. L=30.0cm=0.3m
  2. ν=1.1kHz=1100Hz
  3. harmonics of a pipe open at both ends(pipe)ν=n⋅v2⋅L
  4. 1100=n⋅3302⋅0.3
  5. n=2
  6. n≈2.0to 2 significant figures
Conclusion

An open pipe sounds every whole multiple of its fundamental, the speed over twice its length; the source is twice that fundamental.

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_pipe_open_at_both_ends do4  kind :numerical5  describes "A pipe, %{length} long, is open at both ends. Taking the speed of sound in air as %{speed}, " \6            "%{harmonic} a %{source} source?"7  given length: "30.0 cm"8  given speed: "330 m/s"9  given source: "1.1 kHz"10  asks harmonic: "which harmonic mode of the pipe resonates"11end
solution.rb
1require_relative "../questions/a_pipe_open_at_both_ends"2require_relative "../science/waves/standing_waves"34solve :a_pipe_open_at_both_ends, using: StandingWaves do5  objects :pipe67  take length: pipe.length_of_the_pipe8  take speed: v9  take source: pipe.frequency1011  harmonic = pipe.harmonic12  answer harmonic:, figures: 21314  conclusion "An open pipe sounds every whole multiple of its fundamental, the speed over twice its " \15             "length; the source is twice that fundamental."16end
playground.rb
1require_relative "../solutions/a_pipe_open_at_both_ends"23play_with :a_pipe_open_at_both_ends do4  title "A Pipe Open at Both Ends"5end
The laws it drew on
quantitywrittenunitswithinfrom
speed of soundvm/s—StandingWaves
length of the pipeLm—StandingWaves
harmonicn——StandingWaves
frequencyνHz0 … ∞StandingWaves
frequency of groundνgHz0 … ∞
harmonic of groundng——
length of the pipe of groundLgm—
frequency of pipeνHz0 … ∞
harmonic of pipen——
length of the pipe of pipeLm—
νp=np⋅v2⋅Lp
harmonics of a pipe open at both ends
νg=ng⋅v2⋅Lg
harmonics of a pipe open at both ends(ground)
ν=n⋅v2⋅L
harmonics of a pipe open at both ends(pipe)