Skip to content

A somewhat well documented 3D n-body simulator in C++. There are build and run scripts for nearly all platforms if you have clang and a C++ standard library implementation that support c++20.

Notifications You must be signed in to change notification settings

Romelium/n-body-simulation-cpp

Repository files navigation

N Body Simulation C++

A somewhat well documented 3D n-body simulator in C++. There are build and run scripts for nearly all platforms if you have clang and a C++ standard library implementation that support c++20.

Windows Clang and MSVC STL Installation

Clang

  • Install LLVM
  • Add C:\Program Files\LLVM\bin to PATH

MSVC STL

  • Install Build Tools for Visual Studio 2022
  • Open the Visual Studio Installer. If it doesn’t open automatically, locate and launch the Visual Studio Installer.
  • In Build Tools for Visual Studio 2022, click the Modify button.
  • In the Workloads tab, check the option labeled Desktop development with C++.
  • In Installation Details and Optional, have MSVC v143 checked. MSVC is the only one we need, so you can uncheck the others.
  • Click the Modify button at the bottom-right corner to start the installation.

500 Bodies

500 Bodies

250 Bodies

250 Bodies

100 Bodies

100 Bodies

50 Bodies

50 Bodies

10 Bodies

10 Bodies