Analysis of temperature distribution in a pipe with inner mineral deposit