pystormflow
A Python interface to Stormflow, a CFD solver specialized for actuator line simulations of lifting surfaces with the Stormbird library.
Requirements
⚠️ Rust Toolchain Required
This package is distributed as source only and must be compiled during installation. You must have the Rust toolchain installed before installing this package.
Install Rust: Visit https://rust-lang.org/
Stormflow can run parts of the solver on the GPU through wgpu, which requires up-to-date graphics drivers with support for Vulkan, Metal or DirectX 12.
Installation
Once Rust is installed, install pystormflow with pip:
pip install pystormflow
Or install from source:
git clone https://github.com/NTNU-IMT/stormbird.git
cd stormbird/interfaces/pystormflow
pip install .
Use Cases
- Running actuator line simulations with Stormflow through Python scripting
- Post-processing of flow fields and sectional forces directly in Python
Implementation Details
The interface is made using PyO3. A simulation is set up from a JSON string, which can be created using Python's built-in json module for dictionaries, or using the stormbird_setup helper package. See the Stormflow README for a description of the solver and its settings.
from pystormflow import Simulation
with open("setup.json") as f:
simulation = Simulation(f.read())
simulation.do_steps_until_end_time(end_time=10.0, courant_number=0.5)
simulation.export_fields_as_vtk("fields.vtk", binary=True)
result = simulation.get_stormbird_simulation_result()
Development
For a test build using cargo:
cargo build
To build a distributable source package:
maturin sdist
Metadata
Release files for pystormflow 0.2.0
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 | |
|---|---|---|---|---|
| pystormflow-0.2.0.tar.gz | 30.9 kB | Without provenance | Details |
Release files / pystormflow-0.2.0.tar.gz
| Download URL | pystormflow-0.2.0.tar.gz |
|---|---|
| Size | 30.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0a0874872792fbbc96d52e1c0a7e2c206dcd665d79a920e3a5681a8ac8ae2d35
|
|
BLAKE2b-256 checksum How to use checksums |
04d1cc8e8fd401b099f610261f3ef60f48ee3cf5eeccd2842c4596d1f88cd369
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Security for pystormflow 0.2.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.