Oilfield industry uses deflections consistent with a safety factor of 1.5 to 2.0, given the pipe geometry and understanding of material mechancial properties.
I typically work through the mechanics under full bore load (i.e. maximum pressure testing @ 1.5 MOP) and add the external loads as boundry conditions to the supports.
You can also get similar equations from API reference material. Try pipe supplier websites, they do provide spreadsheet services on the various API equations.
Kenneth J Hueston, PEng
Principal
Sturni-Hueston Engineering Inc
Edmonton, Alberta Canada