This project is a Smoothed Particle Hydrodynamics (SPH) fluid simulation implemented in C++. It models fluid dynamics by simulating particles and their interactions.
▶ Click the image to watch the demo on YouTube
- Visual Studio Code installed on Windows
- CMake installed and added to your system PATH
- A C++ compiler (e.g., MinGW-w64 or Microsoft Visual C++ Build Tools)
Follow these steps to build and run the project using Visual Studio Code on Windows.
Ensure that CMake and your preferred C++ compiler are properly installed. You may need to install the CMake and C/C++ extensions in VSCode if you haven't already.
Open a terminal in the root directory of the project and run:
cmake -Bbuild . -DCMAKE_BUILD_TYPE=Debug-DCMAKE_BUILD_TYPE=Debugsets the build type to Debug.- now you can build by using the command palate or pressing
ctrl+f7 - the dependencies listed in Dependency.cmake will be downloaded.
Press Ctrl + F5 in Visual Studio Code to run the simulation without debugging.
to start the simulation press c
to reset press r
right-click mouse to move around with wasd
