gasdyn
Compressible inviscid flow calculator: shocks, expansions, isentropic relations. Python API, CLI, and web app.
Install
pip install gasdyn
Quick Start
import gasdyn
Run a calculator directly through its solver group:
gasdyn isentropic run --mach 2.0
gasdyn taylor-maccoll run --mach 3.0 --cone-angle 10.0
Optionally create a complete dimensional cone-edge state from an upstream FlowState while preserving the normal Taylor-Maccoll result:
pip install "gasdyn[flow-state]"
gasdyn taylor-maccoll run \
--mach 3.0 \
--cone-angle 10.0 \
--output taylor_maccoll.json \
--json \
--upstream-state flow_state.json \
--edge-state-output edge_state.json
Generate and run a config for one solver:
gasdyn taylor-maccoll init
gasdyn taylor-maccoll run
Features
- Isentropic relations: pressure, temperature, density ratios
- Normal shocks: property jumps across shocks
- Oblique shocks: deflection angle, wave angle relations
- Expansion fans: Prandtl-Meyer function
Documentation
Full documentation: https://uahypersonics.github.io/gasdyn
Code Style
This project follows established Python community conventions so that contributors can focus on the physics rather than inventing formatting rules.
| Convention | What it covers | Reference |
|---|---|---|
| PEP 8 | Code formatting, naming, whitespace | Python standard style guide |
| PEP 257 | Docstring structure (triple-quoted, imperative mood) | Python standard docstring conventions |
| Google style | Docstring sections (Args, Returns, Raises) |
Google Python style guide |
| Ruff | Automated linting and formatting | Enforces PEP 8 compliance automatically |
| typing / TYPE_CHECKING | Type hints for IDE support and static analysis | Python standard library |
Versioning & Releasing
This project uses Semantic Versioning (vMAJOR.MINOR.PATCH):
- MAJOR (
v1.0.0,v2.0.0): Breaking API changes - MINOR (
v0.3.0,v0.4.0): New features, backward-compatible - PATCH (
v0.3.1,v0.3.2): Bug fixes, minor corrections
To publish a new version to PyPI:
- Commit and push to
main - Tag and push:
git tag -a vMAJOR.MINOR.PATCH -m "Release vMAJOR.MINOR.PATCH" git push origin vMAJOR.MINOR.PATCH
The GitHub Actions workflow will automatically build and publish to PyPI via Trusted Publishing.
License
GNU General Public License v3.0 or later. See LICENSE for the complete license terms.
Metadata
Release files for gasdyn 0.2.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 | |
|---|---|---|---|---|
| gasdyn-0.2.1.tar.gz | 57.5 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gasdyn-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 114.7 kB
Release files / gasdyn-0.2.1.tar.gz
| Download URL | gasdyn-0.2.1.tar.gz |
|---|---|
| Size | 57.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c30e7a6b793cb28f91221c2b40dc77c4a17f3425bbbc3e1b196317a936cbde62
|
|
BLAKE2b-256 checksum How to use checksums |
2ccfa6809930e3f5407b3e4cb9b247ece232896fd142d5bffd78af73296d98f1
|
| 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 4, 2026.
Transparency logRelease files / gasdyn-0.2.1-py3-none-any.whl
| Download URL | gasdyn-0.2.1-py3-none-any.whl |
|---|---|
| Size | 57.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c708913f58b48e52f2877f96647b643ec87098bbb00efcc3b1a536eb6f730c48
|
|
BLAKE2b-256 checksum How to use checksums |
477d029a983a2e61dd84349ce4205c41c1cfc129b594f3027ccee190d0b0c7bf
|
| 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 4, 2026.
Transparency logSecurity for gasdyn 0.2.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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for gasdyn-0.2.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 Oct 4, 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.