Similarity in thermoelasticity