Skip to main content

EnSim

Liquid rocket engine analysis and six-degree-of-freedom flight simulation, as a desktop application and a Python library.

CI PyPI Python License

EnSim, engine performance

Pick two propellants, a mixture ratio and a chamber pressure. EnSim finds the chamber equilibrium, expands the gas through the nozzle and gives you Isp, thrust and the composition of the exhaust, matching NASA CEA to within 0.05 %. From there you can draw and cool the chamber, put the engine in a rocket, fly it from the rail to landing and scatter a few hundred flights to see where it comes down.

Documentation: https://spaceengineerss.github.io/EnSim/

Install

The desktop application:

$ pip install "ensim[gui]"
$ ensim

or a self-contained download for Windows, macOS and Linux from the releases page.

The library and the command line only, without Qt:

$ pip install ensim
$ ensim engine --fuel LCH4 --of 3.4 --pc 100 --eps 35 --throat-area 200

Python 3.10 or newer.

In Python

from ensim.core.engine import EngineInputs, analyze_engine

engine = analyze_engine(EngineInputs(
    fuel="LCH4", oxidizer="LOX", of_ratio=3.4,
    chamber_pressure=100e5, expansion_ratio=35, throat_area=0.02,
))
engine.chamber_temperature                 # 3598.0 K
engine.vacuum.isp, engine.sea_level.isp    # 337.7 s, 272.2 s
engine.vacuum.thrust                       # 366.0 kN

Flights, dispersion studies, staging and the lower-level solvers are covered in the library guide.

What is inside

Chamber Gibbs minimisation over the NASA Glenn species set, propellants in their storage state
Nozzle Frozen isentrope with temperature-dependent heat capacity, divergence and efficiency losses, off-design back pressure
Chamber contour Cylinder from L*, conical convergence, 80 % bell; CSV and STL export
Cooling Bartz gas side, Gnielinski coolant side, wall temperature and pressure drop along the contour
Acoustics Longitudinal, tangential and radial chamber modes; chug estimate
Vehicle Barrowman centre of pressure, stability margin through the burn, multi-stage sizing
Flight 6-DOF rigid body, RK4 or Dormand–Prince, US Standard Atmosphere 1976, wind profile, optional WGS-84/J2 rotating Earth, dual-deploy recovery
Studies Parametric sweeps, nozzle and design-point optimisation, gravity-turn ascent, engine uncertainty, Monte Carlo landing dispersion, planar MOC nozzle

How far to trust it

Engine numbers are checked against NASA CEA 3.3.2 on every commit, and the flight model against two NASA NESC check cases. Neither the cooling model nor the aerodynamics has been compared with hardware. The validation and model limitations pages say exactly what has and has not been checked. EnSim is for design studies and teaching, not for certifying hardware.

Moving from 3.x

Projects open unchanged, but propellants now enter the chamber as liquids and several flight and staging errors were fixed, so results move. See Moving to 4.0 and the changelog.

Development

$ git clone https://github.com/SpaceEngineerSS/EnSim.git
$ cd EnSim
$ pip install -e ".[all]"
$ pytest
$ ruff check . && ruff format --check .
$ mkdocs serve

CONTRIBUTING.md explains the layout of the code and what a change needs before it is merged; ARCHITECTURE.md describes how the pieces fit.

Bug reports and challenges to the physics are welcome in the issue tracker. Please include the inputs, units and, for a physics question, the reference you compare with.

Licence

MIT. The bundled IBM Plex fonts are under the SIL Open Font License (src/ensim/assets/fonts/OFL.txt).

Metadata

Release files for ensim 4.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ensim 4.0.0
File Size Uploaded
ensim-4.0.0.tar.gz 640.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ensim 4.0.0
File Interpreter ABI Platform
ensim-4.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 1.3 MB

Release files / ensim-4.0.0.tar.gz

Download URL ensim-4.0.0.tar.gz
Size 640.1 kB
Tags Source
SHA-256 checksum
How to use checksums
cd6d7a9ad4be105cbb513ce6781acaf1e7509b4bfe487ea71731f865aa3991f2
BLAKE2b-256 checksum
How to use checksums
d60a0347ed8a564ade59d255130c6a0cf6fd397452e15a791121f82b0a00fa40
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.

Transparency log

Release files / ensim-4.0.0-py3-none-any.whl

Download URL ensim-4.0.0-py3-none-any.whl
Size 673.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7886f4b5f1ed1803721d9d21f111a0e8092c3a2a2f82d3369fbaa62882cde065
BLAKE2b-256 checksum
How to use checksums
3a3827163f322a2548051e1619c075c193224c30d05e94f2c2310144c3e236e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

4.0.0 This release

2 release files

3.0.1

2 release files

3.0.0

2 release files

2.0.0

2 release files

1.0.2

2 release files

1.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page