Skip to content

Multi-zone diesel combustion and NOx

A packet-based, mixing-controlled DI-diesel model. Each injection packet seeds a zone; zones penetrate, entrain air, evaporate, mix and burn, and the heat-release shape is an outcome rather than an input.

The reason to want that is emissions. NO formation goes roughly as the fifth power of temperature, so a bulk-average cylinder temperature cannot predict it — you need the distribution. That is the whole argument for the model, and it is asserted directly in the test suite: a {2600, 1800} K zone pair must out-produce two zones at their mean of 2200 K, or the model has been quietly reduced to a mean.

Relationship to the single-zone predictive model

diesel_predictive_combustion predicts when combustion starts (Hardenberg–Hase) and how much burns premixed (Watson), then hands a prescribed Wiebe the shape. It is cheaper, well-tested and the right choice when you want heat release. This model is the right choice when you want the temperature distribution — that is, when you want NOx.

The zone state machine

Per packet, in this order. The order is physical and not interchangeable.

  1. Seed. Liquid fuel mass m_f0 with axial velocity u₀.
  2. Penetrate and entrain. X advances at u_spray; the entrainment factor GF follows the characteristic-length form below.
  3. Evaporate, then mix. Liquid → vapour on τ_vap, vapour → mixed and burnable on τ_mix. Two stages, not one: a zone can be rich in vapour and still unable to burn.
  4. Ignite. Once the spray clears the lift-off length and the ignition delay has elapsed.
  5. Burn. dM_burnt = min(M_mix, M_air/AF_st) — mixing-controlled when fuel is ready, air-limited when it is not.
  6. Update temperature. Mixing first, then the first law.

Two of those orderings matter enough to be pinned by tests:

  • Fuel cannot burn in the step it is injected. A fresh packet is entirely liquid. A model that lets it burn immediately is not mixing-controlled.
  • Mixing precedes the first law. Releasing heat into the pre-dilution mass overstates the peak, and T⁵ amplifies that fivefold in the one quantity the model exists to produce.

Correlations

Each is a named function with its source and validity range in the docstring. The exponents are verified by fitting them back out of two evaluations, not by inspection — see tests/validation/test_multizone_correlations_vs_literature.py.

Spray and entrainment

\[\tan(\alpha/2) = c\left[(\rho_g/\rho_l)^{0.19} - 0.0043\sqrt{\rho_l/\rho_g}\right]\]
\[x^{+} = \sqrt{\rho_l/\rho_g}\; d_{hole} / (a \tan(\alpha/2))\]
\[GF = \tfrac{1}{2}\left(\sqrt{1 + 16(x/x^{+})^2} - 1\right)\]

The two limits of GF are what make the form right rather than merely convenient: GF → 4(x/x⁺)² near the nozzle — quadratic, so a packet that has barely left entrains almost nothing — and GF → 2x/x⁺ in the far field, the classical jet result. The factor of 4 is easy to write as 2; getting it wrong misattributes an early-injection entrainment error to the spreading angle.

The geometry factor a = 0.66 is normally held fixed; calibrate through the spreading coefficient instead. Tuning both is double-counting, since a wider cone and a shorter x⁺ are the same knob.

Lift-off length

\[H = c\,T_a^{-3.74}\rho_a^{-0.85}d^{0.34}\,U\,(A/F)_{st}\]

SAE 2005-01-3843, with c = 7.04e8 in the correlation's own mixed units: H in mm, T in K, ρ in kg/m³, d in µm, U in m/s. Typical H is 6–8 mm — but only near 1000 K. It is steeply temperature-sensitive:

The shipped default is no longer the published constant

Since 2026-08-25 mz_c_liftoff defaults to 6.225e8, a calibrated value, which is 0.884 × the published 7.04e8 above. The table below is computed with the published constant, so read it as the shape of the correlation rather than as what the solver will produce; multiply by 0.884 for the shipped default (7.0 mm at 1000 K becomes 6.2 mm). The exponents are unchanged. See docs/changelog.md.

charge temperature H
900 K 10.3 mm
1000 K 7.0 mm
1100 K 4.9 mm

Quoting an expected H without its temperature is how this correlation gets mis-calibrated.

Ignition delay

\[\tau_{id} = c\,p^{-1} X_{O_2}^{-1.2}\exp(E_a/RT), \qquad E_a/R = 3242\ \mathrm{K}\]

The oxygen exponent is the mechanism by which EGR retards combustion. The prefactor is anchored to give 1.0 ms at 60 bar / 900 K / air, which yields 0.52 ms at 80 bar / 1000 K and 1.53 ms at 30 % EGR.

The prefactor is the part that goes wrong silently

Every exponent above can be correct while the absolute scale is meaningless. An earlier draft of this model had a prefactor five orders of magnitude out — a 40 nanosecond ignition delay — and passed every sensitivity test, because those check ratios. Only an order-of-magnitude assertion caught it. The same happened to the lift-off constant.

Zone temperature

Two closures are implemented. The theory this follows specifies both and names neither as preferred; the reference implementation defaults to the 2013 one. This port defaults to the 2018 one.

Mode 2 — mixing then the first law (the default until 2026-10-28; mode 5 since). Entrained unburnt gas dilutes and cools the zone, then energy is added:

\[T \leftarrow \frac{M_{old}T_{old} + dM\,T_{ub}}{M_{new}}, \qquad dT = \frac{dQ - p\,dV}{c_v M_{new}}\]

Mode 1 — adiabatic-flame jump (parity only). An empirical ΔT_flame polynomial. Kept because parity against the reference needs it, and not default because its three coefficients have no cited source.

Four further modes (3, 4, 11, 22) existed upstream and are not ported — undocumented, no equations, undated labels. Each is recorded with its reason in UNPORTED_TZONE_MODES, so nobody re-derives them from the source.

NOx

Per zone, the reduced extended Zeldovich rate (Heywood eq. 11.6):

\[\frac{d[NO]}{dt} = \frac{2R_1(1-\beta^2)}{1 + \beta R_1/(R_2+R_3)}, \qquad \beta = [NO]/[NO]_{eq}\]

The equilibrium radicals [O]ₑ, [N]ₑ, [OH]ₑ come from the twelve-species equilibrium solve, not from partial-equilibrium correlations. That is what the {H, O, N, NO₂} extension to chemistry.equilibrium was for.

The (1 − β²) factor makes this relax rather than only grow: a zone that cooled after forming NO at a higher temperature has a negative rate and decays back toward equilibrium.

Rate constants are cm³/(mol·s)

Heywood's constants are quoted in cm³/(mol·s). Feeding them SI concentrations overstates every rate by 10⁶ and pins NO at whatever guard ceiling is in place — which reads as clipped, not as wrong units. A ceiling-valued result is indistinguishable from a saturated-but-correct one by inspection, so the test asserts NO is well below the ceiling.

NO carries almost no information about K_N

Correcting K_N from a wrong pair to a NASA-7-derived one changed [N] by 367× at 1800 K and the NO rate by under 0.02 %. [N] enters only through β·R₁/(R₂+R₃), and R₂, R₃ are both linear in it while R₁ is not — so the term goes as 1/[N] and is already negligible. K_N must come from thermodynamics; NO data cannot constrain it.

Validation against measurement

Tier 1 checks each correlation against its published source. Tier 3 checks the model against a test bed: 247 operating points of measured engine-out NOx, speed, torque, lambda and crank-resolved cylinder pressure.

With generic constants and no fitting, this port's NO driver rank-correlates with measured engine-out NOx at r = +0.50 over 229 usable points. That is a claim about structure — the operating points that made the engine produce more NO make this model produce more too — not about magnitude, which would require a calibration this package deliberately does not ship.

Validate the oracle before comparing anything to it

Tier 2, parity against the reference implementation's own results, is skipped — and that is a finding rather than an omission. Its noxc channel rank-correlates with lambda at exactly +1.0000 over 223 cases, so it is a deterministic function of lambda rather than an independent NOx result. A model "agreeing" with it would only have been agreeing with lambda, and the agreement would have been reported as validation.

The give-away was checking against peak combustion temperature: −0.98. A Zeldovich-driven quantity cannot fall that cleanly with temperature.

The same check run against the test-bed data passes: −0.93 with lambda, +0.84 with torque, +0.74 with peak cylinder pressure — strong, physical, and nowhere near ±1.000.

