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
| Pairing | Comparison axis | NPSS / pyCycle per-solve median [ms] | NPSS faster (median) | NPSS faster (min) |
|---|---|---|---|---|
| pyCycle-CEA vs NPSS-Janaf | equilibrium, DATA-matched (both JANAF) | 1295 / 2095 | 1.6x | 1.4x |
| pyCycle-CEA vs NPSS-CEA | equilibrium, METHOD-matched (full equil.) | 1461 / 2095 | 1.4x | 1.2x |
| pyCycle-CEA vs NPSS-allFuel | equilibrium, same accuracy as CEA, fast | 8.2 / 2095 | 256x | 216x |
| pyCycle-TABULAR vs NPSS-GasTbl | tabular vs tabular | 10.3 / 372.3 | 36x | 36x |
| pyCycle-TABULAR vs NPSS-allFuel | pyCycle fast path vs NPSS fast equil. | 8.2 / 372.3 | 45x | 44x |
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.
| Configuration | Design-pt runtime | Design-pt iters | Sweep pts converged | Sweep total runtime |
|---|---|---|---|---|
| pyCycle CEA | 4.6458 s | 4 | 22 / 23 | 172.37 s |
| pyCycle TABULAR | 1.2247 s | 4 | 23 / 23 | 49.04 s |
| NPSS CEA | 2.0482 s | 22 | 23 / 23 | 12.81 s |
| NPSS GasTbl | 0.3567 s | 24 | 23 / 23 | 0.24 s |
| NPSS Janaf | 1.6532 s | 19 | 23 / 23 | 9.56 s |
| NPSS allFuel | 0.3430 s | 22 | 0 / 0 | 0.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.