rockmoc: an open-source Python library for method-of-characteristics rocket nozzle design, verified against analytic data and OpenFOAM
We describe rockmoc, an open-source Python library that designs supersonic rocket nozzles with the method of characteristics (MOC) and reports their performance. It generates minimum-length (MLN), ideal, truncated-ideal (TIC), Rao thrust-optimised parabola (TOP) and control-surface (TOC), conical, planar and annular aerospike contours; supports perfect-gas, variable-γ and CEA-derived thermochemistry; starts the calculation from Sauer, Hall, Kliegel–Levine or Euler transonic throat solutions; and corrects walls and thrust for a compressible integral boundary layer. We verify the equations against tabulated gas-dynamic data (43 deep-validation cases, 74 gated comparisons with published nozzle data) and validate the design and performance predictions against 45 axisymmetric OpenFOAM rhoCentralFoam simulations plus four aerospike cases. After fixes made from the CFD evidence, the predicted vacuum specific impulse lies within ±0.25 % of the CFD in 36 of 37 comparable cases (largest difference +0.39 %), and 291 of 333 gated checks pass. We report the remaining 42 failures and their causes, including first-order convergence of the characteristic net, a 6.8 % error in the earlier fixed-wall aerospike off-design model, and a CFD-side boundary-layer limit. The package also contains newer extensions (oblique and conical shocks, mixed-compression inlets, shock-cell jet maps) whose validation is much thinner and is presented as such. The test suite has 176 passing tests. The code is MIT licensed.
Authors
- Shanthosh KV (ORCID: https://orcid.org/0009-0009-8533-7131)
Institutions
- R.V. College of Engineering (IN)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-24
- DOI
- https://doi.org/10.5281/zenodo.24497815
- Primary Topic
- Rocket and propulsion systems research
- Type
- preprint