Prashanth · research log
← Log

Week 1

Scoping and critical thinking (LLM-assisted)

I started by having a long discussion with Claude to understand the problem space and refine my own thinking (some of this was more than a month ago). I used a structured “grill me” interview process to pressure-test the idea rather than just collect agreement. This pushed me to nail down several things:

The discussion in particular forced me to think critically about scope discipline and about how to evidence the tooling decision instead of assuming it.

Profiling NPSS and pyCycle

June 7th 2026

The next thing I did was systematically profile both NPSS and pyCycle on an identical single-spool turbojet (sea-level static, component performance and design drivers pinned identically across both tools) to isolate the thermodynamic package and the solver behavior.1 Six (tool, thermo package) configurations were tested: pyCycle in CEA and TABULAR; NPSS in GasTbl, Janaf, CEA, and allFuel. The cycle and design point are pinned identically — every remaining difference isolates the thermodynamic property package. Full details are in baseline_performance_report.html. Two interesting things were revealed:

  1. pyCycle’s analytical gradients give excellent convergence. It reaches the design point in only ~4 Newton iterations, versus ~19–24 iterations for the NPSS packages.
  2. But OpenMDAO/Python overhead makes each pyCycle iteration very slow. Per iteration, pyCycle is far more expensive than NPSS, so the iteration-count advantage is more than erased by per-iteration cost.

This immediately tells me that there is a gap that we can satisfy. If we had analytical derivatives or AD, we can get the iteration speed of NPSS and the convergence speed of pyCycle.

Selected numbers from the benchmark

Design-point convergence (identical pinned cycle):

ConfigurationDesign-pt runtimeDesign-pt iters
pyCycle CEA4.65 s4
pyCycle TABULAR1.22 s4
NPSS CEA2.05 s22
NPSS GasTbl0.36 s24
NPSS Janaf1.65 s19
NPSS allFuel0.34 s22
2026-07-09T19:00:07.169879 image/svg+xml Matplotlib v3.11.0, https://matplotlib.org/ 1 ms 10 ms 100 ms 1 s 10 s NPSS allFuel NPSS GasTbl pyCycle TABULAR NPSS Janaf NPSS CEA pyCycle CEA Per-solve median time — log scale 8.2 ms 10.3 ms 372 ms 1,300 ms 1,460 ms 2,100 ms 256×
Per-solve median time on a log scale. Green = NPSS allFuel (fast equilibrium); red = pyCycle. The dashed marker is the 256× gap between pyCycle-CEA and NPSS-allFuel at equivalent thermodynamic accuracy.
Key takeaway — package choice within NPSS spans a ~178× per-iteration range. This is expected because something like allFuel or GasTbl is effectively some form of look-up vs an equilibrium solver like CEA.

Off-design (12-point timed throttle line, all configs 12/12 converged):

Robustness:

Takeaway: the convergence-vs-throughput tradeoff (analytical gradients - fewer iterations, but heavy per-iteration overhead) is exactly the gap a Julia-native implementation should be able to close — cheap iterations and good gradients/convergence — which directly motivates the PowerCycles.jl design.