This quickstart demonstrates how to build and run a minimal N-body simulation using NEXT (Newtonian EXact Trajectories).
- Git
- CMake (>= 3.10)
- C++ Compiler (GCC, Clang, or MSVC with OpenMP support)
- Python 3 (for initial condition generation)
- HDF5 libraries
git clone https://github.com/TimGoTheCreator/NEXT.git
cd NEXTcmake -B build -S .
cmake --build build --config Releasecd examples/TwoBodies
python two_body.py
../../next two_body.txt 8 0.001 0.1 vtu 50two_body.txt- Initial condition particle data generated bytwo_body.py8- Number of OpenMP CPU worker threads0.001- Baseline simulation time step (dt)0.1- Simulation time interval between data output dumpsvtu- Output file format (vtu,vtk, orhdf5)50- (Optional) Maximum steps to run before exiting
- Open the generated
.vtufiles (dump_0.vtu,dump_1.vtu, ...) in ParaView or VisIt. - Apply a Glyph filter to visualize particles, and press Play to view orbital trajectories.