Skip to content

MrSoilder23/sph_sim

Repository files navigation

Sph Simulation

SPH planetary collision simulation ( Not 100% correct. Lacks extra math ). Built on Bismuth, a custom Entity-Component-System (ECS) engine. Simulation runs on the GPU and includes an interactive GUI to control spawn parameters.

 

Description

Simulation is built on Bismuth, custom ECS library. Depending on choice of iteration pattern, Bismuth can be up to 30% faster than EnTT or 10% slower (Tuple for loop). Default example scene: 15625 particles in a no-gravity environment.

Image of Bob from different perspective Image of Bob

 

Installation

Install already released version or build it yourself.

Build

cmake -S . -B build "-DCMAKE_TOOLCHAIN_FILE=./vcpkg/scripts/buildsystems/vcpkg.cmake" -DVCPKG_TARGET_TRIPLET=x64-windows -DVCPKG_MANIFEST_INSTALL=ON -G Ninja 
cmake --build build

Usage

To change window size open ./config/config.json Left click to spawn cube of particles determined by settings

./bin/prog

About

SPH planetary collision simulator

Resources

Stars

Watchers

Forks

Packages

No packages published