Skip to content

Validation 10 — NOx of an ammonia/hydrogen SI engine, a recorded miss

Time: ~20 minutes on 6 cores. Suite: examples/validation/lhuillier_nh3_si/. Gated by: tests/validation/test_lhuillier_nh3_nox.py, a strict xfail: the gate fails, and the test turns red if a later model passes it.

aeolus1d burns ammonia/hydrogen blends with measured Wiebe shapes (the fuel_preset key, aeolus1d.fuels). This page tests what comes out of the exhaust: NOx and unburnt NH3, from aeolus1d.analysis.ammonia_nox, against one engine. It is item 7a of the roadmap. The model does not pass. The flame part of it is right; what happens to the gas after the flame is not, and the page records how far each attempt got, so that the next one starts from here.

Where the data is

P. Lhuillier, P. Brequigny, F. Contino, C. Mounaïm-Rousselle, Experimental study on ammonia/hydrogen/air combustion in spark ignition engine conditions, Fuel 269 (2020) 117448, doi:10.1016/j.fuel.2020.117448. Their Figs. 8 (combustion phases), 11a (unburnt NH3) and 11b (NOx) were digitised on 2026-11-15/17 by marker colour into lhuillier2020_fig8_fig11b.csv in the suite, 33 rows; the reading error, about 0.2 CAD and 60 ppm, is well inside the paper's own (CA50 1.5 CAD, emissions 10 %). The repository holds the digitised points, not the paper.

The problem

Ammonia's NO is mostly fuel NO. The nitrogen is in the fuel molecule and leaves the flame front as NO, on the unburnt side's oxygen, before the burnt gas is hot enough for Zeldovich. A global fuel-N rate placed in the burnt gas cannot see that. De Soete's NH3 route there gives about 9 ppm at φ = 1, against the 3500–4000 ppm measured.

So the model has two parts.

  1. The flame, from detailed chemistry, tabulated offline: scripts/ammonia_flame_no_table.py runs 1000 freely propagating flames in Cantera 3.2.0 with C3MechV4.0.1's H/N/O sub-model (bundled, CC BY 4.0). The table spans φ 0.6–1.3, 0–60 % H2 in the fuel, 0.5–7.5 MPa and 500–950 K unburnt, and records every species 0.1 ms after the heat-release peak.
  2. After the flame, a mixed burnt zone at the cylinder's burnt-zone temperature and pressure, integrated with the same mechanism (chemistry.kinetics.MechanismKinetics reproduces Cantera's rates on it, 1.3 % at worst). Burnt gas enters it at the rate the burn fraction grows. Crevice gas enters it too: unburnt charge held at the wall in a crevice volume \(V_{cr}\) (Heywood §9.4), which flows back as the pressure falls,
\[ \frac{dY}{dt} = \frac{\dot m_e (Y_\mathrm{flame} - Y) + \beta\,\dot m_{cr} (Y_\mathrm{charge} - Y)}{m_b} + \dot\omega(T_b, p, Y), \qquad m_{cr} = \frac{p V_{cr}}{R T_\mathrm{wall}}. \]

A fraction \(\beta\) (crevice_mixing) of the crevice gas mixes into the burnt zone; the rest, and what is still in the crevices at the end, leaves unburnt.

