AeroFlowSim
Mission
AeroFlowSim is a free, open-source CFD software for nozzle aerodynamics and propulsion, with a built-in GUI. Anyone - students, CubeSat teams, researchers, engineers - can set up, mesh, solve and analyse their own cases in one install, and trust the results, because the software checks its own validity and is validated against published benchmarks. Others can extend it, and publish work done with it.
Release claim: "A GUI-first, open-source CFD solver for nozzle and propulsion aerodynamics, with built-in validity checks and published validation."
Status
Version 0.4.1 (1 December 2026). Inputs, file formats and results may still change between versions. Installers for Windows, macOS (Apple silicon and Intel) and Linux: GitHub releases (see Install). Step-by-step manual with pictures: docs/manual/AeroFlowSim_0.4.0_manual.pdf. User guide: docs/user_guide.md. What changed: CHANGELOG.md and the release notes docs/release_notes_next.md.
Correction to 0.3.0. The 0.3.0 release was described as a "full 3D release" with "3D completeness". That was not true: at that time four 3D validation cases failed and the 3D Results, geometry and mesh-import steps were well below the 2D standard (docs/audit_3d_vs_2d.md). This release brings 3D Euler (inviscid) to the 2D standard. 3D turbulence (Spalart-Allmaras and k-omega SST on 3D meshes) is not validated yet and comes in a later release.
What works now
| Template | Physics | Validated against |
|---|---|---|
nozzle_axi |
2D axisymmetric Euler flow through a converging-diverging nozzle (conical, rounded throat, or CSV wall); thrust, Isp, Cf, Cd | quasi-1D theory; Back, Massier and Gier (1964) measured wall pressures; laminar CubeSat nozzle Re scaling |
external_2d |
2D / axisymmetric flow round a body (shape library: wedge, diamond, NACA 4/5-digit, cylinder, cones, ...); Cl, Cd, Cm, Cp | oblique shocks, shock-expansion theory, Taylor-Maccoll cones, Mach 6 cylinder, Vassberg and Jameson (2010) NACA 0012 |
geometry_2d |
your own 2D geometry from the geometry workspace, internal or external flow | Prandtl-Meyer expansion |
nozzle_3d |
3D Euler flow through a revolved nozzle (quarter or full, optional plume zone); tetrahedra + prism layers, or a blocked hexahedral O-grid | the axisymmetric nozzle on the same contour (mass flow, thrust, Isp); laminar 3D CubeSat nozzle |
external_3d |
3D Euler flow round a body (sphere, cylinder, nose cone, box, or your own STEP / IGES solid); forces, Cd, Cl, Cy, moments, Cp | Taylor-Maccoll cone, Mach 3 sphere (exact stagnation values, Van Dyke and Gordon stand-off), ONERA M6 wing (measured Cp), ramp on tetrahedra vs hexahedra |
imported_mesh |
2D or 3D Euler on a mesh made elsewhere (Gmsh, SU2, CGNS, Fluent ASCII) with a boundary-type table | uses the same solver as above |
sod_shock_tube, quasi1d_nozzle, demo_heat1d |
1D / quasi-1D | exact Riemann solution, isentropic and normal-shock theory |
- Verification: Method of Manufactured Solutions: 2D second order (1.98-2.02) on quads, distorted quads, triangles and mixed meshes, planar and axisymmetric; 3D 1.97 (hexahedra), 1.87 (prisms), 1.75 (tetrahedra); laminar Navier-Stokes terms 1.74-2.06. GCI tool for mesh studies.
- Desktop GUI (Qt + VTK): Geometry -> Mesh -> Setup -> Run -> Results with a workflow strip, projects, undo/redo, units, light/dark theme; CAD-like 2D geometry workspace; 3D geometry workspace (primitives, STEP / IGES, sketch on a plane with constraints, revolve / extrude, booleans, fillet, chamfer, shell, pattern, measure, face names, zones); structured multi-block hexahedral meshing (sphere / cone O-grids, nozzle butterfly O-grid, wing C-grid).
- Post-processing at Fluent level, the same in 2D and 3D: contours, contour lines, vectors, streamlines, mirror and 3D revolved views, linked views, surfaces (in 3D: planes, iso-surfaces, clips, lines, points), integrals, flux balance, forces, report definitions as live monitors and convergence criteria, XY plots with reference data, snapshots and differences, custom field functions, animation, exports (CSV, VTU, Tecplot), automatic HTML/PDF report.
- Validity checks after every run; validation report validation/report.md (quick set on every push, full set weekly).
- Command line and scripting with the same engine as the GUI (
python -m aeroflowsim run | report | export | snapshot,aeroflowsim.post). - Equations and methods: docs/theory_manual.md; tutorials in docs/tutorials.
3D: what it does and what it does not (yet)
3D does: inviscid (Euler) steady flow on tetrahedra, prisms, pyramids and hexahedra, with every boundary condition of 2D, local time stepping and implicit LU-SGS, several cell zones, and the full Results workspace. Laminar Navier-Stokes runs in 3D; one 3D laminar case is validated (the CubeSat nozzle with prism layers).
3D does not (yet):
- Turbulence in 3D (Spalart-Allmaras, k-omega SST): not validated in 3D (only the 2D NASA TMR flat plate is). It comes in a later release, after an extruded flat plate and ONERA M6 with Spalart-Allmaras pass.
- Strong shocks on plain fine tetrahedra can go unstable or sit too far from the body (about 5 % for a blunt body): use prism layers that reach past the bow shock, or a blocked hexahedral mesh. There is no automatic suggestion for this yet.
- Prism layers fail at sharp tips (a clear message is given); sliver tetrahedra can appear at a cone tip.
- Fluent mesh export, binary Fluent and polyhedral meshes; a draft on a face of an existing body, an offset of a whole body.
- Low-Mach preconditioning (also not in 2D); large 3D runs take hours and about 4 GB per million cells.
- Opening a large 3D result is slow and memory-hungry (about 3 s and 1.6 GB for 239,000 cells).
Full list: docs/gap_register.md and docs/audit_3d_vs_2d.md.
Validation summary
From validation/report.md (full set, 30 Nov 2026): 37 of 37 cases pass; overall PASS. Seven rows are explained shortfalls (listed below): a miss whose cause has been diagnosed, written next to it.
| Case | Key result | Verdict |
|---|---|---|
| 10 deg cone, Mach 2, 3D Euler vs Taylor-Maccoll | shock angle 31.95 vs 31.21 deg (2.37 %, tol 3 %); Cp 1.45 % (tol 2 %) | PASS |
| Sphere, Mach 3, 3D Euler, shock-aligned prism layers | stagnation pressure 0.59 %, entropy 0.59 %, stand-off 0.2154 R vs 0.213 R (Van Dyke and Gordon, 1.14 %, tol 3.2 %) | PASS |
| 30 deg ramp, Mach 2, tetrahedra vs hexahedra | stand-off ratio 1.018 (tol 2 %) | PASS |
| N2 nozzle in 3D (quarter) vs axisymmetric | mass flow 0.52 %, thrust 0.24 %, Isp 0.28 % | PASS |
| N2 nozzle on a blocked 3D O-grid vs extrapolated axisymmetric | mass flow 1.12 %, thrust 1.01 % (tol 2.5 %), Isp 0.11 % (tol 0.5 %) | PASS |
| ONERA M6 wing, M 0.8395, 3.06 deg, 3D Euler vs measured Cp | mean RMS(Delta Cp) over six sections 0.0945 (limit 0.10); section 5 alone is 0.122 | PASS |
| 3D CubeSat nozzle, laminar, prism layers vs axisymmetric laminar | Cd 1.15 %, Isp 0.33 % | PASS |
| MMS 3D Euler | order 1.97 / 1.87 / 1.75 (hex / prism / tet) | PASS |
| TMR 2D turbulent flat plate (SA, SST) | Cf 0.64 % (SA), 0.99 % (SST), tol 1 % | PASS (2D only) |
| Cylinder, Mach 3, 2D Euler on triangles vs Billig | stand-off 0.7028 R vs 0.6485 R (8.36 %, tol 5 %); the converged inviscid answer is 0.698 R, 7.6 % above Billig's experimental correlation | explained SHORTFALL |
| ONERA M6 on the new structured C-grid (study, not yet registered) | CL mesh-converged (order 2.4, GCI 0.47 %); mean Cp RMS 0.076 / 0.080 / 0.090 on three meshes (limit 0.10) | study |
Explained shortfalls: Back-Massier-Gier wall pressure at z = 2.239 in (7.85 %, tol 3.46 %; cause not resolved); laminar CubeSat nozzle (1 - Cd) Re scaling (a flaw of the pre-registered metric); laminar square duct (four rows, 1.7-3.9 % vs tol 1 %; cause not yet found). ONERA M6 with Spalart-Allmaras was not run. All other cases (Sod, quasi-1D, wedge, diamond, 15 deg cone, Prandtl-Meyer, Mach 6 cylinder, NACA 0012, N2 nozzle, Blasius, Couette, Poiseuille, Re 40 cylinder, Mach 2 heated plate, geometry and mesh cases) pass.
Use it with an AI assistant (optional)
Works with any AI app that supports MCP (Claude, VS Code / GitHub Copilot, Cursor, Windsurf and others): set-up in
Tools > Use with AI assistants. The .mcpb files on the release page are a one-click shortcut for Claude Desktop
only.
Ask an AI assistant in plain English, for example "thrust and Isp of an N2 thruster, 5 bar, 1 mm throat, area ratio 25": it sets up, meshes, checks, runs and reports the project through the same input checks, solver and validity checks as the GUI, and reports the software's own verdict. AeroFlowSim speaks MCP (Model Context Protocol), the open standard for connecting AI apps to tools, so it works with any AI app that supports MCP servers on your computer: for example Claude (desktop app, Claude Code), VS Code with GitHub Copilot, Cursor and Windsurf. (Tested: Claude. AI chats in a web browser cannot start a program on your computer.)
Set-up: install AeroFlowSim, open Tools > Use with AI assistants, tick Allow AI connector and copy the text of your app's tab (Claude, VS Code, Cursor, Windsurf, Claude Code, other MCP apps). For Claude there is a button that makes a plugin file to upload (Add to Claude).
It is local only (stdio, no network port), works only inside one workspace folder, never deletes anything and asks
before long runs; the same rules and the template guide are sent to every AI app by the server itself. From source:
pip install -e ".[ai]", python -m aeroflowsim mcp. Details and the privacy table:
docs/user_guide.md ("Using AeroFlowSim with AI assistants"); privacy: PRIVACY.md.
Install
Most people: download the installer. Nothing else is needed (no Python, no Git, no terminal).
- Open the latest release and download the file for
your computer:
- Windows:
AeroFlowSim-0.4.1-setup.exe - macOS:
AeroFlowSim-0.4.1-macOS-arm64.dmg(Apple silicon) or...-macOS-x86_64.dmg(Intel) - Linux:
AeroFlowSim-0.4.1-x86_64.AppImage
- Windows:
- Windows: double-click the
.exe. The installer is not signed yet, so Windows may say "Windows protected your PC": click More info, then Run anyway. It installs for your user only (no administrator rights) and adds AeroFlowSim to the Start menu. macOS: open the.dmg, drag AeroFlowSim to Applications, and the first time right-click it and choose Open. Linux:chmod +x AeroFlowSim-*.AppImage, then run it. - Start AeroFlowSim and follow the step-by-step manual.
Want to change the code itself (Python)? See CONTRIBUTING.md for installing from source.
Start the GUI
Installed with the installer: start AeroFlowSim from the Start menu (Windows), Applications (macOS) or the AppImage
(Linux). From source: python -m aeroflowsim gui.
The desktop GUI opens; optionally add a project folder (<name>.afsproj) to open it. It makes no network
connections. The old browser GUI (Streamlit, python -m streamlit run app.py) still works and listens only on your
own computer, but it will be removed once the desktop GUI has full parity.
Command line and scripts
python -m aeroflowsim list
python -m aeroflowsim run cases/quasi1d_nozzle
python -m aeroflowsim run cases/quasi1d_nozzle --set p_back=250000 --set n_cells=400
Results (CSV, YAML summary, PNG plots) are written to results/<case_name>/.
From a Python script:
import aeroflowsim
out = aeroflowsim.run_case("cases/quasi1d_nozzle", {"p_back": 2.5e5, "max_iter": 30000})
print(out.result.key_numbers["x_shock"]) # (value, unit)
for check in out.checks:
print(check.level, check.message)
Tests and validation
Fast tests (a few minutes):
python -m pytest
Validation tests (slow: complete cases compared with published reference values):
python -m pytest -m validation
Run all validation cases and write validation/report.md (pass/fail table):
python validation/run_all.py
Tests run automatically on GitHub (Windows, Ubuntu and macOS) for every push and pull request
(.github/workflows/tests.yml).
Roadmap
- Done: 2D / axisymmetric Euler with validation; speed (Numba, multi-core, implicit LU-SGS); laminar Navier-Stokes and 2D turbulence (SA, SST); 3D geometry, meshing (tetrahedra, prism layers, structured blocking) and 3D Euler at the 2D standard (this release).
- Next: 3D turbulence validation (extruded flat plate, ONERA M6 with Spalart-Allmaras); low-Mach preconditioning; adaptive mesh refinement; parametric studies; unsteady flow.
- Later: real gas, multi-species and combustion, surrogate models and shape optimisation, GPU, Zenodo DOI, JOSS paper. Details: docs/roadmap/README.md.
Contributing
New cases, shapes and gases are welcome - see CONTRIBUTING.md.
Licence
AeroFlowSim is free software: you can redistribute it and/or modify it under the terms of the
GNU General Public License as published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version (GPL-3.0-or-later). See LICENSE.
It is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY.
How to cite
If you use AeroFlowSim in your work, please cite it (details in CITATION.cff; GitHub shows a "Cite this repository" button for it). A DOI will follow with the first release.
Mehta, D. (2026). AeroFlowSim (version 0.4.1) [Computer software].
Metadata
Release files for aeroflowsim 0.4.1
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 |
|---|---|---|---|---|
| aeroflowsim-0.4.1.tar.gz | 26.5 MB | With provenance | Details for aeroflowsim-0.4.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aeroflowsim-0.4.1-py3-none-any.whl | Python 3 | none | any | Details for aeroflowsim-0.4.1-py3-none-any.whl |
Total release size: 53.1 MB
Release files / aeroflowsim-0.4.1.tar.gz
| Download URL | aeroflowsim-0.4.1.tar.gz |
|---|---|
| Size | 26.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
25d92c9a904acc6491b79fd3931db0bdae90c9fe09cbc0074a94267630911fec
|
|
BLAKE2b-256 checksum How to use checksums |
6760c5b8b78a63eb37f8e84562b6142d0aa6ec523315812d1f2f801fd6143bbe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 30, 2026.
Transparency logRelease files / aeroflowsim-0.4.1-py3-none-any.whl
| Download URL | aeroflowsim-0.4.1-py3-none-any.whl |
|---|---|
| Size | 26.5 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4a11ddfdfc4cc93f75cf7c37512d4385f38930a8a07a6b4b77026335b577de62
|
|
BLAKE2b-256 checksum How to use checksums |
e1b0e2930ec8675328294a5771bd0e4ef1958db64c6dcb291a6a22dcfac15c79
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 30, 2026.
Transparency logSecurity for aeroflowsim 0.4.1
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for aeroflowsim-0.4.1.tar.gz
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 Nov 30, 2026.
Transparency logA 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.