Skip to content

Latest commit

 

History

History

NBody

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

N-Body Simulation

N-Body Simulation using Newton's Laws

nbody.mp4

How to use

# 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)

TODO

  • Implement 2-Body sim
  • Support for N bodies
  • Support for any number of dimensions
  • Optimize Computations (vectorize)
  • Create 2D animation
  • Create 3D animation