rust-roche is a translation of Tom Marsh's C++ cpp-roche package for modelling Roche-distorted binary systems. It also has a few useful functions and types from cpp-subs such as Vec3 and Point.
The latest version of rust-roche can be viewed at rust-roche and can be added to a rust project with
cargo add rust-roche
This package has also been wrapped for python to replicate trm-roche and can be installed with pip from PyPI
pip install roche
This is very much a first go at it. Most functions have been tested against their trm.roche counterparts however not all functions have been tested as of yet and some bugs may remain. Please add an issue on the Github repo if you find any.
Some functions from cpp-roche/trm-roche have not been translated yet so this is still a work-in-progress. Please add an issue on the Github repo if there's a specific function from cpp-roche/trm-roche that you'd like adding.
Functions still to add for Python are:
- astream
- pvstream
- qirbs
Functions still to add for Rust are:
- third_contact
- fourth_contact
- eprob
- flobe1
- hits
- irrad
- rdot
- rlobe_eggleton