Installation:
At this time, PersianSPH is only available for Linux systems. The following installation instructions are for Debian GNU/Linux (unstable) or Ubuntu 14.04 (or newer). Installation on other Linux systems should be straightforward though.
This code can be installed in any folder in your PC. Please follow the instruction to set up it on your PC:
Open a new terminal window
Download the installation bash script file and execute it
Follow the given prompts until the installation is completed
Close all terminal windows to reload created environment variables
username@machine:~$ wget "https://github.com/mghkorzani/persiansph/blob/master/persiansph_install.sh"
.
.
.
username@machine:~$ bash persiansph_install.sh
.
.
.
Installation is completed.
Close all terminal windows and open a new one to take effect the defined environment variables
Please refer to the tutorial to run a simulation.
username@machine:~$ exit
Please follow the instruction to run a simulation:
Go to persiansph directory
Edit CMakeLists.txt to include your target cpp file name (you can also choose from the existing sample cpp files)
Use cmake to generate makefile
Compile your simulation using the autogenerated makefile