NPSS vs pyCycle: baseline turbojet — timing & robustness

Single-spool turbojet, sea-level static. Generated 2026-06-07. pyCycle 4.4.1-dev+ee7e161, NPSS_3.2.

Key findings

  • The NPSS-vs-pyCycle equilibrium speedup depends on which NPSS package you use. vs NPSS-allFuel (CEA accuracy, fast implementation): ~256x faster per solve than pyCycle-CEA. vs NPSS-CEA (slow package): only ~1.4x. The right equilibrium comparison is pyCycle-CEA vs NPSS-allFuel.
  • allFuel = CEA-accuracy at GasTbl-speed (~178x faster than NPSS-CEA per solve). Package choice within NPSS (~178x spread) matters more than NPSS-vs-pyCycle for equilibrium thermo.
  • Off-design timing persists. On a 12-point throttle line: NPSS-allFuel ~599–2527x faster than pyCycle-CEA per point.
  • Robustness is high across the board — expected for this simple single-spool turbojet model. The one exception: pyCycle-CEA failed at one envelope corner (alt 25,000 ft, MN 0.8).

Methods (brief)

An identical single-spool turbojet (FlightConditions → Inlet → Compressor → Burner → Turbine → C-D Nozzle, single shaft; PR = 13.5, ηc = 0.83, ηt = 0.86, T4 = 2370 degR, Fn = 11,800 lbf SLS) was built in both codes. Six (tool, package) configurations were evaluated: pyCycle in CEA and TABULAR; NPSS in GasTbl, Janaf, CEA, and allFuel. Design sweeps (T4, OPR) are cross-tool rubber-engine; throttle and envelope sweeps engage component maps and are within-tool only (NPSS uses CFM56-derived maps, pyCycle uses AXI5/LPT2269). Timing uses a rigorous solve-only benchmark: cold-reset repeats, single-core pinning, median/min estimators.

Timing performance

The headline: the NPSS-vs-pyCycle equilibrium speedup is not one number — it depends entirely on which NPSS package pyCycle-CEA is compared against. Against NPSS-allFuel (same equilibrium accuracy as CEA): ~256x faster per solve. Against NPSS-CEA: only ~1.4x (NPSS-CEA is anomalously slow). Within NPSS, the per-iteration thermo cost spans ~178x: allFuel = CEA-accuracy at GasTbl-speed.

Master timing table

Per configuration; cold-reset repeats, single-core. Green = row minimum.

The single most important finding is that the cross-tool equilibrium speedup is

Head-to-head speedup

