Theory¶
aeolus1d solves the one-dimensional compressible-Euler equations on networks of pipes coupled through zero-dimensional volumes, with optional source-term closures (friction, wall heat transfer, porous-media drag, two-phase catalyst, multi-species reactive chemistry, surface kinetics) and an extensive boundary-condition catalogue (characteristic, valve, transient stagnation, non-reflecting LODI). This document collects the equations and references behind every model the solver implements.
The numbered citations at the bottom ([1] … [40]) are the
literature aeolus1d actually draws from — every named correlation,
every numerical scheme, every closure points back to a reference
the implementation comments cite.
Looking for a specific component?
The Component index maps every component to its model, the theory section here, a runnable example, and its tutorial — all in one table.
1. Conservation laws¶
1.1 Quasi-1D Euler¶
Let \(A(x)\) be the pipe cross-sectional area and \(\mathbf{U} = (\rho,\ \rho u,\ \rho E)^\mathsf{T}\) the conservative state. The quasi-one-dimensional Euler system in conservative-variable form is
with the Euler flux
the pressure-on-wall geometric source
and (optional) per-cell closure sources for wall friction, heat transfer, porous drag, catalyst heat exchange, and reactive-chemistry energy release (see §3). The total energy is \(E = e + \tfrac12 u^2\) and the specific internal energy \(e\) is recovered from the EOS (§1.2).
1.2 Equation of state¶
aeolus1d supports four EOSs through a kind-dispatched protocol. Each
exposes the same three primitives — pressure(T, ρ),
internal_energy(T, ρ), and sound_speed(T, ρ) — so the HLLC
flux and the per-cell pressure recovery work identically across
the choices.
Ideal gas (default):
Redlich-Kwong (RK) [22, §3.4]:
with departure-function
Peng-Robinson (PR) [23]:
In both cubic EOSs the speed of sound includes the residual correction
which is recovered by analytical differentiation of the pressure
expression — see aeolus1d.closures.eos. Here \(c_v\) is the
EOS-corrected real specific heat
\(c_{v,\text{real}} = (\partial e/\partial T)_\rho
= c_{v,\text{ideal}} + \partial e_\text{departure}/\partial T\), not
the ideal-gas reference \(c_{v,\text{ideal}}\): at dense /
near-critical states the departure term is comparable to
\(c_{v,\text{ideal}}\), so using the ideal value biases the sound
speed (audit finding #12, 2026-07). The per-pipe [pipe.eos] block
may also override \(R_\text{gas}\) independently of the bulk gas.
Tabulated (CoolProp) is loaded as a 2-D NumPy interpolation table from a saved NPZ; the protocol stays the same so the HLLC kernel is unchanged. Used for refrigerants and CO\(_2\) where the cubic EOSs are too coarse near the critical point.
For real-gas pipes the inverse \((\rho, e) \to (p, T)\) step is a 1-D Newton iteration at fixed \(\rho\) solving \(e_\text{eos}(T, \rho) = e_\text{target}\). This is the EOS-aware \((m, E_\text{internal}) \to (p, T)\) recovery used both inside the network volume update (Phase 21b) and inside the HLLC pressure recovery on each face.
Real gas with species (2026-11-25)¶
A Peng-Robinson or Redlich-Kwong pipe that carries a [pipe.species] block
takes its EOS from its species, per cell. [pipe.eos] names the kind only;
\(R\), \(T_c\), \(P_c\), \(\omega\) and \(c_v\) come from the species
(chemistry/critical_constants.py, CoolProp 8.0's constants for CH\(_4\), CO,
CO\(_2\), H\(_2\), H\(_2\)O, N\(_2\), NH\(_3\), O\(_2\); closures/eos_mixing.py).
Mixing. Van der Waals one-fluid, \(k_{ij} = 0\), in molar units: \(b = \sum_i x_i b_i\) and, for Peng-Robinson, \(\sqrt{a\alpha}(T) = \sum_i x_i \sqrt{a_i \alpha_i(T)}\). Each \(\sqrt{a_i\alpha_i}\) is \(A_i - B_i\sqrt{T}\), so the sum has the same form as a single fluid's, and one pseudo-pure \((T_c, P_c, \omega)\) reproduces the mixture exactly: pressure, energy departure and every derivative, to \(10^{-16}\) at 200, 288 and 600 K. So each cell's EOS is one ordinary parameter row, and no EOS formula changed. Redlich-Kwong maps for any \(k_{ij}\); Peng-Robinson only at \(k_{ij} = 0\), which is why \(k_{ij}\) is not an input. The map is exact while every component's \(1 + \kappa_i(1 - \sqrt{T/T_{c,i}}) \ge 0\), i.e. below \(T_{c,i}(1 + 1/\kappa_i)^2\): 1772 K for CO\(_2\), 2404 K for CH\(_4\). The ideal part is \(c_v = \sum_i Y_i c_{v,i}(T)\) from each species' NASA-7 low-range polynomial, on the band all of them cover (200–1000 K for the bundled species), held constant outside it as a single fluid's \(c_v(T)\) is.
How good the mixed EOS is (pressure at the reference density, CoolProp 8.0's
GERG-2008): CH\(_4\)/H\(_2\) 80/20 by mole at 200 bar, 288 K, \(-4.3\%\); 50/50 at
300 bar, \(-6.8\%\); CH\(_4\)/N\(_2\) 90/10, \(-2.8\%\); CO\(_2\)/N\(_2\) 50/50 at 100 bar,
320 K, \(-1.3\%\). Pure methane on Peng-Robinson is \(-2.2\%\) at 200 bar, so
the mixing costs about two points; treating the blend as pure methane, as a
single-fluid pipe would, costs 29 % at the first condition
(.loop-review/real-gas-with-species/probe.py.txt).
Numerics. A graded composition at uniform \(p\) and \(T\) has a graded
\(\rho\), so these pipes reconstruct their faces in \((p, u, T)\), not
\((\rho, u, T)\), and decode \(\rho\) with the face side's own cell row: the
root of the cubic nearest that cell's density, polished by Newton on
\(p(\rho)\) (eos_rho_from_p_T_jit). Both sides of every face then carry the
same \(p\) and \(T\). The kernels are their own
(solver/hllc_eos_rows_njit.py), so a single-fluid pipe runs the code it
ran before. Each cell's row is refreshed from its composition before every
ghost fill; a plenum mixes its own gas from its inventory, and a port's ghost
takes the plenum's gas on inflow and the end cell's on outflow. A face side
whose reconstructed \(p\) or \(T\) is not positive takes its cell's state and
is counted. An advected CH\(_4\) | (50 % H\(_2\) by mass) contact at 200 bar, moved
0.3 of a 200-cell pipe at 20 m/s, holds \(\max|p - p_0|/p_0\) to
\(7.4\times10^{-5}\) (first order, MUSCL) and \(5.7\times10^{-5}\) (MP5), and
\(|u - u_0|/u_0\) to \(2.4\times10^{-3}\), with no fallback face (harness
.loop-review/real-gas-with-species/abgrall_ch4_h2.py.txt, default fastmath
build, 2026-11-25).
Limits. The explicit network driver only, with no [[circuit]]; the whole
composition (\(\sum Y = 1\)) of species with critical constants; uniform area;
no reaction, catalyst, filter, urea, condensation or Python closure on the
pipe; ends from an allow-list (wall, transmissive, relief_valve, a plain
plenum port, an orifice junction). A real-gas valve's reservoir gas is
taken to be the gas at its end. All of these are refused at load, by name.
2. Numerical methods¶
2.1 Finite-volume discretisation¶
The pipe is discretised into \(N\) cells of width \(\Delta x = L/N\) with \(N_g\) ghost cells on each side (\(N_g = 1\) for first-order, 2 for MUSCL, 3 for MP5). Conservative variables are stored cell-centred; fluxes live on the \(N+1\) interior faces.
The discretised quasi-1D residual per cell \(i\) is
where \(A_c\) is the cell area, \(\mathbf{G}_L, \mathbf{G}_R\) the flows (flux times area) through the cell's two faces, and the closure sources are per-unit-volume (already in \(d\mathbf{U}/dt\) form).
The area change sits in the faces (since 2026-10-20,
solver/area_jump.py). Each cell is a uniform duct of its own area, and an
interior face between two areas is a stationary area jump across which mass
flow, total enthalpy and entropy are carried unchanged. The smaller-area state
is mapped to the larger area along that isentrope, the Riemann problem is
solved there, and the mass and energy flows are that flux times the larger
area, one value for both cells, so both are conserved exactly. The momentum
flow differs by the force on the step: the larger side takes the flux times its
area, the smaller side the momentum flux of the face state mapped back to its
own area. A steady isentropic flow is then a discrete steady state (a 20:1
contraction passes the orifice-equation flow to round-off), and a pressure wave
crossing a step meets the acoustic jump conditions (an expansion chamber built
as one stepped pipe matches the textbook transmission loss within 0.07 dB to
900 Hz). The cell-centred wall source \(p_i (A_R - A_L)\) it replaces lost
12-30 % of the flow through that contraction and read the chamber 1.3-2.1 dB
high at any mesh. MUSCL and MP5 reconstruct a cell beside an area change from
its neighbours mapped to its own area (the ghosts continue the profile), so a
steady flow has zero slope; the two end faces keep the plain reconstruction,
which is how the port readers rebuild them. A transonic throat converges at first order in every scheme, as
before. One case the isentropic map cannot carry: a supersonic flow out of
the smaller area against a back pressure that stands a normal shock inside
the jump. Its face state at the larger area has no isentropic partner at the
smaller one, so there the face flows are the exact solution of the duct
Riemann problem: the jet's own flows when the shock stands in the jump or
the jet clears it (since 2026-11-09; before, the small cell accelerated
until its pressure went negative). The scheme converges to the exact duct
solutions of Han, Hantke & Warnecke (2012) in all six of their wave
configurations (tests/validation/test_duct_area_jump_riemann.py). A
uniform-area pipe collapses exactly to the standard
\(-(\mathbf{F}_R - \mathbf{F}_L)/\Delta x + \mathbf{S}\) residual.
2.2 Spatial reconstruction¶
Three reconstruction kinds are dispatched per pipe.
First-order (Godunov) — piecewise-constant. Used by default for any pipe with \(N_g = 1\). The interior flux is \(\mathbf{F}_{i+1/2} = \mathrm{HLLC}(\mathbf{U}_i, \mathbf{U}_{i+1})\).
MUSCL with limiter [27, Ch. 14] — second-order TVD reconstruction in primitive variables \(\mathbf{W} = (\rho, u, p)\). The limited slope is
and the face states
Two limiters are available:
- minmod — \(\mathrm{minmod}(a, b) = \mathrm{sgn}(a)\, \min(|a|, |b|)\) for sign-consistent \(a, b\); zero on opposite signs. Most diffusive but rock-solid on shocks.
- van Leer — \(2 a b / (a + b)\) (sign-consistent), zero on opposite signs. Sharper near contacts.
Achieves observed order \(\approx 2.0\) on smooth flow and drops \(\mathcal{L}_1\) error on Sod from \(\sim 1.5\,\%\) (1st order, 400 cells) to \(\sim 0.3\,\%\) (MUSCL + van Leer, 400 cells).
MP5 (Suresh-Huynh, 1997) [25] — fifth-order monotonicity- preserving reconstruction. The unlimited 5th-order upwind interpolant is
The monotonicity-preserving limiter computes
and accepts \(w_\text{orig}\) when \((w_\text{orig} - w_i)(w_\text{orig} - w_\text{MP}) \le \varepsilon\); otherwise it falls back to a TVD median value computed from the 4-argument minmod of second differences. Requires \(N_g = 3\) and gives \(\sim 50\times\) lower \(\mathcal{L}_1\) error than MUSCL at the same resolution on smooth flow while still preserving monotonicity at shocks.
2.3 Riemann solver¶
HLLC [27, Ch. 10] — three-wave approximate Riemann solver that resolves the contact discontinuity (which the simpler HLL smears). aeolus1d uses Davis wave-speed estimates:
with star-state densities and energies
and the upwind flux selected by which wave the interface lies
on. Per-cell \(\gamma\) is supported (Phase-28e) by evaluating the
sound speed and pressure recovery on each side with its own
\(\gamma\); the wave-speed estimates remain \(\gamma\)-agnostic and
the solver collapses bit-exactly to standard HLLC for uniform
\(\gamma\). Per-cell \(\gamma\) is opt-in via
[pipe.species] per_cell_gamma = true; the per-cell mapping then
defaults to the energy-consistent gamma_T_from_energy form
(\(\gamma\) recovered from the local internal energy each step),
which suppresses the Karni-style oscillation the naive
temperature-only mapping produced at composition/temperature
contacts.
HLLC-LM [40] — Thornber et al. low-Mach correction. At low Mach the standard HLLC velocity reconstruction is overly dissipative; the fix is to rescale the reconstructed face velocities toward their average:
Pressure and density pass unchanged. At \(M \ge 0.1\) the flux is
bit-exactly standard HLLC. At \(M \to 0\) the velocity jump goes to
zero, suppressing the spurious acoustic dissipation. Opt-in via
[case] hllc_low_mach = true.
2026-09-13 — the flag was inert on single-pipe runs until this date
The selector above was read and announced by the startup banner on every
driver, but only the explicit network driver's residual acted on it. A
single-pipe case setting hllc_low_mach = true ran standard HLLC while
being told it was running the corrected flux. Both explicit drivers now
honour it; the implicit driver still does not, and its banner omits the
row. See docs/changelog.md.
2.4 Time integration¶
Four explicit Runge-Kutta variants are wired through the same
stage interface (three fully-implicit drivers — implicit Euler,
BDF2, and Radau IIA(3) — are also available for CFL > 1 runs; see
aeolus1d.solver.implicit_network). The CFL-limited timestep is
with \(\mathrm{CFL} \approx 0.5\) for SSP-RK2/3 + first-order or MUSCL on shocked flow; \(\mathrm{CFL} \approx 0.3\) for MP5.
SSP-RK2 (Heun), 2nd-order TVD [28]:
SSP-RK3 (Shu-Osher), 3rd-order TVD [28]:
RK4 (classical), 4-stage 4th-order, not TVD — for smooth-flow benchmarks where the temporal-error floor is the bottleneck.
RK5 (Cash-Karp), 6-stage 5th-order, also non-TVD. Pairs naturally with MP5 reconstruction.
3. Source-term closures¶
3.1 Wall friction¶
All friction kinds expose the same Darcy-Weisbach momentum source plus mechanical-to-internal energy conversion:
Two friction-factor closures are shipped:
darcy_const — user-supplied constant \(f\).
colebrook — Colebrook-White implicit equation, evaluated
through Haaland's explicit approximation [4]:
with a linear blend in the transition window \(2300 < \mathrm{Re} < 4000\). Hydraulic diameter \(D_h\), roughness ratio \(\varepsilon/D\), and gas kinematic viscosity \(\nu = \mu/\rho\) feed \(\mathrm{Re} = |u|\,D_h / \nu\).
3.2 Wall heat transfer¶
Constant wall-temperature exchange through a \(4/D_h\) per-volume exchange area for a circular pipe:
3.2.1 Dynamic wall + coolant pipe (Phase Coolant)¶
For engine-warmup or jacket-coupled studies the wall temperature is not known a-priori — it's an ODE state driven by the gas heat flux on one side and a coolant loop on the other. Three state layers per cell:
Energy is conserved per cell: every joule the gas loses across
the wall is gained by the wall + coolant. The coolant pipe is
1-D incompressible (pump-prescribed \(u_c, \rho_c, c_c\); no
pressure / momentum state — engine-cooling regime). Implementation:
aeolus1d.components.coolant_pipe.CoolantPipe /
ThermalWall, rate functions in
aeolus1d.closures.wall_coolant. The coupling is registered via
top-level [[coolant_pipe]] + [[coolant_coupling]] blocks
in TOML; advance_network(coolant_couplings=...) advances them
forward-Euler-style once per outer gas step (coolant time constants
≫ acoustic dt, so first order is well within the gas-side
discretisation error).
The 0-D lumped equivalent (aeolus1d.coolant.CoolantState from
Phase E3) is also available for bulk-block warmup studies where
spatial resolution along the jacket isn't needed; pick the 1-D
CoolantPipe when temperature gradients along the cylinder head
matter.
3.3 Porous media¶
Darcy-Forchheimer two-term drag [12]:
The first term is linear (Darcy regime, \(\mathrm{Re}_K \to 0\)); the second is the inertial Forchheimer correction that dominates at higher flow speeds.
3.4 Two-phase catalyst¶
This two-phase (gas + solid) channel model is the standard 1+1D
flow-through monolith formulation; Millo et al. [41, §11.2] give the
canonical derivation (gas-phase species/energy, solid-phase energy with
axial conduction, and washcoat species balances), which aeolus1d's catalyst
closures follow without the solid's axial conduction: each cell's solid
exchanges heat with its own gas only. With that, the model is Schumann's
(1929), and tests/validation/test_schumann_thermal_front.py checks it
against his exact thermal front. (Corrected 2026-11-10: this said the closures
follow the derivation, conduction included.) (Since 2026-11-18 the solid can
conduct and lose heat to a can, both opt-in: "Conduction along the solid, and
a can" below. Off, the model is Schumann's as before.)
A solid-phase temperature \(T_s(x, t)\) is integrated alongside the gas state, coupled by Newton-cooling heat exchange:
with \(\rho_s c_s\) the volumetric heat capacity of the substrate and \(a_v\) the gas-solid surface area per unit reactor volume.
Where a rate law's heat goes. A rate law on the pipe (doc_oxidation_voltz,
hc_oxidation, a mass-action mechanism ...) releases \(s_E\) [W/m³]. By
default it goes into the gas energy and the rates read the gas temperature.
With [pipe.species] reaction_heat = "substrate" (since 2026-11-17) the law is
taken as a surface reaction: its rates read \(T_s\), and its heat goes to the
solid,
reaching the gas only through \(q_\text{vol}\). A surface mechanism's rates
have read \(T_s\) since 2026-10-25; this puts a rate law on the same footing.
The explicit and quasi-steady drivers take \(s_E\) at the step's state; the
stiff chemistry sub-step (Strang, implicit) holds \(T_s\) over the sub-step
and gives the solid the heat of what reacted over it. Two limits stay: the
quasi-steady heat-release clamp (q_rxn_max_dT_per_step) acts on the gas
energy only, and the explicit driver's heat-release step cap
(dt_hrr_fraction) does not see heat that goes to the solid. At steady state
an adiabatic bed hands all the heat to the gas either way:
tests/integration/test_reaction_heat_substrate.py finds the same outlet gas
temperature in both modes, with the bed 102 K over the gas where the CO burns
in substrate mode.
Conduction along the solid, and a can. Two more heat paths for the solid,
both off by default (since 2026-11-18). A metal foil brick conducts along its
length: with [pipe.catalyst] k_axial [W/(m K)], the effective conductivity
over the whole cross-section (the foil's times its solid fraction, the bulk
basis of \(\rho_s c_s\)),
with insulated ends. And a brick sits in a can, which stores heat and loses
it outside: a dynamic [pipe.thermal_wall] with coupled_to = "substrate"
exchanges \(h A_w (T_s - T_w)\) per cell with the solid instead of the gas
(\(h\) is then the substrate-to-can contact coefficient, through the mat),
and keeps the rest of a wall: its heat capacity, its layers, its own axial
conduction, and convection and radiation to T_amb. Both are stepped once
per step, after the gas, by every transient driver: the can as a wall is
stepped, with the solid losing exactly what the can's inner face took, then
the conduction by backward Euler, which is stable at any step. The solid side
of the can exchange is explicit; a step longer than its time constant
\(1 / (h A_w (1/C_s + 1/C_w))\) warns once. tests/integration/test_substrate_can.py
finds the explicit, implicit and quasi-steady drivers agreeing on the can and
the solid to 0.2 K.
Three calibration kinds are exposed:
Constant-h (Phase 15): user supplies \((\rho_s c_s,\ a_v,\ h)\) directly.
Monolith resolver (Phase 45a) [13, §4]: derives \((a_v, h)\)
from honeycomb geometry. With cpsi cells per square inch and
open-frontal-area ofa,
with a constant Nusselt number \(\mathrm{Nu} = 2.98\) (laminar fully-developed square channel).
Variable-Nu (Phase 45b): replaces the constant Nu with the Hawthorn correlation
so the heat-transfer coefficient tracks local Reynolds number.
Useful for transient cold-start where the thermal entry length
matters. A sieder_tate correlation
\(\mathrm{Nu} = 0.027\,\mathrm{Re}^{0.8}\,\mathrm{Pr}^{1/3}\) is also
available. Unlike Hawthorn (whose additive \(2.98\) baseline is a built-in
floor), the Sieder-Tate form vanishes as \(\mathrm{Re}\to 0\), severing
the gas↔solid heat path at idle / soak / cool-down. The opt-in
catalyst_nu_laminar_floor case flag floors it at the channel's
fully-developed-laminar asymptote — the Graetz-Nusselt limit, \(2.98\) for
a square channel (Millo et al. [41, Table 11.1]: \(2.977\) constant-\(T\) /
\(3.089\) constant-flux; the constant-\(T\) limit applies after light-off,
the constant-flux limit before). Default off (validation-sensitive): see
Run settings.
Mechanism-driven catalyst (Phase 46d): the catalyst kind
mechanism reads a CHEMKIN-Surface or Cantera YAML file and
runs a full surface-mechanism step on every cell. Surface
species coverages \(\theta_k\) evolve via mass-action rates;
the gas-phase species feel both adsorption fluxes and
surface-reaction products. The mechanism-load path is built on
the existing CHEMKIN parser (Phase 27 [33]).
3.5 Species transport¶
A primary advected species \(Y(x, t)\) (mass fraction) is transported with the gas mass flux:
where \(r\) is the per-mass reaction rate from the chosen reaction kind.
For multi-species cases (Phase 22), an additional column array \(\mathbf{Y}_\text{extras}(x, t)\) of shape \((N, n_\text{extra})\) advects passively alongside \(Y\). Species are upwind-only (HLLC mass-flux direction selects which side's \(Y\) is transported) so the species-transport kernel is bit-exact mass-conservative in tandem with the gas-mass update.
Scheme-consistent species mass flux. The per-face mass flux that upwinds the species must be the same flux the density \(\rho\) was advanced with — the spatial scheme's reconstructed-state HLLC flux, not a first-order scalar-\(\gamma\) HLLC of the raw cell centres. On a MUSCL / MP5 / variable-\(\gamma\) / real-gas-EOS pipe the two differ, and a species advected on the wrong flux drifts even when the composition is uniform (it sees a different \(\dot m\) than the \(\rho\) it normalises against). The scheme flux is recovered without re-running the Riemann solve by telescoping the mass residual the scheme already produced: on a constant-area pipe
so one cumulative sum, anchored at the boundary-face flux \(\dot m_0\),
reconstructs \(\dot m\) at every interior face. The anchor must itself be
the scheme's reconstructed face-0 flux: a first-order anchor telescopes
the interior faces off the wrong constant and biases every face by
\(\dot m_0^\text{true} - \dot m_0^\text{anchor}\) — a DC shift that fakes a
uniform advective drift of any non-uniform composition at a
prescribed-inflow boundary (it is identically zero for uniform
composition, for walls where \(\dot m = 0\), and for first_order pipes,
where the raw-cell HLLC already is the scheme flux). The boundary-face
flux is rebuilt with the scheme's own reconstruction for every MUSCL and
MP5 variant — scalar-\(\gamma\), variable-\(\gamma\), and real-gas EOS — so
no spatial scheme is left on the residual-inconsistent first-order anchor;
first_order pipes keep the raw-cell anchor, where it already is the
scheme flux. The matching boundary kernels
(boundary_face_flux_{muscl,mp5}{,_var_gamma}_jit,
boundary_face_flux_eos_{muscl,mp5}_jit) each mirror their residual
kernel's face reconstruction, and the same helpers anchor the
flux-conservative junction port-rate (junction._pipe_port_flux).
(aeolus1d.solver.network_timeloop._species_rate, _left_boundary_mass_flux.)
Inflow-boundary composition. At a boundary with a prescribed
species inflow (a mass / velocity / stagnation inlet, or a junction
coupling) the inlet ghost is the feed, not a zero-gradient copy of
the edge cell. This matters for a reaction product the feed omits
(e.g. CO₂/H₂O over an oxidation brick): a zero-gradient ghost mirrors
cell 0, so the advective in-flux \(\dot m\,Y_0\) cancels the out-flux
\(\dot m\,Y_0\) and the product can never be flushed at the inflow
face — chemistry then injects it every step with no advective removal,
\(\sum Y\) drifts above 1, and mass is no longer conserved. A
complete feed (the specified mass fractions sum to \(\approx 1\)) is
treated as the full incoming composition, so omitted species are
absent (ghost \(0\)) and products are flushed; a partial trickle
feed (sum \(\ll 1\), a dilute-tracer pipe whose carrier gas is not in
the feed) keeps the zero-gradient ghost for the unspecified remainder.
The split is the shared _inflow_ghost_extras helper, applied
identically by the explicit, implicit-Newton, and quasi-steady species
transports. See ADR-0009.
Five reaction kinds are wired through the species seam.
arrhenius_scr_demo (Phase 15b) — single-species
first-order Arrhenius for NH3 → products:
arrhenius_scr_multi_demo (Phase 22b) — two-species standard
SCR with 1:1 stoichiometry [14, 15]:
nh3_ads_des (Phase 49a) — Langmuir adsorption / desorption
on a single storage site [16]. The catalyst surface coverage
\(\theta_\text{NH3} \in [0, 1]\) is integrated alongside the gas
state by the chemistry sub-step (§7):
with \(W_\text{cat}\) the total NH3-site density (mol-sites / m\(^3\)).
nh3_scr_kinetics (Phase 49a) — adds NH3 oxidation and
standard SCR on top of ads/des. Both new steps consume adsorbed
ammonia (Eley-Rideal):
Stoichiometry: \(4\,\text{NH}_3(s) + 3\,\text{O}_2 \to 2\,\text{N}_2 + 6\,\text{H}_2\text{O}\), \(4\,\text{NH}_3(s) + 4\,\text{NO} + \text{O}_2 \to 4\,\text{N}_2 + 6\,\text{H}_2\text{O}\).
Pollutant emissions (Phase 25m): two engine-relevant post-flame closures, both fed by the multi-species advection infrastructure.
- Extended Zeldovich NOx [11, §11.3.1]:
$$ \frac{\mathrm{d}[\text{NO}]}{\mathrm{d}t} = 2\,k_{1f}(T)\,[\text{N}_2]\,[\text{O}] \ [\text{mol}/(\text{m}^3 \cdot \text{s})] $$
$$ k_{1f}(T) = A_{1f}\,\exp(-E_{a,1f}/RT), \quad [\text{O}] = K_O(T)\,\sqrt{[\text{O}_2]} $$
$$ K_O(T) = K_{O,A}\,\exp(-E_{a,K_O}/RT). $$
The O-atom concentration is taken from the partial equilibrium
\(\tfrac12\text{O}_2 \rightleftharpoons \text{O}\), whose
equilibrium constant is
\(K_O = [\text{O}]/[\text{O}_2]^{1/2}\), so \(K_O\) multiplies
\(\sqrt{[\text{O}_2]}\) directly (the Heywood correlation form; a
\(\sqrt{K_O\,[\text{O}_2]}\) grouping would instead treat \(K_O\)
as the full \(\text{O}_2\rightleftharpoons 2\text{O}\) constant and
halve the effective activation temperature — corrected in the
2026-07 chemistry audit). Since 2026-09-29 \(K_O\) is a van't Hoff
fit to the repo's NASA-7 constant (\(K_{O,A} = 4.507\times10^3\)
(mol/m³)^½, \(E_{a,K_O} = 246.52\) kJ/mol, within 1 % over
1600-3000 K) and \(k_{1f}\) is Heywood's Table 11.1
\(7.6\times10^{13}\exp(-38000/T)\) cm³/(mol·s). The previous pair
(258.5 kJ/mol with \(K_{O,A} = 3.6\times10^3\), and the Bowman/Baulch
\(k_{1f}\), ~2.4× Heywood's) put [O] at 0.36-0.50× thermodynamic and
compensated in the thermal rate only. Quasi-steady on N atoms,
reverse reactions neglected — valid for lean post-flame gases. A
full extended-Zeldovich variant (make_zeldovich_nox_extended,
N₂O path + relaxation toward equilibrium) and a per-cycle
post-processing NO integrator (aeolus1d.analysis.nox_post, whose
stiff solve_ivp step escalates BDF → LSODA → Radau and falls
back to an equilibrium-limited envelope) build on the same rate.
The N₂O pair (\(k_4\), \(K_{\text{N}_2\text{O}}\)) was re-derived on
2026-08-26 — see the closure docstring; the integrator caps
max_step at the caller's own sample spacing, because a rate that
is exactly zero outside the active window otherwise lets BDF step
over a ~1 ms burn and converge to an all-zero history.
- Hiroyasu-Kadota soot formation/oxidation [17, 11, §11.3.2]:
$$ \frac{\mathrm{d}\rho_\text{soot}}{\mathrm{d}t} = R_f - R_o $$
$$ R_f = A_f\,\rho_\text{fv}\,p^{0.5}\,\exp(-E_{a,f}/RT) $$
$$ R_o = A_o\,\rho_\text{soot}\,X_{\text{O}2}\,\frac{p}{\sqrt{T}} \,\exp(-E{a,o}/RT). $$
3.6 Junction-port loss¶
Optional Bassett-style port loss for Corberán junctions (§5.2):
with \(K_\text{loss}\) calibrated from datasheet measurements (typical range 0–2 for sharp-edged ports).
4. Boundary conditions¶
All boundary conditions are ghost-cell fillers with signature
bc(pipe, end, t) -> None. The interior cells then sample
U_pad[Ng-1] / U_pad[N+Ng] as if they were ordinary neighbours,
and HLLC at the boundary face produces the correct numerical
flux for that BC kind.
4.1 Wall and transmissive¶
Wall — exact reflection. \(\rho\) and \(E\) mirrored across the boundary; momentum flipped: \((\rho u)_\text{ghost} = -(\rho u)_\text{int}\).
Transmissive — zero-gradient extrapolation. Crude non-reflecting; lets waves leave the domain at the cost of some reflection on strong shocks.
4.2 Stagnation inlet¶
Subsonic-inlet driven by stagnation \((p_0, T_0)\). The outgoing characteristic \(R^- = u - 2 a/(\gamma - 1)\) carries information from the interior; the incoming reservoir provides the isentropic stagnation closure. Solving the quadratic in boundary sound speed \(a_b\):
gives the boundary state, after which
Outflow through the inlet. When the interior pushes gas out (backflow), the end is an open end discharging into the reservoir: static \(p_b = p_0\), the interior entropy and the outgoing characteristic — the §4.3 construction with \(p_\text{back} = p_0\) — or plain extrapolation if that outflow is supersonic. The switch is taken when that outflow state points out of the pipe. Before 2026-09-26 the inflow relation above was applied to outflow as well, which made the exit a lossless diffuser: its ghost pressure fell as the backflow sped up, and the backflow ran away. When the quadratic has no positive root the boundary is the reservoir state at rest.
The valve_inlet BC (Phase 25 [29]) wraps this with a
crank-angle-windowed lift schedule:
\(f(t) = \mathrm{lift}(t) / \mathrm{lift}_\text{max}\) modulates
the flow from full stagnation inlet down to a wall when
\(f \to 0\).
4.3 Pressure outlet¶
Subsonic-outlet imposing static \(p_\text{back}\). The entropy and the \(R^+\) characteristic carry from the interior:
A supersonic-outlet branch falls back to extrapolation.
Gas flowing back in through the outlet (subsonic inflow) brings two incoming characteristics, the entropy wave and one acoustic wave, so it takes two data: \(p_\text{back}\) and a backflow temperature \(T_\text{back}\) (since 2026-10-25),
with \(u_b\) from the outgoing acoustic characteristic at the interior's
impedance, \(p_b + \rho_\text{int} a_\text{int} u_b = p_\text{int} +
\rho_\text{int} a_\text{int} u_\text{int}\) at a right end (the sign of the
\(\rho a u\) terms flips at a left end). The isentropic invariant above
would carry \(2(a_\text{int} - a_b)/(\gamma - 1)\) across the entropy jump
into the ghost, over 1000 m/s for hot exhaust meeting cold air. Below an
inflow Mach number of 0.01 the ghost is blended linearly from the
entropy-matched one, so it is continuous through \(u = 0\). T_back = 0 in a
case takes 300 K. Until 2026-11-03 it took the pipe's initial temperature
at that end, which is a seed rather than a boundary condition. Before
2026-10-25, inflow
kept the interior's entropy: the gas already at the end flowed back in,
and a pipe whose friction heated it heated without bound.
4.3.1 Radiating outlet (radiation = "unflanged")¶
Since 2026-11-13 (bc/radiation.py). A plain outlet reflects \(R = -1\)
from its face. A real thin-walled, unflanged pipe of radius \(a\) radiates:
\(|R| = 1 - (ka)^2/2\) at low \(ka\), and the wave turns round an end
correction \(l \to 0.6133\,a\) beyond the face (Levine & Schwinger 1948). The
radiating outlet takes the outgoing acoustic characteristic from the end cell,
with \(a_\text{c}\) the cell's sound speed and \(u_n\) the velocity out of the pipe, and returns \(W^- = R(s)\,W^+\), where
is a rational fit to Levine and Schwinger over \(0 < ka \le 3\): one real pole
and one complex pair, \(R(0) = -1\) and \(R'(0) = 2 \times 0.61270\) imposed,
within 0.004 in \(|R|\) and 0.003 in \(l/a\), passive (\(|R(i\omega)| \le 1\)).
The face pressure is \(p_b = p_\text{back} + (W^+ + W^-)/2\), and the ghost is
the plain outlet's (§4.3) at that pressure. Since \(R(0) = -1\), a steady
state is the plain outlet's. Each pole's state obeys
\(\dot z_k = \lambda_k (a_\text{c}/a) z_k + r_k (a_\text{c}/a) W^+\) and is
advanced exactly over the interval with \(W^+\) linear in time, so it is
stable at any \(\Delta t\). It keeps a committed and a pending state, and
commits the state of an explicit step's final stage. An implicit integrator's
Newton loop would feed it trial states, so validate refuses the combination.
The frequency-domain paths take the end correction without the radiation
loss: the FEM modes add \(A/(\rho\, l)\) to the stiffness at the end (the
boundary term of \(\partial p/\partial n = -p/l\)) with \(l = 0.6133\,a\), and
eigenfrequencies_tm lengthens each open end by \(a\) times the fitted
\(l/a\) at that \(ka\) (Silva et al. 2009, Eq. 22), at every frequency it scans. Validated in
Validation 6.
4.4 Non-reflecting (LODI)¶
Local one-dimensional inviscid characteristic BC [21]. The incoming Riemann invariant is pinned to a user-supplied freestream \((\rho_\infty, u_\infty, p_\infty)\) and the outgoing invariant is read from the interior:
\(a^*_\infty\) is the sound speed of the pipe's gas at the freestream pressure. Since 2026-11-04; before, it was the freestream gas's own, \(\sqrt{\gamma p_\infty / \rho_\infty}\), which mixed two entropies: a pipe at rest hotter or colder than the freestream, at the same pressure, was driven out or pumped up. So \(\rho_\infty\) does not enter.
The same construction is used as a port boundary on junctions
when port.lodi = true (Phase 23): the pipe-side outgoing
invariant pins the boundary state and the plenum's \(p_V\)
provides the pressure reference.
4.5 Transient stagnation / pressure outlet¶
The same characteristic-based BCs as §4.2/4.3 but with
\(p_0(t),\ T_0(t),\) or \(p_\text{back}(t)\) interpolated from a
user-supplied piecewise-linear schedule (p0_t, p0_v). The
solver clock \(t\) advances with the timeloop and feeds into the
BC's lookup.
4.6 Valve orifice (Winterbone-Pearson)¶
Phase 25b orifice-flow valve [30, Ch. 6]. The effective area modulates with the lift schedule:
The boundary mass flow then follows compressible-orifice flow:
- Choked (\(\mathrm{PR} < \mathrm{PR}_\text{crit}\)):
$$ \dot m = A_\text{eff}\,p_0\,\sqrt{\frac{\gamma}{R\,T_0}} \cdot \left(\frac{2}{\gamma + 1}\right)^{!(\gamma+1)/(2(\gamma-1))}. $$
- Subsonic (\(\mathrm{PR} \ge \mathrm{PR}_\text{crit}\)):
$$ \dot m = A_\text{eff}\,p_0\, \sqrt{\frac{2\gamma}{(\gamma-1)\,R\,T_0}} \cdot \sqrt{\mathrm{PR}^{2/\gamma} - \mathrm{PR}^{(\gamma+1)/\gamma}}. $$
The boundary velocity recovers from \(\dot m\) and the geometric \(A_\text{pipe}\); temperature follows the isentropic relation \(T_b = T_0\,(p_b/p_0)^{(\gamma-1)/\gamma}\).
On a real-gas pipe (since 2026-11-22, 0.6.1), valve_orifice,
egr_valve and throttle use the pipe's own EOS instead of the formulas
above. The reservoir at \((p_0, T_0)\) is the pipe's gas at rest there (its
gas-phase density on the EOS); the throat flux \(G\) is the EOS isentrope of
§4.9 from the reservoir to the pipe end (or from the end cell to \(p_0\),
backwards); and the ghost carries \(\sigma G\) over the pipe area
(\(\sigma = A_\text{eff}/A_\text{pipe}\)) at the source's total enthalpy
and the pipe end's static pressure, solved in the EOS:
\(h(\rho_b, p) + (\sigma G)^2/(2\rho_b^2) = h_0\), whose root is unique at
fixed \(p\). The valve's R_gas and gamma are not used there. Before,
each valve computed the ideal-gas formula and was wrapped for translation
(bc/gas_model.py): exact at the handover, ideal-gas inside, 19 % low for
choked methane at 200 bar against CoolProp and 0.8 % low at 50 bar
(tests/integration/test_real_gas_orifice_valve.py). bc/real_gas_orifice.py
is the code.
The source form (form = "source", since 2026-11-22). The ghost form's
face flux is the Riemann solver's, which approaches the orifice flow without
equalling it: on the 50 bar methane line of that test the ghost form passes
1.0003 of the EOS formula (first order) and 1.0006 (MUSCL). With
form = "source" the pipe face is a wall and the end cell gains, or loses,
exactly the orifice flow as a cell source, driven by the wall face's pressure,
as the relief valve of §4.9 does: 0.9987 and 1.0029 of it on the same case,
and the mass the valve reports passing is the pipe's loss to round-off. Gas
entering carries the reservoir's total enthalpy, no axial momentum and the
supply composition (the cell's own where the valve states none). The cost is
the wall: pressure waves reflect at the valve, which is right for a small
valve and wrong as it opens toward the pipe's area, a wide-open throttle
above all. Borda-Carnot recovery needs the ghost form. The explicit network
driver applies the source; validation refuses the form with the others.
4.7 Mass-flow and velocity inlets¶
Two inlet variants for cases where the upstream actuator imposes a flow quantity rather than a pressure reservoir.
Mass-flow inlet — given \((\dot m,\ T_0)\), reuse the same \(R^-\) characteristic + isentropic-stagnation closure as §4.2 to obtain \((u_b,\ a_b,\ T_b)\), then close \(\rho_b\) from the mass-flow constraint at the boundary face:
The sign of \(u_b\) is fixed by the characteristic so the BC works on either pipe end. As \(|u_b| \to 0\) the closure degenerates; the implementation clamps \(|u_b|\) to a small floor to keep the ghost finite — review the run if it triggers, the upstream actuator is asking for more mass than the interior can accept.
Velocity inlet — given \((u,\ T_0,\ p_0)\), pure Dirichlet ghost via total-enthalpy + isentropic-stagnation:
No characteristic from the interior — this can introduce mild wave reflections compared to §4.2 / mass-flow inlet. Acceptable trade for piston / blower / fan boundaries where \(u\) is the controlled quantity.
For real-gas pipes both BCs route the conservative ghost energy
through eos_internal_energy(T_b, ρ_b, …) rather than the ideal-
gas closed form, so the ghost stays consistent with the EOS-aware
interior (mirrors the Phase-21 junction ghost-fill pattern).
4.8 Transient inlets with species schedules¶
The transient variants (§4.5) of the stagnation, mass-flow, and
velocity inlets all accept optional species schedules so the
inlet's gas composition can vary in time. For a primary species
(e.g. \(Y_{\mathrm{NH_3}}\)) the user supplies
\((Y_t,\ Y_v)\) — piecewise-linear in seconds — and the BC
interpolates the value at each timestep. For each extra column on
Pipe.Y_extras (e.g. \(Y_{\mathrm{NO}}\)) a
BCExtraSpeciesSchedule(name, t, v) entry attaches its own
schedule.
The BC writes the interpolated values to
Pipe.species_inflow_left (or _right) — a small dict keyed by
species name — and the species advection consults it before
applying the upwind selector at the inlet face. Reverse flow is
handled cleanly: the upwinder picks the interior \(Y\) over the
ghost-imposed \(Y\) when the boundary mass flux runs outward, so
the schedule has no effect during back-flow, matching the
characteristic-BC convention.
4.9 Relief (dump) valve and the real-gas orifice¶
Added 2026-11-19. kind = "relief_valve" vents a pipe end to a back
pressure \(p_{back}\) through an orifice of area \(C_d A_{max}\). It is a pop
valve: it latches open when the sensed pressure reaches \(p_{set}\) and stays
open until it falls below \(p_{reseat} \le p_{set}\). The open fraction ramps
linearly over the stroke times \(t_{open}\) and \(t_{close}\), on the run
clock. The sensed pressure is the pipe end's (a spring valve: the wall face's
pressure, below), or the mean static pressure of sense_pipe (a pressure
switch).
While open, the pipe face is a wall and the end cell loses the orifice
flow as a source: \(\dot m\), the cell's total enthalpy \(\dot m h_0\), its
momentum \(\dot m u\) and its composition. So the gas that leaves is exactly
the orifice flow. A ghost-cell orifice cannot promise that: its face flux is
the Riemann solver's. The valve admits nothing: below \(p_{back}\) it is a
wall. The explicit network driver applies the source each RK stage, the
implicit one in its Newton residual (since 2026-11-22, below), and the
quasi-steady one as a node and a vent branch of its network solve (since
2026-11-23, below). bc/relief_valve.py is the code.
The upstream pressure is the wall face's, not the end cell's (since
2026-11-21). A cell that gas is drawn from does not stay at its pipe's
pressure. With a wall on one face and a sink in the cell, a steady flow at
pipe velocity \(u\) leaves the cell at \(u/2\) and at
[
p_{cell} = p_{pipe} - \tfrac12 \rho c u, \qquad
\frac{p_{cell}}{p_{pipe}} = 1 - \tfrac12 \gamma M_{pipe},
]
first order in the pipe Mach number, the same on 25 and 100 cells. The wall
face's pressure is the cell's plus the acoustic rise of the gas it moves
toward the wall, \(p_{cell} + \rho c\,u_{cell} = p_{pipe}\), and it is what
the scheme itself applies there. So the orifice takes its stagnation pressure
from the pipe's own face flux at the wall (orifice.face_pressure, the
reconstruction the pipe uses), with the cell's gas brought to it along its
isentrope, and the valve senses it. Until then both read the cell: a valve
held open on a 10 bar pipe passed 0.980, 0.928 and 0.857 of its formula at
\(C_d A/A_{pipe}\) = 0.05, 0.2 and 0.45, and now passes 0.997, 0.995 and
1.008 (first order; 0.998, 1.001 and 1.021 on MUSCL), against the formula on
the mid-pipe static state (test_a_venting_valve_passes_its_formula_at_the_pipes_pressure).
The pipe's dynamic pressure is still not recovered: at 0.45 the formula on
the inlet's stagnation state is 3 % higher. A valve wider than half its pipe
warns at build, and \(C_d A_{max}\) as large as the pipe is refused.
Since 2026-11-25 the face pressure is the characteristic form's (below),
and the same valve passes 0.997, 0.996 and 1.010 of the mid-pipe formula
(first order; 0.998, 1.001 and 1.025 on MUSCL), and 0.996, 0.988 and 0.970
of the inlet's.
The flow in characteristic form (since 2026-11-25, roadmap 0h 4.1).
The orifice law's slope is infinite at zero pressure drop, so an explicit
stage that evaluates it at the faces' present pressures passes, at a small
drop, more than the drop holds, and the next stage pushes it back. From
2026-11-21 a stage cap held the flow to what equalised the faces in one
stage, which stopped the chatter but made the flow linear in the drop below
about \(8\gamma\,(\mathrm{cfl}\; C_d A/A_{pipe})^2\) of the pressure: a 20 %
orifice at cfl 0.5 passed 0.95 of its formula at a 10 % drop, 0.30 at 1 % and
0.15 at 0.25 %, and from 2026-11-23 a run warned about it. Now each face
moves by its pipe's acoustic response to the flow. With \(p^*\) the pressure
a closed wall would see, read from the cell next to the end cell, which the
sink does not touch (\(p^* = p + \rho c u_n\), \(u_n\) toward the wall),
\(Z = c/A\) the pipe's impedance and \(k = 1/(2\rho A^2)\) its dynamic head
per squared flow, the flow is the root of
[
\dot m = f\big(p^{up} - Z{up}\dot m + k_{up}\dot m^2,\;
p^{dn} + Z{dn}\dot m\big),
]
\(f\) the orifice law of the upstream stagnation pressure and the downstream
pressure. In steady flow \(p^* - Z\dot m\) is the pipe's pressure, so the
root is the law on the pipe's pressures, the upstream one with the dynamic
head of the gas drawn. At a small drop the root is \(\Delta p^*/(Z_{up} +
Z_{dn})\), linear and of finite slope, so the form needs neither a cap nor
the laminar branch below. It is found by Illinois regula falsi on
\(\dot m^2 - f^2\) (squared, so the law's square-root point is a straight
line), started from the last stage's flow: 3.8 law calls a root on example
97 (components/orifice.py::characteristic_flow). A relief valve and the
source-form valves take it one-sided: the back pressure or reservoir does
not move, \(Z = 0\) there. On the drop table above (two 0.5 m pipes of
10 mm bore, 25 cells, air at 2 bar, stagnation inlet to pressure outlet,
cfl 0.5, 0.3 s; net flow over the formula on the mid-pipe stagnation
state) a 20 % orifice passes 0.992, 0.997 and 0.999 at 10, 1 and 0.25 %, a
5 % one 0.999 and 1.000 at 1 and 0.05 % (first order; within 0.4 % on
MUSCL). Two closed pipes 2 kPa apart through a 20 % orifice ring down
through the orifice's own loss: the end cells 314 Pa apart at 0.03 s, 0.011
Pa at 0.3 s, \(3\times10^{-11}\) Pa at 1 s (the cap stopped them within
0.03 s, at the price of the linear flow).
On the implicit network driver (since 2026-11-22, 0.6.1;
solver/implicit_cell_sources.py). The rows enter each pipe's Newton residual
\(F(U) = U - U_{hist} - \Delta t_{eff} R(U)\) as part of \(R\), with the
derivative of the end cell's own row on its diagonal block, by central
differences, and since 2026-11-25 its derivative with respect to the cell
next to it, which the characteristic form reads, on the off-diagonal block:
without it Newton converged only linearly and the pipes' mass drifted by
2e-9 in 1 ms at the default newton_tol. The faces stay walls, re-mirrored at every iterate. A relief
valve, or a valve in the source form, is its own BC called on the iterate,
so its row is exact in its cell; the relief valve's latch and stroke are
advanced once per step on the step-start pressure and held through the
solve, which lags them a step, because a Newton trial above \(p_{set}\) would
otherwise latch it. Each side of an orifice junction keeps its own end cell
live and holds the other side's closed-wall state for one Picard pass (under Radau
IIA, at each of that pipe's stages), so the two sides agree to the Picard
tolerance rather than exactly: over 1 ms on the two-pipe test case
(tests/unit/test_implicit_cell_sources.py, CFL 5) the pipes' total mass
held to 3.8e-11 (implicit Euler), 5.5e-11 (BDF2) and 1.4e-11 (Radau), and the
orifice passed 0.998, 0.999 and 1.000 of the explicit SSP-RK2's mass at CFL
0.5. In characteristic form (2026-11-25) the mass holds to 2.0e-11, 2.7e-11
and 4.0e-12, and the rows are the explicit junction's root at the same state.
What a row moves in a step is the scheme's combination of its values, as for
any term of \(R\): \(\Delta t\) of the end state's under implicit Euler,
\(\Delta t \sum_j b_j\) of the stage states' under Radau IIA, and under BDF2
\(\Delta t_{eff}\) of the end state's plus \(-eta_2\) of the previous
step's, since \(U^{n+1} - U^n = -eta_2 (U^n - U^{n-1}) + \Delta t_{eff}
R\). passed and vented record that, and it is the species mass the
transport feeds into the cell, as a rate through its sub-steps. Recording
\(\Delta t\) of the end state's left vented 0.5 % (BDF2) and 0.7 % (Radau)
off the pipe's loss over 20 ms; it now matches to 2e-6. Fed in one lump after
the transport, an inflow pushed its cell past the supply's composition
(0.2037 from 0.2); before it, below (0.195). As a rate it reads 0.2005 to
0.2008, the size of the implicit species split's own error on any pipe whose
density changes in a step.
On the quasi-steady driver (since 2026-11-23, 0.6.1;
solver/qs_orifice.py). That driver has no cell update to put a source in:
it holds each junction as a steady pressure node and each pipe as a steady
flow between two pressures, and balances the flow into every node. So the
orifice enters the balance as a branch. An orifice junction becomes two
nodes, one per port, and a branch from the upstream node to the downstream
one that carries the orifice law of the two node pressures: the ideal-gas
closed form of §4.6 from the upstream node's pressure at the upstream pipe's
end temperature, signed when the drop reverses. A relief valve becomes one
node at its pipe end and a branch from it to \(p_{back}\) through
\(C_d A\) times its opening; it admits nothing. The node downstream of an
orifice fills its pipe's ghost from the upstream pipe's end cells, species
included, as a passthrough does, so the marches carry the upstream gas on.
With a branch in the network the nodal solve is coupled Newton, the branches'
Jacobian terms by central differences: the per-node secant crept for its
whole iteration cap along a chain where an orifice's drop sits beside a pipe's
a hundred times stiffer. Every pipe of this driver flows left to right, so an
orifice joins a right end to a left end and a relief valve sits on a right
end; validation refuses the others. The valve's latch and stroke are a slow
state, advanced once per macro step on the pressure that step solved, so it
acts a step late. Shut, it is a wall: a pipe here never flows backwards, so a
node with nothing leaving it would balance at any pressure above its pipe's.
There is no storage either, so a shut valve is no pressure anchor, and a
network whose only way out is one has no steady state and is refused. On the
two-pipe line of tests/unit/test_qs_orifice.py (air at 500 K, 10 g/s
through 2e-4 m\(^2\) at \(C_d\) 0.6 between 30 mm pipes) the nodes stand
4997 Pa apart, the law's drop for the inflow to 1e-6. The explicit driver
read about 25 % more there while its stage cap bound; in characteristic form
(2026-11-25, 0.1 s) the cells next to its end cells stand 4908 Pa apart at
9.998 g/s, 1.8 % less, the explicit form taking the upstream gas's dynamic
head (about 140 Pa here) as part of its stagnation pressure. On its bypass case, which ramps the inflow from 5 to 20
g/s, the valve first latches at 0.137 s against the explicit driver's 0.140
s and vents 7.5 % less over 0.8 s; with no plenum storage an oversized valve
chatters, at the step instead of at the plenum's own rate.
Plenum storage on the quasi-steady driver (since 2026-11-25, opt-in:
[case] qs_plenum_storage = true). A plenum with a volume then stores mass
and energy over each macro step, backward Euler, instead of being a steady
pressure node. From its step-start inventory \(m^n, E^n\) and the step-end
flows of its pipes:
\(m_1 = m^n + \Delta t(\dot m_{in} - \dot m_{out})\), and the energy line
\(m_1 c_v T_1 = E^n + \Delta t(H_{in} - \dot m_{out} c_p T_1 - hA(T_1 - T_w))\)
solved for \(T_1\): the outflow leaves at the node's new temperature and the
wall loss is a secant conductance through the step start. The node's residual
in the network solve is \((m_1 - p_j V/(R T_1))/\Delta t\); at a steady state of
the transient it is zero where the steady node is, so the switch moves the
transient and not the steady answer. With it a storage plenum anchors its part
of the network, so a relief valve may be its only way out; the solve is the
coupled Newton on the finite difference of this residual, without the
loop-flow fallback; the step is capped at half a node's mass over its net
flow; and a node that would empty in one step is refused by name. A node's gas
is the volume's, so its ports must carry that \(\gamma\) and \(R\). Refused
with qs_junction_loop_flow and in a [[circuit]] case. Off, the 36 bundled
quasi-steady examples are bit-identical (12 macro steps each, AEOLUS_FASTMATH=0).
Measured (2026-11-25, tests/unit/test_qs_plenum_storage.py, harness
.loop-review/qs-network-storage/relief_compare.py.txt): an adiabatic fill
through a pipe meets \(dp/dt = \gamma R T_{in}\dot m/V\) to 1e-9. The bypass
plenum of §4.9 with the relief valve as its only exit (10 g/s at 500 K into
1e-4 m\(^3\), set 1.12 bar, reseat 1.08 bar), which the driver refused before,
holds a mean 1.100 bar over its last 0.1 s at qs_dt_max 2 ms and 1.110 bar
at 0.5 ms, against the explicit driver's 1.103 bar. It first reaches the set
pressure at 0.8 ms against the explicit 5.9 ms: the quasi-steady pipes hold no
mass, so only the plenum fills, where the explicit driver also fills its
3.5-times-larger inlet pipe and waits a transit. Its pressure reverses 34-44
times per 0.1 s against the explicit 24: the valve still acts a step late.
The orifice flow uses the pipe's own gas. The upstream static state is
the stagnation state. On an ideal-gas pipe the flow is the closed form of §4.6
at the cell's \(\gamma\). On a real-gas pipe it is the isentrope of the
pipe's EOS (bc/real_gas_nozzle.py). From \((\rho_0, e_0)\) at rest,
\(de/d\ln\rho = p(\rho, e)/\rho\) is integrated downward with RK4. Along the
way \(h = e + p/\rho\), \(u = \sqrt{2(h_0 - h)}\) and \(G = \rho u\). The
throat is where the static pressure reaches the downstream pressure, or,
first, where \(u\) reaches the EOS sound speed, which is where \(G\) peaks
(choked). The crossing is located by bisecting the last RK4 step. On the
ideal gas this matches the closed form to \(10^{-11}\), choked and subsonic.
At CNG pressures the difference is large. Choked methane from rest, against
CoolProp 8.0.0's reference EOS
(tests/integration/test_real_gas_orifice_coolprop.py, 2026-11-19):
| \(p_0\) [bar] | \(T_0\) [K] | Z | Peng-Robinson | ideal-gas closed form |
|---|---|---|---|---|
| 250 | 288.15 | 0.840 | +0.77 % | −24.4 % |
| 200 | 300 | 0.828 | +1.37 % | −19.1 % |
| 100 | 300 | 0.856 | +1.73 % | −10.3 % |
| 20 | 280 | 0.957 | +0.49 % | −2.5 % |
| 5 | 250 | 0.984 | +0.16 % | −0.9 % |
Peng-Robinson uses CoolProp's critical point, acentric factor and molar mass and a constant \(c_v\), CoolProp's ideal-gas value at \(0.9\,T_0\). The ideal gas uses CoolProp's ideal-gas \(\gamma\) and \(R\) at \(T_0\). So the ideal-gas formula underestimates a failed-open regulator's flow from 200 bar by about a fifth.
A throat in the two-phase dome (since 2026-11-25; the maintainer's
choices: HEM with the Henry-Fauske correction, and the saturation curve of the
pipe's own cubic). On a single-gas Peng-Robinson pipe the march watches for its
isentrope entering the dome, rho_g(T) < rho < rho_l(T) with the cubic's own
coexisting densities (equal fugacities, closures/eos_saturation.py; a cheap
Wilson prefilter skips the solve where no state can be saturated). The entry is
a third crossing, bisected like the others, so a march that never reaches the
dome runs exactly as before. Past the entry:
- HEM (a vapour-side or near-critical entry): the two-phase isentrope is marched in \(T\), with \(x = (s_0 - s_l)/(s_g - s_l)\), \(v = v_l + x(v_g - v_l)\), \(h = h_l + x(h_g - h_l)\) and \(G = \sqrt{2(h_0 - h)}/v\) from the saturated states at \(T\). The throat is the flux maximum, HEM's own choke (\(dG/dP = 0\)), or where \(p_{sat}\) reaches the back pressure.
- Henry-Fauske (a liquid entry, after Simoneau & Hendricks, NASA TP-1484, 1979, Appendix, eqs. A11-A21): the liquid's volume stays frozen at its entry value \(v_0\) through the throat, so \(G^2 = G_e^2 + 2(p_e - P_t)/v_0\), and the choked flux is \(G_{max}^2 = -[(v_g - v_l) N\,dx_e/dP]_t^{-1}\) with \(N = \min(1, x_e/0.14)\). The throat is where the two meet. Unlike the report, which takes the saturated properties at the isentrope's saturation point, \(x_e\), its derivative and the volumes are taken at the throat: at the saturation point itself \(x_e = 0\) and the closure diverges.
- Between them the flux is a linear blend in the entry's density, from pure HEM at \(1.2\,\rho_c\) to pure Henry-Fauske at \(1.4\,\rho_c\), so it is continuous in the upstream state (the characteristic form and the implicit Newton differentiate it). The band starts above \(\rho_c\) because the frozen-liquid volume means nothing at a near-critical entry, where the liquid is as compressible as the vapour; there Henry-Fauske's flux swung by 10 % between entries 0.1 K apart.
Measured (2026-11-25, tests/unit/test_two_phase_orifice.py): liquid CO2 at
50 bar and 280 K vented to 10 bar now chokes at a 35.5 bar throat (its
Peng-Robinson saturation pressure is 41.6 bar) with Henry-Fauske's
50 040 kg/(m\(^2\) s), 39 % below the single-phase liquid jet it ran as before;
HEM from the same entry is lower still. Saturated CO2 vapour at 40 bar and
280 K, condensing on its way to 5 bar, chokes 7 % below the metastable
single-phase flux. Supercritical CO2 at 100 bar swept from 298 to 330 K
crosses Henry-Fauske, the blend and HEM with no step larger than 1 % per
0.25 K. The legs solve the cubic's saturation repeatedly: about 2 ms a call
on a flashing liquid, against tenths of a millisecond for a gas.
Not modelled: a Redlich-Kwong or tabulated pipe (RK has no acentric factor, so its vapour pressure is poor away from \(\omega = 0\)) and a pipe carrying species keep the single-phase march and the warning; a pipe cell inside the dome is still a single-phase cubic state (two-phase pipes are not modelled). The march's own throat density now also feeds the Borda-Carnot recovery, which a dense subsonic throat used to lose.
In a whole system the errors partly cancel, and it is luck.
examples/97_cng_dump_orifice.toml measured both ways with a 7 mm dump
orifice (re-measured 2026-11-21 on the wall-face pressure, with the dump line
widened to 16 mm; the ideal run drops every [pipe.eos] and sets R_gas
518.28; 1 s, cfl 0.5):
- Regulator flow: 0.1122 kg/s on Peng-Robinson, 0.0867 kg/s on ideal-gas
methane (\(\gamma\) 1.31), 23 % less.
- Filter pressure: it settles at 19.6 and 18.7 bar, so the ideal model
is only 5 % low.
- Why it cancels: the ideal gas also misses the Joule-Thomson cooling
across the regulator. On Peng-Robinson the low-pressure line runs at
212-221 K, against 286-297 K for the ideal gas. That colder, denser gas
lets the dump orifice pass 24 % more per bar of filter pressure (5.72
against 4.63 g/s per bar).
The numbers of 2026-11-19 (0.1097 and 0.0853 kg/s, 21.7 and 20.9 bar) were on the end cell's pressure: the dump valve then passed 0.863 of its formula, and the sizing came out large.
A system whose dump gas is warmed again (a heater, a long line, a heat exchanger) loses that compensation, and the ideal model undersizes the orifice.
Burst disc. Added 2026-11-27. kind = "burst_disc" is a rupture disc at
a pipe end. It is a wall until the sensed absolute pressure (the wall face's,
or sense_pipe's mean, as for the relief valve) reaches \(p_{burst}\). That
rupture is latched at its time \(t_{burst}\): the disc waits \(t_{delay}\)
whatever the pressure does meanwhile, and from the first BC call at or after
\(t_{burst} + t_{delay}\) it is fully open, \(C_d A_{max}\), for good. The
opening is not landed on by a step: on the explicit drivers it comes at the first
stage time at or after it, on the implicit ones within the step that contains it
(measured 2026-11-27 with a 0.5 ms delay at CFL 2: the vented mass within 3 % of
the explicit run's).
Open, the disc is a hole between the end cell and a reservoir at rest at
\(p_{back}\) and \(T_{back}\) (0 takes 300 K), and the flow goes both
ways. While the pipe's closed-wall pressure is above \(p_{back}\) the end
cell's own gas leaves, as the relief valve's does; while it is below, the
reservoir's gas enters with its total enthalpy, no axial momentum and the
supply composition Y_supply / Y_extras_supply (the end cell's own when none
is given). Both are the source form of the orifice valves
(bc/orifice_source.py::source_step), the characteristic form of the orifice
law on the pipe's own gas, so the disc adds no flow law of its own; its net
vented mass falls while gas enters. The explicit and the implicit network
drivers apply it, and an explicit circuit of a multi-rate run. The
quasi-steady drivers refuse it, their pipes carrying no reverse flow. As for
the source form, a real-gas pipe with species refuses it (no reservoir row at
a given composition), and on an ideal pipe with per-cell gamma the entering
gas's enthalpy is taken at the end's gamma. bc/burst_disc.py is the code;
examples/100_burst_disc.toml fills a receiver until its disc bursts.
5. Network coupling¶
Pipes are joined through 0-D plena. Each junction kind exposes
the same port_flux(pipe_state) interface so the time loop can
mix and match.
5.1 Plenum (mass + energy ODE)¶
A Volume carries a conservative \((m, E_\text{internal})\)
state. The time derivatives are
where the summed contributions are signed mass flows and total specific enthalpies on each port (positive = into the volume). The per-port flux is computed by filling the pipe-side ghost and calling HLLC at the port face.
Port coupling: the plenum is a reservoir mouth¶
Until 2026-08-02 the ghost was the plenum rest state \((\rho_V, 0, p_V)\), and this section claimed that was "exact for mean-flow mass and energy". It is not, and the error is large.
Writing \(u = 0\) puts a velocity jump on the port face. A Godunov face between a state at rest and a moving state does not resolve a contraction — it resolves a piston, whose pressure response is the acoustic impedance \(\rho a \Delta u\), not the dynamic head \(\tfrac12 \rho u^2\). The two differ by \(2/M\), so at the \(M \approx 0.13\) of an engine manifold the port invented roughly 15× the correct loss. Feeding the port the closed-form steady reservoir-discharge state and asking whether it is a fixed point measures it directly: the old ghost returned a mass flux 50 % low and a momentum residual of 3.6–12.8 dynamic heads, at every subsonic pressure ratio.
The port is now treated as what it physically is, with the flow direction deciding whether the dynamic head is recovered or destroyed. Feed (volume → pipe) — the volume is a stagnation reservoir and gas accelerates from rest isentropically, so the port static pressure sits below \(p_V\):
with \(a_0^2 = \gamma p_V/\rho_V\), clamped at \(a^2 = a_0^2\,\tfrac{2}{\gamma+1}\) — the port chokes at \(M = 1\). Dump (pipe → volume) — a sudden expansion, whose dynamic head is dissipated inside the volume rather than at the face, so \(p = p_V\) and the gas keeps its own entropy, \(\rho = \rho_i (p_V/p_i)^{1/\gamma}\).
Both branches carry \(u = u_\text{int}\): no velocity jump, hence no spurious \(\rho a \Delta u\). Both make the closed-form steady state an exact fixed point (residual \(\le 8\times10^{-16}\) relative). At \(u_\text{int} = 0\) the feed branch returns \((\rho_V, 0, p_V)\) bit-identically, so a network at rest is unchanged.
This completes ADR-0008, which found the same zero-velocity ghost on the cylinder ports ("~60 % of the correct orifice flow"), replaced it there with a compressible-orifice model, and left it in place on plenum ports. The two couplings now assume the same physics. See ADR-0012.
For real-gas plena (Phase 21b), \(p_V, T_V\) are recovered from \((m, E_\text{int})\) via the EOS Newton inverse; the ghost fill uses those. The isentropic relations above are the ideal-gas forms evaluated at the pipe's \(\gamma\) — the same approximation class as the \(p/(\gamma-1)\) they replaced — while the ghost energy still routes through the pipe's EOS.
A neck-pipe correction (Phase 14) inserts a short internal FV pipe at the port; its length defaults to the Rayleigh end correction \(L_\text{neck} = 0.85\,\sqrt{A_\text{port} / \pi}\) for a flanged opening [1, §6.6].
The wall of a venting vessel (added 2026-11-19). A plenum loses heat
\(\dot Q = h A_w (T_V - T_w) + \varepsilon\sigma A_w (T_V^4 - T_w^4)\). The
coefficient \(h\) is wall_h_conv, or computed from the through-flow
(wall_D_h, wall_A_cross; Sutherland's viscosity with the plenum's own
constants since 2026-11-21, air's before), and \(T_w\) is the fixed wall_T. Two
additions cover a vessel that empties through an orifice, where the gas is
nearly still and the wall's temperature moves:
- Natural convection.
wall_natural_height\(L\) turns on Churchill and Chu's full-range correlation for a vertical surface (Incropera & DeWitt, eq. 9.26): [ \mathrm{Nu} = \left(0.825 + \frac{0.387\,\mathrm{Ra}^{1/6}} {[1 + (0.492/\mathrm{Pr})^{9/16}]^{8/27}}\right)^2, \qquad \mathrm{Ra} = \frac{g\beta|T_V - T_w|L^3\rho^2 c_p}{\mu k}, ] with \(h = \mathrm{Nu}\,k/L\). The wall sees the larger of this and the other coefficient. The expansivity \(\beta = (\partial p/\partial T)_\rho / (\rho\,(\partial p/\partial\rho)_T)\) comes from the volume's EOS (\(1/T\) for an ideal gas). \(\mu\) is Sutherland's at the film temperature, with constants set per plenum (air's by default), and \(k = \mu c_p/\mathrm{Pr}\). On a real-gas volume \(c_p\) is the EOS's own (since 2026-11-21), [ c_p = c_v + \frac{T\,(\partial p/\partial T)\rho^2} {\rho^2\,(\partial p/\partial\rho)_T}, \qquad c_v = (\partial e/\partial T)\rho, ] and the ideal-gas value only inside a cubic's spinodal, where \((\partial p/\partial\rho)_T \le 0\) and there is none. The viscosity stays the dilute-gas one and Pr the constant given. In the turbulent limit the coefficient goes as \(\rho^{2/3}(g\beta\Delta T)^{1/3} \mu^{1/3} c_p\,\mathrm{Pr}^{-2/3}\), so \(c_p\) enters linearly. On the I1 blowdown of 150 bar nitrogen (validation 12) CoolProp's real \(\mu\), \(c_p\), Pr and \(\beta\) give a coefficient 15–23 % higher in the first 10 s, mostly from the real \(c_p\), and within 4 % after 40 s; run that way the gas is up to 2.8 K warmer and the wall 0.26 K colder (2026-11-19). An earlier version of this paragraph gave the scaling as \(\mu^{1/3}(c_p/\mathrm{Pr})^{2/3}\) and had the viscosity and Prandtl corrections cancel; the \(c_p\) power was wrong (found by the pre-0.6.0 sweep, 2026-11-19). - A dynamic wall.
[[junction.wall_layers]]gives the wall radial layers. It is the pipes' multi-layer wall (closures.wall_thermal.MultiLayerWall) on one cell: the layers' capacities \(\rho c_p t A_w\) and the series conductances between them, the inner layer in place ofwall_T, and the outer one shedding \(h_{ext}A_{ext}(T - T_{amb}) + \varepsilon_{ext}\sigma A_{ext}(T^4 - T_{amb}^4)\). Each step the wall takes the stage-weighted mean of the stages' \(\dot Q\), which is what the SSP-RK update took from the gas, so gas and wall exchange energy exactly. It advances by forward Euler, in sub-steps within half the layers' explicit limit. A closed vessel of cold gas in a warm adiabatic wall keeps the sum of their energies to \(10^{-12}\) (test_a_closed_vessel_and_its_wall_keep_their_energy). The quasi-steady driver never advances it, so validation refuses a dynamic wall there. A resume continues it from the checkpoint's layer temperatures (since 2026-11-21; refused until then). With awall_A_extother thanwall_Athe wall is not thin (since 2026-11-21): its area runs linearly through its depth, \(A(x) = A_w + (A_{ext} - A_w)\,x/t\), each layer's capacity is \(\rho c_p\) times its own volume, and the conductance between two layer centres is \(1/\int dx/(kA)\), with \(\int_a^b dx/A = (b-a)\ln(A_b/A_a)/(A_b - A_a)\). That is exact for a cylinder's side, where it is \(2\pi L k/\ln(r_b/r_a)\), and a close approximation for a thick dished end. On the I1 vessel's 25 mm wall the heat capacity is 10 % above the thin wall's.
On the quasi-steady driver (since 2026-11-21) a plenum is a steady node,
and its wall loss enters the node's balance:
\(\sum \dot m c_p\,(T_{mix} - T) = \dot Q(T)\), with \(T_{mix}\) the
feeders' mixed temperature and \(\dot Q\) the same loss as above at
\((p, T)\), solved for \(T\) between the wall's temperature and
\(T_{mix}\) (quasi_steady_network._qs_plenum_wall_T). Until then that
driver applied no plenum wall heat and validation warned. A plenum with no
through-flow keeps its feeders' temperature: its relaxation to the wall is a
transient that driver does not resolve.
5.2 Corberán CP+h junction¶
Algebraic constant-pressure + enthalpy-balance junction with no chamber state [3]. For an \(N\)-port junction, the closure system is
\(p\) at every port equal — the CP closure — solved by Riemann-invariant matching across each port. Faster than plenum on short merges where chamber dynamics are artificial. Per-port Bassett \(K_\text{loss}\) (§3.6) is applied as a pressure-drop adjustment on each port's invariant.
5.3 Extended Helmholtz Resonator (EHR)¶
A plenum with an additional per-port lumped neck momentum ODE (Phase 14d) [2]:
where \(L_\text{eff}\) is the effective neck length (geometric + Rayleigh end correction). The integrated \(u_n\) then drives the port mass flow \(\dot m = \rho_\text{up}\,A_\text{port}\,u_n\). This is the only junction kind that gives the correct Helmholtz mode on a 0-D chamber.
5.4 Lumped Helmholtz resonator (textbook 0-D primitive)¶
For design-stage sizing only (HelmholtzResonator class, used
in benches and examples), aeolus1d exposes the textbook 2-DOF
resonator with the analytical natural frequency [1, §6.6]:
This is not a solver component — the time-domain network solver uses the EHR or quasi-2D Helmholtz path instead.
5.5 Orifice junction¶
Added 2026-11-19. kind = "orifice" joins two pipes by a sharp orifice of
throat area orifice_area and discharge coefficient orifice_Cd, with no
volume. A failed-open pressure regulator is the case it was built for: its
critical area. Both pipe faces are walls. Each RK stage the side with the
higher wall-face pressure (§4.9; the cells' own until 2026-11-21) is upstream
and loses the orifice flow of §4.9 (on its own gas, real-gas EOS included,
from its face pressure to the other face's) to the other side's boundary
cell, as a source, held to the mass that equalises the two faces in the
stage. The rows are equal and opposite in mass, total enthalpy and every
species, so the junction conserves them exactly. The downstream cell gains no
axial momentum: the jet's momentum is the orifice's loss, its kinetic energy
stays as enthalpy. The two pipes must carry the same species columns.
components/orifice.py is the code.
Three limits:
- The wall face. It reflects waves an orifice as large as its pipe would
pass, so the build warns above half a port's area and refuses
\(C_d A\) as large as a port. Use a passthrough or a variable-area pipe
there.
- Small pressure drops. Until 2026-11-25, below about
\(8\gamma\,(\mathrm{cfl}\; C_d A/A_{pipe})^2\) of the pressure a stage cap
bound and the flow was linear in the drop. The characteristic form of
§4.9 replaced it: the flow is within 1 % of the law at every drop measured.
- The laminar branch. Since 2026-11-24. The law goes as
\(\sqrt{\Delta p}\), whose slope is infinite at zero drop, and a Newton
linear model across that point is no descent direction: on the implicit
driver and on a quasi-steady network an orifice failed from rest and at
every flow reversal. Below \(\Delta p_{lam} = 10^{-3} p_{up}\) the flow is
\(\dot m_{lam}\,x(5 - x^2)/4\) with \(x = \Delta p/\Delta p_{lam}\) and
\(\dot m_{lam}\) the law's flow at \(\Delta p_{lam}\): equal to the law
at the band's edge, and to its incompressible slope there, odd through
zero, with the finite slope \(1.25\,\dot m_{lam}/\Delta p_{lam}\) at
zero. Inside the band the flow is below the law's (half of it at
\(x \approx 0.17\)); above it nothing changes. It held for the orifice
junction, the relief valve and the source-form valves on every driver
until 2026-11-25; since then only the quasi-steady driver uses it, the
explicit and implicit ones having the characteristic form's finite slope
instead (components/orifice.py::laminar_branch).
- The driver. The implicit network driver took it on 2026-11-22 and the
quasi-steady one on 2026-11-23 (§4.9), as it did the relief valve. Which
driver runs it now is the generated table in
Which driver takes what.
A valve in the orifice. Since 2026-11-27. valve = "relief" or
"burst_disc" puts a pressure-actuated valve between the two pipes, opened by
the pressure difference across it, \(\Delta p = p_0 - p_1\), port 0's
closed-wall face pressure minus port 1's. A relief valve pops at dp_set,
holds through its band and recloses below dp_reseat, stroking over t_open
and t_close; a burst disc latches at dp_burst and opens for good t_delay
later, even if \(\Delta p\) falls meanwhile. These are the relief_valve and
burst_disc BCs' laws, stepped from one module (components/valve_latch.py),
with the difference across the valve for their absolute sensed pressure: a disc
between two vessels bursts on what it holds back, not on one vessel's pressure.
It starts shut; its opening scales \(C_d A\), and open it passes flow both ways
by the orifice law. The explicit driver steps it every stage; the implicit one
once at each step's start and holds it through the Newton solve (a burst disc's
timed opening still applies there), as it does the BCs. The opening is traced
(valve_open) and checkpointed with the latch, so --resume keeps a burst
disc's latch through its delay. The quasi-steady drivers refuse a valved
orifice.
The run summary and the output's mdot are the last step's flow, its stages
in the scheme's own combination (passed is the mass so far); one stage's
flow, which they were until 2026-11-21, had the wrong sign on an idle orifice.
In the acoustic modes analysis it is two rigid ends.
5.6 Tee junction: a 90-degree T with the measured losses¶
Added 2026-11-27. Neither 0-D junction predicts a T's loss (Validation 13): the
plenum dumps every inflow's dynamic head, and the constant-pressure closure of §5.2
gains total pressure in every combining flow. kind = "tee" is that closure with each
port's static pressure set off from the junction pressure \(p_J\), so that the
total-pressure drop between the ports is Miller's coefficient as Pérez-García measured
it on a sharp-edged 90-degree T of three equal 12 mm branches (thesis figures 7.1–7.6,
common-branch Mach number at most 0.2):
Three ports; side_port (0, 1 or 2, in the order of the ports) is the 90-degree branch.
Which ports flow in decides the flow type of the thesis's Table 2.1 at each solve, and
with it the common branch \(c\) and the flow ratio \(q = G_2/G_3\):
| type | flow | coefficients |
|---|---|---|
| C1 | the run 1 and the side 2 into the run 3 | \(K_{13}(q)\), \(K_{23}(q)\) |
| C2 | the runs 1 and 2 into the side 3 | \(K_{23}(q)\); \(K_{13}(q) = K_{23}(1-q)\) |
| D1 | the run 3 into the run 2 and the side 1 | \(K_{31}(q)\), \(K_{32}(q)\) |
| D2 | the side 3 into the runs 1 and 2 | \(K_{32}(q)\); \(K_{31}(q) = K_{32}(1-q)\) |
C2 and D2 are symmetric in their runs, so each run takes the one measured curve at its own share of the common flow. The table is the measured markers (the mean of two at one \(q\)), linear in \(q\) between them. The common port sits at \(p_J\); a port feeding the T is solved at \(p_J + (K+1)\,d_c - d_b\) and one it feeds at \(p_J + (1-K)\,d_c - d_b\), with \(d = p_0 - p\) the port's isentropic dynamic pressure, which meets \(K_{ud}\) at the port states exactly. The offsets come from the previous solve's port states, and each solve moves them 0.3 of the way there: undamped, the lag overshot near choking (no junction pressure balanced the flows at \(M_3 = 0.8\) in C2 at \(q = 0.5\)). A steady state is the same either way. The mixing-cup enthalpy and species are §5.2's.
Through the solver, at steady state, it reads its table within 0.001 at \(M_3\) = 0.15
and 0.8 (tests/validation/test_perez_garcia_tjunction.py). It is built from the
low-Mach data, so that is a consistency check, not a validation; how it reads the
compressible figures is in Validation 13. Limits:
- No Mach dependence. The measured \(K\) moves by 0.02–0.36 across the thesis's compressible figures; the table holds the low-Mach value.
- A branch with no flow sits on the seam between two types (C1 at \(q = 0\) is D1 at \(q = 1\)), whose measurements disagree: the straight run's loss is 0.13 in one and 0.38 in the other. A T there lands between them.
- One geometry. Sharp edges, 90 degrees, equal branches (the validator warns when the three pipes' areas differ). Rounded edges, other angles and unequal branches need other data.
- The driver. Explicit only: the implicit Newton's trial states would reset the offsets at every evaluation, and on the quasi-steady drivers it would pass as a lossless joint (Which driver takes what).
components/junction_tee.py is the code.
6. Engine components¶
6.1 Reciprocating cylinder (slider-crank)¶
Phase 25g cylinder volume [11, §2.3]. Piston displacement and volume are
with \(R = \text{stroke}/2\), \(L = \text{con\_rod\_length}\), \(D = \text{bore}\). The cylinder is treated as a 0-D volume with its own \((m, E_\text{int})\) state plus the moving boundary; the \(-p\,\mathrm{d}V/\mathrm{d}t\) work term is carried into the energy ODE.
6.2 Wiebe combustion¶
Phase 25h heat-release [11, §9.2.2]:
The Phase 25j two-zone variant tracks burnt and unburnt zone masses + temperatures separately; per-zone \(\gamma\) tracking (Phase 25k) lets the variable-\(\gamma\) stack feel the composition shift across the flame.
Wall heat loss uses the Woschni correlation [38]:
with mean piston speed \(\bar S_p\). The Hohenberg correlation [39] is offered as an alternative. Both feed \(\dot Q_\text{wall} = h\,A_\text{wall}(\theta)\,(T_\text{wall} - T_\text{gas})\).
Two-zone dissociation cap (opt-in). A frozen-composition
burnt zone overpredicts the peak temperature because it ignores
the endothermic dissociation of the combustion products. With
WiebeCombustion.burnt_dissociation = true the burnt-zone energy
balance solves \(c_{v,b}\,T_b + \Delta e_\text{dissoc}(T_b) =
e_{b,\text{target}}\), where \(\Delta e_\text{dissoc}\) is a
NASA-7-derived sensible-energy augmentation (CO/CO₂ dissociation
≈ 5 % at 2400 K, ≈ 21 % at 2800 K) that absorbs energy at high
\(T\) and caps the burnt-zone temperature. Default off
(bit-identical when unset).
Multi-stage Wiebe. MultiStageWiebe (aeolus1d.closures.multi_stage_wiebe)
superposes two or three WiebeStage sub-profiles — each with its own
\((a, m, \theta_\text{start}, \Delta\theta)\) and a mass_fraction
weight (summing to 1.0) — for HCCI / RCCI low-temperature +
main-burn (+ optional late soot-oxidation) heat-release shapes. The
composite \(\mathrm{d}x_b/\mathrm{d}\theta\) is the mass-weighted sum
of the per-stage derivatives.
Knock (Livengood-Wu). A knock-prediction integral accumulates the inverse ignition delay over the compression window \([\text{IVC},\ \theta_\text{start}]\) each cycle:
with Douaud-Eyzat defaults \(A_k = 17.68\,\text{ms}\), \(n_k = 1.7\),
\(B_k = 3800\,\text{K}\). Knock is predicted when \(I_\text{knock}\)
reaches 1.0 ahead of combustion start (the end-gas would auto-ignite
before the spark / injection event). The integral resets on IVC and
only accumulates over the pre-ignition window (integrating through the
burned gas would fire spuriously every cycle). By default the event
feeds a closed-loop spark-retard controller
(knock_retard_deg_per_event = 2.0 CAD/event, capped at
knock_retard_max_deg = 10.0, recovering knock_advance_deg_per_cycle
= 0.5 CAD/cycle); set both retard fields to 0 for a diagnostic-only
integral with no phasing feedback.
Chen-Flynn FMEP. When a [cylinder.fmep] block attaches
FMEPCoeffs, the engine-metrics post-processor evaluates the classical
Chen-Flynn friction correlation
so brake work follows from indicated work. With no coefficients attached (the legacy default) friction is unmodelled (\(\text{FMEP} = 0\), \(\text{BMEP} = \text{IMEP}\)).
Compressible-orifice valve coupling (ADR-0008). With the
default-on cylinder_orifice_valve_flow case flag, each open
[[cylinder.port]] couples to its runner pipe through a compressible
isentropic-orifice mass/energy flow (aeolus1d.components.valve_flow)
rather than the legacy zero-velocity-ghost + \(A_\text{eff}\)-credit
coupling that leaks mass. The pipe face is set to a wall and the
orifice \(\dot m / \dot E\) is applied symmetrically (added to the
cylinder, removed from the runner boundary cell by the timeloop's
valve-source step), which recovered engine volumetric efficiency from
~6 % to ~74 % on the EPW diesel harness. Inflow-ghost species
conservation follows ADR-0009 (§3.5).
The valve reads the runner's wall face, not its end cell (since
2026-11-24). The runner cell the valve draws from sits about
\(\tfrac12\rho c u\) below its runner, for the reason §4.9 gives for the
orifice; the valve reads the wall face's pressure (orifice.face_pressure)
at rest, with the cell's gas brought to it along its isentrope. On a steady
bench (example 31's cylinder, crank held, intake at a fixed lift from a 1.3
bar inlet, exhaust full open) the intake valve passed 0.889, 0.704 and 0.470
of its isentropic formula, taken from the runner's stagnation state three
cells upstream to the cylinder's pressure, at lifts 0.2, 0.5 and 1.0 while it
read the cell; it passes 1.006, 0.998 and 0.986 now
(test_a_cylinder_valve_passes_its_formula_on_a_steady_bench). Every engine
case moves; the changelog's 2026-11-24 entry says how much.
Charge composition. Beyond \((m, E_\text{int})\) the cylinder carries a well-mixed mass inventory \(m_k\) of every species column its ports touch, driven by the same port mass flux that drives \(\mathrm{d}m/\mathrm{d}t\) with an upwind composition,
so gas leaving a valve carries the charge composition into the runner instead of the runner's own (the zero-gradient ghost default, which mirrors the pipe back at itself). Combustion converts the burnt fuel mass into complete-combustion products of a \(\mathrm{CH}_y\) fuel,
with \(y\) the fuel's H/C atom ratio (fuel_H_C_ratio), giving per-kilogram
mass yields \((1 + y/4)M_{\mathrm{O_2}}/M_{\mathrm{CH}_y}\) consumed and
\(M_{\mathrm{CO_2}}/M_{\mathrm{CH}_y}\), \((y/2)M_{\mathrm{H_2O}}/M_{\mathrm{CH}_y}\)
produced. The stoichiometric air-fuel ratio is then an output,
\(\text{AFR}_\text{st} = Y_{\mathrm{O_2}}/0.232\); at the diesel default
\(y = 1.85\) it returns 14.54, matching the 14.5 used by the predictive
diesel closure. A cylinder that names a fuel_preset burns its fuel's own
atoms instead, \(\mathrm{C}_c\mathrm{H}_h\mathrm{N}_n\mathrm{O}_o + (c + h/4
- o/2)\,\mathrm{O_2} \to c\,\mathrm{CO_2} + (h/2)\,\mathrm{H_2O} +
(n/2)\,\mathrm{N_2}\) (the carbon-free presets since 2026-11-23, every preset
since 2026-11-24): ethanol's own oxygen puts its AFR at 9.0, methanol's at
6.46, iso-octane's at 15.1. Single-zone and complete-combustion only — see
scope-and-limitations for what that excludes.
The inventory is inert on a case whose pipes carry no non-fuel column.
6.3 Compressors and turbines¶
Phase 25c/d quasi-steady map-driven turbomachinery [31, 32].
The map-physics layer reads corrected mass flow and isentropic efficiency from a \((\mathrm{PR}, N_\text{corr})\) lookup:
Three map kinds: synthetic_centrifugal (analytical PR ↔ ṁ
factory), synthetic_turbine (Stodola-style swallowing
capacity), synthetic_vgt_turbine /
synthetic_igv_centrifugal (3-D variants with a vane_open
axis added on top of the (PR, N_corr) plane), from_csv /
from_npz (load a tabulated 2-D or 3-D map from disk — see
Turbo map file format for the
expected columns / arrays / units), and learned_npz
(LearnedTurboMap MLP surrogate).
When two turbo components share a Shaft, Phase 25d couples
them through the inertia ODE:
with a floor \(\omega_\text{min}\) (default 50 rad/s) to avoid
the singularity at zero speed. N independent shafts with N×N
turbomachines compose without code change — see
examples/60_twin_sequential_turbo.toml for a HP+LP two-stage
turbocharger built as two shafts in series.
Variable-geometry vane. When the map carries a vane axis
(map.has_vane_axis = True), the trilinear lookup
map.lookup(PR_inv, N_corr, vane=v) returns the vane-corrected
\((\dot m_\text{corr}, \eta_\text{is})\) — the map is the single
source of truth for both swallowing capacity and efficiency vs
vane position, replacing the legacy linear ṁ *= vane scaling.
2-D maps without a vane axis fall back to the linear scaling on
Turbine (Compressor never had it).
Wastegate. Turbines carry an additional bypass_open
fraction \(\beta \in [0, 1)\): the share of the exhaust that goes
round a rotor which stays on its map. The rotor passes the map's
\(\dot m_\text{map}\), so the turbine and gate together pass
and the mixed outlet blends the post-expansion stagnation temperature \(T_{0,\text{out}}^\text{full}\) toward the inlet stagnation temperature \(T_{0,\text{in}}\):
The shaft gets the rotor's work,
\(\dot m_\text{map}\,c_p\,(T_{0,\text{in}} - T_{0,\text{out}}^\text{full})\),
so at a fixed inlet state an open gate changes nothing on the shaft:
it acts by passing more flow, which lowers the turbine's inlet
pressure, and with it the expansion ratio and the work. On an
exhaust held at a fixed pressure it therefore does nothing, as a
real gate would. \(\beta = 0\) is wastegate-closed; \(\beta \to 1\)
is an unbounded flow, and \(\beta \ge 1\) is refused.
(Until 2026-10-22 the flow stayed \(\dot m_\text{map}\) and the shaft
work scaled by \(1-\beta\), with \(\beta = 1\) a full bypass; an open
gate never lowered the exhaust back-pressure.) A
WastegateController (velocity-form PI in aeolus1d.control)
drives \(\beta\) to a target manifold pressure with sign-
inverted action vs the VGT boost controller.
Surge / choke regime detection. Compressor.last_regime
classifies each call as "normal" / "idle" /
"backflow" / "surge" / "choke" based on the requested
\(\mathrm{PR}\) relative to the map's PR-grid edges (and on
\(\omega \le 0\) / \(\mathrm{PR} < 1\)). last_surge_margin
and last_choke_margin are normalised fractional distances
from the top and bottom edges respectively (positive when
inside the envelope, \(\le 0\) at or past the edge). The
wall-close fall-through behaviour is unchanged; the new fields
are pure diagnostics that controllers and post-processors can
read.
6.4 Variable-Valve-Timing (Phase E5)¶
Two actuation hooks layered on top of the continuous-lift schedule
exposed by CylinderPort:
- Cam phaser — a crank-angle offset \(\Delta\theta\) applied to
the schedule lookup. Positive = advance (valve opens earlier in
the cycle):
$$
\theta_\text{eff} = (\theta_\text{crank} + \Delta\theta)
\bmod 720^\circ.
$$
Both the binary open / close window and the piecewise-linear
lift_y(lift_cad)interpolation use \(\theta_\text{eff}\). - Lift scale — a dimensionless multiplier \(s_l \in [0, 1+]\) on the final effective-area fraction: $$ \frac{A_\text{eff}(\theta)}{A_\text{port}} = C_d \cdot \frac{\mathrm{lift}(\theta_\text{eff})}{\mathrm{lift}_\text{max}} \cdot s_l. $$ \(s_l = 1\) is the nominal cam profile; \(s_l < 1\) models a variable-lift mechanism (Honda VTEC low-cam, GM AFM half-lift); \(s_l = 0\) is effective valve closure (cylinder deactivation — Mercedes ZAS, GM AFM, Honda VCM).
Both default to identity (\(\Delta\theta = 0^\circ,\ s_l = 1\)) so
every pre-E5 cylinder case is bit-equal. Both are TOML-configurable
on each [[cylinder.port]] block AND mutable at runtime — a
controller can dial them per step (closed-loop knock-margin
cam-phaser, load-following cylinder deactivation, etc.).
The cylinder's slider-crank angle itself is not part of the control state — it advances kinematically as \(\theta = \theta_0 + \omega_\text{crank} \cdot t\). VVT modifies the mapping from \(\theta\) to port area, not the kinematics themselves.
7. Strang-split chemistry¶
Stiff reactive-source terms are integrated by Strang splitting [26]:
where \(\mathcal{T}\) is hyperbolic transport (the standard SSP-RK
timeloop with include_reaction=False) and \(\mathcal{C}\) is a
per-cell stiff ODE solve at frozen \((\rho, u)\). Strang gives
second-order accuracy on the composite step and is unconditionally
stable for the stiff part regardless of the transport CFL.
Two ODE solvers are wired through the same chemistry sub-step:
lsoda — scipy.solve_ivp(method="LSODA") per cell. Calls
the user's Python py_reaction(_multi) callable. Robust; works
with any reaction shape including the surface-coverage variant
(Phase 49) where the per-cell state vector is
\((Y,\ \mathbf{Y}_\text{extras},\ \boldsymbol{\theta},\ E)\).
bs_jit — Phase-19d Bader-Deuflhard semi-implicit
Bulirsch-Stoer (Numerical Recipes §17.5 [6, 24]). The
semi-implicit midpoint rule is, with frozen Jacobian \(\mathbf{J}\):
The 2×2 analytical Jacobian for the bundled Arrhenius reaction is closed-form (Cramer-rule solve, no LU). Step refinement uses the semi-implicit BS sequence \(\{2, 6, 10, 14, 22, 34, 50\}\) and a Gustafsson step controller [9]:
clamped to \([0.2 H,\ 5 H]\). After Numba warm-up the kernel runs \(\sim\)50–100\(\times\) faster than the LSODA path on stiff Arrhenius problems.
8. Acoustic mode analysis¶
Two complementary tools answer "what natural frequencies does this geometry support?" without running the time-domain solver.
8.1 Helmholtz lumped-parameter¶
The textbook 2-DOF resonator (§5.4) is exposed as a class with the analytical formula \(f_H = (a / 2\pi) \cdot \sqrt{A_n / (V\,L_\text{eff})}\) — useful at design time.
8.2 FEM continuous-Galerkin eigensolver¶
aeolus1d.modes.solve_modes runs a high-order continuous-Galerkin
solve on the variable-area duct eigenproblem [37]:
with Lagrange basis polynomials of arbitrary order \(p\).
Spectral convergence in \(p\), algebraic in n_elements. Returns
natural frequencies + mode shapes; defaults p=4, n_elements=8
are 1e-3 % accurate on the first 5 modes of a uniform pipe.
The Phase-42 multi-pipe variant assembles a connected duct network with junction degrees of freedom, so a chain of non-uniform pipes (e.g. an SCR + intake + plenum) is solved as one block-sparse generalised eigenvalue problem rather than piecewise.
8.3 State-space linearization (Phase L)¶
aeolus1d.analysis.linearize builds a first-order Taylor expansion
around an operating point \((\mathbf{x}^\star, \mathbf{u}^\star)\):
with
The resulting StateSpace plugs straight into
scipy.signal.StateSpace / python-control for Bode plots, pole
analysis, LQR / H∞ controller synthesis, and Kalman observer
design.
Phase L1 — single pipe. State vector is one pipe's interior
conservative variables \((\rho, \rho u, \rho E)\) per cell,
flattened cell-major. \(A\) via central FD on
pipe_residual_first_order. Cost: \(2n\) residual evaluations.
Phase L2 — multi-pipe + junction-coupled. State vector is the
concatenation of every pipe's interior cells; junctions enter
through apply_port_bcs() between FD perturbations so the
junction-driven ghost coupling is captured. Volume / port-u_n
state initially frozen at the operating point.
Phase L2b — live volume dynamics. Each junction's
\((m, E_\text{internal})\) joins the packed state vector; rates
come from Junction.accumulate_rates(). The plenum's mass /
energy dynamics now show up as eigenvalues alongside the acoustic
modes. Opt back to L2 frozen-volume mode with
frozen_volumes=True when the slow plenum dynamics are not the
target of the study, or when the network contains a component
whose state beyond \((m, E)\) (cylinder slider-crank, turbo shaft
\(\omega\)) would need an L2c / L3 treatment.
Phase L2c — port-level kinematic state. Turbo shaft
\(\omega\) (Shaft.ports[0].u_n) and extended-Helmholtz-resonator
slug velocity (EHRJunction.ports[i].u_n) join the packed state.
Detection is duck-typed on the network timeloop's
port_u_rates: list[float] + ports[i].u_n: float contract —
every component matching it works without registration. Cylinder
crank angle is deliberately not packed (kinematic clock, not
an integrable ODE; cycle dynamics belong in a harmonic / cycle-
averaged framework, not in state-space).
Phase L3 — analytic Jacobian. \(A\) is pulled directly from
the implicit Newton solver's closed-form block-tridiagonal
assembly (_assemble_jacobian_first_order) — the same one
Phases B16 → B22 already ship for every closure kind. One
assembly call replaces \(2n\) residual sweeps; machine-precision-
exact rather than FD-truncated; ~5-50× wall-clock speedup on
50+ cell pipes. Pure pipe-and-far-BC networks (no junctions).
Phase L3b — hybrid for junction networks. Drops L3's
"junctions empty" restriction: pipe-on-pipe diagonal blocks are
overlaid analytically onto the FD-derived \(A\); cross-blocks
(pipe ↔ volume, pipe ↔ u_n, pipe-pipe-through-junction) remain
FD. Cost equals FD; accuracy on the dominant block improves to
analytic precision. Pure-analytic cross-blocks (the per-junction
ghost-gradient stitch \(\partial U_\text{ghost} /
\partial(m, E_\text{internal}) \cdot \partial F / \partial U_R\))
are out of scope here — Phase L3c when needed.
Non-normality caveat. The Euler operator is strongly non- normal. Two \(A\) matrices agreeing element-wise to \(10^{-7}\) can produce eigenvalues that disagree by ~10 % — see Trefethen's pseudospectra. The unit tests assert element-wise agreement (strict) and spectral abscissa \(\max \mathrm{Re}(\lambda)\) agreement (the physically meaningful stability metric) rather than pointwise eigenvalue agreement.
9. Inverse problems / optimization¶
Phase 44 ships aeolus1d.optimize for case-driven inverse
problems: fit one or more case parameters to match measured
time-series traces.
A ParamSpec.path is a dotted/bracketed walk into the Case
tree (pipes[0].init.p, pipes["tube"].species.A_ads, …). A
ProbeObjective carries a reference \((t, v)\) array and the
\((\text{pipe}, x_\text{frac}, \text{var})\) triple of a virtual
sensor; the objective runs the case with tracing on, interpolates
each probe series to the reference timestamps, and returns the
weighted-sum metric \(\text{metric}(\text{probe},\ \text{reference})\)
— \(\mathcal{L}_1 / \mathcal{L}_2 / \text{rmse} / \text{max}\).
Optimizers wrap scipy.optimize.minimize with method strings
"nelder-mead", "powell", "l-bfgs-b", "slsqp", …; bounded
methods require bounds on every parameter. The [optimize] TOML
block exposes the same shape end-to-end; aeolus1d optimize
case.toml runs the fit and writes the tuned parameters to a
sibling *.tuned.toml.
The Phase 49 SCR rate-fitting examples
(examples/optimize/scr/) drive this seam end-to-end: fit
adsorption / desorption (and full-SCR oxidation + standard-SCR)
rate parameters from a measured \(Y_\text{NH3}(t)\) (and
optionally \(Y_\text{NO}(t)\)) trace, recovering the truth to
0.001 % on synthesised data.
References¶
[1] L. E. Kinsler, A. R. Frey, A. B. Coppens, J. V. Sanders, Fundamentals of Acoustics, 4th ed., Wiley 2000. Helmholtz resonator + end correction.
[2] M. L. Munjal, Acoustics of Ducts and Mufflers, 2nd ed., Wiley 2014. Extended Helmholtz Resonator (EHR) port-impedance formulation.
[3] J. M. Corberán, M. Fernández-Pacheco, F. Payri, Modeling of unsteady flow in branches of intake and exhaust systems of reciprocating internal combustion engines. Proc. IMechE Part D 217 (2003). CP+h algebraic junction.
[4] S. E. Haaland, Simple and explicit formulas for the friction factor in turbulent pipe flow. ASME J. Fluids Eng. 105 (1983) 89-90. Explicit Colebrook approximation.
[5] Numerical Recipes 3rd ed., §17.5 (Bader-Deuflhard semi-implicit Bulirsch-Stoer).
[6] G. Bader, P. Deuflhard, A semi-implicit mid-point rule for stiff systems of ordinary differential equations. Numer. Math. 41 (1983) 373-398. Semi-implicit BS midpoint step.
[9] K. Gustafsson, Control-theoretic techniques for stepsize selection in implicit Runge-Kutta methods. ACM TOMS 20 (1994) 496-517. Step controller for the BS extrapolation.
[11] J. B. Heywood, Internal Combustion Engine Fundamentals, 2nd ed., McGraw-Hill 2018. Slider-crank kinematics (§2.3), Wiebe heat-release (§9.2.2), Zeldovich NOx (§11.3.1), Hiroyasu soot (§11.3.2), Woschni heat-loss (§12.4).
[12] D. A. Nield, A. Bejan, Convection in Porous Media, 5th ed., Springer 2017. Darcy-Forchheimer two-term drag law.
[13] R. M. Heck, R. J. Farrauto, S. T. Gulati, Catalytic Air Pollution Control: Commercial Technology, 3rd ed., Wiley 2009. Substrate technology + monolith geometry (§4).
[14] M. Ciardelli, I. Nova, E. Tronconi, D. Chatterjee, B. Bandl-Konrad, NH3 SCR of NOx for diesel exhausts aftertreatment: role of NO2 in catalytic mechanism, unsteady kinetics and monolith size effects. Chem. Eng. Sci. 62 (2007) 5001-5006. Standard-SCR rate law parametrisation.
[15] I. Nova, D. Bounechada, R. Maestri, E. Tronconi, A. Heibel, T. Collins, T. Boger, Influence of the substrate properties on the performances of NH3-SCR catalysts. Catal. Today 114 (2006) 3-12. Engineering parameter ranges for Cu-zeolite SCR.
[16] L. Olsson, H. Sjövall, R. J. Blint, A kinetic model for ammonia selective catalytic reduction over Cu-ZSM-5. Appl. Catal. B 87 (2009) 200-210. Langmuir NH3 ads/des on Cu-zeolite.
[17] H. Hiroyasu, T. Kadota, M. Arai, Development and use of a spray combustion modeling to predict diesel engine efficiency and pollutant emissions. JSME Bulletin 26 (1983) 569-583. Soot formation and oxidation rate laws.
[21] T. J. Poinsot, S. K. Lele, Boundary conditions for direct simulations of compressible viscous flows. J. Comp. Phys. 101 (1992) 104-129. LODI characteristic boundary conditions.
[22] O. Redlich, J. N. S. Kwong, On the thermodynamics of solutions. V. An equation of state. Fugacities of gaseous solutions. Chem. Rev. 44 (1949) 233-244. Redlich-Kwong EOS.
[23] D.-Y. Peng, D. B. Robinson, A new two-constant equation of state. Ind. Eng. Chem. Fund. 15 (1976) 59-64. Peng-Robinson EOS.
[24] E. Hairer, G. Wanner, Solving Ordinary Differential Equations II: Stiff and Differential-Algebraic Problems, 2nd ed., Springer 1996, §IV.9. Stiff ODE methods, BS extrapolation, Bader-Deuflhard derivation.
[25] A. Suresh, H. T. Huynh, Accurate monotonicity-preserving schemes with Runge-Kutta time stepping. J. Comp. Phys. 136 (1997) 83-99. MP5 5th-order monotonicity-preserving reconstruction.
[26] G. Strang, On the construction and comparison of difference schemes. SIAM J. Numer. Anal. 5 (1968) 506-517. Operator splitting.
[27] E. F. Toro, Riemann Solvers and Numerical Methods for Fluid Dynamics, 3rd ed., Springer 2009. HLLC (Ch. 10), MUSCL (Ch. 14), Roe (Ch. 11).
[28] S. Gottlieb, C.-W. Shu, E. Tadmor, Strong stability- preserving high-order time discretization methods. SIAM Review 43 (2001) 89-112. SSP-RK2/RK3 + TVD analysis.
[29] J.-Y. Chalet, J.-P. Chesse, J. Hetet, Detailed analysis of the steady-flow performance of intake and exhaust valves. Proc. IMechE Part D 219 (2005). Effective-area valve BC.
[30] D. E. Winterbone, R. J. Pearson, Theory of Engine Manifold Design, Professional Engineering Publishing 2000. Compressible- orifice valve BC.
[31] J. R. Serrano, F. Arnau, A. Gil, P. Olmeda, F. Payri, Methodology to characterize a turbocharger turbine map under choked flow. SAE Technical Paper 2013-01-2475 (2013). Turbine-map measurement and synthesis.
[32] H. P. Hodson, T. P. Hynes, A simple semi-actuator-disc representation of axial-compressor performance. ASME GT2010-23133 (2010). Quasi-steady centrifugal-compressor PR(N, ṁ) factory.
[33] R. J. Kee, F. M. Rupley, J. A. Miller, CHEMKIN-II, Sandia Report SAND89-8009B (1989). CHEMKIN mechanism format.
[37] B. Cockburn, G. E. Karniadakis, C.-W. Shu (eds.), Discontinuous Galerkin Methods, Springer 2000; J. P. Boyd, Chebyshev and Fourier Spectral Methods, 2nd ed., Dover 2001. High-order continuous-Galerkin eigensolver background.
[38] G. Woschni, A universally applicable equation for the instantaneous heat transfer coefficient in the internal combustion engine. SAE Technical Paper 670931 (1967). Cylinder wall heat-loss correlation.
[39] G. Hohenberg, Advanced approaches for heat transfer calculations. SAE Technical Paper 790825 (1979). Cylinder wall heat-loss correlation (alternative).
[40] B. Thornber, A. Mosedale, D. Drikakis, D. Youngs, R. J. R. Williams, An improved reconstruction method for compressible flows with low Mach number features. J. Comp. Phys. 227 (2008) 4873-4894. HLLC-LM low-Mach correction.
[41] F. Millo, S. Gundlapally, W. Wang, S. Wahiduzzaman, 1D Simulation Models for Aftertreatment Components, Ch. 11 in A. Onorati, G. Montenegro (eds.), 1D and Multi-D Modeling Techniques for IC Engine Simulation, SAE International (2020), pp. 387-416. ISBN 978-0-7680-9352-0. Canonical reference for the 1+1D flow-through monolith model (gas/solid/washcoat conservation equations, Graetz-Nusselt Nu/Sh asymptotics [Table 11.1], parallel- pore effective diffusivity, the QSS limit-point/concentration-jump robustness problem, and the inner/outer adaptive-mesh decomposition).