Skip to main content

A highly customisable 3-body problem renderer, simulator, configuration-finder, and terminal visualiser written in Python.

Project description

TriSolaris

A command-line based 3-body problem visualiser, simulator, and renderer, with live terminal-visual modes, png-render output, or infinite brute-force configuration finder functions. Highly customisable; every aspect from masses, gravity, positions and velocities, simulation time steps, etc. can be customised with extensive CLI flags. Great as a screen saver, or for accurate (rk4) renders of three bodies.

Originally built out of a love for TUI visualisers (following cellular automaton and boid terminal braille visualisers) and inspired by the book, I stumbled upon matplotlib renders and the stupidly chaotic nature of three-body configurations, and decided to build a single tool to conquer it all; renders, live visualisations, and state/configuration finders!

To install:

pip install trisolaris

To use:

trisolaris # Default, random single render
trisolaris --initial-state ... # Custom initial state, with masses, positions, velocities
trisolaris --mode infinite # Infinite, terminal-based braille visualisation, updating live.
trisolaris -h # For more options and details, check out help menu

Live terminal visualisation Single Render

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trisolaris-0.1.2.tar.gz (45.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

trisolaris-0.1.2-py3-none-any.whl (33.1 kB view details)

Uploaded Python 3

File details

Details for the file trisolaris-0.1.2.tar.gz.

File metadata

  • Download URL: trisolaris-0.1.2.tar.gz
  • Upload date:
  • Size: 45.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for trisolaris-0.1.2.tar.gz
Algorithm Hash digest
SHA256 aa79a0849177f24206ba0de75404687e0dc824c7939d345cecfb2abe88fc456a
MD5 8ba6bbfbe84bff1e86e62372fc4f76b2
BLAKE2b-256 71819e01bde98ef39fc8f1d8f88c25bc555014dbac48dcea1492808d27fb66ee

See more details on using hashes here.

File details

Details for the file trisolaris-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: trisolaris-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 33.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for trisolaris-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6f044e47d841f0cfa7efc274b18b5a94c726415175af1d49f0092893086f8b76
MD5 d93168c24919e8c2872714caca73efe8
BLAKE2b-256 165666675608c173a91c58ffe8505ace24bc4e1c64934d487fe8c5246e13472e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page