1. Thermal stresses are SECONDARY - they are self-limiting because if the pipe yields the stresses relieve. Stresses caused by Weight and Pressure are PRIMARY - if the pipe yields, the load does not relieve. This is elementary stress analysis stuff, if you don't understand it thoroughly you are perhaps in the wrong line of work.
2. Load combinations are at the discretion of the analyst. The B31 Codes require you to calculate sustained loads, but do not explicitly tell you what must be included. Similarly, they require you to calculate a thermal stress range, but you can change the types and locations of supports that you use to control movement to bring the thermal stress range within limits.
3. The Codes are far older than computers. B.C. (before computers), pipe stress analysis was done by hand, usually consisting of one hot and one cold load case. These results were subtracted to determine the thermal stress range. Experience led the Code committees of the day to develop the allowable material stresses and the Code rules essentially in the format used today.
As computers became more widely available, the procedures required by the Codes were already in place so the analysis procedures were revised to continue to use the existing Code rules and materials data. Remember that the Codes, in addition to guidig the behavior of stress analysts, also guide the behavior of fabricators and installers. And, most importantly, they provide a framework for assessing the blame for failures when needed, so they serve as a legal document.
Because the Codes have significant legal standing in the United States, it is virtually impossible for the Code committees to make drastic changes to the Codes, particularly when it comes to changing the way stresses are calculated and interpreted.
I echo corne's hope that you have a senior engineer within your company who can mentor you on this. It's almost impossible, in my opinion, to figure this all out on your own (even with the help of a forum such as this) without getting yourself into trouble.
_________________________
CraigB