https://github.com/pmocz/nbody-python
Vectorized N-body code (Python)
https://github.com/pmocz/nbody-python
astrophysics n-body scientific-computing tutorial
Last synced: 6 months ago
JSON representation
Vectorized N-body code (Python)
- Host: GitHub
- URL: https://github.com/pmocz/nbody-python
- Owner: pmocz
- License: gpl-3.0
- Created: 2020-09-12T19:25:17.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-07-21T07:08:51.000Z (over 2 years ago)
- Last Synced: 2025-03-26T02:04:30.171Z (10 months ago)
- Topics: astrophysics, n-body, scientific-computing, tutorial
- Language: Python
- Homepage: https://medium.com/swlh/create-your-own-n-body-simulation-with-python-f417234885e9
- Size: 97.7 KB
- Stars: 112
- Watchers: 2
- Forks: 52
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nbody-python
Vectorized N-body code (Python)
## Create Your Own N-body Simulation (With Python)
### Philip Mocz (2020) Princeton University, [@PMocz](https://twitter.com/PMocz)
### [📝 Read the Algorithm Write-up on Medium](https://medium.com/swlh/create-your-own-n-body-simulation-with-python-f417234885e9)
Simulate orbits of stars interacting due to gravity
Code calculates pairwise forces according to Newton's Law of Gravity
```
python nbody.py
```
