A two-spool mixed-flow turbofan in PowerCycles.jl, measured against PyCycle

Both codes run one identical engine — the same five turbomachinery maps, the same fuel model, the same map-interpolation scheme — and this page reports how far apart they land, why, and the design decisions behind PowerCycles.jl.

What this is. PowerCycles.jl is this project: a Julia gas-turbine cycle solver that compiles a declared engine to a system of equations and solves it with Newton's method. PyCycle is NASA's OpenMDAO-based cycle code, used here as the external reference.

The result, in one paragraph.
PowerCycles.jl commit a4311c3 (Julia 1.12.6) PyCycle 4.4.1-dev, clone ee7e161 OpenMDAO 3.44.0 · NumPy 1.26.4 · SciPy 1.17.1 Apple M2 Pro · single-thread BLAS both sides
Audience & scope. A propulsion researcher who was not present when this was built. Every term, station number, and symbol is defined on first use. Scope: one dry (afterburner-off) design point plus two throttle sweeps, cross-code, on the bilinear map-interpolation arm (the like-for-like arm) with the smooth-interpolation arm reported as a bounded, named deviation. Every number reads from a data file, not from memory; each traces to a named source (see Sources). Where the two codes differ, the difference is stated with both values, its size and sign, and its cause — whether or not it favours PowerCycles.

1 · The benchmark: the mirrored engine, kept like-for-like

The reference is PyCycle's shipped example example_cycles/mixedflow_turbofan.py (clone commit ee7e161). PowerCycles builds the same engine: a two-spool, mixed-flow turbofan — two independently rotating shaft groups (spools), a cold bypass stream remixed with the hot core before one common nozzle, seven total-pressure-loss ducts, and two turbine-cooling bleeds. A station is a numbered location along the gas path; Tt is total (stagnation) temperature [K] and Pt total pressure [Pa] — the state a flow reaches when brought to rest.

PyCycle evaluates gas properties two ways, and both appear on this page. CEA (chemical-equilibrium-with-applications) runs a Gibbs-energy-minimization Newton solve for the equilibrium species mix inside every property call — PyCycle's most accurate backend, and its slowest. TABULAR looks up precomputed property tables interpolated in total pressure, total temperature, and fuel-air ratio, with no per-call equilibrium solve — PyCycle's fastest backend. PowerCycles evaluates hot-gas properties from frozen-products polynomials (a fixed product composition set by the solved fuel-air ratio, then polynomial fits in temperature). Computationally that is the operation-for-operation analogue of TABULAR (table/polynomial lookup), not of CEA (an equilibrium solve inside every call), so the fair speed and accuracy comparison is PowerCycles vs PyCycle-TABULAR; CEA is kept throughout as PyCycle's accuracy reference and its own upper bound on thermo fidelity. Every number below that depends on the thermo backend is labeled CEA or TABULAR.

The engine both codes run. Air enters at the ambient/inlet (stations 0–2), is compressed by the fan (21), then split: the cold bypass (13) runs to the mixer; the core runs low-pressure compressor LPC (24) → high-pressure compressor HPC (3) → burner (4) → high-pressure turbine HPT (45) → low-pressure turbine LPT (5), then to the mixer (6). The mixer merges hot core and cold bypass into one stream, through the mixer duct (16) and the unfueled afterburner duct (7) to a converging–diverging nozzle (throat 8, exit 9). The LP spool is fan + LPC driven by the LPT; the HP spool is HPC driven by the HPT. Cooling bleed cool1 is tapped partway through the HPC (interstage) and delivered to the LPT exit; cool3 is tapped at the HPC exit and delivered to the HPT exit. Design point: International Standard Atmosphere 35,000 ft, flight Mach 0.8, sized to net thrust Fn = 5500 lbf = 24465 N and burner-exit total temperature Tt4 = 3200 °R = 1777.8 K; fan pressure ratio 3.3, LPC 1.935, HPC 4.9, overall pressure ratio ≈ 30.5, bypass ratio 2.41334.

Four things enforce "like-for-like"

What is imposed, and what is solved

