Calculator overview
Inputs and outputs
This summary comes from the calculator's published input and output contract.
Inputs
- Source acceleration (Advanced) (required)
-
Unit m/s^2 Default 0 Range -20 to 20
About this input
a, in m/s^2, from -20 to 20 (Advanced): a constant acceleration along the path; 0 is a constant-speed source. A negative value can stop the source and bring it back. An accelerating source must stay at or below 0.9 times the wave speed for the whole run.
- Run length (required)
-
Unit s Default 10 Range 1 to 60
About this input
T, in seconds, from 1 to 60: the length of the run. The source switches on at t = 0, and a sound that arrives after T is not heard.
- Your pitch prediction (challenge 1) (required)
-
Default Not yet predicted Allowed Not yet predicted, Rises, Falls, Stays the same
About this input
Your prediction in challenge 1, chosen from the list: does the pitch you hear rise, fall or stay the same? Until you choose one, the heard pitch stays hidden.
- Wave speed (required)
-
Unit m/s Default 343 Range 200 to 2000
About this input
c, in m/s, from 200 to 2000: the speed of sound in the still medium (343 is air at about 20 C; water is about 1480).
- Source start along the path (required)
-
Unit m Default -400 Range -2000 to 2000
About this input
x0, in metres, from -2000 to 2000: where the source is on the path (the x axis) at t = 0.
- Source speed (required)
-
Unit m/s Default 80 Range 0 to 1000
About this input
v, in m/s, from 0 to 1000: the source's speed along the path (+x) at the start. Above the wave speed it is supersonic, which needs a constant speed.
- Your speed estimate (challenge 2) (required)
-
Unit m/s Default 0 Range 0 to 1000
About this input
Your estimate of the source speed in challenge 2, in m/s, from 0 to 1000; 0 means not yet estimated.
- Emitted frequency (required)
-
Unit Hz Default 440 Range 20 to 2000
About this input
f, in Hz, from 20 to 2000: the steady pitch the source emits. It does not change the drawn fronts, only the pitch.
- Challenge number (required)
-
Default 0 Range 0 to 5
About this input
0 for none, or 1 to 5 to load a challenge. A challenge fixes the scene it is about and leaves only its free inputs to you.
- Observer offset from the path (required)
-
Unit m Default 50 Range -1000 to 1000
About this input
Y, in metres, from -1000 to 1000: the observer's constant distance across the path; 0 puts the observer on the path.
- Observer position along the path (required)
-
Unit m Default 0 Range -2000 to 2000
About this input
X0, in metres, from -2000 to 2000: the observer's position along the path at t = 0.
- Observer speed along the path (required)
-
Unit m/s Default 0 Range -100 to 100
About this input
vo, in m/s, from -100 to 100: the observer's constant velocity parallel to the path, positive along +x.
Outputs
- Observer speed solved (m/s)
-
No unit declared
About this output
The observer speed the model used, in m/s.
- Formula module versions
-
No unit declared
About this output
The versioned formula modules this workbook embeds.
- Observer position solved (m)
-
No unit declared
About this output
The observer position the model used, in metres.
- Pitch trend over the run
-
No unit declared
About this output
Rises, Falls or Stays the same: how the last heard pitch compares with the first, with a 1% band.
- Observer offset solved (m)
-
No unit declared
About this output
The observer offset the model used, in metres.
- Model version
-
No unit declared
About this output
The workbook model version.
- Mach angle (deg)
-
No unit declared
About this output
The half-angle of the Mach cone, ASIN(c/v), in degrees. Shown for a supersonic source only.
- Pitch of the last sound heard (Hz)
-
No unit declared
About this output
The pitch of the last sampled sound heard during the run, in Hz.
- Mach number (source speed / wave speed)
-
No unit declared
About this output
The source's starting speed divided by the wave speed. Above 1 the source is supersonic.
- Model Status
-
No unit declared
About this output
OK, CHECK: with a reason (the source moves at exactly the wave speed, some sounds arrive on a shock front or where they were emitted, or no sound reaches the observer during the run), or NOT VALID: with the input to fix; then the results are empty.
- Largest shift from the emitted pitch (%)
-
No unit declared
About this output
The largest difference between a heard pitch and the emitted pitch, as a percentage of the emitted pitch.
- Plot bound, x max (m)
-
No unit declared
About this output
Right edge of the square plot area, in metres.
- Source speed solved (m/s)
-
No unit declared
About this output
The source speed the model used, in m/s (the challenge's value when a challenge fixes it).
- Source speed at the end of the run (m/s)
-
No unit declared
About this output
The source's velocity at the end of the run, v + a*T, in m/s; negative means it has turned back.
- Source start solved (m)
-
No unit declared
About this output
The source start the model used, in metres.
- Wave speed solved (m/s)
-
No unit declared
About this output
The wave speed the model used, in m/s.
- Wave fronts: 60 frames of the scene (the source, the observer, the Mach cone edges and the radius of each of 24 drawn fronts)
-
No unit declared
About this output
60 frames over the run: the time, the source and observer positions along the path, the Mach cone's edge points (supersonic only) and the radius of each of 24 drawn fronts (blank before that front is emitted). Every centre and radius is a workbook value; the canvas draws circles.
- Source acceleration solved (m/s^2)
-
No unit declared
About this output
The source acceleration the model used, in m/s^2.
- Plot bound, y max (m)
-
No unit declared
About this output
Top edge of the square plot area, in metres.
- Plot bound, x min (m)
-
No unit declared
About this output
Left edge of the square plot area, in metres.
- Plot bound, y min (m)
-
No unit declared
About this output
Bottom edge of the square plot area, in metres.
- Run length solved (s)
-
No unit declared
About this output
The run length the model used, in seconds.
- On-axis recession formula (Hz)
-
No unit declared
About this output
The textbook on-axis value f*(c + vo)/(c + v), in Hz: the pitch heard once a constant-speed source moves straight away. Blank as the approach value.
- Source level with the observer at (s)
-
No unit declared
About this output
When the source is level with the observer along the path, in seconds; blank when that does not happen during the run.
- Challenge result
-
No unit declared
About this output
No challenge selected, MET or NOT MET for the selected challenge.
- Sound emitted at that moment arrives at (s)
-
No unit declared
About this output
When the sound emitted at the closest approach reaches the observer, in seconds (shown even after the run).
- Emitted frequency solved (Hz)
-
No unit declared
About this output
The emitted frequency the model used, in Hz.
- Pitch of the sound emitted at that moment (Hz)
-
No unit declared
About this output
The pitch of the sound emitted at the closest approach, in Hz. For a stationary observer it equals the emitted pitch: the source moves across the line of sight then.
- Challenge score
-
No unit declared
About this output
100 when the selected challenge is met, else 0.
- Sonic boom reaches the observer at (s)
-
No unit declared
About this output
When the Mach cone sweeps the observer (the sonic boom), in seconds. Supersonic source only; blank when the boom falls after the run.
- On-axis approach formula (Hz)
-
No unit declared
About this output
The textbook on-axis value f*(c - vo)/(c - v), in Hz: the pitch heard while a constant-speed source comes straight at an observer on its path. Blank for an accelerating, sonic or supersonic source.
- Challenge feedback
-
No unit declared
About this output
A hint while the challenge is not met, the explanation once it is, or the prompt to predict first in challenge 1.
- Challenge: the value scored
-
No unit declared
About this output
The value the selected challenge scores: the percent change from the first to the last heard pitch (1), the estimate's percent error (2), the largest shift (3 and 5) or the boom time (4).
- Challenge goal
-
No unit declared
About this output
What the selected challenge asks you to do.
- Emissions: each drawn front's emission time and point, its arrival time at the observer and the pitch heard then
-
No unit declared
About this output
The 24 drawn fronts: when and where each was emitted, when it reaches the observer and the pitch heard then.
- Highest pitch heard (Hz)
-
No unit declared
About this output
The highest pitch among the sampled sounds heard during the run, in Hz.
- Sampled sounds heard during the run
-
No unit declared
About this output
How many of the 60 sampled sounds reach the observer during the run with a pitch.
- Lowest pitch heard (Hz)
-
No unit declared
About this output
The lowest pitch among the sampled sounds heard during the run, in Hz.
- Speed from the pass-by formula (m/s)
-
No unit declared
About this output
The speed the classical pass-by formula c*(highest - lowest)/(highest + lowest) gives from the heard extremes, in m/s. It equals the true speed only for a source passing straight through the observer with a long run; off the path it reads low.
- Heard trace: 60 sampled sounds, one emitted at each frame time, with the arrival time, the heard pitch, the crest-count pitch and the flag
-
No unit declared
About this output
60 sampled sounds, one emitted at each frame time: the arrival time, the pitch heard then (the Doppler formula), the pitch from counting two crests, and the flag (Heard, Heard reversed, After run, At source or Shock front). The chart shows each sound once the clock reaches its arrival time.
- Pitch heard at that moment (Hz)
-
No unit declared
About this output
The pitch the observer hears at that moment, in Hz (constant-speed subsonic source only). It is already lower than the emitted pitch.
- First sound arrives at (s)
-
No unit declared
About this output
When the first sampled sound reaches the observer, in seconds.
- Pitch of the first sound heard (Hz)
-
No unit declared
About this output
The pitch of the first sampled sound heard, in Hz.
- Formula against crest count, largest relative gap
-
No unit declared
About this output
The largest relative gap between the crest-count pitch and the harmonic mean of the formula pitch at the two crests, over the heard rows. A small number confirms the formula against counting crests.
- Time between drawn fronts (s)
-
No unit declared
About this output
The time between drawn fronts, T/24, in seconds. The fronts are not crests: they show the pattern in slow motion.
- Time between frames (s)
-
No unit declared
About this output
The time between frames, T/59, in seconds.
LogicCommons is in beta. If a result, label, or reference looks wrong, tell us here; we read every message.
Methodology
Purpose and model boundary
This lab moves a sound source along a straight path, the x axis, while it emits a steady tone. An observer stands to one side of the path, or moves parallel to it. Over the run the model computes 60 frames of the scene: where the source and the observer are, the radius of each of 24 drawn wave fronts and, above the speed of sound, the edge of the Mach cone. It samples 60 sounds, one emitted at each frame time, and gives each its arrival time at the observer and the pitch heard then. From these it reports the highest and lowest pitch heard, whether the pitch rises or falls, the speed a pass-by formula infers from the pitch, the moment the source is level with the observer and, for a supersonic source, the Mach angle and the time of the sonic boom. At Advanced the source can speed up or slow down. Five scored challenges turn the lab into exercises.
Every step is a closed form: nothing in the model iterates. The key choice is that each sampled sound is followed forward from the moment it is emitted to the moment it arrives. That is a quadratic equation whatever the source does, so every arrival time is exact to rounding.
It is a lab for learning the Doppler effect, not an acoustics tool. The medium is still and uniform, sound travels in straight lines, and the lab says nothing about loudness. There is no wind, echo, refraction, ground or relativity. The source always moves along the x axis, and the observer only parallel to it.
The model is the calculation authority. The page sends the values you set to the model and draws only what the model returns: every source and observer position, front centre and radius, cone point, arrival time and pitch comes from the model's results; the page computes no physics value itself.
Inputs and units
| Input | Meaning and unit |
|---|---|
| Source speed | v, the source's speed along the path (+x) at the start, from 0 to 1,000 m/s. Above the wave speed the source is supersonic, which needs a constant speed. |
| Source acceleration (Advanced) | a, a constant acceleration along the path, from −20 to 20 m/s². 0 is a constant-speed source. A negative value can stop the source and bring it back. |
| Source start along the path | x0, where the source is on the path at t = 0, from −2,000 to 2,000 m. |
| Observer position along the path | X0, where the observer is along the path at t = 0, from −2,000 to 2,000 m. |
| Observer offset from the path | Y, the observer's constant distance across the path, from −1,000 to 1,000 m. 0 puts the observer on the path. |
| Observer speed along the path | vo, the observer's constant velocity parallel to the path, from −100 to 100 m/s, positive along +x. |
| Wave speed | c, the speed of sound in the still medium, from 200 to 2,000 m/s: air at about 20 °C is 343, water about 1,480. |
| Emitted frequency | f, the steady pitch the source emits, from 20 to 2,000 Hz. It changes the pitch, not the drawn fronts. |
| Run length | T, the length of the run, from 1 to 60 s. |
| Challenge number | 0 for free play; 1 to 5 loads one of the five challenges. |
| Your pitch prediction (challenge 1) | Not yet predicted, Rises, Falls or Stays the same. Only challenge 1 uses it. |
| Your speed estimate (challenge 2) | Your estimate of the source speed, from 0 to 1,000 m/s; 0 means not yet estimated. Only challenge 2 scores it. |
Sign conventions: x is measured along the path and y across it; the path is the line y = 0. Positions, velocities and the acceleration are positive along +x. The source starts at (x0, 0) and the observer at (X0, Y). The source switches on at t = 0: no sound exists before then.
Every input is set in the input panel. In a challenge, the inputs the challenge fixes cannot be changed.
Governing relationships
The motion. At time s the source is at xs(s) = x0 + v·s + a·s²/2 on the path, moving at ve(s) = v + a·s. At time t the observer is at xo(t) = X0 + vo·t, at the fixed offset Y. The source's speed at the end of the run is v + a·T; a negative value means it has turned back.
The speed regime. The Mach number is M = v / c, from the starting speed.
- With a ≠ 0 the source is accelerating, and it must stay at or below 0.9 c for the whole run. Its speed changes in a straight line with time, so the check uses the larger of |v| and |v + a·T|. An accelerating source is therefore always subsonic.
- With a = 0 the source is sonic when v is within 1×10⁻⁹ × c of c, supersonic when v is above that band, and subsonic otherwise.
Frames and drawn fronts. Frame k (k = 0 to 59) is at time t_k = T·k / 59 and holds xs(t_k) and xo(t_k). Drawn front m (m = 0 to 23) is emitted at τ_m = T·m / 24 from the point (xs(τ_m), 0). At frame k its radius is c·(t_k − τ_m) once it has been emitted, and blank before. The model supplies every centre and radius; the page draws them as circles.
The drawn fronts are not individual crests. A 440 Hz tone has 440 crests a second, far too many to draw, so the 24 fronts are spaced T/24 apart. Their bunching ahead of the source and spreading behind it show the Doppler pattern in slow motion. Every pitch the lab reports uses the true frequency f.
The Mach cone (supersonic source only). With kx = (v − c)(v + c)/v and ky = c·√((v − c)(v + c))/v, the cone's two edge points at frame k are (xs(t_k) − t_k·kx, ±t_k·ky). They are where the cone touches the oldest front, emitted at t = 0, and the cone's apex is the source. The half-angle of the cone, the Mach angle, is sin⁻¹(c/v), in degrees.
When a sound arrives. A sound emitted at time τ leaves the point xe = xs(τ) while the source moves at vE = ve(τ). Let d = (X0 + vo·τ) − xe be the observer's offset along the path at that moment. The travel time u ≥ 0 solves
- (d + vo·u)² + Y² = (c·u)²,
that is A·u² − 2·Bh·u − C = 0 with A = (c − vo)(c + vo), Bh = d·vo and C = d² + Y². A is always positive, because the observer is never faster than half the slowest wave speed. The model takes the positive root in the form that adds numbers of the same sign, to avoid cancellation: u = (Bh + √E)/A when Bh ≥ 0, and u = C/(√E − Bh) otherwise, with E = Bh² + A·C. The sound arrives at t_a = τ + u, after travelling R = c·u, when the observer's offset along the path is D = d + vo·u.
The pitch heard. The heard pitch is the classical Doppler formula for a moving source and a moving observer, along the line from the point of emission to the observer at arrival:
- f_heard = f · (c²·u − vo·D) / (c²·u − vE·D),
which is f·(c − vo·cos A)/(c − vE·cos A) with cos A = D/R, written without dividing by R. It uses the source's velocity when the sound left and the observer's velocity when it arrived, so it is exact at that instant, for an accelerating source too. The lab reports its size.
Each sampled sound's flag. Sample j is emitted at τ_j = T·j / 59, the same times as the frames. Its flag is the first of these that applies:
- After run when it arrives after the run ends (t_a > T);
- At source when it travels at most 1×10⁻⁶ m, so the observer stands where it was emitted and the formula is 0/0;
- Shock front when the formula's denominator is within 1×10⁻⁹ × c²·u of 0, so the formula has no finite value;
- Heard when the denominator is positive;
- Heard reversed otherwise: a sound from a supersonic source that arrives in reverse order, later crests first.
A sample has a heard pitch only when it is flagged Heard or Heard reversed.
The crest count, a check on the formula. For each heard sample, the model also solves the arrival of the next crest, emitted one true period 1/f later. The crest-count pitch is 1 / |t_a2 − t_a|, the rate at which the two crests arrive. Counting crests gives the average pitch over one crest interval, while the formula gives the pitch at an instant, so the two agree closely but are not the same quantity. For each sample flagged Heard whose next crest is also heard normally, the model compares the crest count with the harmonic mean of the formula pitch at the two crests, H = 2·p1·p2/(p1 + p2), which matches it to second order. The largest relative gap is the formula check.
Heard statistics (over the heard samples):
- the number heard, and the highest and lowest pitch heard;
- the first arrival time;
- the first and last sound heard: the samples with the earliest and the latest arrival time, where arrival times within 1×10⁻⁹ (relative) of the extreme count as a tie, which goes to the earlier emission. For a subsonic source sounds arrive in the order they were emitted; for a supersonic source the first sound heard arrives with the boom;
- the pitch trend: Rises when the last pitch is more than 1% above the first, Falls when it is more than 1% below, and Stays the same otherwise;
- the largest shift, the largest 100·|f_heard − f|/f, in percent;
- the speed from the pass-by formula, c·(highest − lowest)/(highest + lowest). It equals the source speed only for a constant-speed source passing straight through a stationary observer on its path, with the run long enough to cover the approach and the recession. Off the path, or with a short run, the pitch heard is milder than the formula assumes, and the speed it gives is low: the default gives about 79.25 m/s for a source at 80 m/s.
On-axis formulas. For a constant-speed source that is neither sonic nor supersonic, the model gives the textbook values for a source coming straight at an observer on its path, and then moving straight away:
- approach: f·(c − vo)/(c − v);
- recession: f·(c + vo)/(c + v).
The sonic boom (supersonic source only). With q = √((v − c)(v + c))/c, the cone's edge reaches the observer at t_b = ((X0 − x0) + |Y|·q)/(v − vo). The sound that arrives with it left the path at x_b = (X0 + vo·t_b) − |Y|/q, at time τ_b = (x_b − x0)/v. The boom time is t_b when τ_b ≥ 0 (that sound was emitted after the source switched on) and t_b ≤ T. Before the boom the observer is still outside the cone and hears nothing. From the boom on, two sounds from different emissions arrive at once, and one of them arrives in reverse order (Heard reversed).
Closest approach. The source is level with the observer along the path, at distance |Y|, when (x0 − X0) + (v − vo)·t + a·t²/2 = 0. With a = 0 the root is −(x0 − X0)/(v − vo), and there is none when v = vo. With a ≠ 0 the model solves the quadratic in the cancellation-safe form above and keeps the earliest root from 0 to T. With no root in the run, the time is blank.
- The pitch heard at that moment (constant-speed subsonic source only) is the formula applied to the sound that reaches the observer at the closest-approach time. It is blank when that sound would have been emitted before the source switched on, or the observer is at the source. It is already lower than f.
- The sound emitted at that moment is followed forward like any sample. Its arrival time is shown even after the run. For a stationary observer its pitch equals f to within rounding (about 1×10⁻¹³ relative), because the source then moves across the line of sight. When the observer is on the path (Y = 0) and stationary, that sound is emitted where the observer stands, so its pitch is blank.
Plot area. The plot area is a square around the source's start, end and turning point (when it turns back during the run), the observer's start and end, and the point on the path beside the observer's start. Its side is 1.1 times the larger of the width, the height and 100 m. Fronts may extend past it.
Calculation sequence
The model works through the relationships above in this order:
- It checks the entered inputs, items 1 to 6 of the status list under Errors and warnings.
- It fixes the values solved: your inputs, or in a challenge the challenge's own scene, with the inputs the challenge leaves free still yours. It checks that an accelerating source stays at or below 0.9 times the wave speed (item 7). Under NOT VALID every result is blank.
- It finds the speed regime and the Mach number.
- It computes the 60 frames: the source and observer positions, the cone points and the radii of the 24 drawn fronts.
- It follows each of the 24 drawn fronts and the 60 sampled sounds to its arrival, with its pitch and, for the samples, its flag and crest-count pitch.
- It computes the heard statistics, the formula check, the on-axis formulas, the Mach angle, the boom time, the closest approach and the plot area.
- It sets the status and, in a challenge, scores the challenge.
Outputs and interpretation
- Status: OK, CHECK or NOT VALID, with the reason (see Validation and status logic and Errors and warnings).
- Speed: the Mach number (the starting speed divided by the wave speed); the Mach angle in degrees, supersonic only; the source speed at the end of the run (m/s).
- The pitch heard:
- the highest and lowest pitch heard (Hz) and the number of the 60 sampled sounds heard during the run;
- when the first sound arrives (s), the pitch of the first and of the last sound heard (Hz), and the pitch trend over the run;
- the largest shift from the emitted pitch (%);
- the speed from the pass-by formula (m/s): the formula's estimate, not a measurement.
- On-axis formulas: the approach and recession values (Hz), blank for an accelerating, sonic or supersonic source.
- Boom and closest approach:
- when the sonic boom reaches the observer (s), blank unless the source is supersonic and the boom comes during the run;
- when the source is level with the observer (s), and the pitch heard at that moment (Hz);
- when the sound emitted at that moment arrives (s), and its pitch (Hz).
- Formula against crest count: the largest relative gap between the crest-count pitch and the harmonic mean of the formula pitch at the two crests, in scientific notation. A small number confirms the formula. In the worked examples it is up to about 6.4×10⁻⁶ for a subsonic source, about 3.7×10⁻⁵ at the speed of sound and about 4.0×10⁻⁴ for a supersonic source, largest near the boom where the pitch changes fastest.
- Numerical details: the time between frames, T/59, and between drawn fronts, T/24 (s), and the four edges of the square plot area (m).
- Scenario solved: the source speed and acceleration, source start, observer position, offset and speed, wave speed, emitted frequency and run length actually solved. In a challenge these are the challenge's own.
- Grids:
- Wave fronts: 60 rows, one per frame, of the time, the source and observer positions along the path, the cone edge x and its upper and lower y (supersonic only), and the radii of fronts 1 to 24 (blank before each is emitted).
- Emissions: 24 rows, one per drawn front, of its emission time, its centre on the path, its arrival time at the observer and the pitch heard then. A front's arrival and pitch are shown even when it arrives after the run.
- Heard trace: 60 rows, one per sampled sound, of its emission time, its arrival time, the heard pitch, the crest-count pitch and the flag.
The page plays the wave-front frames exactly as returned. The heard-pitch chart plots each sampled sound against its arrival time, not its frame, and shows it once the playback clock reaches that time.
Reading the results:
- The pitch rises above f while the source comes toward you and falls below it once it moves away. At the moment the source is level with you, you already hear a pitch below f: the sound emitted then, at f, arrives later.
- A moving observer is not the mirror of a moving source. At 80 m/s in air at 440 Hz, a moving source gives 573.84 and 356.78 Hz on its path, and a moving observer 542.62 and 337.38 Hz.
- At the speed of sound with the observer on the path, every sound emitted before the pass arrives together with the source, on the shock front, and has no finite pitch. Off the path the pitch is finite but very high.
- The highest and lowest pitch are those of the 60 samples; a value between samples is not searched.
Challenges
Choose a challenge number from 1 to 5. The model loads that challenge's scene, and the inputs it fixes replace yours (the "solved" outputs show the values in effect). Only the inputs the challenge leaves free stay yours. The challenge result reads MET or NOT MET, the score is 100 when met and 0 otherwise, and a goal and a feedback line say what is asked and what to try next. The status checks still apply inside a challenge.
- Which way does the pitch go? Predict whether the pitch you hear rises, falls or stays the same as the source passes you. Until you choose a prediction, the heard pitch, every result that would give its direction away, and the pitch columns of the grids stay blank; the scene and the arrival times still show. The challenge is met when your prediction equals the pitch trend.
- How fast was it? From the highest and lowest pitch you hear, estimate the source speed to within 5%. The scene is a close pass-by with a long run, where the pass-by formula is nearly exact.
- A steady pitch. Place the observer so the pitch you hear stays within 10% of the emitted pitch, while you still hear at least 30 of the 60 sampled sounds.
- Time the boom. Choose the source speed so the sonic boom reaches the observer 2.5 s after the start, within 0.05 s.
- Cancel the shift. Choose the observer's speed so the pitch you hear stays within 1% of the emitted pitch while the source moves, with at least 30 of the 60 sampled sounds heard.
Validation and status logic
The status reads the first message in the list under Errors and warnings that applies. Items 1 to 6 check the
values you entered; items 7 to 10 check the values solved, which are a challenge's own when one is selected.
OK means the inputs are valid, the source is not at the speed of sound, every sampled sound that arrives
during the run has a finite pitch, and at least one is heard. A CHECK still returns every result; it marks one
that deserves a second look. A supersonic source is not a CHECK: the boom and the Mach cone are its normal
results.
Assumptions and limitations
- A point source and a point observer in a plane; a still, uniform medium; sound along straight lines. No wind, refraction, reflection, ground, loudness or relativity.
- The source moves along the x axis with a constant acceleration; the observer moves parallel to it at a constant speed of at most half the slowest wave speed. An accelerating source stays at or below 0.9 times the wave speed, so only a constant-speed source can be sonic or supersonic.
- 60 frames, 24 drawn fronts and 60 sampled sounds. The heard results are those of the samples. The drawn fronts are T/24 apart and show the pattern in slow motion; they are not crests.
- The heard pitch is the instantaneous formula; the crest count is an average over one period. They are reported separately.
- The pass-by speed formula is exact only for a constant-speed source passing straight through a stationary observer, with a run that covers the approach and the recession.
- A closest-approach or turning time larger than 1×10³⁰⁰ s is treated as no time at all, since it lies far outside any run.
- A value within about 1×10⁻⁹ (relative) of a threshold may fall either side of it. This applies to the sonic band, the 0.9 limit, the at-source and shock-front tests, the after-run test, the arrival-time tie, the 1% trend band, the 30-sound rule and each challenge band.
Restrictions and non-computing states
Every input is required; a blank or out-of-range value reads NOT VALID. The pitch prediction must be exactly one of its listed choices.
Under NOT VALID every number and every grid cell is blank. The model and module versions still show, the challenge score reads 0, and a selected challenge reads NOT MET with its goal and its not-met text. A challenge number that is not a whole number from 0 to 5 counts as no challenge selected.
Errors and warnings
The status messages, in the order they are checked:
NOT VALID: the source speed must be from 0 to 1000 m/s and its acceleration from -20 to 20 m/s^2NOT VALID: the source start and the observer position must be from -2000 to 2000 m along the path, and the observer from -1000 to 1000 m across itNOT VALID: the observer speed must be from -100 to 100 m/sNOT VALID: the wave speed must be from 200 to 2000 m/s and the emitted frequency from 20 to 2000 HzNOT VALID: the run must last from 1 to 60 sNOT VALID: the challenge number must be a whole number from 0 to 5, the pitch prediction one of the listed choices, and the speed estimate from 0 to 1000 m/sNOT VALID: an accelerating source must stay at or below 0.9 times the wave speed for the whole run: the acceleration is not 0 and the larger of the starting and ending speed is above 0.9 times the wave speed.CHECK: the source moves at the wave speed, so its fronts pile up at its nose and the approach formula has no value: a constant-speed source within 1×10⁻⁹ of the wave speed.CHECK: some sampled sounds reach the observer exactly on a shock front or at the point where they were emitted, so their pitch is blank: a sampled sound is flagged Shock front or At source.CHECK: no sampled sound reaches the observer during the run, so the heard results are blank; lengthen the run or move the observer closer: no sampled sound is heard; the number heard reads 0.OK
References
This laboratory is an educational model of a sound source moving along a straight line past an observer in a still, uniform medium. Each sampled sound is followed from the moment it is emitted to the moment it reaches the observer, an arrival time found in closed form from a quadratic equation. The pitch heard is the classical Doppler formula for a moving source and a moving observer, checked against the arrival rate of two successive crests. Above the speed of sound, the Mach angle and the time the Mach cone sweeps the observer are closed forms too.
Sources and further reading
- The effect as first proposed: C. Doppler, "Über das farbige Licht der Doppelsterne und einiger anderer Gestirne des Himmels", Abhandlungen der Königlichen Böhmischen Gesellschaft der Wissenschaften, series 5, volume 2, 1843, pages 465-482.
- The Doppler effect for a moving source and a moving observer: S. J. Ling, J. Sanny and W. Moebs, University Physics Volume 1, OpenStax, 2016, section 17.7, The Doppler Effect. OpenStax
- Shock waves, the Mach cone and the sonic boom: S. J. Ling, J. Sanny and W. Moebs, University Physics Volume 1, OpenStax, 2016, section 17.8, Shock Waves. OpenStax
- Sound in fluids, its speed and the Doppler effect: L. E. Kinsler, A. R. Frey, A. B. Coppens and J. V. Sanders, Fundamentals of Acoustics, 4th edition, John Wiley & Sons, 2000.
- Solving a quadratic equation without loss of accuracy from cancellation: W. H. Press, S. A. Teukolsky, W. T. Vetterling and B. P. Flannery, Numerical Recipes: The Art of Scientific Computing, 3rd edition, Cambridge University Press, 2007, section 5.6, Quadratic and Cubic Equations.
No table or text from any of these publications is reproduced, and none of their authors or publishers has reviewed or endorses this laboratory.
This laboratory is for learning. Its results hold only within its stated ranges; it is not an acoustics, noise or aircraft tool.
Found a problem, or have an idea?
Tell us if a result looks wrong, a label is unclear, or something is missing. We read every message.