Hello,
The ASME B31 Codes for Pressure Piping are the MINIMUM requirements for piping design. These Codes allow you to do more rigorous analyses if you can and on the other hand they allow additional layers of conservatism. The piping engineer should THINK and decide WHEN the conservatism of the Codes is sufficient.
The ASME B31 Codes are a "simplified approach" and they include a level of conservatism that includes the consideration of the limitations of that approach. IF you opt to do a more rigorous evaluation, it may be appropriate to relax the degree of conservatism to some degree. It would always be prudent to document the approach, assumptions and any other considerations in the design brief. "Factors of Safety" are "indices of ignorance" - the more you know about all the design variable and the more rigorous your methodology, the less design margin is needed. When there are uncertainties more design margin is needed - "When in doubt, build it stout". If you can reduce the "doubt" you can build it "smart". Engineering is all about reducing the unknown to a level that is consistent with due diligence. I have heard it said that an engineer is somebody who can design/build something right with one dollar that any D***ed fool can design/build with two dollars.
Wall thickness calculations must include consideration of all the possible intended and unintended issues that may reduce the wall of the pipe under consideration (and long seams if appropriate). Yes, corrosion to be sure (but how many of us actually obtain accurate corrosion data for the combination of environmental conditions, the product to be carried by the pipe (at temperature), and other associated factor (CUI comes to mind) and apply that data). There is also erosion, abrasion, grooving (machining at Grayloc type fittings), threading, mill tolerances (although here we may be too conservative at the moment) etc. Then of course, after we calculate the MINIMUM required wall thickness with consideration for all these things, we round that number UP to the next commercial schedule (more conservatism). Reduction in wall thickness has a much greater effect on the safety margin involved in pressure calculations (circumferential ("hoop") stress) than it does on the margin of safety involved in the calculation of stress(beam bending stress (S = M / Z).
What is my point? There is a lot to think about and that is what engineering is.
Regards, John.