Skip to content

Alex-J-Brown/rust-roche

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyPi version crates.io

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.

Rust

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

Python

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

About

A Rust translation of useful routines from Tom Marsh's cpp-roche and cpp-subs, wrapped for python

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages