A study on the dependence of nuclear viscosity on temperature