Three further modelling choices are re-parameterizations, recorded rather than tuned: the HPC-exit cooling bleed is set so its mass equals PyCycle's separate bleed element identically at every operating point; the deck's 250 hp high-pressure shaft offtake is wired inert in PyCycle (it drives nothing), so PowerCycles sets it to zero on both sides; and each cooling stream is credited with the shaft work of an isentropic expansion from its entry total pressure to the turbine exit at the turbine efficiency, matching PyCycle's turbine element — the cooling-work model, described in §5.

2 · Accuracy at the design point

Both codes on the bilinear arm at the design point, on PyCycle's CEA thermodynamics backend (the accuracy reference; the TABULAR backend — PowerCycles' computational analogue, §1 — is compared at the end of this section). The cold-side gas path (up to and including the burner exit, plus the whole bypass) agrees to the printed precision; the hot (turbine) side agrees to within a few tenths of a percent. The table carries every shared station: PowerCycles, PyCycle, and the signed difference in Tt and Pt. Click a numeric header to sort; use the filter to isolate the cold or hot side.

show stations
colour ΔPt by
station Tt ours [K] Tt PyCycle [K] ΔTt Pt ours [Pa] Pt PyCycle [Pa] ΔPt

Cold side: the gas is dry air and the two codes' air thermodynamics and the imposed compressor pressure ratios coincide, so the compression path carries no accumulated difference — every cold station agrees within (5–6 significant figures). Hot side: the low-pressure-turbine-exit total pressure Pt5 is the largest station-level difference, and it decomposes cleanly (below).

The headline scalars

quantityoursPyCycleΔcause

The LPT-exit pressure difference decomposes into two matched turbine residuals

