You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
alistair 2450adf05e combine into single header 9 months ago
debug basic plot 2 years ago
lib rm muller 1 year ago
src combine into single header 9 months ago
test initial 2 years ago
CMakeLists.txt rm muller 1 year ago
README.md submitted 2 years ago
sphere.png vis upd 2 years ago

README.md

Compiling on Getafix

module load gnu/10.2.1
mkdir build
cd build
cmake3 ..
make
./test -h  # print cli options
./test: invalid option -- 'h'
Invalid option
Usage: 

 -d x      : rest density (default 1000kg) 
 -r x      : particle radius (default 0.1m)
 -m x      : viscosity (default 0.0007)
 -t x      : timestep (default 0.0004 s)
 -s  path  : save frames in folder path
 -p  path  : save plot data in folder path
 -l x      : sim time between frames saved (default 0.033 sec)
 -w x      : sim time to run for (default 5 sec)
 -e path   : convert .bin to .txt onto stdout
 -c x      : room width (default 0.6)
 -n x      : number of particles to limit to
 -v        : use sdt::vector instead of spatial hash map

Files

  • src/test.cpp contains simulation main function
  • src/sphfunctions.cpp contains SPH simulation code
  • src/sphash.hpp contains spatial hash map and simulation_data class implementation
  • src/sphash-test.cpp contains misc unit tests
  • src/plot_binary.py script used for plotting used to plot the data output by default.
  • src/plot3d.py used to plot the 3d animation frame output generated by specifying -s

ffmpeg -framerate 60 -pattern_type glob -i '*.png' -vf scale=1920:1080,setsar=1:1 out2.webm