(Noted 2026-10-21: the reference's live NOx is a user-model output, NOppm-1.userrlt02, not noxc, and it ranks at +0.89 against the test bed; see tests/integration/test_multizone_vs_testbed.py. A NOx parity still waits on this port's zones feeding NOx, BACKLOG.md.)

Tier 2 on pressure and heat release (2026-10-21)

The reference's NOx failed the oracle check; its pressure and burn rate pass it. The GT model that ran the reference (F2-BWC9-100-V2024-tun8b, the same 247 cases) reproduces the test bed's cylinder-6 pressure at 2.7 bar RMS over −60..+90° (p95 3.6 bar) and its CA50 ranks at 0.80 against the measured one, 2° early on the median: an independent result, close, and not the measured trace imposed. So tier 2 is run on pressure and burn rate, with examples/validation/gt_f2_hd_diesel/: the model imported by gt_suite_native, kind = "multizone_diesel" put in every cylinder with this package's generic constants, the case's rail pressure and main timing, the injection duration trimmed between cycles until the injector delivers the case's fuel (to 0.1 %), the turbocharger held at GT's speed, and the cylinder walls adiabatic as GT's are. Two of GT's converged cases, a middle and a high load:

against the reference's cylinder 6 middle load high load
IMEP −4.1 % −13.6 %
peak pressure, cylinder mean +1.4 % −0.7 %
pressure, −60..+90°, RMS 7.2 bar 20.0 bar
CA10 +3.5° +6.0°
CA50 +15.0° +26.3°
CA90 +7.2° +29.9°

The prescribed Wiebe the importer gives the same cylinders, adiabatic too, reads IMEP +1.1 and +7.6 %, 9.9 and 16.4 bar RMS, CA50 +12.5 and +10.3°. So the port ignites a few degrees late and then burns far too slowly, the more so at high load. Two causes are known and neither is a constant to fit:

  • The injector. The default effective hole area (7e-8 m²) needs roughly 40-70° to deliver the case's fuel at its rail pressure (Bernoulli through that area at rail minus compression pressure, an estimate), against a needle-open window of roughly 8-17° in the test bed's needle-lift trace. A packet model burns as fast as its packets arrive, so a 4-5x longer injection is a 4-5x longer burn. The reference took its injection rate from GT's injector; the import does not carry one.
  • The zone temperature. The reference ran TzoneMode = 1, the adiabatic-flame jump; the port's default, mode 2, is the mixing and first-law balance. (2026-10-22: mode 1 now runs, in the theory report's form, the maintainer's choice over a port of the reference code as it ran; see "Configuration". The code differs from the report, and this tier-2 measurement predates it.) (2026-10-28: the default is mode 5, the reference code's mode 1 as it ran.)

A tier-2 parity worth gating needs the injector's rate (or its geometry) read from the model, and mode 1 or the reference re-run in mode 2. Until then this is a measurement with its two causes named, not a pass.

Re-measured 2026-10-23, with the injector's rate read from the model. The GT import now carries each case's cell of GT's injector map, and the port burns it (bc0fe09e, the same two cases, mode 2, adiabatic):

against the reference's cylinder 6 middle load high load
IMEP +5.7 % +11.7 %
peak pressure +10.2 % +10.1 %
pressure, -60..+90°, RMS 6.2 bar 12.6 bar
CA10 / CA50 / CA90 +0.6 / +3.0 / +6.2° +0.6 / +2.7 / +6.3°

