To evaluate thermal stress, it is necessary to know the temperature distribution inside the object, and the finite element method is an effective way to predict quantities such as internal temperature distribution and thermal stress. In this post, I intend to explore the one-dimensional heat transfer equation using the variational method. The temperature function and displacement function can be..