✅ 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 Signature | Governing Standard | Return Value & Units |
|---|---|---|
dwight_vertical_resistance(rho_ohm_m, length_m, diameter_m) | H.B. Dwight / NACE SP0169 | Single vertical anode resistance to remote earth (Ohm) |
wenner_soil_resistivity(spacing_m, resistance_ohm) | ASTM G57 | Apparent soil resistivity (Ohm·cm) |
pipeline_current_demand(od_mm, length_km, breakdown_factor, bare_j_a_m2) | ISO 15589-1 / ASME B36.10M | Total coated pipeline CP current demand (Amps DC) |
faraday_anode_mass(current_a, years, consumption_kg_a_yr, utilization) | DNV-RP-B401 / ISO 24656 | Minimum required net anode alloy mass (kg) |
cable_loop_voltage_drop(csa_mm2, one_way_m, current_a, temp_c) | IEC 60228 / ASTM B3 | Round-trip 2L copper cable DC voltage drop (Volts DC) |
shunt_mv_to_amps(mv_reading, shunt_ohm=0.01) | NACE TM0497 | Branch DC current in Amperes (Amps DC) |
iso12696_concrete_mesh(concrete_m2, steel_ratio, j_steel_ma_m2) | ISO 12696:2022 | Dict with zone_amps, min_anode_m2, and max_spacing_m |
convert_reference_potential(mv_reading, from_ref, to_ref) | ISO 15589-1 / NACE TM0497 | Converted potential between CSE, AGCL, ZN, and SHE (mV) |
Cangzhou Judun Pipeline Protection Equipment Co., Ltd.
Email
sales@juduncp.com
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