Are you sure you want to create safety calculations this way? As hinted by 25362, a substantial - if not the major - consideration is the failure (or lack thereof) of the pressure vessel (pipe,tank, riser...whatever you want to call it) itself. And once failure has occurred, the failure mode...