SPH source code for water and soil interactions