I'm not really sure if my answer is correct...But I think when the pipe is subjected to thermal bowing it will experience some sort of a buckling (basically the top of pipe maybe in hotter condition than the bottom of pipe)...So I think of the end moment as using the buckling formula I don't know which particular formula it is...For thermal bowing, check support lift-offs due to this effect and evaluate the hot sustained case..