gabrielfougeron / choreo

Finds periodic solutions to the N-body problem
https://gabrielfougeron.github.io/choreo/
BSD 2-Clause "Simplified" License
4 stars 1 forks source link

choreo

Finds periodic solutions to the gravitational N-body problem.

Try out this project, no installation required!

Check out the online in-browser GUI: https://gabrielfougeron.github.io/choreo/

Install the package with pip

The package is not available on PyPA yet, but will be in the future. Till then, the installation process is the following:

Build wheel for pyodide

After sourcing emsdk environment, run the following:

pyodide build && cp ./dist/choreo-1.0.0-cp312-cp312-pyodide_2024_0_wasm32.whl ./choreo_GUI/python_dist/choreo-1.0.0-cp312-cp312-pyodide_2024_0_wasm32.whl

Power up the GUI solver with the CLI backend

Using clang or gcc as a C compiler, the single-threaded CLI solver is about 3 times faster that the wasm in-browser GUI solver. In addition, several independent single-threaded solvers can be launched simultaneously using a single command.

To use the CLI backend, follow these steps:

Online documentation

Available at: https://gabrielfougeron.github.io/choreo-docs/