Hi Chandra,
as far as I can understand, you want to enter the temperature value along the length. There is a way that you can enter the temperature value along the length. You should know the temperature value along the length and enter the tabular form in the Ansys mechanical. Go to the temperature details, select the tabular data in the magnitude cell, and select the axis along the length in the independent variable cell.

Regards,
Sampat