Brayton cycle models built on Twine. While the models work with any fluid supported by CoolProp, the primary use case is supercritical CO₂ power cycles, based on this thesis.
Try the interactive dashboard →
Design-point solvers for the simple recuperated and recompression Brayton cycles, available as:
- Rust crate — generic cycle solver with a plain-data facade for FFI consumers
- Web dashboard — interactive, runs entirely in your browser via WASM
- Python package — pip-installable via PyO3
- Off-design models for both cycle configurations
The WASM build compiles CoolProp from source and requires the Emscripten toolchain.
Clone the CoolProp source into vendor/ (one-time setup, gitignored):
git clone https://github.com/CoolProp/CoolProp.git vendor/CoolPropThen build and serve:
COOLPROP_SOURCE_DIR=vendor/CoolProp cargo build --target wasm32-unknown-emscripten --features wasm --release
cp target/wasm32-unknown-emscripten/release/brayton.wasm web/
python3 -m http.server 8080