N-Body Simulation using Newton's Laws
nbody.mp4
# Generate points
pos,mass,vel = generate_initial_conditions(N=50)
pos_h = n_body(pos,mass,vel,animate=True) # Perform simulation
# Create 3D animation
create_3D_animation(pos_h)
- Implement 2-Body sim
- Support for N bodies
- Support for any number of dimensions
- Optimize Computations (vectorize)
- Create 2D animation
- Create 3D animation