When a metal rod is heated and then prevented from contracting as it cools, a considerable force is exerted at the ends of the rod, this can be found using
When the rod contracts a compressive stress acts on it. So using Young's modulus of the material it is possible to find the force that it experiences on contracting.