Validation 6 — Reflection at an open pipe end¶
Time: ~10 minutes. Case: examples/benchmarks/open_pipe_reflection.toml.
Gated by: tests/validation/test_open_pipe_reflection.py, which also runs
this case file.
A pressure wave that reaches the open end of a pipe comes back inverted. That
reflection is what tunes an intake runner or an exhaust: the round trip from
the valve to the open end and back sets the resonances. aeolus1d closes a pipe
to the atmosphere with a pressure outlet, which holds the static pressure
at the end face. This page checks that the outlet reflects a weak wave as it
should. It then compares the outlet with a real, unflanged pipe, which does
something the plain outlet does not, and checks the outlet's radiating option
(radiation = "unflanged", since 2026-11-13), which does it too.
Where the case is
examples/benchmarks/ is in a clone, in the GUI installers and, from the
release after 0.5.2, in the pip install aeolus1d wheel, where
aeolus1d examples prints its directory on line 1. The commands below run
from a clone. The comparison snippet imports constants from tests/,
which only a clone has.
The problem¶
Write a plane wave in the pipe as a forward and a backward part, p' = A e^(i(ωt − kx)) + B e^(i(ωt + kx)), with k = ω/c. At the end the ratio R = B/A is the reflection coefficient.
The ideal open end holds p' = 0, so R = −1 at every frequency. Nothing
leaves the pipe as sound, and the wave turns round exactly at the end face.
That is the pressure outlet's boundary condition (bc/pressure_outlet.py).
It is also how the FEM mode solver (modes/network.py) and the four-pole
eigenfrequencies (analysis/acoustics_tm.eigenfrequencies_tm) treat an open
end.
A real unflanged pipe of radius a radiates. H. Levine and J. Schwinger solved the thin-walled pipe exactly in 1948 ("On the radiation of sound from an unflanged circular pipe", Phys. Rev. 73, 383). They write the result as
which says two things. The wave comes back weaker, |R| < 1, because the pipe radiates sound. It also turns round a distance l outside the end, the end correction. At low frequency |R| = 1 − (ka)²/2 and l = 0.6133 a. Both fall as ka grows. The solution holds up to ka = 3.83, where the first non-planar mode appears. The test evaluates their integrals (Eq. V.16) directly. It checks them first against the low-frequency limits and against the fits of Silva et al. (2009, J. Sound Vib. 322, 255, arXiv:0811.3625), which the paper states are within 2 % for ka < 3:
- |R| is within 0.36 % of the fit up to ka = 2, and 0.8 % up to ka = 3.
- l/a is within 1.1 % up to ka = 2, but 2.2–2.7 % off at ka = 2.5–3, more than the paper states.
- The static end correction comes out at 0.61270, 0.1 % below the 0.6133 both papers print.
Three ways of splitting the quadrature agree to 1e-11, so the last two gaps are not numerical. Which side of them is wrong is not settled here. Neither matters for what this page shows.
Run it¶
Terminal¶
aeolus1d run examples/benchmarks/open_pipe_reflection.toml --out /tmp/open_pipe.h5
About 2 s. The case is a 1 m pipe of air at rest, at 1 bar and 300 K, with a 10 Pa pressure plateau over 0.2–0.3 m. The plateau's density is set so the pulse is isentropic. The plateau splits into two 5 Pa halves. The left half leaves through a nonreflecting end. The right half reaches the pressure outlet and comes back. The run stops at t = 3.456 ms, when each half has travelled 1.2 m.
GUI¶
- File → Open Example → Benchmarks → open_pipe_reflection.
- Click Run (or press F5).
- In the plot dock pick p. The reflected pulse is a dip of about 5 Pa near x = 0.55 m.
Compare with the exact solution¶
For an ideal end the exact answer comes from the method of images: the incident half, mirrored in the end at x = L and inverted. At t_end that is −5 Pa over 0.5–0.6 m, and zero elsewhere. From the repository root:
import h5py
import numpy as np
from tests.validation.test_open_pipe_reflection import C0
with h5py.File("/tmp/open_pipe.h5") as f:
x = f["pipes/duct/x"][:]
dp = f["pipes/duct/p"][:] - 1.0e5
t = f.attrs["t_final"]
exact = np.where((x > 1.7 - C0 * t) & (x < 1.8 - C0 * t), -5.0, 0.0)
print(dp.sum() * 0.0025) # -0.499947 (exact -0.5)
print(np.abs(dp - exact).sum() * 0.0025 / 0.5) # 0.276
The integral of the reflected pulse is −0.499947 Pa m against −0.5. That says R = −1 at low frequency, to 1.1e-4. The shortfall is the pulse's own nonlinearity: at 1 Pa it is 1.5e-5. The pulse's shape is smeared, as a square pulse always is on a grid. L1 of its error, over its integral, is 0.276 at 400 cells, 0.175 at 800 and 0.110 at 1600, an order of 0.66. A discontinuity under MUSCL allows about 2/3. First order reads 0.845, at order 0.47.
Results¶