The first cause is gone: the burn starts within 0.6° and reaches CA50 within 3°. What is left is about 6-12 % more work than the reference from the same fuel, and 10 % more peak pressure. Injecting through the model's nozzle holes at the rail instead of the map's rate reads as high or higher (IMEP +10.2 / +11.8 %, examples/validation/gt_f2_hd_diesel/, --nozzle), so the excess does not come from the rate. Mode 1 (the reference's) remains the named difference. Still a measurement, not a pass.

The zones' NO first read 21 815 and 28 799 ppm against the reference's live 777 and 1089, 26-28 times too much. (Before that, about 860 000 ppm: the cycle's NO was divided by the gas left after the exhaust stroke.) A probe of the zones on F2 found the cause: mode 2 never expanded a zone with the cylinder, so the burning zones held 4100 K from TDC down to 3 bar. Mode 2 now carries the cylinder's pressure ratio isentropically, and a burnt zone heats at its own gas's c_v (NASA-7, the products of what it burnt and its air; the maintainer's choice of 2026-10-23 over the charge's constant 820 J/(kg K) and the report's fitted gamma_L). The middle load then reads 517 ppm against 777 (-33 %) and the high load 3075 against 1089 (+182 %), both settled (the high load after seven cycles). Zones still peak near 3300 K, where a diesel flame reaches about 2700, because the zone energy carries no dissociation. NO moves steeply with that peak. On the same case the constant c_v gave 1165 ppm, gamma_L 279, and mode 1 in the report's form 5.5. The reference's own NOx failed the oracle check, so this is code-to-code only.

Dissociation (2026-10-25, the maintainer's choice). A burnt zone's heat capacity in mode 2 now carries the heat its dissociation absorbs: c_p,eq - c_p,frozen, the temperature derivative at constant pressure of the equilibrium enthalpy less the frozen mixture's c_p, tabulated on the same lambda-T-p grid and from the same equilibrium solves as the NO's radicals (zone_equilibrium_table, ZoneEquilibriumTable.dissociation_cp), and read at the zone's lambda, its start-of-step temperature and the cylinder pressure, explicitly, as burnt_gas_cv already is. It enters both the first law and the compression exponent R/c_p. Not carried: the molar-mass shift of the equilibrium mixture along the isentrope. Below the table's lowest temperature (1600 K) the gas is taken as its complete products. On F2: the middle load 379 ppm against 777 (-51 %), the high load 2575 against 1089 (+136 %), both settled; IMEP and peak pressure unchanged. Both fell, by 27 and 16 %, and the two errors still differ by a factor of about five, so the missing dissociation was not what separates them.

The measurement data and the GT model are proprietary and stay out of the repository; only the aggregate statistics above are recorded. See examples/validation/DATA_MANIFEST.md.

Traceability

Quantity Source Implements Validity
Spreading angle Siebers, SAE 980809 / 1999-01-0528 spreading_angle_tangent collapses at low ρ_g
Characteristic length x⁺ Siebers, SAE 1999-01-0528 characteristic_length mm scale in-cylinder
Entrainment GF Siebers mixing-limited jet entrainment_factor 4(x/x⁺)² → 2x/x⁺
Lift-off length Siebers & Higgins, SAE 2005-01-3843 liftoff_length 6–8 mm near 1000 K
Ignition delay SAE 2005-01-3837 basis ignition_delay_seconds 0.5–2 ms at TDC
Zone T (2018) theory report, TzoneMode = 2 zone_temperature_energy_balance no fitted coefficients
Zone T (2013) theory report, TzoneMode = 1 zone_temperature_adiabatic_flame (the jump at ignition), gamma_l and zone_temperature_compression_mixing (after it) uncited coefficients
Extended Zeldovich Heywood eq. 11.6 multizone_nox needs [O]ₑ, [N]ₑ, [OH]ₑ
Series restrictions injector report equivalent_area (ΣA⁻²)^(−½)
Common rail injector report rail_pressure_derivative mean droop only

What is deliberately absent

Stated so the boundary is visible rather than inferred:

  • Swirl. Carried as a parameter, defaults to zero, as in the reference.
  • Radiative loss from the zone. The theory carries it as optional and gives no coefficient.
  • Wall impingement beyond the k_mix mixing slowdown.
  • Water-hammer and pulse-to-pulse rail dynamics. The injector model is lumped; the source is explicit that these need a distributed model and can materially change a main injection after a pilot. A fitted discharge coefficient is absorbing some of what they would have done.

Configuration

[cylinder.combustion]
kind = "multizone_diesel"
mz_c_xchar = 0.66          # held fixed; calibrate mz_c_tan_alpha instead
mz_c_tau_vap = 0.15e-3
mz_c_tau_mix = 0.8e-3
mz_tzone_mode = 2          # 2: mixing + first law; 1: the 2013 adiabatic-flame jump
mz_nox = false             # true: integrate NO in the zones (a table per charge)
inj_a_holes_m2 = 7.0e-8
inj_rail_pressure_pa = 1.8e8

A worked case is examples/89_dd13_multizone.toml.

mz_tzone_mode = 1 (since 2026-10-22) is the theory report's 2013 method as the report writes it, not the reference code as it ran (which differs: a P3 of 1900, a squared EGR term, a Gaussian bump at lambda 1, a fixed jump; the maintainer chose the report). A zone jumps at its ignition to T_u + ΔT_flame(EGR, T_u); from then on, each step, T = (1 − Δλ) T (p/p_old)^((Γ_L − 1)/Γ_L) + Δλ T_u, with Δλ the zone's lambda rise in the step (its mixing weight, clipped to [0, 1]) and the report's Γ_L polynomial in the zone temperature. The burn's heat enters through the jump only. A zone not yet ignited carries T_u. The zone temperature feeds no pressure or heat release; with mz_nox it sets each zone's NO.

mz_tzone_mode = 5 (since 2026-10-27, the maintainer's choice after mode 1 read 5.5 / 88 ppm against the F2 reference's 777 / 1089) is the reference code's mode 1 as it ran, which the F2 reference model sets. Its jump is (P1 · 100 EGR)² + P2 · 100 EGR + 1900 − (T_u − 273)/(1100 − 273) · 300 · (1 − 100 EGR / 80), kept for the cycle, and it is applied once: to the first zone past the lift-off at the cylinder's first burning step, with a Gaussian bump of 120 exp(−((λ − 1)/0.2)²) K on that zone alone. From then on every zone, ignited or not, is either compressed and mixed (λ > 1, as mode 1) or, while rich, pinned to (1 − Δλ)(1 − λ) T_u + λ (T_u + ΔT) (p/p_old)^((Γ_L − 1)/Γ_L) + Δλ (T_u + ΔT). So a zone sits near T_u + ΔT as long as it is rich. Two things the reference does that this mode does not: it burns and makes NO in every zone once the cylinder ignites, where this port keeps the per-zone lift-off gate for both; and it sets every zone to the global lambda after 120 deg. The constants have no cited source. On the F2 cases it reads 5960 / 9154 ppm against the reference's 777 / 1089 (2026-10-27). All modes took T_u from the cylinder's bulk gas temperature, which carries the burnt gas's heat once the burn starts; the reference takes GT's unburned-zone temperature (BACKLOG.md, the multizone item).

T_u, in every mode, is the charge at the start of injection compressed isentropically to the cylinder pressure, T_u = T_SOI (p / p_SOI)^(R / c_p) at the charge's gamma of 1.35 (since 2026-10-27, the maintainer's choice; the SI path compresses its unburnt charge from the spark the same way). It sets the ignition delay, the evaporation, the flame jump, the temperature of the gas a zone entrains, and the zones' starting temperature. Before it, T_u was the cylinder's gas temperature: the cylinder is one zone, so that ran hundreds of kelvin above the unburnt charge once the burn started. The compression is adiabatic: the unburnt charge loses no heat to the walls. With it, mode 5 reads 1054 / 1116 ppm on the F2 cases against the reference's 777 / 1089, and mode 2 52 / 52. So mode 5 is the default since 2026-10-28 (the maintainer's choice); modes 1 and 2 stay selectable.

mz_nox = true (since 2026-10-23) integrates NO in every zone each step (multizone_nox.integrate_zone_nox, extended Zeldovich toward the zone's own equilibrium) and reports the cycle's engine-out NO over the whole charge as the runtime's last_cycle_no_ppm. The equilibrium pool is read from a ZoneEquilibriumTable built once per charge over lambda 0.5 to the global lambda (every 0.025 across stoichiometric), 1600-3200 K and 1-30 MPa, about 1600 solves: it reads the solver within about 1 % (2 % for N at the grid's lean, cold corner). A zone richer than lambda 0.5 reads 0.5's pool, since below about 0.35 the twelve gas species have no equilibrium; such a zone makes next to no NO.

Defaults are generic, never engine-fitted

Every shipped default is a literature value or a stated generic. Values calibrated to a particular engine are calibration, not physics, and are kept out of the package — test_proprietary_data_stays_local enforces that mechanically, because a fitted float is indistinguishable from a chosen one by inspection.