Application of non-discrete boundaries with friction to smoothed particle hydrodynamics