Tools for rocket vehicle design and analysis.
Requires a Fortran compiler for RocketCEA (NASA CEA thermochemistry).
# macOS
brew install gcc
# Linux (Debian/Ubuntu)
sudo apt-get install gfortran
# Then install
pip install rocketfrom rocket import EngineInputs, design_engine, plot_engine_dashboard
from rocket.units import kilonewtons, megapascals
# Design from propellant selection (thermochemistry auto-calculated)
inputs = EngineInputs.from_propellants(
oxidizer="LOX",
fuel="RP1",
thrust=kilonewtons(100),
chamber_pressure=megapascals(7),
mixture_ratio=2.7,
)
# Compute performance and geometry
performance, geometry = design_engine(inputs)
print(f"Isp (sea level): {performance.isp}")
print(f"Isp (vacuum): {performance.isp_vac}")
print(f"Throat diameter: {geometry.throat_diameter}")
# Visualize
plot_engine_dashboard(inputs, performance, geometry)- Type-safe: Runtime type checking with beartype
- Units handling: Built-in
Quantityclass prevents unit errors - Fast: Numba-accelerated isentropic flow calculations
- NASA CEA: Accurate thermochemistry via RocketCEA
- Visualization: Engine cross-sections, performance curves, dashboards
- Nozzle contours: Rao bell and conical nozzle generation with CSV export
rocket.engine- Engine design and performance analysisrocket.nozzle- Nozzle contour generationrocket.units- Physical quantity handling with unitsrocket.plotting- Visualization toolsrocket.propellants- NASA CEA thermochemistry integrationrocket.tanks- Propellant and tank sizing (coming soon)