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

Terminal visualisation GIF 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.3.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.3-py3-none-any.whl (33.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: trisolaris-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 54cbd637d34363e185311ef7634f61569f0ddd4d8571094c1f328f0cff250f60
MD5 574b3b481aa384a4dd434a2e8bdee38d
BLAKE2b-256 89f8a7fb707721e53a97dcde4d191aa18fc30a719eaf505eb90e8b4c136ad68c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: trisolaris-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8a2488e0c17a5e4c74c386f91a1e5a2f997028015fcbe2b402872d1ad5562359
MD5 c585a1b8d5791bdb0e97ec856fa34e6e
BLAKE2b-256 806606617ddb0bbd8954a372b8c859ceba4c6287b2db63d2a7bae5032c693381

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