Top: the reflection coefficient and the end correction against ka, for a = 25 mm. Black is Levine and Schwinger's pipe, dashed grey is Silva's fit; blue is the plain outlet, orange and green the radiating one, all under MUSCL. Bottom left: the first three resonances of a 0.5 m closed-open runner, run through a case file and the network driver, as their distance above the unflanged pipe's. Bottom right: the bundled case's reflected pulse against the exact one.
The outlet is an ideal open end (measured 2026-11-12). The test sends a
10 Pa Gaussian pulse at the outlet and records it at two probes, 25 and 50 mm
from the end. It splits the record into forward and backward waves with
analysis.acoustics.decompose_waves, then carries the ratio to the end face.
1 − |R|:
| scheme | cells | ka = 0.5 | ka = 1 | ka = 2 |
|---|---|---|---|---|
| first order | 400 | 1.02e-2 | 0.120 | 0.512 |
| first order | 1600 | 2.8e-3 | 0.034 | 0.154 |
| MUSCL | 400 | −4.3e-3 | 1.12e-2 | 8.2e-2 |
| MUSCL | 1600 | 9e-6 | 1.12e-3 | 6.0e-3 |
This is the scheme's damping on the 0.1 m to the end and back, not the boundary. It falls with the cells: at ka = 1 the order is 0.9 under first order and 1.7 under MUSCL. The wave turns round at the end face under first order. It turns round a tenth of a cell inside it under MUSCL, at every ka and on every grid. Below ka = 0.5 the 25 mm between the probes is too short a baseline, and the decomposition amplifies noise.
What the ideal end leaves out. At the same ka Levine and Schwinger's pipe reads |R| 0.896, 0.695 and 0.346, and l/a 0.582, 0.527 and 0.417. The plain outlet does not model this (the radiating one below does). Here is what the plain outlet leaves out at engine sizes, in air at 300 K:
| pipe radius | f | ka | |R| | l | a 0.5 m pipe's resonances |
|---|---|---|---|---|---|
| 20 mm | 100 Hz | 0.036 | 0.999 | 12.2 mm | 2.4 % high |
| 20 mm | 1000 Hz | 0.362 | 0.942 | 11.9 mm | 2.3 % high |
| 25 mm | 100 Hz | 0.045 | 0.999 | 15.3 mm | 3.0 % high |
| 25 mm | 1000 Hz | 0.452 | 0.913 | 14.7 mm | 2.8 % high |
| 40 mm | 100 Hz | 0.072 | 0.997 | 24.5 mm | 4.7 % high |
| 40 mm | 1000 Hz | 0.724 | 0.810 | 22.3 mm | 4.3 % high |
Below about 1 kHz the lost amplitude is small. The end correction is not: it moves every resonance of a short open pipe by a few percent. In a hot exhaust the sound speed is higher, so ka at a given frequency is lower and |R| is closer to 1. The end correction stays near 0.61 a.
The radiating outlet. Since 2026-11-13 a pressure outlet can radiate:
[[bc]]
pipe = "runner"
end = "right"
kind = "pressure_outlet"
p_back = 1.0e5
radiation = "unflanged" # default "none", the ideal end
radiation_radius = 0.025 # optional; 0 takes sqrt(A / pi) of the end
It takes the outgoing wave at the end, \(W^+ = (p - p_\mathrm{back}) + \rho
a u_n\), and sends back \(W^- = R(s)\,W^+\), with \(R\) a three-pole rational fit
to Levine and Schwinger over \(0 < ka \le 3\). The fit is within 0.004 of their
|R| and 0.003 of their l/a there, has \(R(0) = -1\) exactly, and is passive.
The face pressure is \(p_\mathrm{back} + (W^+ + W^-)/2\), and the ghost cell
is the plain outlet's at that pressure. So a steady flow, out or back in, is
the plain outlet's to round-off. The filter is integrated exactly over each
step, so it is stable at any time step. The modes solver and the four-pole
eigenfrequencies take the same end correction, 0.6133 a.
The same harness as above, on the same grids (measured 2026-11-13):
| scheme | cells | |R| at ka = 0.5 / 1 / 2 | l/a at ka = 0.5 / 1 / 2 |
|---|---|---|---|
| Levine & Schwinger | 0.8964 / 0.6951 / 0.3462 | 0.5818 / 0.5274 / 0.4169 | |
| MUSCL | 400 | 0.8948 / 0.6794 / 0.3349 | 0.5790 / 0.5198 / 0.4175 |
| MUSCL | 1600 | 0.8957 / 0.6917 / 0.3467 | 0.5837 / 0.5264 / 0.4181 |
| first order | 400 | 0.8847 / 0.5723 / 0.2947 | 0.5823 / 0.5090 / 0.4537 |
| first order | 1600 | 0.8928 / 0.6592 / 0.3284 | 0.5842 / 0.5250 / 0.4229 |
On 1600 cells under MUSCL the outlet is within 0.0034 of Levine and Schwinger in |R| and 0.0019 in l/a; what is left is the fit's. On coarser grids and under first order the scheme's damping on the way to the end and back takes |R| lower, as it does for the plain outlet. The 0.5 m closed-open runner, built as a case and run by the network driver (200 cells, MUSCL), resonates at 168.59, 505.78 and 843.44 Hz with the radiating outlet, within 0.08 % of the unflanged pipe's 168.46, 505.55 and 843.05 Hz. With the plain outlet it resonates at 173.75, 521.09 and 868.59 Hz, 3.0-3.1 % above.
Where it does not run. The filter commits its state on the stage calls of
an explicit Runge-Kutta step. An implicit integrator calls the boundary again
and again at the new time with Newton's trial states, and the filter would
integrate those: under bdf2 the runner's first mode read 154.68 Hz, 8.2 %
low. So validate refuses a radiating outlet under implicit_euler, bdf2
and radau_iia. The quasi-steady solver sees a plain outlet, which a
radiating end is at zero frequency. Only pressure_outlet radiates: the
parser refuses radiation on any other kind, transient_pressure_outlet
included. The structural exports (GT-POWER, Boost, WAVE) and OpenWAM write a
plain open end and say so in their report. Where the radiating outlet cannot
run, lengthening the open pipe by 0.61 a is still the workaround.
The flanged end. The necks of the Helmholtz resonator, the EHR junction and
acoustics_tm take Rayleigh's end correction, 0.85 a. That is the baffled
piston's 8/(3π) = 0.849, rounded. The exact value for a pipe in a flange is
0.8216 a (Norris and Sheng 1989, J. Sound Vib. 135, 85), 3.5 % less.
The test gates each number at 1.5 times what was measured, and the reflection plane at 0.15 of a cell. It found nothing wrong in the outlet. It did find that the benchmark survey's premise was wrong: the survey listed "the FEM eigensolver's end correction", and there is none.
Not covered: - mean flow through the end, which changes both |R| and l (Munt 1977). No open measured data was found for it; the radiating outlet applies the no-flow R to the acoustic part and passes the mean flow as the plain outlet does. - a pipe with thick walls, or a horn. - nonlinear reflection at high amplitude, where the outflow separates. - the nonreflecting and transient outlets.
Reproduce the figure¶
python scripts/validation_figures.py open_pipe
It runs the test's own harness on 400 and 1600 cells, for the plain and the
radiating outlet, and the runner through the network driver with each, prints
the numbers above, and writes docs/img/validation/open_pipe.png. About a
minute.