In this paper we propose a mathematical model for describing the viscous inhomogeneous fluid flow in canal with flexible walls and valve. We present the results of the modeling of the valve leaflets dynamics, and the fluid flow inside valve “Yunilain”.