Skip to content

1AlbertChen/nbody

Repository files navigation

N-Body Simulation

This is an n-body simulation visualizer written with C and Python. It implements the Barnes-Hut Algorithm to simulate an open or globular star cluster.

Demo

Alt Text

Globular Cluster

Alt Text

Open Cluster

Real Star Clusters in the Universe

Globular Cluster

Globular Cluster

Open Cluster

Open Cluster

How to Run

To run the simulation, simply run the .sh files for open or globular clusters.

Syetem requirements:

GCC (In the .sh files it's gcc-7 but you can change that to your version)

Python (python3 in the .sh file but you can change that too)

Linux Shell or Linux

About

Animated n-body simulation with VPython

Resources

Stars

Watchers

Forks