An algorithm for implementing a boundary viscous force with single-layer wall particles based on WCSPH