Lightweight utility for constructing compressible flow states and reference conditions
Project description
flow_state
Compressible flow state calculations for Python.
Install
pip install flow-state-calculator
Quick Start
from flow_state import solve
# From Mach and altitude
state = solve(mach=2.0, altitude=10000)
# From Mach and stagnation conditions (wind tunnel)
state = solve(mach=6, pres_stag=(140, "psi"), temp_stag=420)
# From Mach and target unit Reynolds number
state = solve(mach=5.3, re1=12.8e6)
# Access results
print(state) # Full summary
print(state.pres, state.temp, state.re1)
Features
- Smart solver: Automatically selects the right equations based on your inputs
- Unit support: Use SI or provide tuples like
(30000, "ft"),(140, "psi") - Atmosphere models: US Standard Atmosphere 1976 and CIRA-86
- Gas models: Perfect gas (air, nitrogen, custom)
- Transport: Sutherland viscosity law
- Output: JSON, TOML, or legacy
.datformat
CLI
# Create a config template
flow-state init
# Edit flow_config.toml, then solve
flow-state solve
Atmosphere Models
from flow_state import solve, atmosphere
# Default: US Standard Atmosphere 1976
state = solve(mach=2, altitude=10000)
# CIRA-86 with latitude and month
state = solve(mach=2, altitude=10000, atm=atmosphere.CIRA86(latitude=70, month=1))
Documentation
Full documentation: https://uahypersonics.github.io/flow_state
Citation
If you use flow_state in your research, please cite it using the "Cite this repository" button on GitHub, or:
@software{flow_state,
title = {flow_state: Compressible Flow State Calculations},
author = {Hader, Christoph},
year = {2026},
url = {https://github.com/uahypersonics/flow_state}
}
License
BSD-3-Clause. See LICENSE for details.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file flow_state_calculator-0.1.0.tar.gz.
File metadata
- Download URL: flow_state_calculator-0.1.0.tar.gz
- Upload date:
- Size: 49.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
095c2c97486788c2699cbcef3c9166856df5c91e4a9adcb096a21168b6002f82
|
|
| MD5 |
b5a80b70d739f84c5ce4f9b6d6cc16ef
|
|
| BLAKE2b-256 |
4a2e915d82ab9292a60f15a8d2141091c61a7936d7667c6aabc68d54b457657e
|
Provenance
The following attestation bundles were made for flow_state_calculator-0.1.0.tar.gz:
Publisher:
publish.yml on uahypersonics/flow_state
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
flow_state_calculator-0.1.0.tar.gz -
Subject digest:
095c2c97486788c2699cbcef3c9166856df5c91e4a9adcb096a21168b6002f82 - Sigstore transparency entry: 938940494
- Sigstore integration time:
-
Permalink:
uahypersonics/flow_state@a4d273225da1191d0b23635f34db3b5412783866 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/uahypersonics
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a4d273225da1191d0b23635f34db3b5412783866 -
Trigger Event:
push
-
Statement type:
File details
Details for the file flow_state_calculator-0.1.0-py3-none-any.whl.
File metadata
- Download URL: flow_state_calculator-0.1.0-py3-none-any.whl
- Upload date:
- Size: 46.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a5d062b97d306984b1245579c5139e232e7b959bd4c0621b05a7b31696999ea
|
|
| MD5 |
2112f91550a89ab41c596a42d7dd08a1
|
|
| BLAKE2b-256 |
b91cfad09e1a4c08b4a91797ec17145f7302607ff007ff087225bf062d0c15cc
|
Provenance
The following attestation bundles were made for flow_state_calculator-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on uahypersonics/flow_state
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
flow_state_calculator-0.1.0-py3-none-any.whl -
Subject digest:
7a5d062b97d306984b1245579c5139e232e7b959bd4c0621b05a7b31696999ea - Sigstore transparency entry: 938940505
- Sigstore integration time:
-
Permalink:
uahypersonics/flow_state@a4d273225da1191d0b23635f34db3b5412783866 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/uahypersonics
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a4d273225da1191d0b23635f34db3b5412783866 -
Trigger Event:
push
-
Statement type: