An open API service indexing awesome lists of open source software.

https://github.com/elucidation/nbodyc

Nbody gravitational star simulator in C
https://github.com/elucidation/nbodyc

Last synced: 8 months ago
JSON representation

Nbody gravitational star simulator in C

Awesome Lists containing this project

README

          

N-body C
---

Basic N-body gravitational simulator in C

To build
---
```
make
```

To use
---
```
USAGE:
nbody INPUT_FILE DT TIMEMAX [OUTPUT_FILE]
```
For example
```
nbody.exe twoBody.in 0.25 4 twoBod.out
```

To Plot
---
Run `gnuplot`, then type:
```
load 'twoBod.plot'
```