The process of unsteady flow of a weakly compressible fluid through a pipeline, described by a two-dimensional model in the form of a nonlinear system of partial differential equations, is considered. The model is averaged over the cross section of the pipeline and the dependence of the friction stress on the pipe wall on the flow velocity is proposed. Within the framework of the model obtained, the inverse problem was posed to determine the flow velocity on the pipeline wall. A discrete analogue of the problem is constructed and a method for its splitting into simple difference problems with respect to the approximate values of the unknown functions is proposed. Refs.: 14 titles.Keywords: pipeline; two-dimensional model; friction stress on the pipe wall; difference problem; inverse problem.