A generalised immersed boundary method for flows of dense suspension of solid particles