Smoothed Particle Hydrodynamics Water Simulation C++ Implementation.
Running SPH requires:
- Any C++ Compiler (Clang, GCC, MSVC, etc.)
- CMake 3.20 or higher
- Just go to the latest release
, download and any of the available executables (
blue-fluid.exe,volcano.exe,legacy.exe).
- First of all, you may have to download the latest
HSGILreleaseand extract it directly in the project folder, all bindings are already made on the
CMakeLists.txtfile - To configure this project, you only have to define the
SPH_BUILDvariable by passing a defined value to the configure command. For example, for a Release build, exporting compile commands and using Visual Studio 17 2022 from a x64 architecture to a x64 architecture, the configure command would be:
cmake -DSPH_BUILD=Release -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -SC:/Path/To/Folder -BC:/Path/To/Folder/build -G "Visual Studio 17 2022" -T host=x64 -A x64
- Finally, you can run a typical build command, following the previous example, it would be:
cmake --build C:/Path/To/Fonder/build --config Release --target ALL_BUILD

