Skip to content
/ SPH Public

Smoothed Particle Hydrodynamics Water Simulation Implementation.

Notifications You must be signed in to change notification settings

AsulconS/SPH

Repository files navigation

Smoothed Particle Hydrodynamics

Smoothed Particle Hydrodynamics Water Simulation C++ Implementation.

Requirements

Running SPH requires:

  • Any C++ Compiler (Clang, GCC, MSVC, etc.)
  • CMake 3.20 or higher

How to run it?

Option 1: Executing the binaries:

  • Just go to the latest release , download and any of the available executables (blue-fluid.exe, volcano.exe, legacy.exe).

Option 2: Building the project

  • First of all, you may have to download the latest HSGIL release and extract it directly in the project folder, all bindings are already made on the CMakeLists.txt file
  • To configure this project, you only have to define the SPH_BUILD variable 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

Running Examples

SPH Running Blue Fluid Example:

SPH Running Volcano Example:

About

Smoothed Particle Hydrodynamics Water Simulation Implementation.

Resources

Stars

Watchers

Forks

Packages

No packages published