Simulation of plasma density evolution in the T-10 tokamak