Thermo-mechanical coupling in beam-to-beam contact