Skip to content

andresroliveira/NBodyProblem

Repository files navigation

N-Body Problem

Solution of inputs/pvi1.csv
Figure 1: Solution of inputs/pvi1.csv

Creating Virtual Environments

Clone this repository

git clone https://github.com/andresroliveira/NBodyProblem.git

To create the Python Virtual Environment from Command Prompt, Run:

python3 -m venv .venv
.venv\Scripts\activate.bat
pip install -r requirements.txt

To create the Python Virtual Environment from PowerShell, Run:

python3 -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -r requirements.txt

To create the Python Virtual Environment from Bash, Run:

python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

Run Program

python .\n-body_problem.py file_csv 

Exemple

The command

python .\n-body_problem.py ipv

will execute ivp.csv and generate output/sol_ivp.csv and output/sol_ivp.gif. The solution is the Figure 2.

Solution of ivp.csv
Figure 2: Solution of ivp.csv

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages