N-body AstroPySolver
A program for simulating the gravitational interaction of celestial bodies in python.

Description
A program written in the python programming language to simulate the gravitational interaction of bodies using Newton’s law of universal gravitation. There are default configurations, and you can also add new and edit configurations.
Getting Started
Dependencies
- The following Python packages are required for the program to work:
numpy, math, os, yaml, decimal, datetime, shutil, argparse, matplotlib, astroquery, skyfield.
To install packages, use the command:pip install "package-name"Wherepackage-nameis the name of the package you want to install.\ - FFmpeg must also be installed for the program to work. Installation instructions can be found on the Internet.
📦Installing
- To copy this project to you computer type:
git clone https://gitflic.ru/project/astroklass/n-body-astro-py.git
🚀Executing program
Windows
To start program in windows type:
cd .\n-body-astro-py\
and then
python -m src.main --case "path"
Where path is the path to the case that needs to be launched.
Linux
To start program in linux type:
python3 -m src.main --case=path
Where path is the path to the case that needs to be launched.
The calculation results will be located in the results/case-name_date folder, Where case-name is the name of the running configuration, date is the current date and time.
💬Contacts
Developer’s Telegram:
@Mankiv01
Organizational matters:
@culturemeter
The official news channel of the program t.me/nbodyastropy
Project site: astroklass.ru/n_body_astro_py
Channel with simulations GravSim
Examples of simulations on YouTube
Examples of simulations on Rutube
The program is distributed under the CC BY license, which allows the free distribution and use of the program with indication of authorship in case of its public presentation of its results.