Open-source corrosion engineering · screening-grade

A transparent corrosion-screening console that shows its working.

PitCast estimates localized corrosion, pipeline fitness-for-service, cathodic protection, and damage mechanisms — and shows the governing equation, the citation, and the validation tier behind every number. It runs entirely in your browser. No server, no account, no telemetry.

CRA selection & pittingpipeline FFS · B31GCP · coatings · galvanic CO₂ · HIC · MIC · CUIcited to primary standards
Apache-2.0 open source Reproducible open benchmark CPT LOO MAE 6.58 °C (n=51)
PitCast · pitcast.austenite.org · screening estimate — not a substitute for qualified engineering

Material

Service conditions

Advanced — thermal / weld history (σ-phase)

e.g. 850 °C for 4 h precipitates σ-phase and sharply lowers CPT.

Enter conditions →

Service conditions

Recommends the cheapest grade whose overall risk clears the threshold — avoiding over-specification.

Set a service →
Side-by-side evaluation of up to 5 candidate grades against one set of service conditions. Best / worst values per metric highlighted; cheapest grade that clears the risk threshold marked. Industry workflow: shortlist for FEED material-selection memos.

Candidate grades (up to 5)

Service conditions (shared)

Each grade is run through PitCast.assess() with the same service. Green cell = best in that column, red cell = worst. The row is the cheapest grade that clears the threshold.

Pick grades and conditions →

All real measured records from the cited open database (Nyby et al., Scientific Data 2021, CC BY 4.0). Search by alloy or UNS, filter by metric, and click Assess → to load any record's composition into the tool.

Probabilistic Material Selection Diagram — sweeps the validated engine across a service window and overlays the safe operating limit on the ISO 15156-3 boundary. The physics-vs-code diff (right) is the part no off-the-shelf calculator gives you.

Alloy

Diagram

Operating point

Pick an alloy and a map →
Sweet CO₂ corrosion of carbon steel — five canonical models on one operating point · de Waard 1975/1995 · NORSOK M-506:2017 · NESC · Multicorp · cited

Environment preset

📋 Import lab water analysis

Operating point

Corrosion allowance

Set an operating point →
Cathodic-protection criteria (AMPP SP0169) + AC-corrosion screening (ISO 18086) for buried carbon-steel pipe · holiday spread-resistance model · cited

AC interference (at a coating holiday)

CP criteria (mV vs Cu/CuSO₄)

Instant-off (IR-free) is the value the −850 mV criterion is judged on; the ON potential includes IR drop and can falsely "pass".

Sacrificial anode sizing (DNV-RP-B401 / NACE SP0387)

Galvanic couple (ASTM G82 / MIL-STD-889 + cited polarisation)

Groundbed (Dwight / Sunde — NACE SP0169 / IEEE 81)

Enter AC + CP data →
Pipeline integrity — ASME B31G / Modified B31G corroded-pipe fitness-for-service + general remaining-life. PE-grade screening for axial external metal-loss defects (ILI / inspection patches).

Pipe geometry

External metal-loss defect

Remaining-life (uniform CR)

CUI risk (API 583 / NACE SP0198)

MIC risk (NACE TM0194 / TM0212 / SP0775)

HIC / SOHIC risk (NACE MR0103 / TM0284 / ISO 15156-2)

HIC needs free water + pH₂S > 0.34 kPa (ISO 15156). SOHIC adds tensile-stress amplification — dominant above ~250 HV.

RBI screening (API RP 581 — 5×5 matrix)

Reuses pipe geometry (tnom, tmin) from above. Screening only — full API 581 uses detailed damage-factor tables.

Corrosion damage-mechanism screen (API RP 581 §6 Annex 2.C/D/G)

Service envelope drives the corrosion damage-mechanism breakdown (API 581 Annexes 2.C SCC family, 2.D HTHA, 2.G External / CUI). Non-corrosion mechanisms (Brittle Fracture, Mechanical Fatigue, Refractory, Tank Settlement) are out of PitCast's corrosion scope — use a separate fitness-for-service tool.

Set pipe geometry →
In-Line Inspection (ILI) batch screen. Upload a CSV of corrosion defects from your ILI vendor (e.g. ROSEN, Baker Hughes, NDT Global), apply pipeline-level geometry + grade + MAOP defaults, and the engine runs ASME B31G / Modified-B31G on every defect, returns a sortable color-coded grid (PASS / MONITOR / REPAIR / IMMEDIATE), with summary stats and severity histogram. Industry workflow: ILI run → defect triage → repair-priority list.

Pipeline-level defaults

Defect CSV

Required columns: id, length_mm, depth_mm. Optional: chainage_m, clock_pos, width_mm, defect_type. Download sample CSV (15 defects, real-shape distribution)

Multi-defect interaction (clustering)

Verdict bands per ASME B31G §3.6 + Kiefner 1989: PASS (Psafe ≥ MAOP, d/t < 50%) · MONITOR (50–80% wall loss, frequent re-insp.) · REPAIR (Psafe < MAOP) · IMMEDIATE (≥80% wall, replace before re-pressurise).

Upload or paste an ILI defect CSV →
API 579-1/ASME FFS-1 (2021) fitness-for-service — corrosion-damage subset: Part 4 General Metal Loss, Part 5 Local Metal Loss (LTA, workhorse), Part 6 Pitting (ASTM G46), Part 7 HIC / Hydrogen Blistering (NACE TM0284). Closed-form Level 1 + Level 2 per cited annex sections. Non-corrosion FFS (brittle fracture, fatigue, creep, dents) is out of scope — use a dedicated FFS tool.

Part 5 — Local Metal Loss (LTA)

Part 6 — Pitting Damage (ASTM G46 + API 579 §6)

Part 7 — HIC / Hydrogen Blistering (NACE TM0284)

Part 7 — Level 2 blister-density assessment

Enter LTA / pitting / HIC inputs →
NACE MR0175 / ISO 15156:2020 sour-service material spec-issuer. Maps composition + service to applicable Annex A.x envelope + Region 0/1/2/3 (CS/LAS) → procurement-grade verdict with full standard citation.

Material

Composition (wt %, optional if UNS given)

Service conditions

Enter composition + service →
CIPS / DCVG / PCM survey-data ingestion. Paste a vendor CSV (M.C. Miller G-Series / Radiodetection PCM / generic) → −850 mV instant-off exceedance scan + 100 mV polarisation shift + DCVG %IR severity + ECDA SP0502 prioritisation. Auto-detects mV vs V, ft vs m.

Survey CSV

CP criteria thresholds

Verdicts cite NACE SP0207 / SP0169 / SP0502 / TM0109 + McKinney 1986 DCVG bands. ISO 15589-1:2015 over-protection floor.

Paste a CIPS/DCVG survey CSV →
Cited vendor product database — coatings (FBE / 3LPE / TSA / epoxy / PU / zinc-rich / ceramic / glass-flake / CUI-resistant), sacrificial + impressed-current anodes, insulation (Ca-silicate / perlite / mineral-wool / ceramic-fibre / aerogel / PIR / glass-foam), CRA valves. Every entry cites a manufacturer data sheet + a recognised standard (NACE / AMPP / DNV / ISO / ASTM / API).

Filter

Search across product model, spec, service description, and reference. Filters AND'd together.

Loading vendor product database…
How it works

Four workflows, one principle: glass-box transparency

PitCast is built around a simple idea — a screening tool should let you see exactly how it got its answer. Every result exposes its governing equation, a citation to the primary standard, and a validation tier. Credibility is reported as specific, reproducible metrics (for example, a leave-one-out CPT error of 6.58 °C regenerated by node benchmark/run.js on cited measured data) rather than an aggregate assertion count.

1CRA selection & pitting

Composition → PRENN16 → CPT (calibrated against the open Nyby 2021 dataset, leave-one-out MAE 6.58 °C) → probability of pitting with a credible interval. Thermal / weld history feeds a σ-phase and sensitization estimate; the effective-local-PREN coupling lowers CPT — a microstructure-aware link most off-the-shelf calculators omit. Chloride-SCC and sour SSC envelopes follow ISO 15156-3. Side-by-side grade comparison and a cost-aware "cheapest grade that clears the risk threshold."

Assess · Select · Compare · Selection map · Browse data
2Pipeline fitness-for-service

ASME B31G and Modified B31G (Kiefner & Vieth 1989, the RSTRENG-derived 0.85·dL area) for corroded-pipe fitness-for-service, using the Folias bulging factor, plus uniform-rate remaining life. The ILI batch screen ingests a vendor defect CSV (e.g. ROSEN, Baker Hughes, NDT Global) and returns a sorted, colour-coded grid — PASS / MONITOR / REPAIR / IMMEDIATE — per defect, with optional interaction clustering. An API 579 corrosion subset (Parts 4–7) covers general / local metal loss, pitting, and HIC blistering.

Integrity · ILI batch · FFS (API 579)
3CP, coatings & galvanic

Sacrificial anode sizing per DNV-RP-B401 §6/§7/§10 across many service environments (temperature, depth, salinity, oxygen, resistivity context), with coating-breakdown classes and NACE SP0387 anode alloys. AC-corrosion screening uses the ISO 18086 holiday spread-resistance model alongside the AMPP SP0169 CP-criteria check. Galvanic couples are evaluated from a cited alloy series (ASTM G82 / MIL-STD-889C) with a mixed-potential Tafel solution (ASTM G102) that returns an actual penetration rate on the anode. Groundbed resistance follows Dwight 1936 / Sunde 1949.

CP / AC · CIPS / DCVG · Vendor products
4Damage-mechanism screens

Sweet CO₂ corrosion is read through a five-model ensemble (de Waard 1975 and 1995, NORSOK M-506:2017, NESC, Multicorp-FreeCorp) — reporting the model spread as your uncertainty — plus an API RP 14E erosional-velocity check. HIC / SOHIC follows NACE MR0103 / TM0284 / ISO 15156-2 (with the 0.34 kPa H₂S gate) and an explicit mitigation hierarchy. MIC families (SRB / APB / IRB / SOB) follow NACE TM0194 / TM0212 / SP0775. Sour-service material decisions map to NACE MR0175 / ISO 15156.

CO₂ corrosion · Integrity · MR0175 spec

Every tab exports cleanly: print-to-PDF (a single results card per tab), a multi-sheet XLSX (Inputs / Results / Citations), or CSV. Pure calculation and cited reference — no sign-off ceremony.

About & honest limits

An open research and portfolio project — built in the open

PitCast is an open-source corrosion-engineering screening tool, written and maintained by Javanshir Hasanov — a materials-engineering undergraduate — as a multi-year research and portfolio project. It is not a commercial product and not a validated design tool. Its differentiator is transparency: the source code is open (Apache-2.0), every result shows its equation and citation, and the accuracy claims are reproducible from a benchmark in the repository. Every engine is plain in-browser JavaScript — no server, no account, no telemetry — and every dataset entry is either cited to a primary standard or flagged as screening.

Validation & accuracy

6.58 °C
CPT leave-one-out error, reproducednode benchmark/run.js · cited data
729
cited measured datapointsacross the corrosion engines
100+
cited primary standardsNACE/AMPP · API · ASME · ISO · ASTM · DNV
134
alloy gradesstainless · duplex · Ni-base CRAs
Reproducible open benchmark. Run node benchmark/run.js against the cited in-repo data and it regenerates benchmark/REPORT.md — a transparent alternative to a closed validation deck.
  • CPT (pitting): leave-one-out MAE 6.58 °C, RMSE 8.49 °C (n=51, FeCl₃ / G48); fit slope 2.0382, R² 0.834 — at or below the typical G48 lab-to-lab scatter.
  • CO₂ corrosion: a five-model ensemble checked against cited cases (NORSOK MAE 2.16, de Waard-95 MAE 2.8 mm/y). Envelope coverage is reported honestly — a protective film can push the real rate below every model. This is a small cited spot-check, indicative rather than definitive.
  • Corroded-pipe FFS: the ASME B31G-2012 Appendix B Example 1 result is reproduced exactly (Psafe 54.3 bar).

Each engine is checked against its standard's worked example where one exists: ASME B31G Appendix B Ex 1 (54.3 / 55.6 bar Psafe); NACE SP0169 Appendix-A groundbed (13.72 Ω); the DNV-RP-B401 1-km × 12-in offshore-pipeline example (4,754 kg Al-Zn-In); the LaQue marine 316L bolt in a CS flange (~1.16 mm/yr); and the Nyby et al. 2021 Scientific Data 8, 58 (CC BY 4.0) leave-one-out calibration on n=51 G48 records. Physical monotonicity invariants are enforced throughout (a deeper defect lowers Psafe, more chloride raises pitting risk, more cathode area raises the galvanic rate, higher pH₂S raises HIC risk, and so on).

What each engine cites

B31G FFS: ASME B31G-2012 §2-3 · Kiefner & Vieth 1989 (Battelle PR-3-805) · Folias 1965 Int J Fract Mech 1, 104 · API 5L · API 570/510.

Anode sizing: DNV-RP-B401 §6/§7/§10 (Tables 7-1, 10-1, 10-2) · NACE SP0387 (offshore cast anodes) · NACE SP0169 (buried steel) · NACE SP0572 (Mg anodes) · NACE SP0490 / SP0492 / SP0212 + ISO 21809 + AWS C2.18 (FBE / 3LPE / TSA).

CUI: API RP 583 §4.3-4.4/§5 · NACE SP0198-2017 · API RP 581 (intervals) · ASTM C871 leachable Cl · ASTM C449/C547/C552/C591/C610/C612/C1126/C1728/C1136 · ISO 9223.

Galvanic: ASTM G82-98(2014) · ASTM G102-89(2015) · MIL-STD-889C · NACE TM0394 · LaQue 1975 Marine Corrosion Ch.6 · Stansbury & Buchanan 2000 Ch.4 (mixed-potential) · Trethewey & Chamberlain 1995 Tab 3.4 · ISO 12473.

Groundbed: Dwight 1936 AIEE Trans 55, 1319 · Sunde 1949 (Van Nostrand) · NACE SP0169 §6.5 · IEEE Std 81.

HIC / SOHIC: NACE MR0103-2018 · NACE TM0284-2016 (CLR ≤ 15% / CTR ≤ 5% / CSR ≤ 2%) · ISO 15156-2 §A.2/§B · API RP 571 §5.

RBI: API RP 581 (3rd ed., 2016) Parts 1-3 · API RP 580 · API 510 / 570 interval caps.

MIC: NACE TM0194 (planktonic) · NACE TM0212 (sessile/pipeline) · NACE SP0775 (coupons) · NACE SP0106 §6.

CRA / CPT: Nyby et al. 2021 Sci Data 8, 58 (LOO calibration n=51) · ASTM G48 (6% FeCl₃) · ISO 15156-3 · NACE MR0175 · WRC-1992 ferrite diagram.

CO₂ corrosion: de Waard & Milliams 1975/1995 · NORSOK M-506:2017 · Nesic Multicorp · Crolet & Bonis 1983 (in-situ pH) · API RP 14E (erosional velocity).

CP / AC: AMPP SP0169 · ISO 18086 (AC-corrosion holiday spread-resistance model).

Cited measured anchors

Independent literature datapoints the models are checked against — each row links to its primary source.

Read this before relying on any output. PitCast is screening-grade. The CRA-selection CPT correlation is statistically calibrated (Nyby 2021 leave-one-out MAE 6.58 °C, reproduced by benchmark/run.js — close to the intrinsic lab-to-lab scatter of CPT measurement). The other engines reproduce their cited standard's worked examples to within roughly 2%, but several are research / screening-grade where vendor-batch polarisation data, full damage-factor tables (e.g. the detailed API 581 tables), or site-specific environmental measurements would normally be used in detailed design. The CO₂ benchmark in particular is a small cited spot-check, and the whole tool is self-validated pending external peer review. It is not a substitute for qualified materials engineering, standards compliance, or physical testing — do not use it unsupervised for final design.

© austenite.org · PitCast is open-source under Apache-2.0 and lives at pitcast.austenite.org. Built as a materials-engineering research and portfolio project.

A Javanshir Hasanov production