Numerical study of fluid flow through a confined porous square cylinder