Mathematical model of the temperature dependence of the viscosity of barium according to the concept of randomized particles