Validation 13 — The loss at a T-junction¶
Time: about four minutes for the gate, 50 for the full set. Suite:
examples/validation/perez_garcia_tjunction/. Gated by:
tests/validation/test_perez_garcia_tjunction.py.
Every manifold, EGR mixer and Y-pipe in a 1-D engine model goes through a 0-D junction, and the junction decides how much total pressure the flow loses where branches meet. Until this case nothing in aeolus1d compared that loss with a measurement. This page builds a sharp-edged 90-degree T of three 12 mm pipes, runs both junction kinds aeolus1d offers at every flow split the reference measured, and compares Miller's loss coefficient with the measured one.
Where the data is
J. Pérez-García, Investigación numérica y experimental sobre el flujo
compresible estacionario en uniones de conductos, PhD thesis,
Universidad Politécnica de Cartagena (2006),
https://hdl.handle.net/10317/978, open access, CC BY-NC-ND 3.0 ES.
Its figures 7.1–7.38 plot the measured coefficients for all four flow
types beside Abou-Haidar & Dixon's data for the same T. The figures are
vector drawings, so each marker's coordinates were read out of the PDF's
drawing and the axes calibrated by pairing each tick mark with its label
(fit residual at most 0.005 in K): 366 measured markers and 282
Abou-Haidar & Dixon markers, in the suite's data/thesis_K.csv.
The problem¶
A T has three branches; the common branch 3 carries all the flow and the split is \(q = G_2/G_3\). The four flow types (thesis Table 2.1) are two combining ones, C1 (branch 2 and the run 1 into the run 3) and C2 (the runs 1 and 2 into the branch 3), and two dividing ones, D1 (the run 3 into the run 2 and the branch 1) and D2 (the branch 3 into the runs 1 and 2). The loss is Miller's coefficient between a branch \(u\) upstream and \(d\) downstream,
with stagnation and static pressures extrapolated to the junction with the pipe friction taken off (the starred quantities) and \(c\) the common branch. The thesis gives it against \(q\) at low Mach number (\(M_3^* \le 0.2\), figures 7.1–7.6) and against \(M_3^*\) at \(q\) = 0, 0.25, 0.5, 0.75 and 1 (figures 7.7–7.38).
Not used: the same group's 2010 correlations of a "linking coefficient" \(\hat K = (f(M_3^*) - 1)/f(M_j^*)\), \(f = p_0/p\). It barely sees the loss: a lossless junction and one with Miller \(K = 1\) differ in \(\hat K\) by less than the correlations' 3.5–6.3 % band over most of the range.
The model¶
Three frictionless pipes of 12 mm, 0.3 m and 30 cells each meet a junction at their right ends. A mass-flow inlet or sink sets \(G_2 = q\,G_3\) and a pressure outlet at 1 bar closes the network. With no friction every cell holds the junction-side state, so Miller's coefficient is formed from the middle cells, averaged over the last 40 ms of a 120 ms run: a frictionless T between reflecting ends rings for a long time. The two junction kinds are run with nothing set:
plenum, a 2 cm³ volume, which dumps every inflow's dynamic head;corberan, which holds one static pressure on every port (its portK_lossleft at 0).
At low Mach number both have a closed form:
| combining \(K_{j3}\) | dividing \(K_{3j}\) | |
|---|---|---|
| plenum | \((G_j/G_3)^2\) | 1 |
| corberan | \((G_j/G_3)^2 - 1\) | \(1 - (G_j/G_3)^2\) |
and both are checked against it to 0.03 at \(M_3 = 0.2\) by the suite's test. Neither has a geometry: a 0-D junction cannot tell the branch of a T from its run, so C1 and C2, and D1 and D2, differ only in which ports feed.
Run it¶
python examples/validation/perez_garcia_tjunction/run_validation.py --json out.json
Results¶

