Skip to content

Kushaalkumar-pothula/NSimX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NSimX

A fast and simple gravitational N-body simulator based on the Leapfrog integration scheme.

1. Installation

Dependencies:

  • A C compiler
  • Python
    • NumPy
    • Matplotlib
    • imageio

To install NSimX, run the following command in your terminal:

$ https://github.com/Kushaalkumar-pothula/NSimX.git

2. Usage

To run the code, first compile main.c using a C compiler. The compilation was tested successfully using gcc:

$ gcc main.c -o main

This generates an executable which can be run:

$ ./main

Next, run the analysis script:

$ python plot.py