With the analogy method and the structural analysis program, a new approach of computing the temperature field of a structure with given boundary conditions is obtained. And then the obtained nodal temperatures are employed to compute the heat stresses on the same mesh. In this way, the applying functions of structureal analysis programs are enlarged.