Measured 2026-11-24 (feat/0.6.1, dev Xeon, Python 3.10.21), every measured
marker of figures 7.1–7.38, \(K_\text{model} - K_\text{measured}\):
| n | plenum median |ΔK| | plenum bias | corberan median |ΔK| | corberan bias | |
|---|---|---|---|---|---|
| C1 | 122 | 0.39 | −0.05 | 1.23 | −1.02 |
| C2 | 63 | 0.43 | −0.48 | 1.42 | −1.45 |
| D1 | 120 / 121 | 0.30 | +0.38 | 0.59 | +0.08 |
| D2 | 60 | 0.25 | −0.14 | 0.50 | −0.53 |
| all | 365 / 366 | 0.34 | +0.00 | 0.86 | −0.65 |
| Abou-Haidar & Dixon | 276 | 0.35 | +0.05 | 0.78 | −0.59 |
The low-Mach markers of figures 7.1–7.6 alone, which the CI gate uses, read
the same: plenum 0.35, Corberán 0.85 with bias −0.69. The gate
(pass_criteria.toml) asks for a median below 0.15 and a bias below 0.10;
neither kind passes, and the gate is an xfail(strict=True), a recorded
miss. One D1 marker at \(M_3^* = 0.05\) lies below the plenum sweep's lowest
reached Mach number and is left out rather than extrapolated; six
Abou-Haidar & Dixon markers above \(M_3^* \approx 0.8\) are beyond what the
flow-controlled T reaches.
The constant-pressure closure gains total pressure in every combining
flow. Holding the ports at one static pressure, the faster common branch
must leave with more total pressure than the slower branches bring, so
\(K_{j3} = (G_j/G_3)^2 - 1 < 0\), where the T loses 0.3–1.3. It is the
wrong closure for a loss, and the per-port K_loss is the only way to put
the loss back.
The plenum is the better of the two and still a factor off. It dumps every inflow's head, which reads the dividing branch of D1 (\(K_{31} \approx 1\)) well, but it under-reads the combining losses of C2 by more than half (0.25 against 0.67 at \(q = 0.5\)) and over-reads D1's run. The thesis's compressible figures change none of this: the measured \(K\) moves by 0.02–0.36 across a figure's \(M_3^*\) range, and the models' own Mach dependence does not follow it.
The tee kind, built from these data (2026-11-27)¶
The result above led to a third junction kind, kind = "tee"
(docs/theory.md §5.6): the constant-pressure closure with each port's static
pressure set off so that Miller's coefficient between the ports is the
measured low-Mach value of the flow type, linear in \(q\). It is built from
the 56 markers of figures 7.1–7.6, so those cannot validate it and the gate
does not test it (it reads them to a median of 0.000, the max 0.22 where a
\(q\) has two scattered markers and the table holds their mean). Its test is
what it was not built from:
| n | tee median |ΔK| |
bias | plenum | Corberán | |
|---|---|---|---|---|---|
| compressible markers, figures 7.7–7.38 | 307 | 0.067 | +0.039 | 0.34 | 0.87 |
| C1 / C2 / D1 / D2 | 104 / 54 / 98 / 51 | 0.066 / 0.124 / 0.067 / 0.053 | |||
| Abou-Haidar & Dixon, all | 270 | 0.115 | +0.064 | 0.35 | 0.78 |
Measured 2026-11-27 (feat/0.6.1, dev Xeon, Python 3.10.21, a loaded host;
python run_validation.py --kinds tee); three D1 markers lie beyond the
flow-controlled T's reach. The compressible markers carry the Mach dependence
the table leaves out, and C2 shows it most. It is one geometry, a sharp T of
equal branches.
What would close the gap¶
- A junction whose loss is a table of the geometry. Done for this T at
low Mach number as the
teekind (above). The Mach dependence (figures 7.7–7.38) would refine it. - Area ratio and angle. The data here is one T of equal 12 mm branches; manifolds have unequal branches and Y angles, which the thesis's second, directional "pulse converter" junction starts to cover.
Reproduce the figure¶
python scripts/validation_figures.py perez_garcia_tjunction