The one hot-side quantity worth isolating is the low-pressure-turbine-exit total pressure Pt5: 124 189 Pa (ours) vs 124 493 Pa (PyCycle), a difference of −304 Pa, −0.24% (PyCycle's CEA arm; −0.54% against its TABULAR arm, below). It is the compound of two same-sign per-turbine pressure-ratio residuals, each small because the coolant-work basis is matched between the codes:

1
High-pressure turbine. Pressure ratio 2.0436 (ours) vs 2.0410 (PyCycle) — +0.12%.
2
Low-pressure turbine. Pressure ratio 4.1071 (ours) vs 4.1021 (PyCycle) — +0.12%.
3
They compound on Pt5. The core expands through both in series, so Pt5rel = −(0.123% + 0.123%) = −0.245% — the measured value.

Each per-turbine residual is the hot-gas thermodynamics class: the ratio of specific heats γ differs by under 1% between the two codes' gas models at matched temperatures, and the sign of that difference flips between the hot and cold ends of the expansion, so each turbine carries only a few tenths of a percent. A loop-closure check — expanding each turbine's ideal specific work through the PowerCycles thermodynamics from the measured inlet state — bounds the pure-thermodynamics contribution at ≤0.14% (HPT) and ≤0.09% (LPT) per turbine. Measured and attributed, not tuned.

The fuel-consumption difference is an exact sum of two terms

Thrust-specific fuel consumption (TSFC, fuel mass flow per unit net thrust) is 1.9838×10−5 vs 2.0047×10−5 kg/(N·s), −1.04% (PyCycle's CEA arm; −0.82% against its TABULAR arm, below). With net thrust matched at the design target, TSFC is fuel-air ratio times air flow over a fixed thrust, so its relative difference is the sum of those two relative differences:

TSFCrel = FARrel + mdot_airrel = −0.86% + (−0.18%) = −1.04%

The fuel-air-ratio term (−0.86%) is the hot-gas and fuel thermodynamics — the fuel-air ratio each code needs to reach the imposed Tt4. The air-flow term (−0.18%) follows from the matched Pt5: with the mixed-exhaust total pressure in agreement, neither code needs excess air to make the fixed thrust. Net thrust itself is the imposed target and matches to round-off; bypass ratio is imposed directly on both.

The CEA→TABULAR backend choice brackets these differences

PyCycle's own design answer moves when it switches thermodynamics backend from CEA to TABULAR — the table-interpolation backend PowerCycles' frozen-products polynomials are the computational analogue of (§1). The table below adds that TABULAR comparison next to the CEA comparison above, for the four quantities already discussed:

quantityPowerCycles − CEAPowerCycles − TABULAR
LPT-exit total pressure Pt5−0.24%−0.54%
fuel-air ratio FAR−0.86%−1.00%
thrust-specific fuel consumption TSFC−1.04%−0.82%
inlet air flow mdot_air−0.18%−0.49%

Switching PyCycle itself from CEA to TABULAR moves its own design solution by up to about 1%: total pressure +0.30% at every station — traced to the freestream stagnation-pressure relation Pt0/Ps0, which the tabulated air properties evaluate slightly differently from CEA's equilibrium air at this flight condition, and that single offset then rides multiplicatively through every downstream station — and bypass ratio +0.96% (the value each backend solves to hold the mixer extraction-ratio target ER = 1.05, hit exactly by both). The PowerCycles-vs-PyCycle differences in the table above sit inside that band: the two codes disagree by about as much as PyCycle disagrees with itself across its two thermo backends.

Basis note: PowerCycles imposes PyCycle's CEA-solved bypass ratio (2.4133) at the design point (a stated limit, §7); PyCycle's TABULAR arm solves its own design bypass ratio, 2.4364 — the +0.96% difference above. So the PowerCycles-vs-TABULAR row carries that basis difference in addition to the thermodynamics difference; the PowerCycles-vs-CEA row does not, because PowerCycles imposes the CEA value directly.

3 · Accuracy off design: the throttle sweeps

Both codes ladder the burner-exit temperature Tt4 down in 50 °R steps with warm continuation (each point starts from the previous converged point). Pick a quantity and a flight condition; toggle any series; hover the chart to read exact values. The design point sits at the right (highest Tt4). PyCycle's CEA thermodynamics arm is charted here; a TABULAR-arm sweep is recorded in the physics doc (Sources) with the same trajectory shape and a smaller fuel-consumption offset.

quantity (y-axis)
flight condition

Bypass ratio and extraction ratio track PyCycle in level and shape

The part-power fuel-consumption hook

Selecting TSFC on the chart above shows an interior minimum — the part-power "hook" a real engine has when reduced-power operation is more fuel-efficient per unit thrust than either the design point or deep throttle. On the 35 kft ladder ours bottoms at Tt4 ≈ 2700 °R (TSFC 1.9309×10−5 kg/(N·s)), PyCycle at ≈ 2750 °R (1.9522×10−5) — the minimum's location matches to within one 50 °R step. The level runs −1.0% to −1.3% below PyCycle across the ladder, the same hot-gas and cooling-work thermodynamics that set the design-point TSFC.

Condition B (30 kft / Mach 0.9) shows the same picture: bypass ratio tracks to within −1.2% at the deepest common point (2850 °R: ours 2.8147 vs PyCycle 2.8485), the extraction ratio straddles unity (crossing near 2950–3000 °R), and TSFC runs −1.1% to −1.2% below PyCycle throughout.

The two interpolation arms — and when each applies

The accuracy statement above is the bilinear arm (matching PyCycle). PowerCycles' production backend resamples each map once onto a uniform grid and stores, per node, the value plus its partial derivatives as bicubic-Hermite patches, so Newton's method gets exact, smooth map partials instead of differentiating through an interpolant. That smoothness has a price: a small map-resample difference from PyCycle's linear scheme. The difference between the two arms is quantity-dependent, not one number — largest near the throttle floor where the operating line runs near a map edge.

Hermite vs bilinear (PowerCycles' two arms), maximum over the converged 35 kft ladder (3200 → 2500 °R). Net thrust and air flow move most (1.77% and 0.92%, at the 2500 °R floor); fuel-air ratio barely moves (0.13%). This is the recorded cost of smooth Newton derivatives, reported against the bilinear arm.

When to use which. The bilinear arm reproduces PyCycle's map reads for a like-for-like validation or where matching a linear-interpolation reference matters. The Hermite arm gives Newton's method a smooth (C¹) map surface with analytic partials — steadier convergence and no differentiation through the table — at a bounded, map-edge-localized deviation. Both are one keyword (interp=:bilinear or :hermite) on the same engine.

4 · Speed and convergence

Same machine (Apple M2 Pro), single-thread BLAS on all sides. PowerCycles times are medians of at least 7 runs; PyCycle's are medians of 3. Each phase is stated operation-for-operation — a warm re-solve against a warm re-solve, with what each cold start contains spelled out — because the cold and warm numbers are not comparable across codes without that framing. PyCycle is timed on both thermo backends: CEA (its slowest, an equilibrium solve inside every property call) and TABULAR (its fastest, and the operation-for-operation match to PowerCycles' frozen-products polynomials, §1). The thermo-like-for-like ratio is PowerCycles vs PyCycle-TABULAR; CEA is kept as the reference PyCycle's own published numbers use.

phasePowerCyclesPyCycle (CEA)PyCycle (TABULAR) vs CEAvs TABULARwhat it is

Convergence behaviour — both codes, at equal weight

Behaviours observed in both codes, recorded with the step sizes that produced them.

show
PyCycle
  • Multi-thread BLAS gave non-reproducible deep-throttle convergence. Whether a deep point converged depended on the BLAS thread count; all comparison data were run single-threaded to remove it.
  • The off-design point is singular at the design throttle from a cold linearize. It needs warm continuation — the reference deck cannot solve the design point alone, which is why the cold-start timing already contains one off-design solve.
  • The convergence floor is continuation-step-dependent. On 50 °R steps PyCycle-CEA's first Newton failure is at Tt4 = 2500 °R (35 kft; residual norm 1.427×10−4 did not fall below 10−5 within the iteration cap) and 2850 °R (30 kft). Its own floor moved from about 3000 to about 2600 °R when the step shrank from 50 to 10–25 °R.
  • PyCycle-TABULAR's floor sits far deeper than PyCycle-CEA's, on the same 50 °R step. First Newton failure at Tt4 = 1850 °R (35 kft; converged floor 1900 °R, 13 steps past CEA's 2500 °R failure) and 1950 °R (30 kft; converged floor 2000 °R, 18 steps past CEA's 2850 °R). Table-interpolated properties give better-conditioned Newton residuals near deep throttle than CEA's per-call equilibrium solve, which can itself fail to converge internally near extreme conditions.

Both codes' floors are continuation-step-dependent, not a fixed property of the engine; a finer step would likely move both deeper. Recorded limit on solver-statistics parity. PyCycle reports Newton iteration counts (design 4–5, off-design 2–3 per point, up to 19 at one deep point) and final residual norms ~10−7 to 10−8. PowerCycles' result surfaces a convergence predicate but not the Newton iteration count — a limit of the result interface, recorded here.

5 · The design choices behind PowerCycles

PowerCycles compiles a declared engine to a residual program — a list of unknown columns and equations (each written left-hand side − right-hand side = 0) — solved by Newton's method through NonlinearSolve.jl. The decisions below are what let one authored description become both the design (sizing) solve and the off-design (running) solve, and let the same code that runs a single-spool turbojet run this two-spool turbofan. Each states the decision in one sentence, why it was made, and what it measurably buys — open each to read it.

One authored manifest, two compiled partitions. The turbofan compiles to a 137×137 design system and a 119×119 off-design system. The columns that separate them are the sized quantities — the five machines' map scale factors and the fixed geometry such as the nozzle throat area — which the design solve computes and the off-design solve reads frozen. The single-spool turbojet is 46×46 / 38×38 by the same mechanism. Design-mode map partials are analytic: the scale factor enters the map relation linearly, so its Jacobian entry is exactly the negative map value, with no differentiation through the interpolated table.
residual IROne graph, two partitions▸

One authored engine compiles to a design partition that solves the sizing scalars and an off-design partition that freezes them and solves the running engine — the same equations, read from two sides.

Lineage. Toggling a solved/frozen split between a design run and a running (off-design) run of one engine model is standard cycle-matching practice, not new here. NPSS (Numerical Propulsion System Simulation) does it with autoSetup: one model, with the solver's independent/dependent variable list switched between design and off-design. PyCycle does it by building two separate OpenMDAO Group instances of the same cycle class — pyc_add_pnt('DESIGN', MixedFlowTurbofan(design=True, ...)) and, per off-design point, pyc_add_pnt(pt, MixedFlowTurbofan(design=False, ...)) (example_cycles/mixedflow_turbofan.py:232,282) — then wiring the two instances with one pyc_connect_des_od(...) call per transferred quantity (40 such calls in this deck: one per map scale factor and per sized area).

What changes here. PowerCycles compiles one residual system; design and off-design are a row tag on that one system, not two model instances. There is no second model object to build and no per-quantity transfer call to author or keep in sync — the off-design freeze set is read directly off each component's own declarations (which of its columns are design-only) rather than wired quantity by quantity. Both partitions share the same kernels and the same sparsity pattern; only the frozen/solved column split changes between them. One consequence: PowerCycles' cold start has no separate off-design anchor solve to run, because there is only ever one compiled system, evaluated with a different column split — PyCycle's cold start, by contrast, already contains one off-design solve (§4).

Measured: turbofan 137×137 design, 119×119 off-design; turbojet 46/38 by the same mechanism. Map partials are analytic (each map resampled once onto a uniform grid, storing value plus derivatives), so the Jacobian never differentiates through the interpolated table.
assembleassemble(cycle) → AssembledCycle: build once, solve many▸

Turning a declared cycle into its solvable form — emit each component's rows, propagate the gas along the connections, merge wired stations into one column each, check the system is square (raising on any mismatch), compile — happens once, in one module, producing an AssembledCycle value whose manifest and compiled per-mode programs are publicly reachable.

Why. Assemble once, solve many: a throttle sweep or optimization loop re-solves without re-assembling, and tests read the assembled system through public handles rather than internal names. Component emit! bodies are mostly equations because a flow port is a struct that owns its boundary-variable block (ADR-0014: one call mints a port's Tt/Pt/mdot columns and returns the port), collapsing the boundary bookkeeping that would otherwise run about nine lines per physics equation.

Measured: a warm design re-solve is 0.66 ms, so a swept operating line pays assembly once and each point is sub-millisecond. solve(cycle, cond) stays a one-call convenience that assembles then solves.
ADR-0016Stream-gas descriptor and the capture rule▸

Every flow port declares its stream gas (ADR-0016: a flow port carries a gas descriptor — either a frozen fixed composition, or a combustion system paired with the solved fuel-air-ratio column, recomputed each kernel call), so the assembly propagates gas identity along connections instead of the author threading it component to component.

The capture rule (the three-place rule). Anything that depends on the current Newton iterate lives in exactly one of three places:

1. a column in xthe solver rewrites it every iteration (Tt, Pt, mdot, FAR) 2. recomputed in kernelsfrom columns in x — enthalpy from the live total temperature; composition from the live fuel-air ratio, as products(system, FAR) 3. a build-time constanttrue constants only: the combustion system, port nominal values, frozen areas

Why it matters. Storing a mole-fraction vector at a port would move composition from place 2 into place 3 — the solver would iterate the fuel-air ratio while the composition stayed frozen at the build-time guess, and it would sever the fuel-air-ratio derivative: during the Jacobian evaluation the fuel-air ratio enters kernels as a forward-mode dual number, so recomputing composition as products(system, FAR) carries the property sensitivity into the fuel-air-ratio column. Composition tracks the solved fuel-air ratio because gas properties are temperature-varying and formation-inclusive with hot composition coupled to the solved fuel-air ratio (ADR-0006).

Measured: this coupling is why the cold-side stations match to under 0.01% (matched air thermodynamics) while the hot-side turbine pressure ratios read a well-separated +0.12% / +0.12% thermodynamics residual (§2). Gas descriptors propagate along the connections, so the author does not thread gas identity component to component.
cooling modelCooling coolant carries turbine work▸

Each turbine-cooling stream is credited with the shaft work of an isentropic expansion from its entry total pressure to the turbine exit, at the turbine efficiency, then mixes into the turbine exit (diluting and cooling it) — matching PyCycle's turbine element.

How it works. A cooling bleed is a small flow tapped from the compressor to cool a turbine. Its entry total pressure is set by a fraction frac_P between the turbine inlet and exit; both benchmark injections use frac_P = 1 (coolant enters at the turbine inlet pressure), the deck's value. The coolant's work is W = mdot·ηt·(h(coolant, Tt) − h(coolant, Tideal)), with Tideal from the isentropic drop to the turbine exit pressure; it enters the turbine's shaft-power balance. Setting the coolant flow or frac_P to zero recovers a zero-work boundary exactly.

Why. PyCycle's turbine (EnthalpyAndPower/BleedPressure) credits the coolant with exactly this expansion work; matching the semantics term-for-term is what makes the two codes' turbine power balances comparable. From PyCycle's solved deck the cooling streams supply 129 528 W (cool3, 2.68% of HPT shaft power) and 151 701 W (cool1, 1.90% of LPT shaft power).

Measured: with the work basis matched, each turbine's pressure-ratio residual is +0.12% (the hot-gas thermodynamics class), and the LPT-exit pressure Pt5 agrees to −0.24% (§2).
ADR-0013A torque-summing Shaft component per spool▸

Each spool is one Shaft component owning that spool's torque balance (ADR-0013: a torque-summing Shaft with role-named ports and per-machine torque columns); machines expose a shaft port carrying (speed, torque), and wiring a machine to the Shaft is an ordinary merge connection.

How it closes. The spool speed merges to one column across the whole spool; each machine keeps its thermodynamic shaft-power column and gains a torque column closed by the link row torque·speed − Pshaft = 0. The Shaft's balance row is ηmech·Σ(turbine torques) − Σ(compressor torques) − Pextract/speed = 0.

Why torque, not power. Electric-machine maps are natively (speed, torque)-parameterized; the balance is one-to-one with PyCycle's Shaft element; and shaft transients integrate torque natively. Two spools of two or more machines each need a reusable Shaft, not a hand-written power-balance row per engine.

Measured: both spool balances close to machine zero at the turbofan design point (LP relative residual 1.3×10−16, HP 0.0); no engine carries a hand-written shaft power-balance row. Recorded conditioning choice (ADR-0013 amendment): torque columns store a normalized auxiliary Pshaft/(107 W·speed), O(1) by construction — a physical-magnitude torque would put a ~107 entry into the speed column and spike the raw Jacobian condition number; the torque-sum balance is scale-invariant, recovering the power balance exactly. Physical spool-speed units are filed work.
ADR-0015Column ids generated from (owner, quantity)▸

A component-local column id is generated as quantity_owner (ADR-0015: column ids are generated from the (owner, quantity) pair, never authored), so the author writes the quantity name and the concrete symbol is a build detail; everything outside the compiled program addresses the pair (owner, quantity).

Why. Without generated ids, a component's column ids are hand-typed: one bypass-engine cycle spelled nine column-id keywords per compressor while its turbine exposed none, so two turbine instances collided at build time. Generated ids make "two of the same machine never collide" hold by construction — a fan and an HPC coexist in one cycle without their columns clashing.

Measured: the result surface reads by pair — des[:fan, :PR], des[:hpc, :omega] — with no hand-spelled ids. The result type discovers its stations and components from the assembled manifest, so the same accessors read any engine, not a hardcoded turbojet station list.
seed marchThe design solve seeds itself▸

design_seed(asm, cond) walks the gas path once in topological order (ambient onward, from the connection graph) and evaluates each component's rough design algebra — a compressor its pressure ratio, the burner its Tt4 target, a turbine a work estimate, the nozzle an expansion — filling a full-length starting guess with no Newton iteration.

Why. Any engine composed from the library then solves at its design point with no hand-written starting-guess table, whatever its pressure ratios or bypass ratio — needed per point by an optimization study that re-sizes the engine each evaluation.

Measured: replacing a bypass engine's 69-entry hand-written seed table with the march reaches the same root (mixer-exit pressure, fan map scalars, mixer Mach numbers all unchanged), and the two-spool turbofan converges from the march with no seed table.
throttlesSpool- and station-qualified corrected speed (N1c2)▸

On a multi-spool engine, a corrected-speed throttle names which machine's speed it fixes: the Corrected throttle is qualified by (spool, station) — the industry NkcS label — so N1c2 is spool 1 referred to station 2, the fan's corrected speed.

Why. Each machine's corrected speed is referred at its own inlet station, so one corrected speed is ambiguous across spools. The LPC rides the same LP spool as the fan but at a hotter inlet, so its corrected speed is a different number at the same physical shaft speed — the station has to qualify the handle.

Measured: N1c2 and Tt4 both throttle the off-design turbofan; leaving the qualification off defaults to the LP lead (the fan), so the single-spool turbojet's unqualified Corrected keeps working unchanged. The global handles (Tt4, fuel flow, net thrust) need no qualification.
momentum mixerImpulse balance and off-design redistribution▸

The mixer closes its outlet total pressure from a momentum (impulse) balance — the sum of the two inlet stream thrusts equals the outlet stream thrust, where stream thrust is Ps·A + mdot·V (static pressure × area plus momentum flux) — matching PyCycle's mixer, rather than a mass-flow-weighted total-pressure average.

The static-pressure-match row does two jobs. At the mixing plane the two streams share one static pressure, enforced by the row Ps_hot = Ps_cold. At design it sizes the hot inlet area (with the cold Mach pinned). Off-design, with both inlet areas frozen, the same row instead drives the upstream splitter's split fraction — a solved off-design column — so the bypass ratio redistributes as the engine throttles. This is the closure PyCycle balances (splitter.BPR against the mixing-plane static pressures) and NPSS (Numerical Propulsion System Simulation) uses (Mixer.int dep_errPs active off-design, Splitter ind_BPR freed). A freed splitter adds one off-design column; the active row adds one; they pair one-for-one, keeping the system square.

Why. A real mixer conserves momentum; the mass-weighted average is exact only when the two inlet dynamic pressures are equal and grows wrong as the inlet Mach numbers diverge. And a fixed-geometry mixer physically redistributes flow between core and bypass as pressures shift with throttle — freezing the split would hold the bypass ratio at its design value everywhere.

Measured: on two matched dry-air streams (isolating the algorithm from combustion thermodynamics) the outlet total pressure agrees with PyCycle to +19 Pa (+0.0085%); at the turbofan's engine states the mixer-exit total pressure agrees to −116 Pa (−0.10%). Off-design, the redistribution makes the bypass ratio migrate with PyCycle's across the throttle sweep (§3).
afterburnerReheat on the cumulative fuel-air-ratio axis▸

The Afterburner is a second burn on the same fuel axis: it mints a new cumulative fuel-air-ratio column (fuel per kg of original air) and its energy balance carries the upstream and its own fuel-air ratio in one row, reducing exactly to the burner when the upstream fuel-air ratio is zero.

Why. This is the exemplar the stream-gas descriptor (ADR-0016, above) was designed for: a second combustor on one fuel axis needs no new machinery, only a new cumulative fuel-air-ratio column and an energy row that reads both. The mixer already rebases the fuel-air ratio to total air, so the outlet column is cumulative on the whole air flow and the performance leaf counts both burns.

Measured: the reference turbofan assembles with the afterburner in the path; unfueled, it reproduces the dry engine to solver tolerance (this comparison runs it dry). A lit like-for-like cross-check against PyCycle's wet example is filed work (§7).

6 · How this comparison reached its current state

The section below is optional reading. The rest of this page states the current measured comparison as plain fact; this one records the two model changes that produced it and what they taught — the only place the page looks backward.

How this comparison reached its current state — the two model changes and what they taught▸

The symptom

The design point's imposed targets (thrust, burner-exit temperature, bypass ratio) matched by construction, and the cold-side stations matched to under 0.01%. But two things did not fit PyCycle. At the design point the low-pressure-turbine-exit total pressure Pt5 was −6.15% low (116 839 vs 124 493 Pa), and the mixer extraction ratio sat entirely below unity (0.985) while PyCycle's straddled it. Off-design, the throttle-sweep shapes diverged from PyCycle at every point: the bypass ratio stayed frozen at its design value 2.41334 while PyCycle's migrated to 2.972 (+23%), and the part-power fuel-consumption hook — PyCycle's interior TSFC minimum — was absent; the PowerCycles curve was monotone over the same range.

The diagnosis

  • Reading PyCycle's balance structure. Its off-design closure frees the splitter's bypass ratio and balances it against the mixing-plane static-pressure match — a coupling PowerCycles did not have, because its splitter froze its split fraction as a build-time constant in both partitions and its mixer static-pressure-match row was design-only.
  • Sweep forensics. Normalizing the sweeps did not collapse them onto one curve; the bypass ratio was frozen to six digits across every throttle point and both flight conditions while PyCycle's moved +23%. The divergence concentrated on the low-pressure spool and the mixer — the signature of a frozen split, not a thermodynamics difference.
  • A control experiment isolated the design-level cause. Setting both cooling bleed fractions to zero on both codes collapsed the design-point Pt5 difference from −6.15% to −0.96% and moved the extraction ratio onto the same side of unity as PyCycle. Removing cooling closed about 5.2 of the 6.1 percentage points, isolating the turbine cooling-work model — not hot-gas thermodynamics — as the dominant design-level cause. The ratio of specific heats was ruled out directly: it differs under 1% between the two gas models at matched temperatures and flips sign across the expansion — too small, and the wrong shape, to account for a 6% pressure gap.

The two model changes

  • Turbine cooling model: coolant work extraction. Each cooling stream is now credited with the shaft work of an isentropic expansion from its frac_P-interpolated entry total pressure to the turbine exit, at the turbine efficiency — the tap-pressure expansion PyCycle's turbine element performs. The former model gave the coolant no turbine work, so the main flow alone had to supply the same shaft power and needed a larger pressure ratio to do it; that larger ratio compounded through both turbines into the Pt5 difference. (Described as it works now in §5.)
  • Off-design bypass redistribution. The splitter's split fraction became a solved off-design column, closed by keeping the mixer's static-pressure-match row active off-design — the same free-column / active-row pairing PyCycle and NPSS use. The bypass ratio now redistributes with throttle instead of staying frozen. (Described as it works now in §5.)

Before and after

quantitybeforecurrentPyCycle
LPT-exit total pressure Pt5−6.15% −0.24%reference
mixer extraction ratio ER (design)0.985 (below unity) 1.04741.0500
off-design bypass ratio (deep throttle)frozen at 2.4133 2.92662.9722
part-power TSFC hookabsent (monotone) present, within one 50 °R step of PyCycle'sinterior minimum

The learning

  • Design points match by construction. The imposed targets are pinned on both codes, so agreement there says little about the models. The model differences live off design and in the outputs that were not pinned — here, the turbine pressure ratios and the swept shapes.
  • Off-design shape is the discriminating test. The frozen split produced a design point that looked close on its pinned quantities but a sweep whose shape diverged from PyCycle at every point; the sweep comparison is what exposed it.
  • A recorded deferral carries an unmeasured cost until something measures it. The frozen split was a documented simplification of the splitter; its cost stayed invisible until the cross-code sweep made the bypass-ratio trajectory and the missing hook visible. Freeing the split cost one solved column and one active row.

7 · Stated limits, and the filed work

What this comparison does not settle

Filed work, with task ids

taskwhatstatus / measured so far
POWCYC-030Afterburner lit cross-check: one afterburner-lit design point against PyCycle's wet example in progress; the component assembles and reproduces the dry engine unfueled, the wet point is open
POWCYC-029A fan map with native design pressure ratio in the 3–4 class, so the fan's design-mode scale factors land near 1 the reference fan already runs AXI5 (the map PyCycle scales) at scale factor 0.55; a higher-native-PR map is a fidelity improvement to scope or close
POWCYC-028Branch-free nozzle via a smoothed complementarity row, replacing the two swapped choked/unchoked programs to do; a standalone spike reproduces both branches from one row
POWCYC-027Physical spool-speed units: the speed and torque columns are normalized auxiliaries today to do; needed for shaft-inertia transients
POWCYC-026Restore an off-design convergence envelope narrowed by the shaft torque coupling on a single-spool branch-switch point to do; a scaled-Jacobian path exists to test against the withdrawn point (the redistribution-enabled turbofan shows no floor to the probe bound)
POWCYC-025Compile-cost benchmark: the one-call design solve compiles all three programs (design + two nozzle branches) to do; decide lazy vs eager compilation with a measured cost
result APISurface Newton iteration count and final residual norm on the result value (solver-statistics parity with PyCycle) recorded gap; the convergence predicate is surfaced, the iteration count is not

Sources — every number on this page traces to one of these

PowerCycles.jl is pinned at commit a4311c3 (Julia 1.12.6); the PyCycle clone at ee7e161 (imported version 4.4.1-dev; OpenMDAO 3.44.0, NumPy 1.26.4, SciPy 1.17.1); timing on an Apple M2 Pro, single-thread BLAS on both sides. This page is a local artifact (archive/walkthroughs/); it is not part of the shipped repository.