Your question is very general... some things you would have to consider would be thermal deformation, thermal cycling, mat'l type, fluid material in pipe, burial depth, pipe connections (galvanic series), hydrogen embrittlement, burst strength, etc. What you should do first is better define the problem, then evaluate what needs to be calculated.