Basic Usage
The solve() Function
The main entry point is solve(), which examines the parameters you provide and dispatches to the appropriate calculation.
Input Modes
| Mode | Parameters | Use Case |
|---|---|---|
| Stagnation | mach, pres_stag, temp_stag |
Wind tunnels |
| Flight | mach, altitude, atm |
Trajectory points |
| Static | mach, pres, temp |
Direct specification |
| Reynolds | mach, re1, temp |
Matching Re conditions |
See Examples for concrete usage of each mode.
Unit Support
Dimensional inputs accept (value, "unit") tuples:
| Quantity | Units |
|---|---|
| Pressure | Pa, psi, atm, bar, torr |
| Temperature | K, C, F, R |
| Length | m, ft, km, mi |
The FlowState Object
solve() returns a FlowState, a frozen dataclass with all computed properties:
Print a formatted summary:
See API Reference for the complete list of properties.
Gas and Transport Models
By default, solve() uses air with Sutherland viscosity. Use the gas parameter for other gases:
See Theory → Gas Models for available models and temperature ranges.