Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sph-tutorial

Experimenting with performance evaluation and improvements to Brandon Pelfrey's smoothed-particle hydrodynamics (SPH) fluid simulation tutorial:

Requirements
  • CMake >= 3.7.2
  • C++11 compiler
  • OpenGL support
  • OpenMP support
Controls
  • Q/Escape: Exit
  • Space: Add more particles
  • Mouse button: Attract nearby particles
  • +/-: Increase/decrease the number of simulation steps per frame

You can use the OMP_NUM_THREADS environment variable to limit the number of threads used by OpenMP.

Building

Appropriate versions of GLFW and GLM are included as submodules so you should be able to clone and build without anything more than CMake and a compiler:

git clone https://github.com/genpfault/sph-tutorial.git
cd sph-tutorial
git submodule update --init --recursive
mkdir build
cd build
cmake ../ -DCMAKE_BUILD_TYPE=RelWithDebInfo
cmake --build .

About

Brandon Pelfrey's SPH fluid simulation tutorial

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages