Clean up and comment

This commit is contained in:
Michael Bradley 2025-01-02 01:42:26 +13:00
parent 8bb6ba19d5
commit 6822df0432
Signed by: MichaelBradley
SSH key fingerprint: SHA256:cj/YZ5VT+QOKncqSkx+ibKTIn0Obg7OIzwzl9BL8EO8
5 changed files with 249 additions and 152 deletions

View file

@ -3,14 +3,11 @@
Threw this together to get more comfortable with Numpy.
Can simulate a few hundred bodies in 2 or 3 dimensions without much hassle.
Comments are non-existent, sorry about that.
To set up:
```shell
python -m venv venv
source venv/bin/activate
pip -r requirements.txt
pip install -r requirements.txt
```
To run:
@ -19,7 +16,7 @@ To run:
./main.py -f 2d/simple.csv
# 3d simulation, increased gravity
./main.py -f 3d/some.csv -d 3 -g 30
./main.py -f 3d/some.csv -g 30
```
To create a new start state: