🧮 Overview

📝 Inputs

  • Outside Diameter: mm, inches (selectable)
  • Wall Thickness: mm, inches (selectable)
  • Defect Depth: mm, inches (selectable)
  • Defect Length: mm, inches (selectable)
  • SMYS (Yield Strength): MPa, psi (selectable)
  • Pipeline Design Code:
    • ASME B31G
    • Modified B31G
    • API 579
  • Output Pressure Unit: bar, psi, MPa (selectable)

📊 Calculation Logic

  • All input units are converted to SI (mm, MPa) for calculation.
  • MAOP (corroded): Calculated using standard code formulas, considering defect size and wall loss.
  • Code Acceptance:
    • Checks if remaining wall after corrosion meets code minimum (e.g., ≥80% for B31G, ≥87.5% for API 579).
    • For longer defects (length/diameter > 0.05), applies code-specific penalty (screening logic).
  • Outputs include recommended status (Acceptable/Requires assessment), code reference, minimum required remaining wall, and MAOP in your preferred unit.

📤 Outputs

  • ✅/⚠️ Acceptance or warning (icon)
  • Minimum required remaining wall thickness
  • Remaining wall after corrosion
  • Defect-to-wall ratio (%)
  • Maximum Allowable Operating Pressure (corroded), in your selected unit
  • Code-specific reference and acceptance criterion