Tubesheet connected to enclosure by expansion joint