Scope, validated regime, and known limitations¶
This page states, in one place, what aeolus1d is validated for, what it is not, and what it is not qualified for — so you can decide whether to trust a number before you rely on it. It is deliberately conservative. The detailed, reproducible evidence behind every claim here lives in the validation dossier; this page is the honest summary and the caveats.
aeolus1d is a 1D compressible-Euler pipe-network solver with engine,
powertrain, and aftertreatment modelling. It is pre-1.0, alpha-to-beta
software (PyPA Development Status :: 4 – Beta, since 0.4.0; it was
3 – Alpha before). We do not claim general
"parity" with GT-POWER / AVL / Ricardo WAVE as a product. Where the term
"parity" appears in project docs it means a specific, auditable thing —
validated competence on a named workflow at a stated tolerance, reproducible
from a checked-in case — never feature-count parity with a 30-year funded
commercial code.
Verification — are the equations solved correctly?¶
Dataset-independent checks that the numerics converge at their design rates:
- Spatial order (flux): HLLC with first order, MUSCL and MP5 checked against
the analytic Sod solution (
tests/validation/test_sod_against_analytical.py; MP5 joined it 2026-10-17, before which this line claimed it without a test) and an observed-order test on a smooth density wave (MUSCL ≥ 1.8;tests/integration/test_smooth_advection.py). The order is a lower bound away from smooth extrema, where a TVD limiter must clip. The order is also verified per field, not just density — a running-solver Richardson self-convergence on a smooth pulse where ρ, u, and p all vary independently recovers order 2 for each of density, velocity, and pressure (measured ≈1.98 / 1.94 / 2.01;tests/integration/test_running_order_multivar.py). - Area change against exact solutions: the Riemann problem in a duct
whose area jumps, against the exact solutions of Han, Hantke & Warnecke
(J. Hyperbolic Differ. Equ. 9 (2012) 403), Tables 4.2-4.7: one case per
wave configuration, from a plain contraction to a flow choked at the
jump, a shock standing inside it and a supersonic jet out of it, in both
orientations. Every error falls under refinement (MUSCL density L1
0.0008-0.0027 at 1600 cells;
tests/validation/test_duct_area_jump_riemann.py). It found, and the 2026-11-09 fix closed, a crash when a supersonic jet out of the smaller area meets a shock standing in the jump. Supersonic inflow to a contraction can have more than one exact solution and is not in the set. The real-gas EOS path has the same crash, still open (BACKLOG.md). - A nozzle with a standing normal shock: NASA NPARC's converging-diverging
verification nozzle, fed from a reservoir and held at three back
pressures: subsonic throughout, a normal shock in the diverging section,
and a supersonic exit. The exact quasi-1D solution reproduces NPARC's
tables to the seven figures they print. Away from the shock the Mach error
converges at second order in both schemes, the shock's total-pressure loss
is right to 4e-5 at 100 cells, and the shock settles on the cell face
nearest its exact position (
tests/validation/test_cdv_nozzle_shock.py). - The catalyst bed's thermal front: an inlet temperature step into a
two-phase catalyst bed, against Schumann's (1929) exact gas and solid
temperatures. First order converges at first order, and MUSCL's solid error
falls to 4e-5 to 8e-5 of the step at 400 cells
(
tests/validation/test_schumann_thermal_front.py). The step is small (0.2 K on 600 K) because Schumann holds the gas density fixed. At larger steps the compressible gas's expansion sets a floor that grows with (T_1 - T_0)/T_0: 2.9e-4 with a 2 K step, 4.3e-5 with 0.2 K, at the same flow. - Plug-flow conversion through the film and the washcoat: a
GT-mechanism catalyst with a washcoat, one first-order reaction, isothermal,
against the exact conversion with the film and the washcoat's Thiele
effectiveness in series. Without pore diffusion each run is the upwind
march's own steady state to 4e-7, which converges on the exact at first
order in the cells. With it the washcoat's slices converge at second order
on tanh(phi)/phi (
tests/validation/test_plug_flow_washcoat.py). The default single slice reads the conversion 5.5 % low at a Thiele modulus of 2 and 10 % low at 10; setwashcoat_nodesfor a fast reaction. The film's Sherwood number is taken as given: a constant 2.98 is the fully developed value, and the entrance region's is higher. - NH3 breakthrough of a Langmuir storage bed: the
nh3_ads_desstorage closure with the Temkin term off, isothermal, against Thomas's (1944) exact breakthrough curve at three separation factors. Each quasi-steady run is its own upwind cascade to the integrator's tolerance, which converges on Thomas at first order in the cells (tests/validation/test_thomas_breakthrough.py). Not covered: the Temkin term, a heat of adsorption, and the transient driver. - Reflection at an open pipe end: the pressure outlet against the ideal
open end's R = -1, resolved by frequency with the two-microphone
decomposition (
analysis.acoustics.decompose_waves). |R| = 1 to the scheme's damping on the way, which converges (order 0.9 first order, 1.7 MUSCL), and no end correction: the wave turns round on the end face, a tenth of a cell inside it under MUSCL (tests/validation/test_open_pipe_reflection.py). A real pipe does not do this; see Known limitations. - Classic high-order / strong-shock benchmarks: the literature reference
problems the basic tubes can't exercise —
Shu-Osher (MP5 must preserve the post-shock entropy-wave amplitude a
dissipative scheme erases; observed ~3.8× first-order),
Woodward-Colella interacting blast waves (density and pressure stay
strictly positive through the violent collision; the ρ≈6 spike forms at
x≈0.78), and the Abgrall moving γ-interface (see the variable-γ caveat
under Known limitations).
bench/{shu_osher,woodward_colella,abgrall_interface}.py, gated bytests/integration/test_euler_verification_benchmarks.py. - Species mass-flux scheme-consistency (telescoping invariant): a passive
scalar must advect on the same per-face mass flux the density was advanced
with, recovered by telescoping the scheme's own mass residual
(\(\dot m_i = \dot m_0 - \Delta x \sum_{j<i} R_{j,0}\)) from a boundary-face
anchor. A consistent anchor telescopes exactly to the scheme's true
right-boundary flux; the check pins
\(|\dot m_N - F_N| < 10^{-9}\) across all seven flux/EOS variants
(
first_order, MUSCL and MP5 each in scalar-γ / variable-γ / real-gas-EOS), and a teeth-test confirms the pre-#719 first-order anchor violated it by \(\mathcal O(1)\) (tests/integration/test_species_scheme_consistency.py). This is a structural-consistency check, not a convergence-rate one — it guarantees a uniform composition stays uniform across sharp gradients on every scheme. - Temporal order (each integrator): a per-
rkself-convergence study pins the formal order of all seven time integrators — IE ≈ 1, SSP-RK2 / BDF2 ≈ 2, SSP-RK3 ≈ 3, RK4 ≈ 4, RK5 / Radau-IIA(3) ≈ 5 (tests/integration/test_temporal_order.py). - Source-term discretisation (MMS): Method-of-Manufactured-Solutions proofs
that the source closures converge at the formal order (2 for MUSCL) and do
not without the source. The base energy-source path
(
tests/integration/test_mms_source.py) plus area variation, wall friction, and wall heat (tests/integration/test_mms_closures.py) — each re-derives the closure by hand so that a wrong-signed / wrong-coefficient / mis-coupled closure leaves an O(1) residual that fails to converge (asserted by a load-bearing control per closure). The catalyst reaction source is stiff, operator-split chemistry — its integrator is verified separately against closed-form ODE solutions (tests/unit/test_chem_bs_neville_accuracy.py,tests/integration/test_chem_integrator_order.py), not by a spatial MMS. (Corrected 2026-10-17: this citedtest_temporal_order.py, which covers the advection integrators only — ADR-0010.) - Known solutions, model by model (added 2026-10-17): the solver run on
problems with a textbook answer, each gated on its measured error:
plenum blowdown and filling through a short pipe against the choked closed
form and the quasi-steady orifice ODE (0.14-0.18 % in p;
test_plenum_filling_and_emptying.py); Fanno and Rayleigh flow (test_fanno_and_rayleigh_flow.py); a first-order plug-flow reactor, which converges at first order toexp(-k x/u)because species advect upwind (test_plug_flow_reactor.py); standing-wave frequenciesc/2L,c/4Land the reflection of a wall, an open end and the nonreflecting BC (test_acoustic_known_solutions.py); expansion-chamber transmission loss in the time domain (test_expansion_chamber_transmission_loss.py); and the orifice BCs in steady flow (test_orifice_bcs_steady_flow.py), all undertests/integration/. Two found defects, fixed the same day (seedocs/changelog.md); the third, a pipe with a sharp area step reading its expansion-chamber TL 1.3-2.1 dB high at any mesh, was fixed on 2026-10-20 (the area change now sits in the faces; 0.0072 dB up to 450 Hz). - Regression net: a golden-snapshot suite (
tests/regression/) freezes the final state of canonical cases and fails on any change beyondrtol 1e-8(a bit-identity tier pins them exactly on the bench host). (Corrected 2026-10-17: this said "drift ≳ 1e-4", the net's sensitivity before its tolerance was tightened.)
The GCI machinery ships in aeolus1d.validation — grid_convergence_index
/ mesh_convergence_study (Roache / ASME V&V-20 three-grid apparent order +
Richardson extrapolation + a numerical-uncertainty band), and ScalarComparison
carries u_num / u_data (RSS'd into validation_uncertainty, with a
within_validation_uncertainty verdict). It is now run end-to-end on real
suites via avl_compare_common.gci_mesh_study (run any AVL case's headline
scalar at three mesh densities). Two contrasting results, both on committed data:
- DOC light-off T50 (C02001) — mesh-converged. A 25/50/100-cell study gives
GCI ≈ 0.07 %(u_num ≈ ±0.3 K); the reportedU_val ≈ ±5 Kis dominated by the digitization termu_data, and the model–AVL error (~2 K) sits withinU_val.run_validation.py --gcireports it; a@slowtest gates thatu_numstays small. (2026-10-25: since the quasi-steady step reads its boundaries at its end, CO's T50 reads 494.318 / 494.229 / 494.401 K on 100 / 50 / 25 cells, converged within 0.17 K but changing sign, so no GCI exists; the gate takes half the range, ±0.09 K, for an oscillating series.) - DPF regen peak substrate T (C02006) — mesh-converged, cleanly. A
15/25/40-cell study gives peak substrate T 662.1 → 662.8 → 663.2 K with
observed order
p = 1.0, in the asymptotic range (GCI ≈ 0.13 %,u_num ≈ ±0.8 K) — so the regen thermal peak is a trustworthy number (run_validation.py --gci; slow ~12 min). - SCR With-NO NO-conversion (C02002) — NOT mesh-converged. The same study
gives NO conversion 21.5 % → 12.6 % → 7.2 % at 25 / 50 / 100 cells:
GCI ≈ 140 %(u_num ≈ ±10 conversion-points) with an unphysical negative Richardsonh→0value. The coarse-mesh agreement is a numerical-diffusion artefact, so this quantity is reported, not quoted as validated (run_validation.py --gci; slow ~10 min). 2026-10-25: the diagnosis is retracted. The fall was the quasi-steady surface step reacting each cell as a closed batch over a step that scales with the cell size; with the gas carried through the surface solve (qs_surface_transport, the default since then) the plateau conversion reads 3.624 / 3.626 / 3.627 % at 25 / 50 / 100 cells for the oldA_scr, which is refit (5.3e6, 30.65 % at 50 cells against AVL's 30.58 %).--gciwas not re-run.
Pending (tracked): rolling the --gci pattern out to the remaining quoted
numbers (the flux + area/friction/heat source paths are now MMS-covered).
Treat any single quoted number as mesh-specific unless it carries a U_val
— as the SCR case shows, a value without its mesh can be a pure diffusion
artefact. (2026-10-25: the SCR case's artefact was the surface step's, not
diffusion; above.)
When GCI does not apply. For the calibrated lumped-closure aftertreatment
cases (DOC Voltz light-off, SCR Temkin storage, C02006 DPF/CSF regen), a
grid-convergence index on the discretisation uncertainty u_num is
misleadingly small and not the honest error bar: per ASME V&V-20 the total
validation uncertainty u_val = √(u_num² + u_input² + u_D²) is dominated by the
model-form/data term u_D (the lumped rate constants were fitted to the AVL
trace), not by mesh. These cases are therefore labelled GCI-not-applicable —
calibrated in their pass_criteria.toml, and GCI is reserved for the handful
of numbers actually quoted in the docs where u_num is the meaningful term.
Validation — does it agree with reality?¶
The reference type matters as much as the number. We distinguish three:
| Workflow | Status | Reference type | Honest verdict |
|---|---|---|---|
| Engine breathing / manifold tuning (SI) | breathing verified; quantitative match re-cal owed | mixed — mendeley_ethanol_water is experiment; ricardo_ktm is code-to-code (reclassified 2026-08-30: its reference is Ricardo WAVE's own OEM baseline, not the chassis dyno — see that suite's README) |
The valve-coupling breathing physics is verified correct + conservation-pinned (ADR-0008, now default). The published-data quantitative match was calibrated against the legacy coupling and is mid-re-establishment: Ricardo-WAVE KTM 510 cc is 7/10 with the recommended --throttle --wall-heat invocation, re-measured 2026-08-30 on 9222699d (per-point table in that suite's README; the 6/10 recorded on 2026-06-09 stood here until then, and which point flipped is unrecoverable because that record kept only the aggregate) — 3/10 bare; was 8/10 legacy same-invocation; originally re-validated 2026-06-09: the single-point-calibrated idealised cam over-admits air across RPM (every point over-predicts torque), a per-RPM re-cal owed, gated on proprietary OEM cam data. Mendeley ethanol/water is 47/60 since 2026-10-20, when five harness inputs were corrected against the paper (its 163 cc engine, water by volume, its η convention, λ = 1, the measured spark; all 40 points to 30 % water pass); before that it was 39/60 — the honest score: the earlier 44/60 (2026-06-09) was flattered by a knock-integral bug that silently retarded combustion 10° on this scaffold, bisected 2026-08-15 to the 2026-07-01 fix 643fc3fb (closure in BACKLOG_HISTORY.md; fixed-fuel suite, so the orifice coupling is ~1 %/near-neutral, no re-tuning) — the residual concentrates at 40–50 % water, where the measured gap is combustion deterioration under water dilution; the earlier "charge-cooling / constant-γ" diagnosis was implemented, measured, and retracted 2026-08-15 (charge cooling moves the prediction the wrong way — see the suite README). (An earlier note that the data was "local-only / not re-runnable in CI" was wrong; operating_points.csv is committed and runs in CI.) |
| Acoustics / NVH | validated | analytic + code-to-code + experiment | transmission-loss vs analytic + a GT-Suite TMM cross-check, and the frequency-domain TMM against a measured expansion-chamber TL (RMS 0.92 dB below 1.2 kHz, maintainer-run; docs/validation-dossier.md, W4). The time-domain solver matches the analytic chamber TL when the chamber is built from pipes and junctions, not from one pipe with sharp area steps (see Verification). (Corrected 2026-10-17: this row said "Not yet experiment-validated", false since 2026-08-29.) |
| Aftertreatment (DOC / SCR / TWC) | partly bench-validated | experiment (open synthetic-gas-bench) + code-to-code vs AVL Boost digitized traces | Corrected 2026-08-30. This row said "Not validated against lab / synthetic-gas-bench data", which had been false since heliyon_twc_co_oxidation landed: that suite reproduces the measured Table-11 CO-step OSC discharge durations of an open-access (CC BY) Heliyon 2024 synthetic-gas-bench study across three ageing states — and is predictive across two of them, since Omega_OSC_brnk is calibrated on the fresh state only while mild and severe follow from the paper's independent Table-13 site-density ratio. ornl_passive_scr adds measured NO→NH₃ selectivity-vs-λ (ORNL CLEERS 2014 / SAE 2016-01-0934) at trend level. Both are CI-gated and pass. What remains true: several rate constants are calibrated to AVL rather than predictive, doc_propylene_lightoff is code-to-literature (a T50 band, not a dataset), and the SCR NO-conversion mesh-calibration caveat below still stands (retracted 2026-10-25: the conversion is mesh-converged since the surface solve carries the gas, and A_scr is refit on it). See docs/validation-dossier.md |
| Turbo matching | consistency check | self-consistency | shaft power-balance + map fidelity — the code agrees with itself, not with experiment. |
| Electrified drive cycle | consistency check; the cell validated | self-consistency; experiment for the cell | energy bookkeeping — a self-check. The battery cell is, since 2026-11-13, checked against measurement: the Randles ECM identified on an LG HG2 cell's HPPC pulses predicts 22 measured drive cycles to 10-36 mV RMS (UDDS/HWFET/LA92, 10-40 °C), worse in the cold (Validation 7), and the traction motor's map and inverter loss against a measured YASA P400 (Validation 8). The vehicle around them remains a self-check. |
See the validation dossier for the per-operating-point numbers, the checked-in case behind each row, and how to reproduce them.
Blind-predictable vs structurally-blocked gates¶
A gate is only worth aiming a blind (un-tuned) prediction at if the physics it needs is actually present. We do not claim un-tuned predictive closure of any gate that is structurally missing physics; for those, the honest target is a calibrated match, labelled as such. Each v0.3.0-era gate is classified:
| Gate | Blind-predictable today? | Why |
|---|---|---|
| W1 breathing physics (mass conservation across the valve) | Yes — verified | Conservation-pinned by test_cylinder_valve_conservation.py (ADR-0008); no tuning involved. |
| W1 KTM / Mendeley quantitative match | No — calibrated | Single-point-calibrated cases; a blind per-RPM match needs OEM cam geometry (KTM) or charge-cooling physics (high-water Mendeley) not in the shipped case. |
| W2 turbo matching | n/a — self-consistency | Conservation/map-fidelity check, not a prediction of external data. |
W3 C02006 co_conv_cat |
No — CO calibration gap | The CSF CO/HC oxidation kinetics do exist (aeolus1d.closures.filter.csf_into) and are active on the Cat brick: c3h6_conv_cat matches AVL's Cat trace within ~16 % (gated at 30 %), which disproves the earlier "no CSF kinetics / structural" claim. Only co_conv_cat remains off (~77 % mean) — aeolus1d under-converts CO because the mass-transfer cap that keeps the QS steady-energy exotherm stable also caps CO conversion at AVL's lower band. A CO-oxidation calibration/stability gap, not missing physics; recalibration is deferred (pass_criteria.toml FOLLOWUP). |
| W3 C02006 Non-Cat channels (T, soot, Δp, conv) | partly — calibrated | The passive brick is calibrated to the AVL Non-Cat trace (cake-Darcy, A_o2 ×4); the soot burn-down is bi-stable (cliff vs MT-limited plateau) until an MT-limited rate cap lands. |
| EPW diesel breathing / IMEP_High / PFP | Yes — near-exact | With the orifice coupling (ADR-0008), vol-eff ~74 % and IMEP_High/PFP land within a few % at the anchor points; the blind 2nd-operating-point T_EXH check no longer generalises. |
| ↳ CORRECTED 2026-09-10 | T_EXH: no | The row above read "one blind 2nd-operating-point T_EXH check generalises (−5.6 % / −1.8 %)" until this date. Those figures predate 2026-09-06. test_blind_operating_point_T_EXH_generalizes is now xfail(strict=True) at −9.91 % against a 6 % gate (AVL 605.4 °C vs aeolus1d 545.44 °C), re-measured 2026-09-07 and reproducing the 2026-09-06 run to 0.05 °C — deterministic, so the drift is real. Two of the three calibration anchors are also outside the gated 40 K band (−47.09 K and −43.09 K). A refit was measured and REFUSED: the two blind ops want h = 57.1 and 196.3, a 109.9 % spread against a 25 % bound pre-registered in BACKLOG.md before any number existed. The breathing / IMEP_High / PFP claims in the row above are unaffected — only T_EXH is withdrawn. |
| EPW diesel BMEP / NOx | No — residual gaps | Pumping-loop residual leaves BMEP ~30 % low. The two former NOx blockers have since landed — the Zeldovich post-processor no longer raises (it escalates BDF→LSODA→Radau→equilibrium-envelope, aeolus1d.analysis.nox_post) and an opt-in dissociation-aware burnt-zone-T cap ([cylinder.combustion] burnt_dissociation) tames the constant-γ peak-T — but NOx itself is still uncalibrated/unvalidated. Neither residual is a conservation bug. |
| W4 acoustics | Yes — analytic, and measured TL | Reproduces the closed-form resonance + GT TMM in the plane-wave regime, and a measured expansion-chamber TL to RMS 0.92 dB below 1.2 kHz (maintainer-run data). (Corrected 2026-10-17: this said "not an external-experiment claim", false since 2026-08-29.) |
| W5 electrified | n/a — self-consistency | Energy-bookkeeping check, not a prediction. |
The coupled DOC + DPF + SCR aftertreatment train remains a named v0.3.0 gate that is not yet closed (single-component aftertreatment is demonstrative; the coupled train is unvalidated).
Known limitations / not validated / known-wrong¶
Do not rely on aeolus1d for these without independent verification:
- The caloric model is a constant by default, and drifts at engine temperatures. Two separate paths, both measured 2026-08-01:
Ideal-gas path (212 of the 225 bundled cases). A single scalar gamma. For
N2 against NASA-7, gamma falls from 1.4005 at 300 K to 1.3139 at 1500 K,
so a constant 1.4 is 6.6 % high there. The consequence is larger than
that sounds: pressure is recovered as p = (gamma - 1) rho e, and the error
in gamma - 1 reaches 11 % at 800 K, 22 % at 1200 K and 31 % at 1800 K.
aeolus1d already has the fix — [pipe.species] per_cell_gamma = true
evaluates gamma per cell from NASA-7 at the cell's own temperature, cutting
the 1500 K error from 6.6 % to 0.9 %. It is off by default and used by
three bundled cases, and it requires a [pipe.species] block: a single-gas
pipe with no species tracking cannot use it at all.
The EPW diesel validation suite is one of the three: since 2026-08-10 its
exhaust pipes ship per_cell_gamma = true, after an A/B measured on one
commit came back net-better in both anchored and predictive mode. It is
paired with a re-fitted anchored-mode plenum h*A (550 -> 377 W/K) and the
pair must move together — see the suite README. The DD13 suite still
declares no species columns, so its exhaust-side numbers carry this error.
See tests/integration/test_caloric_model_accuracy.py.
Until 2026-08-01 simply adding the columns did not help on an engine,
which is why no engine case had them. A cylinder routed only its fuel
column; every other column fell back to the pipe's zero-gradient ghost
(which mirrors the runner back at itself) and, under the orifice valve
model, blowback mass entered the runner with no species credit at all. The
runner's composition was therefore diluted toward zero, and a zero-sum
composition makes mixture.gamma return exactly 1.0 — which zeroes the
pressure and collapses the HLLC fan into a ZeroDivisionError. The cylinder
now carries a general composition (next entry), so the columns can be added;
doing so on the validated diesel suites is a separate exercise, because it
changes their exhaust-side results.
- The cylinder's composition is a well-mixed single zone with
complete-combustion products. Since 2026-08-01 a cylinder keeps a mass
inventory of every non-fuel species column its ports touch, exchanges it
with the runners through both valve couplings, and converts burnt fuel into
stoichiometric CO2 + H2O with the matching O2 debit
(
aeolus1d.chemistry.fuel_stoichiometry, driven by the fuel's H/C atom ratio). What that does not model: no CO, no soot, no NO formed in the cylinder, no dissociation, and no burnt/unburnt zone split — the charge is one well-mixed volume, so the exhaust composition is a cycle-averaged product mixture rather than a resolved blowdown history. Rich operation is not modelled either: when the tracked O2 runs out the conversion scales back and reports the shortfall inCylinder.last_products_unconvertedinstead of forming CO. The inventory is advanced by an operator-split forward-Euler step on the stage-mean port rate — exact for SSP-RK2, first-order for SSP-RK3. Inert on any case whose pipes carry no non-fuel column, which is every bundled engine case. Seeexamples/91_cylinder_species_transport.toml.
The same stage-mean treatment applies to a plenum's fuel and species
inventories (Junction, EHRJunction). Until 2026-08-01 both integrated
the last RK stage's rate, which lost 6.6e-05 (N2) / 1.5e-04 (O2) / 6.7e-05
(fuel) of the tracked mass over 4 ms on a closed network — see
tests/integration/test_plenum_species_conservation.py. Volume-side
inventories are the recurring home of this mistake, so any new one should
use species_coupling.StageRateAccumulator rather than caching a single
rate.
Real-gas EOS path. The scalar cv has the same weakness (N2: 741 J/(kg K)
at 300 K rising to 946 at 1500 K, so a constant tuned near ambient is 27 %
low). Since 2026-08-01 [pipe.eos] accepts an optional cv_poly /
cv_T_min / cv_T_max polynomial; omitting it keeps the constant and is
bit-identical. Note the narrow reach: ideal-gas pipes never take the EOS
residual (has_real_gas is eos_kind != EOS_IDEAL), so cv_poly only
affects pipes configured with redlich_kwong / peng_robinson /
tabulated — 10 bundled cases, one of them in a validated suite. That
one, validation 12 (the I1 nitrogen blowdown, 2026-11-19), runs nitrogen
near 290 K and below, on a constant cv; it does not reach the cv_poly
range.
- Choosing an EOS: cubics have an accuracy ceiling at high density.
Measured against NIST Chemistry WebBook nitrogen
(
tests/integration/test_eos_vs_nist_reference.py), max relative error:
| pressure @200 K | sound speed @200 K | pressure @300 K | |
|---|---|---|---|
ideal |
19.1 % | — | 0.52 % |
redlich_kwong |
0.80 % | 6.96 % | 1.55 % |
peng_robinson |
4.85 % | 9.53 % | 1.67 % |
tabulated (CoolProp) |
0.037 % | 0.025 % | 0.037 % |
Three things worth taking from that. Near the critical region a cubic is a
large win over ideal (0.8 % vs 19 %). In the near-ideal regime the cubics
are slightly worse than ideal, which is also cheaper — "real gas" does
not mean "more accurate everywhere". And the residual sound-speed error of
the cubics is the p-v-T form at liquid-like density, not the caloric
model: it grows with density and no cv(T) can remove it. When density
accuracy matters, use kind = "tabulated".
- A non-ideal EOS with species: mixed per cell since 2026-11-25, within
limits. A Peng-Robinson or Redlich-Kwong pipe with a
[pipe.species]block of its whole composition now builds each cell's EOS from its species (theory.md §1.2, "Real gas with species"): van der Waals one-fluid mixing,k_ij = 0, about 2 points less accurate than the pure fluid against GERG-2008 (−4.3 % for a 20 % hydrogen blend at 200 bar, −2.2 % for methane). It runs on the explicit network driver only, on a uniform-area pipe with no reaction, catalyst, filter, urea, condensation or Python closure, ending in a wall, a transmissive end, arelief_valve, a plain plenum port or an orifice junction; everything else is refused at load by name. A tabulated EOS with species is still refused (a table is one fluid). Example:examples/98_cng_hydrogen_blend.toml. The bullet as written on 2026-09-15 follows; its measurement is why the lift mixes rather than approximates.
(2026-09-15:) A non-ideal EOS cannot be combined with species transport,
and is now refused at load time. Pipe.eos_params is one array for the
whole pipe — one R_gas, one Tc, one Pc, one omega — so a pipe whose
composition varies cell to cell is evaluated with the wrong substance
everywhere but one cell. Measured with Peng-Robinson in molar units and van
der Waals one-fluid mixing (k_ij = 0), pressure at fixed (T, ρ):
| condition | error today | if only R were per-cell |
real-gas worth |
|---|---|---|---|
| exhaust, 700 K, 0.75 kg/m³ | 36.4 % | 0.05 % | 0.05 % |
| EGR cooler, 400 K, 1.6 kg/m³ | 36.5 % | 0.42 % | 0.25 % |
| wet exhaust H₂O/N₂, 700 K | 55.0 % | 0.21 % | 0.26 % |
| dense CO₂/N₂, 320 K, 50 kg/m³ | 43.8 % | 17.96 % | 13.99 % |
This sharpens the "real gas is not more accurate everywhere" point above
into a rule you can apply. Compare the last two columns: at every condition
an engine runs, the real-gas correction is worth 0.05–0.26 % while a
wrong composition costs 36–55 % — so on a compositionally graded exhaust
duct a cubic EOS is not merely unhelpful, it is two orders of magnitude the
wrong thing to spend accuracy on. Use kind = "ideal" there: its
p = (γ−1)ρe is composition-correct already, because gamma_pad is built
per cell from the mixture's own cp and R_mix.
Lifting the restriction needs per-cell EOS parameters — eos_params (P,)
→ (N, P) across the 28 @njit kernels that take a params array, plus
k_ij as a new input surface. Filed in BACKLOG.md with this measurement.
Note that per-cell R alone does not do it: it is a ~99 % win only in
the regime where the cubic buys nothing, and leaves 18 % in the dense regime
where the cubic is the point.
- Diesel exhaust temperature is no longer ~10× high — that was an
artefact of the under-breathing valve bug, closed by the orifice coupling
(ADR-0008). With the corrected default + a physical exhaust wall-heat
coefficient, EPW
T_EXHis no longer 10x high. CORRECTED 2026-09-10: this bullet read "lands within ~±13 % mid-range and a blind 2nd-operating-point check generalises (−5.6 % / −1.8 %)" until this date, on figures that predate 2026-09-06. Re-measured, the blind op reads −9.91 % against a 6 % gate (−8.83 % onmain24ab9634 and −8.94 % with the trapped-charge fix, re-measured 2026-10-14) and the test isxfail(strict=True); in predictive mode — the mode a user without the vendor CSV actually runs —T_EXHis report-only and NOT VALIDATED, reading −44.9 / −113.4 / −80.9 K at the 1200 / 1500 / 1800 anchors (measured 2026-09-07; −38.6 / −109.0 / −73.2 K re-measured 2026-10-11,--ops 3predictive onmain56dad407, with the 1500 rpm op not plateau-certified). Treat dieselT_EXHas indicative. The residual diesel gaps are the pumping loop (BMEP ~30 % low) and NOx (a frozen constant-γ burnt-zone back-solve over-predicts peak T at high load, inflating the Zeldovich estimate — mitigated but not closed by the opt-in[cylinder.combustion] burnt_dissociationcap and the two-zonegamma_burnt/gamma_unburntpath); treat diesel NOx and BMEP as indicative, not validated. - EPW diesel: cyclic convergence / gas-exchange under-convergence is the
open driver. The EPW steady suite runs a short settle protocol
(
N_CYCLES_SETTLE + 1 = 2cycles, last cycle read) — adequate for the mechanical outputs since the orifice coupling (breathing converges by ~cycle 4–5, trapped mass matching AVLMF_IAto ~10 %, vol-eff ~74 %), but the gas-exchange loop remains under-converged:IMEP_Lowplateaus several bar too negative (−1.7 / −3.3 / −4.4 bar at the anchors vs AVL ≈ −0.5), which is precisely the residual behind the ~30 % low BMEP above. Quoted EPW numbers are protocol-specific until a cycle-convergence detector + converged-state wall-heat re-tune land (tracked inBACKLOG.md). - Quasi-steady solver (
solver = "quasi_steady") operating limits. The QS SIMPLE low-Mach mode is validated on DPF/filter aftertreatment pipes (the C02006 keystone) — not across all pipe kinds and regimes:- Catalyst pipes can crash the QS flow solve. A DOC-style catalyst
pipe (two-phase catalyst + Darcy-Forchheimer porous + DOC oxidation
kinetics) can drive the SIMPLE solve to a degenerate outlet state —
a
ZeroDivisionErrorin the pressure-outlet kernel with ρ/p ≈ 0 at the outlet cell. Only DPF/filter pipes are QS-validated today. Not reproduced, 2026-11-23 (roadmap 0h step 1.3): c02001 is that configuration (two_phase_heat_var_nucatalyst, Darcy-Forchheimer porous,doc_oxidation_voltz), and its full 1200 s cycle runs as a slow-tier validation (tests/validation/test_avl_c02001_doc_lightoff.py). The crash was recorded 2026-06-10 and no case was kept; reopen with one. - Strong exotherms can crash the QS SIMPLE kernel. A
high-temperature regeneration runaway (peak inlet ≳ 740 K combined
with heavy soot loading) drives the SIMPLE solve to a
ZeroDivisionErroras a cell's density → 0 when the steady-energy temperature spikes. Gentle passive regen (C02006, ≤ 693 K) is stable; high-soot active-regen drive cycles can crash until the kernel guards the singular regime. Not reproduced, 2026-11-23 (roadmap 0h step 1.3): c02006 with its inlet peak raised from 693 K to 800 K and 900 K at a soot load of 30 (three times the example's), and to 1000 K at 40, ran 120 s of the cycle each without a fault (dev box, load ~50). Recorded 2026-06-10 with no case kept; reopen with one. - DPF cake soot-drag is absent from the QS momentum equation —
only the pipe's porous Darcy-Forchheimer drag is carried, so QS
pressure drop under heavy cake loading reads low.
Stale, noted 2026-11-23 while writing the roadmap's section 0h: the
cake's Darcy drag has been in both quasi-steady pipe solves since
before 2026-08-06 (
_cake_K_extrainsolver/quasi_steady_network.py, refreshed every macro step from the soot loading). How well the loaded pressure drop agrees with a reference was not measured for this note. - ~~No mixed engine + aftertreatment multi-rate network~~ — QS is
whole-network: an engine-breathing section cannot run compressible
while the aftertreatment section runs QS in the same case.
Lifted 2026-10-20: two
[[circuit]]blocks run an explicit circuit and a quasi-steady one in one case, coupled at plain plenums (numerics, "Multi-rate circuits"). Its limits: one circuit of each, a first-order exchange stable only below twice the coupling plenum's relaxation time, and the quasi-steady model's own error at the plenum (about 4 % of the quasi-steady pressure drop on the measured case). Two of these moved, noted 2026-11-23: since 2026-11-17 the exchange is linearised in the plenum pressure and the macro step is no longer held below twice the relaxation time, and since 2026-11-19 two explicit circuits can be paired as well (numerics, "Multi-rate circuits"). - Species mass conservation under a fast light-off (transient). Reaction products absent from the inlet feed are correctly flushed at steady state (ΣY ≈ 1; the inflow-ghost fix, ADR-0009), but a sharp gas-phase light-off shows a bounded transient ΣY dip (≈ 0.96) before recovering to 1.0 — an operator-split transient. QS validation metrics are steady-state, so this is a numerical note, not a result caveat.
- The built-in
twcanddoc_oxidation*laws book only the columns the pipe carries. Since 2026-11-04 they debit O₂ (the DOC) and credit CO₂ / H₂O (and N₂ for thetwc's NO reduction) when the pipe tracks those species, so ΣY is conserved on a pipe that carries them all. A product or oxidant the pipe does not carry is not booked, and the DOC books no HC products on a primary other than C₃H₆ (a lumpedHChas no formula); ΣY over the tracked species then moves by that mass. The DOC rates do not read O₂, so in an O₂-starved cell the debit can exceed the O₂ present: the law is for lean exhaust. Of the shipped fed cases only c02015's feed is briefly short of the O₂ full conversion would need (t ≈ 29 s), and its DOC O₂ stays above 9 × 10⁻³ there. Until 2026-11-04 nothing was booked: over c02001's run 0.33 % of the exhaust mass left the tracked species and the outlet O₂ read 2.1× high after light-off.
- Catalyst pipes can crash the QS flow solve. A DOC-style catalyst
pipe (two-phase catalyst + Darcy-Forchheimer porous + DOC oxidation
kinetics) can drive the SIMPLE solve to a degenerate outlet state —
a
- Coupled aftertreatment train. A cross-coupled DOC + DPF + SCR drive-cycle is a named v0.3.0 release gate that is not yet closed. Single-component aftertreatment is demonstrative (above); the coupled train is not validated.
- Retracted 2026-10-25, see the C02002 entry under "Mesh convergence" above:
the conversion is mesh-converged since the surface solve carries the gas,
and
A_scris refit on it. As written before: SCR NO-conversion is mesh-calibrated, not mesh-converged. The AVL C02002 With-NO conversion matches AVL (30.4 % vs 30.6 %) only at its 50-cell calibration mesh; refining monotonically lowers it (45 % @ 25 → 30 % @ 50 → 19 % @ 100, change not shrinking — numerical diffusion on a coarse mesh over-predicts conversion). The converged value is lower than AVL's, so the agreement is a calibration artefact. See the C02002 suite README. - Junction total-pressure losses are not predicted. Measured 2026-11-24
against a sharp 90-degree T (Validation 13):
the
plenumjunction misses Miller's loss coefficient by a median 0.34 (combining losses under-read by half or more), and thecorberanconstant-pressure closure by 0.86, with a total-pressure gain in every combining flow. A 0-D junction carries no geometry. Where manifold losses matter, set the Corberán ports'K_lossfrom data, or treat the junction's losses as indicative. - A DI diesel's torque over speed and fuel is not predicted from one calibration point. Measured 2026-11-27 on a small air-cooled diesel at full load on diesel and fusel-oil blends (Validation 14): torque within 10 % at 14 of 59 points. The predictive combustion's efficiency does not fall with speed or with an alcohol blend as the engine's does, and the default Chen-Flynn friction barely grows with speed. Calibrate per speed, or treat off-calibration torque as indicative.
- Any temperature-critical claim outside the validated SI-breathing regime (light-off prediction, wall/solid temperatures, heat rejection) should be treated as indicative until a per-quantity uncertainty is published.
- Real-gas (PR/RK/tabulated) and network acoustic eigenfrequencies are exercised by tests but not validated against external data.
- An open pipe end is ideal unless it is told to radiate. By default the
pressure outlet, the FEM mode solver and the four-pole eigenfrequencies
treat an open end as ideal: R = -1, turning round at the end face, where a
real unflanged pipe reflects |R| = 1 - (ka)^2/2 at low ka and turns round
l = 0.61 a outside its end (Levine & Schwinger 1948), so a 0.5 m open
runner of 20-40 mm radius reads its resonances 2.3-4.7 % high. Since
2026-11-13
radiation = "unflanged"on apressure_outletmakes it radiate: within 0.004 of Levine and Schwinger's |R| and 0.003 of their l/a for ka <= 3 on a fine grid, and a closed-open runner's resonances within 0.08 % (Validation 6). Its limits: explicit integrators only (validaterefuses it underimplicit_euler,bdf2andradau_iia, where it read a mode 8.2 % low);pressure_outletonly (transient_pressure_outletdoes not radiate, and the parser refuses the key there); no mean-flow effect on the radiation; the modes and four-pole paths take the static end correction without the radiation loss; the structural and OpenWAM exports write a plain open end. Where it cannot run, lengthen the open pipe by about 0.61 a. The Helmholtz necks' flanged end correction is Rayleigh's 0.85 a, 3.5 % above the flanged pipe's exact 0.8216 a. - The battery ECM is linear in the current, and has no temperature axis
on its OCV or capacity.
RCNetworkBattery's resistances may be tables over SoC and temperature, but not over current, and a real cell's resistance falls as the current rises, strongly in the cold. Identified on HPPC pulses, it reads an LG HG2 cell's voltage 55-144 mV high on average over drive cycles at -10 and -20 °C; a slow branch that fixes the gentle cycle makes the hard one worse. Measured 2026-11-13, Validation 7. The cell's own heating is not modelled either: the caller sets its temperature. - A motor map without a generating side regenerates on its motoring
efficiency.
MappedEMotorreadseff_gridfor regeneration wheneff_grid_genis not given. On a measured YASA P400 that overstates the regenerative loss over four drive cycles by 27-52 %, while the motoring loss is within 0.5-8.7 % (measured 2026-11-13, Validation 8). Give generating data aseff_grid_genwhen there is any. The inverter's switching loss is linear in the DC voltage, and fitted on 250 and 400 V it reads the highest currents at 700 V low; it cannot be identified from one voltage. - Variable-γ pressure equilibrium — default recovery is Karni-consistent
(convergent). The per-cell-γ HLLC (
use_per_cell_gamma) recovers each cell's temperature self-consistently from the conserved internal energy (fixed point onT = (γ(T)-1)·e/R) — thegamma_T_from_energypath, now the default. Per-cell γ is opt-in per pipe via[pipe.species] per_cell_gamma = true(the recovery mode is the companiongamma_T_from_energyflag, default true); seeexamples/87_multicomponent_variable_gamma_shock_tube.toml. With it, an advected γ-jump interface at uniform p, u stays near pressure equilibrium: the moving-contact oscillation on an N₂|CO₂ contact is <0.1 % pressure / sub-% velocity and converges under mesh refinement (p-error ≈1.3e-3 → 2.4e-4 from N=100 → 800) — i.e. genuine truncation error, not a consistency defect. Settinggamma_T_from_energy=Falserestores the legacy scalar-mean-γ T recovery, which exhibits the classic Karni (1994) failure mode: a mesh-independent ~1.3 % / ~3.3 % oscillation (bounded, no blow-up). For uniform composition the two recoveries are algebraically identical (e = p/((γ−1)ρ)), so scalar-γ and uniform-mixture results — including every golden snapshot — are bit-identical either way; only sharp multicomponent γ-contrasts shift. Pinned both ways bytest_euler_verification_benchmarks.py::test_abgrall_interface_*. A fully quasi-conservative (Abgrall 1996) flux that would drive the residual to exact round-off is deliberately not pursued: it requires advecting1/(γ−1)as an independent, non-thermodynamic field, which is incompatible with aeolus1d's physicalγ = mixture_γ(T,Y)wherever composition mixes or temperature changes (i.e. every reacting cell) — the standard pressure-equilibrium-vs- thermodynamic-consistency trade-off, resolved here in favour of thermodynamic consistency with a convergent residual. - Calibration vs prediction: a coefficient tuned to reproduce one dataset
is calibration, not predictive validation. Aftertreatment rate constants
and some wall-heat coefficients are calibrated; the KTM
flow_nuresult (no tuned heat-transfer coefficient) is the predictive gold standard. - Bit-reproducibility is scoped to x86-64. (Stated here 2026-08-29; the
decision itself dates from 2026-07-31.) The golden regression net asserts
bit-identity under
AEOLUS_FASTMATH=0, and that guarantee is claimed on x86-64 only. Cross-architecture equality was never attainable for the chemistry and EOS rows — libmexp/logdiffer by ~1 ulp between architectures — so it was scoped out rather than pursued. aeolus1d is expected to run correctly elsewhere; what does not carry across architectures is the bit-for-bit reproduction of a stored snapshot. The decision was recorded inMATURITY.md(R1) anddocs/ci-runner-runbook.md, neither of which a user reads — so the limitation R1 was closed on the strength of being "stated" was, until this entry, not stated anywhere in the user-facing documentation. - Condensation is a bulk-gas process.
closures/condensation.pycondenses a cell when the gas in it falls below its dew point. In a charge-air or EGR cooler the wall is the cold side, so a real cooler condenses on its wall first, while the bulk gas is still above its dew point, and the film then sits at the wall's temperature. aeolus1d does not model that: condensate in a cooler appears later and at the gas's temperature, and it neither drains nor flows. A wall-side model would need the wall temperature, a mass-transfer coefficient and a drain, and no case here could validate it; stated as a limit by the maintainer's choice (2026-10-25).
Experimental / research seams (not part of the supported surface)¶
These ship in-tree as research scaffolding. They are not validated, not covered by the regression net, and may change or be removed without a deprecation cycle:
- the
mlextra (scikit-learn/torch) and the learned-closure NPZ seams (py_junction_bc = "learned_npz",turbo_map = "learned_npz"); - the PINN closure adapter (
aeolus1d.closures.pinn, Python-API only); - the ISAT in-situ tabulation prototype (
aeolus1d.closures.isat_chem).
The full aftertreatment closure set (DOC / DPF / SCR / SCRF / TWC) is demonstrative / calibrated as noted above — usable for exploration, not for regulatory or certification work.
Deprecation & stability policy¶
What you may rely on staying stable, and how it changes when it must.
The supported surface is:
- the
aeolus1dCLI — command names, their documented flags, and exit codes (CLI reference); - the TOML case format — every field documented in
run settings and the closures reference, versioned by the
schema_versionmarker (the first key of the[case]block) with an explicit migration path (ADR-0007); - the documented Python API — exactly the symbols rendered under
API reference (driving the solver, runtime objects, the
closure registry). Undocumented modules,
_-prefixed names, and internal kernels are not part of it and may change at any time; - the closed closure / component registry names a case file selects by
string (
aeolus1d.closures.registry).
Everything under Experimental / research seams above is explicitly outside this surface and may change or vanish without notice.
Pre-1.0 (current). aeolus1d is 0.x; under SemVer, 0.x grants no
API-stability guarantee. In practice we hold a stronger line than that minimum:
- Breaking changes to the supported surface happen only between minor
versions (
0.2 → 0.3), never in a patch (0.3.0 → 0.3.1), and every one is called out indocs/changelog.md. - Where a change can be made backward-compatible, it is. A renamed or
moved public symbol keeps a working alias that emits a
DeprecationWarningfor at least one minor cycle before removal; the warning names the replacement. A removed CLI flag is accepted-and-warned for the same window. - The TOML case format never breaks silently. An older
[case].schema_versionis either auto-migrated on load or rejected with a clear, actionable error — it is never mis-parsed against the current schema (ADR-0007). A field's meaning does not change under a fixedschema_version. (An unversioned deck is treated as version 1.)
How a deprecation is surfaced — all three, so it is impossible to miss:
- a runtime
DeprecationWarningat the call/parse site, naming the replacement; - a Deprecated entry in
docs/changelog.mdfor the release that introduces it, and again for the release that removes it; - a note in the affected symbol's / field's documentation.
Post-1.0 (intended). Once 1.0 ships, aeolus1d follows
SemVer strictly: breaking changes to the supported
surface only on a major bump, and a deprecated name warns for at least one
minor release before removal in the next major. The experimental-seam
carve-out persists — those never enter the compatibility contract until they
are explicitly promoted (documented + regression-covered).
Fitness for use¶
aeolus1d is provided for research and engineering exploration. It is not
qualified for safety-critical, certification, regulatory, or homologation
use, and carries no warranty (it is MIT-licensed — see the LICENSE
file at the repository root). You are
responsible for independently verifying any result you depend on. If you find
a case where a documented-validated workflow disagrees with experiment, please
open an issue — that is
exactly the feedback the validation dossier exists to absorb.