PairingComparison axisNPSS / pyCycle per-solve median [ms]NPSS faster (median)NPSS faster (min)
pyCycle-CEA vs NPSS-Janafequilibrium, DATA-matched (both JANAF)1295 / 20951.6x1.4x
pyCycle-CEA vs NPSS-CEAequilibrium, METHOD-matched (full equil.)1461 / 20951.4x1.2x
pyCycle-CEA vs NPSS-allFuelequilibrium, same accuracy as CEA, fast8.2 / 2095256x216x
pyCycle-TABULAR vs NPSS-GasTbltabular vs tabular10.3 / 372.336x36x
pyCycle-TABULAR vs NPSS-allFuelpyCycle fast path vs NPSS fast equil.8.2 / 372.345x44x
Figure 24. Per-solve wall time by all six configurations (log y): bar = min (least-contended), diamond = median. The fast packages (NPSS allFuel and GasTbl, ~8-10 ms) are ~two orders of magnitude faster than the slow equilibrium/polynomial solves (NPSS CEA/Janaf, pyCycle CEA).
Figure 24. Per-solve wall time by all six configurations (log y): bar = min (least-contended), diamond = median. The fast packages (NPSS allFuel and GasTbl, ~8-10 ms) are ~two orders of magnitude faster than the slow equilibrium/polynomial solves (NPSS CEA/Janaf, pyCycle CEA).
Figure 25. NPSS-faster factor for each cross-tool pair (log y), by median (solid) and min (hatched). The equilibrium speedup is package-dependent: ~1.6x vs Janaf, ~1.4x vs CEA, but ~256x vs allFuel; tabular ~36x. Bars colored by the NPSS package.
Figure 25. NPSS-faster factor for each cross-tool pair (log y), by median (solid) and min (hatched). The equilibrium speedup is package-dependent: ~1.6x vs Janaf, ~1.4x vs CEA, but ~256x vs allFuel; tabular ~36x. Bars colored by the NPSS package.
Figure 26. The fewer-but-costlier-iterations tradeoff across all six configs: (a) per-iteration wall time (log) and (b) iterations to converge. pyCycle's Newton iterations are far costlier but far fewer; NPSS allFuel/GasTbl are the cheapest per iteration.
Figure 26. The fewer-but-costlier-iterations tradeoff across all six configs: (a) per-iteration wall time (log) and (b) iterations to converge. pyCycle's Newton iterations are far costlier but far fewer; NPSS allFuel/GasTbl are the cheapest per iteration.
Figure 27. Decomposition per_solve = per-iteration x iterations for the cross-tool pairs (log y), annotated with the factors. allFuel achieves CEA-accuracy at a fraction of the per-iteration cost.
Figure 27. Decomposition per_solve = per-iteration x iterations for the cross-tool pairs (log y), annotated with the factors. allFuel achieves CEA-accuracy at a fraction of the per-iteration cost.
Figure 28. Per-solve distribution from the raw timed samples (log y), all six configs. pyCycle is markedly noisier on the loaded machine, which is why min is used as the robust estimator.
Figure 28. Per-solve distribution from the raw timed samples (log y), all six configs. pyCycle is markedly noisier on the loaded machine, which is why min is used as the robust estimator.
Figure 29. Time to first answer for a one-off run: setup (parse/import/thermo load) stacked with the cold first solve. For NPSS the cold first solve equals its cold-reset per-solve median.
Figure 29. Time to first answer for a one-off run: setup (parse/import/thermo load) stacked with the cold first solve. For NPSS the cold first solve equals its cold-reset per-solve median.
Figure 30. pyCycle cold-first-solve vs steady-state vs warm re-solve (log y). The cold first solve is ~4-6x the steady-state solve (one-time JIT / derivative coloring), and warm re-solves are cheapest.
Figure 30. pyCycle cold-first-solve vs steady-state vs warm re-solve (log y). The cold first solve is ~4-6x the steady-state solve (one-time JIT / derivative coloring), and warm re-solves are cheapest.
Figure 31. Within NPSS, all four packages: (a) per-iteration thermo cost (log) shows a ~178x fast/slow split and (b) per-solve median. Fast: GasTbl/allFuel; slow: Janaf/CEA. allFuel = CEA-accuracy at GasTbl-speed.
Figure 31. Within NPSS, all four packages: (a) per-iteration thermo cost (log) shows a ~178x fast/slow split and (b) per-solve median. Fast: GasTbl/allFuel; slow: Janaf/CEA. allFuel = CEA-accuracy at GasTbl-speed.
Caveats. Benchmark machine was shared/loaded; pyCycle run-to-run spread 40–59% vs ≤6% for NPSS — use min as robust estimator. Tolerance definitions differ: NPSS fractional residual <10−4, pyCycle Newton L2 <10−6. An NPSS iteration ≠ a pyCycle Newton iteration. pyCycle's warm re-solve (437 ms, 1 iter) actually beats NPSS-CEA (625 ms, 7 iter) from a good seed.

Robustness summary

Overall robustness is high across all configurations — as expected for this simple single-spool turbojet model. The cycle is low-complexity (no bleeds, no cooling, single shaft), so convergence is straightforward. The one exception is the envelope edge where pyCycle-CEA's equilibrium solver struggled.

ConfigurationDesign-pt runtimeDesign-pt itersSweep pts convergedSweep total runtime
pyCycle CEA4.6458 s422 / 23172.37 s
pyCycle TABULAR1.2247 s423 / 2349.04 s
NPSS CEA2.0482 s2223 / 2312.81 s
NPSS GasTbl0.3567 s2423 / 230.24 s
NPSS Janaf1.6532 s1923 / 239.56 s
NPSS allFuel0.3430 s220 / 00.00 s

Every NPSS configuration converged at every design and off-design point. pyCycle-TABULAR likewise converged everywhere. pyCycle-CEA failed only at the one envelope corner (alt 25,000 ft, MN 0.8), hitting maxiter — a real but isolated robustness difference for the equilibrium solver at the envelope edge.