✉ sales@juduncp.com ☎ +86 153 0327 5365 / +86-317-6220889 ISO 9001 · ISO 14001 · ISO 45001 Certified | 12 Patents & Software Copyrights
MIT LICENSED PYTHON ENGINEERING LIBRARY · ZERO EXTERNAL DEPENDENCIES · PYTHON 3.9+

judun-cp (v1.0.0) — Open-Source Python Cathodic Protection Design & Sizing Library

The open-source Python cathodic protection calculation package implementing analytical equations from ISO 15589-1/2, DNV-RP-B401, ISO 12696:2022, ASTM G57, ASME B36.10M, and Dwight/Sunde groundbed theory.

📦 Download Source Package (judun_cp-1.0.0.tar.gz) 📊 Download CSV / JSON Datasets Modbus RTU & Single-File Script
✅ Technical Review: JUDUN Corrosion & CP Engineering Dept. (ISO 9001:2015 Certified · 72h Burn-In Verified)
Code Basis: MIT Open-Source · Python 3.9+ · ISO 15589 / DNV-RP-B401 / ISO 12696

1. Quick Installation (pip Direct URL) & Usage

pip install https://www.juduncp.com/static/packages/judun_cp-1.0.0.tar.gz

import judun_cp as cp

# 1. Dwight vertical anode resistance (rho=25 Ohm.m, L=2.0m, d=0.219m)
r_single = cp.dwight_vertical_resistance(rho_ohm_m=25.0, length_m=2.0, diameter_m=0.219)

# 2. ISO 15589-1 coated pipeline current demand (DN500, 50 km, f_f=0.015, J_bare=0.020 A/m2)
i_req = cp.pipeline_current_demand(od_mm=508.0, length_km=50.0, breakdown_factor=0.015, bare_j_a_m2=0.020)

# 3. PVDF/HMWPE cable round-trip DC voltage drop (16 mm2 Cu, 180 m one-way, 25 A, 35 C)
v_drop = cp.cable_loop_voltage_drop(csa_mm2=16.0, one_way_m=180.0, current_a=25.0, temp_c=35.0)

# 4. ISO 12696 reinforced concrete MMO ribbon mesh zone sizing
zone = cp.iso12696_concrete_mesh(concrete_m2=250.0, steel_ratio=0.85, j_steel_ma_m2=15.0)

2. Complete API Reference Matrix

Function SignatureGoverning StandardReturn Value & Units
dwight_vertical_resistance(rho_ohm_m, length_m, diameter_m)H.B. Dwight / NACE SP0169Single vertical anode resistance to remote earth (Ohm)
wenner_soil_resistivity(spacing_m, resistance_ohm)ASTM G57Apparent soil resistivity (Ohm·cm)
pipeline_current_demand(od_mm, length_km, breakdown_factor, bare_j_a_m2)ISO 15589-1 / ASME B36.10MTotal coated pipeline CP current demand (Amps DC)
faraday_anode_mass(current_a, years, consumption_kg_a_yr, utilization)DNV-RP-B401 / ISO 24656Minimum required net anode alloy mass (kg)
cable_loop_voltage_drop(csa_mm2, one_way_m, current_a, temp_c)IEC 60228 / ASTM B3Round-trip 2L copper cable DC voltage drop (Volts DC)
shunt_mv_to_amps(mv_reading, shunt_ohm=0.01)NACE TM0497Branch DC current in Amperes (Amps DC)
iso12696_concrete_mesh(concrete_m2, steel_ratio, j_steel_ma_m2)ISO 12696:2022Dict with zone_amps, min_anode_m2, and max_spacing_m
convert_reference_potential(mv_reading, from_ref, to_ref)ISO 15589-1 / NACE TM0497Converted potential between CSE, AGCL, ZN, and SHE (mV)

Cangzhou Judun Pipeline Protection Equipment Co., Ltd.

Tel / WhatsApp / WeChat +86 153 0327 5365 / +86-317-6220889
Manufacturing Base Room 9-213, Bldg 09, Yanshan Int'l Business Center & Qiantong Industrial Zone, Cangzhou, Hebei, China

Your project details are kept strictly confidential for engineering quotation only. View Inquiry Privacy Notice.

💬 WhatsApp