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:
- Why this is a worthwhile project — what the genuine gaps are in existing tooling, and whether a new package is actually justified.
- Julia is actually the right tool for this. Potentially. Some early tests need to be done to establish this.
- Scope — what the first steps should be versus the final goal, and how to keep v0.1 deliberately narrow (single-spool turbojet, delegated thermo) so the prototype stays simple.
- Decision-gating — how to systematically gate the process so I commit to a direction only after a prototype answers a specific question, rather than building everything speculatively.
- Tool choice — how to build initial prototypes that test whether ModelingToolkit (a large Julia package) is the right backbone here, or whether a lighter-weight approach to the nonlinear solve is more appropriate.
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:
- 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.
- 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):
| Configuration | Design-pt runtime | Design-pt iters |
|---|---|---|
| pyCycle CEA | 4.65 s | 4 |
| pyCycle TABULAR | 1.22 s | 4 |
| NPSS CEA | 2.05 s | 22 |
| NPSS GasTbl | 0.36 s | 24 |
| NPSS Janaf | 1.65 s | 19 |
| NPSS allFuel | 0.34 s | 22 |
Off-design (12-point timed throttle line, all configs 12/12 converged):
- Per off-design solve, NPSS-allFuel is ~599–2527x faster than pyCycle-CEA (sub-ms vs ~1–2 s).
Robustness:
- Every NPSS configuration converged at every design and off-design point.
- pyCycle-CEA failed to converge at the envelope corner (alt = 25,000 ft, MN = 0.8), hitting maxiter.
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.