The engine is their PSA EP6DT single cylinder: 77 × 85.8 mm, compression ratio 10.5, 1500 rpm, 0.12 MPa and 323 K at the intake, spark at MBT. Each point burns in a closed-cycle rig with a Wiebe fitted to its own measured CA10–CA50 and CA10–CA90. What the paper does not give is assumed and varied: CA50 at 8° after TDC, IVC 30° after BDC, the trapped gas at the intake temperature, the crevice volume at 1.5 % of the clearance volume (the middle of Heywood's 1–2 %).

The pass criteria (pass_criteria.toml) were written on 2026-11-16, before the first result: over the lean and stoichiometric points, median |error| at most 35 % and none above 60 %. Rich points are reported only; NH_i reduction in rich burnt gas was not expected to be right.

Run it

python examples/validation/lhuillier_nh3_si/run_validation.py --fit
python examples/validation/lhuillier_nh3_si/run_validation.py --sensitivity

--fit refits \(\beta\) (40 min on 6 cores); the second prints every number below (17 min). --jobs sets the number of processes; the default is half the cores.

Results

NOx model against measured, unburnt NH3 model against measured, and the NOx error by H2 fraction

Left: NOx at the 19 lean and stoichiometric points, the flame's exit alone (burn-weighted) and the engine-out model, against the ±35 % band. Middle: unburnt NH3, which \(\beta\) was fitted to. Right: the NOx error by H2 fraction, the stoichiometric points apart.

Three attempts met the same gate (2026-11-16/17, dev Xeon, Python 3.10.21):

Model median |err| max |err| lean φ = 1
gate ≤ 35 % ≤ 60 %
Alzueta-2023 flame table, extended Zeldovich in the burnt zone, no crevice gas 35.8 % 60.3 % +14 to +60 % −19 to +26 %
C3Mech table, burnt-zone chemistry, all crevice gas mixed (\(\beta\) = 1) 56.9 % 98.4 % −24 to −65 % −69 to −98 %
the same, \(\beta\) = 0.64 fitted to the NH3 slip 34.9 % 95.7 % −11 to −39 % −55 to −96 %

The first was the pilot: a flame table from a mechanism whose licence does not allow it to be bundled, followed by extended Zeldovich on the burnt gas's equilibrium composition. It is not reproducible from the repository. The third is what ships.

The fitted run, point by point (ppm, wet):

H2 φ NOx meas model flame err NH3 meas model
0.00 1.0 4002 171 3911 −96 % 9133 5282
0.05 0.8 4787 3107 6460 −35 % 8201 3781
0.10 0.7 4213 2741 5824 −35 % 9834 3180
0.10 0.8 5564 3375 6707 −39 % 6211 3671
0.10 1.0 3472 293 4301 −92 % 7202 4956
0.20 0.6 3532 2160 4662 −39 % 6984 2600
0.20 0.7 4977 3396 6370 −32 % 4982 2955
0.20 0.8 5991 3950 7209 −34 % 4695 3416
0.20 0.9 5594 3468 6901 −38 % 4788 3974
0.20 1.0 2924 549 4711 −81 % 6152 4591
0.40 0.6 4669 3535 5721 −24 % 2572 2108
0.40 0.7 6424 4862 7587 −24 % 2341 2428
0.40 0.8 7597 5410 8471 −29 % 2266 2841
0.40 0.9 7406 4641 8069 −37 % 2362 3328
0.60 0.6 7080 5420 7275 −23 % 1198 1545
0.60 0.7 9106 6896 9255 −24 % 1235 1813
0.60 0.8 8266 7351 10127 −11 % 1191 2148
0.60 0.9 8148 6114 9537 −25 % 1370 2522
0.60 1.0 4691 2125 6980 −55 % 1693 2907

The three rich points were not run: two sit 0.1–0.2 % above the table's 7.5 MPa, and the table does not extrapolate. At 20 % and 40 % H2 and φ = 1.1 the model gives 10 and 13 ppm against 347 and 1156 measured.

What it shows.

  • The flame is right. The flame's own exit NO, burn-weighted, is 98–161 % of what the engine emits at every point, and follows the measured trend in φ and in H2: up with H2, peaking at φ 0.7–0.8 (the table at 0.8), falling to φ = 1. The detailed-chemistry table did what the global rate could not.
  • The burnt zone takes too much of it. With only Zeldovich after the flame (attempt 1) the lean points read high, up to 60 %. With the crevice gas mixed in, its NH3 meets the burnt gas as it cools during the expansion, the thermal DeNOx window. Lean, the model then ends 11–39 % low; at φ = 1, with little O2 left to compete for the NH2, 55–96 %. The engine shows no such loss at φ = 1.
  • The crevice gas does not mix like that. With \(\beta\) = 1 the model left 2.4–11 times too little NH3. With neat ammonia at φ = 1 the engine emits 9133 ppm, three quarters of the 12265 the model leaves when none of the crevice gas mixes. The fit to the slip gives \(\beta\) = 0.64, but only to a factor of 1.47: the measured slip falls with H2 much faster than the model's. Alone, neat NH3 would fit about 0.3 and 60 % H2 about 0.8. A single mixing fraction is the wrong form.

Sensitivity (--sensitivity, change in the model's NOx):

H2 0.10, φ 0.7 H2 0.10, φ 1.0 H2 0.40, φ 0.8
crevice volume 1 % / 2 % +33 / −29 % +180 / −60 % +17 / −16 %
\(\beta\) ∓ 0.1 +14 / −13 % +65 / −38 % +7 / −7 %
CA50 ± 4° +1 / −0 % +45 / −23 % +2 / −2 %
IVC + 20° −6 % +4 % −2 %
IVC temperature + 30 K +26 % off the table +14 %

The lean points depend on the crevice terms by tens of percent, the stoichiometric ones by factors. No assumed input of the rig moves the result by as much as the miss.

What would fix it (BACKLOG, "Found working the H2 / NH3 engine item"): a place for the crevice gas to go that is not the bulk burnt gas. It leaves the crevices along the liner into the thermal boundary layer, near the wall temperature, where NH3 neither burns nor reduces NO. A wall-layer zone fed by the crevice outflow would need no new constant if it sits at \(T_\mathrm{wall}\), and might explain both the slip and its fall with H2, whose flames quench closer to the wall.

Not covered: the rich points (off the table and, by design, report-only); the flame's quench layers at the wall, which hold unburnt NH3 too; N2O, which Lhuillier et al. measured and the table carries but the suite does not compare; and any engine other than this one.

Reproduce the figure

python scripts/validation_figures.py lhuillier_nh3

About 17 minutes on 6 cores; it runs the suite's own harness.