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
|
9 months ago | |
---|---|---|
debug | 2 years ago | |
lib | 1 year ago | |
src | 9 months ago | |
test | 2 years ago | |
CMakeLists.txt | 1 year ago | |
README.md | 2 years ago | |
sphere.png | 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 functionsrc/sphfunctions.cpp
contains SPH simulation codesrc/sphash.hpp
contains spatial hash map and simulation_data class implementationsrc/sphash-test.cpp
contains misc unit testssrc/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