| ProjectSample Project — Demonstration Only | Job No.SAMPLE-001 | Client— |
| CalculationDNV-RP-F101 Corroded Pipe Calculator (Single Defect Capacity) | Calc byPiping Toolset (calc-core) | Checked byUNCHECKED — sample |
| Date2026-07-31 | Rev0 | BasisDNV-RP-F101 Part B single-defect capacity: Q length correction, Pcap on tensile fu, usage factor user-supplied |
An NPS 12 line, 12.75 in OD × 0.375 in wall in API 5L X52 material, with the assessment run on a tensile strength of 66,700 psi. In-line inspection reports an isolated longitudinal metal-loss defect 6 in long with a maximum depth of 0.15 in — 40% of the wall. The assessment applies a combined usage factor of 0.72, and the line operates at 1,440 psi.
| Outside diameter D | 12.75 | in |
| Wall thickness t | 0.375 | in |
| Defect depth d | 0.15 | in |
| Defect length ℓ | 6 | in |
| Tensile strength fu | 66,700 | psi |
| Usage factor | 0.72 | — |
| Operating pressure Pop | 1,440 | psi |
The single-defect capacity form for a longitudinal metal-loss defect under internal pressure. First the length correction, which converts the defect's slenderness relative to the pipe's characteristic length √(D·t) into a capacity reduction:
Q = √( 1 + 0.31 · ( ℓ / √( D · t ) )2 )
Then the capacity (best-estimate burst) pressure of the defected section:
Pcap = ( 2 · t · fu / ( D − t ) ) · ( 1 − d/t ) / ( 1 − (d/t) / Q )
and the safe working pressure and utilization:
Psw = usage factor · Pcap
utilization = Pop / Psw → PASS when utilization ≤ 1
Read the capacity equation as three factors. The leading term 2·t·fu/(D−t) is the burst pressure of sound pipe in the mean-diameter form — note the (D−t) denominator rather than D, which is not the Barlow thin-wall form and gives a slightly higher number. The (1 − d/t) numerator is the fraction of wall the defect leaves behind. The (1 − (d/t)/Q) denominator is where length enters: a very short defect has Q ≈ 1, the two terms nearly cancel, and the capacity approaches sound pipe; a long defect has a large Q, the denominator approaches 1, and the capacity collapses toward the plain (1 − d/t) fraction of the sound-pipe burst — the infinitely-long-defect limit, where the remaining ligament simply carries the hoop load on its own.
Inputs are validated rather than trusted: D and t positive with t < D/2, the defect depth strictly less than the wall (a through-wall defect is a leak, not an assessment), fu and the usage factor positive, and the operating pressure non-negative. Entering Pop = 0 puts the card in capacity-only mode: it returns Pcap and Psw and suppresses the verdict, which is what you want when you are establishing what a defect can carry rather than checking it against a known pressure. A standing warning fires above d/t = 0.85, outside the validated range of the single-defect equation, and every run is flagged as applying to an isolated defect only.
| Q — length correction factor | 1.82596 | — |
| Pcap — capacity pressure | 3105.826 | psi |
| Psw — safe working pressure | 2236.194 | psi |
| utilization — Pop / Psw | 0.64395 | — |
The result values above are locked as fixture dnv-f101-defect.json, case
“NPS 12 t=0.375 X52 (fu=66700), d/t=0.4, l=6 in, usage 0.72”, tolerance 0.05, in the calc-core continuous
verification gate (see https://pipingtoolset.com/trust/validation.html). Allowable-stress and factor data are
user-supplied inputs; citations: DNV-RP-F101, Corroded Pipelines — Part B allowable-stress capacity form for a single longitudinal metal-loss defect under internal pressure, including the length correction factor Q. Usage/safety factors and the tensile strength basis are user-supplied from the governing revision. · ASME B31G, Manual for Determining the Remaining Strength of Corroded Pipelines — the alternative method, built on a yield-derived flow stress and the Folias factor; see the B31G calculator for the same defect assessed that way. · API 5L, Line Pipe — source of the specified minimum tensile strength; whether the assessment uses specified minimum or actual certified values is set by the assessment route, not by this tool. · ASME B31.8S, Managing System Integrity of Gas Pipelines — where a remaining-strength assessment sits within an integrity management programme, and the basis for re-inspection intervals that this calculation does not set. · No usage factor, safety factor or material value is embedded — all are entered by the user.