The work examines the flow of an incompressible fluid containing a porous medium. A porous body is formed through various mechanisms. To describe the flow, a single equation is used that describes the flow of fluid in the porous and free zone. The flow is simulated based on Rakhmatulin’s two-speed model, in a laminar mode with zero speed of a discrete phase. The results of numerical simulation of the hydrodynamic features of a two-dimensional viscous flow are presented. The Kozeny-Karman relation is used as the force of interaction with the porous layer. Computational experimental methods are used to study the effects of nonuniformity of the fluid velocity field arising from a porous body. For the numerical implementation of the resulting equation, which is a generalization of the Navier-Stokes equation, a SIMPLE-like algorithm with corresponding generalizations was used. A single algorithm is used for the entire area, without identifying the free and porous zones.