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
- Host: GitHub
- URL: https://github.com/elucidation/nbodyc
- Owner: Elucidation
- Created: 2012-03-01T03:24:08.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2012-04-10T08:17:26.000Z (about 14 years ago)
- Last Synced: 2025-04-04T13:45:58.825Z (about 1 year ago)
- Language: C
- Homepage:
- Size: 145 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
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'
```