Skip to content

isentropic-dev/brayton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brayton Cycle Models

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 →

What's here

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

What's planned

  • Python package — pip-installable via PyO3
  • Off-design models for both cycle configurations

Development

WASM dashboard

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/CoolProp

Then 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

Open http://localhost:8080/web/.

About

Brayton cycle models

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors