Variational Principle for the Temperature Problem of the Elasticity Theory for Stresses