Figure 1: Solution of inputs/pvi1.csv |
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
python .\n-body_problem.py file_csv
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.
Figure 2: Solution of ivp.csv |