Pyskyfire is a simulation framework for regeneratively cooled, liquid propellant rocket engines.
Model thrust-chamber thermodynamics, cooling channels, engine cycles, and get interactive engineering reports from a unified Python interface.
Documentation · Quick Start · PyPI
RL10A-3-3A thrust chamber reconstructed in Pyskyfire. 180 long tubes (red) run the
full chamber and throat; 180 short tubes (dark) start at the nozzle interlacing manifold.
Downstream of it the two sets alternate to give 360 passages, while only the long tubes
remain upstream.
Open the interactive model to rotate, pan, and zoom it yourself.
Description
Pyskyfire is an open-source Python package, meant as an alternative to RPA, NPSS, ESPSS and other regenerative cooling and engine cycle analysis software. The solver produces regenerative cooling and engine cycle results. Compare NASA and Pratt & Whitney with Pyskyfire in this RL10 case:
Open the interactive chart · Read the full RL10A-3-3A validation report
The first iteration of pyskyfire was written as part of the master's thesis of Ask Haugerud Hovik. Read my thesis. The motivation to start writing the software came purely from a curiosity standpoint and from an innate wish to spread the understanding of rocket engines and propel us further into the space age. Please use this software responsibly and make sure you, your team members and everyone else stay safe in your rocket engine endeavours.
Program Capabilities
- Full engine cycle solution, with pumps, turbines and regenerative cooling.
- Chemical-equilibrium and hot-gas property calculations
- Rao nozzle and combustion-chamber contour generation
- Multi-pass regenerative-cooling analysis
- Configurable channel geometry and wall materials
- Interactive 3D visualizations and HTML engineering reports
- Validation cases based on published engine data
- View the full overview of the capabilities of pyskyfire.
Documentation
Documentation for the project is available, and written in a pedagogic style using the Diátaxis framework.
Installation
The core package is available on PyPI and can be installed without the optional visualisation dependencies:
uv pip install pyskyfire
To include the interactive plots, 3D visualisations, and HTML reports, install the viz extra:
uv pip install "pyskyfire[viz]"
Impeller and turbine blade geometry is drawn with pyTurbo Aero, installed by the impeller and turbine extras.
Using uv pip and not plain pip is optional. For the bleeding edge version, clone the repository and install the development environment. This includes the visualisation, test, and documentation dependencies. For example:
uv sync
Using the package
What is it like to use the package? Pyskyfire is an object-oriented library, so using it means creating a lot of objects and putting them together, for example:
import numpy as np
import pyskyfire as psf
# A fluid definition and its CoolProp-backed property model.
coolant = psf.thermo.Fluid(type="fuel", propellants=["ethanol"], fractions=[1.0])
coolant_transport = psf.thermo.FluidTransport(coolant)
# A wall, a channel cross section, and how the channels wrap the contour.
wall = psf.regen.Wall(material=psf.common.solids.StainlessSteel304, thickness=0.5e-3)
cross_section = psf.regen.CrossSectionSquared(rib_width=1.0e-3)
placement = psf.regen.SurfacePlacement(
n_channel_positions=60,
helix_angle=lambda: np.radians(45),
)
# One regenerative cooling circuit, running from the nozzle exit to the injector.
cooling_circuit = psf.regen.CoolingCircuit(
name="Cooling Pass",
contour=contour, # from psf.regen.contour.generate_contour(...)
coolant_transport=coolant_transport, # CoolProp-backed coolant properties
cross_section=cross_section,
span=[1.0, -1.0],
placement=placement,
walls=[wall],
roughness=10e-6,
channel_height=lambda x: 2e-3,
)
# The thrust chamber ties geometry, hot-gas properties, and cooling circuits together.
thrust_chamber = psf.regen.ThrustChamber(
contour=contour,
combustion_transport=aerothermodynamics, # from psf.thermo.Aerothermodynamics
cooling_circuits=[cooling_circuit],
n_nodes=150,
)
Then this object can be used in a variety of ways. For the thrust chamber we created above, for example:
# Solve the coupled hot-gas, wall, and coolant problem along the circuit.
boundary_conditions = psf.regen.BoundaryConditions(
T_coolant_in=273.15,
p_coolant_in=23e5,
mdot_coolant=aerothermodynamics.mdot_fu,
)
cooling_data = psf.regen.coupled_steady_heating_analysis(
thrust_chamber,
nodes=100,
circuit_index=0,
boundary_conditions=boundary_conditions,
)
# Plot a single result...
psf.viz.PlotWallTemperature(
cooling_data, plot_hot=True, plot_coolant_wall=True
).save_html("wall-temperature.html")
# ...or collect several into one standalone, interactive HTML report.
report = psf.viz.Report("Minimal Engine")
tab = report.add_tab("Cooling Data")
tab.add_figure(psf.viz.PlotHeatFlux(cooling_data))
tab.add_figure(psf.viz.PlotCoolantTemperature(cooling_data))
report.save_html("engine-report.html")
Look in the documentation to get started with pyskyfire.
Thermo migration (unreleased)
Fluid definitions, transport properties, fluid-state resolution, and combustion
models now live in pyskyfire.thermo. Update imports to the new names; no
backwards aliases are provided. Old stored pickle files may require regenerating
because the modules and class names have changed; compatibility is not guaranteed.
See the migration details.
Contributing
Pyskyfire began as my master's thesis and is now developed in the open. I would like it to become something students and professionals build together, and I am happy to help contributors who are new to propulsion, to open source, or to both.
CONTRIBUTING.md covers development setup, testing, and the pull-request process. For anything substantial, please open an issue first so the approach can be discussed — and if you would rather talk it through before writing any code, that is welcome too.
Metadata
Release files for pyskyfire 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyskyfire-0.4.0.tar.gz | 756.8 kB | Without provenance | Details for pyskyfire-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyskyfire-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for pyskyfire-0.4.0-py3-none-any.whl |
Total release size: 1.6 MB
Release files / pyskyfire-0.4.0.tar.gz
| Download URL | pyskyfire-0.4.0.tar.gz |
|---|---|
| Size | 756.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b9fef02a2f13b486d70e948361a0783ababbf24cf0cd026534e2556d5a0ddeae
|
|
BLAKE2b-256 checksum How to use checksums |
d75b2560e6430e78435ca62a6026e305979b1a8af76cd6e866ed0c4a2416c91b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"44","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / pyskyfire-0.4.0-py3-none-any.whl
| Download URL | pyskyfire-0.4.0-py3-none-any.whl |
|---|---|
| Size | 807.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8a4a828e930107e79b66dd10cb4137cfc017b621a6d5d084ea8f713beb3ef2da
|
|
BLAKE2b-256 checksum How to use checksums |
9bc6c3af8eabc63c033d5460be80156d1caa258ad1904d76af6e718de013d7c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"44","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for pyskyfire 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.