About this project
Between May and September 2023, a client asked me to build the mathematical core of a simulation tool for designing impressed current cathodic protection (ICCP) systems: the rectifiers, anodes and cables that keep a buried steel pipeline from corroding. The requirement was a model that engineers could evaluate in a spreadsheet, which ruled out finite element software and called for closed-form, cell-by-cell formulas. The technical report below documents that framework. It was written up in September 2026, when I recomputed every worked example from my original working notes and corrected the errors I found (Appendix A). The full report can also be downloaded as a PDF.
"Zakaria is a brilliant dude! We had a challenging technical problem where we had to make a simulation for an extensive cathodic protection system and he just helped us CRUSH the math."
— Client feedback, cathodic-protection simulation engagement (2023)
Abstract
External corrosion of buried steel pipelines is controlled in practice by the combined use of protective coatings and cathodic protection (CP). This report presents an analytical framework developed as the computational core of a simulation tool for the design of Impressed Current Cathodic Protection (ICCP) systems. The soil surrounding the pipeline is discretised into cells of 10 m, and the design problem is decomposed into four coupled stages. The first is a cell-wise description of the current density delivered by a single rectifier. The second is its extension, by linear superposition, to an arbitrary number of rectifiers. The third is the electrical sizing of the protection circuit on the basis of Dwight's earthing-resistance formulas. The fourth is the treatment of the coated pipeline as a leaky transmission line in order to quantify potential attenuation. The framework is applied to a reference pipeline of length 1 km and outside diameter 914 mm. A parametric study indicates that distributing a fixed rectifier output over ten stations, rather than one, reduces the ratio of maximum to minimum current density along the line from approximately 51 to approximately 4. The attenuation analysis shows that, over the range of coating resistances considered, the required drain current varies by more than four orders of magnitude. All worked examples have been recomputed independently, and the corrections to the original calculations are documented in Appendix A.
Nomenclature
| Symbol | Unit | Meaning |
|---|---|---|
| m² | external pipe surface | |
| m² | pipe surface per cell | |
| – | coating efficiency | |
| m | anode diameter | |
| V | pipe-to-soil potential (CSE) | |
| V | required potential shift | |
| S/m | coating conductance per length | |
| m | anode burial depth | |
| A | current | |
| A/m² | current density | |
| m | pipeline length | |
| m | anode length; line length (Section 7) | |
| , | m | outside diameter |
| – | cell index of rectifier | |
| Ω | anode-to-earth resistance | |
| Ω | structure-to-electrolyte resistance | |
| Ω | cable resistance | |
| Ω/m | steel resistance per length | |
| Ω | characteristic resistance | |
| m | wall thickness | |
| m⁻¹ | attenuation constant | |
| , | Ω m | soil and steel resistivity |
| Ω m² | specific coating resistance |
1 Introduction
Corrosion is one of the principal mechanisms of degradation of engineering materials. The IMPACT study conducted by NACE International estimated its global cost at approximately US$2.5 trillion, or about 3.4% of world gross domestic product [1]. In the case of buried pipelines, the soil acts as a heterogeneous electrolyte whose corrosivity depends on resistivity, moisture content, aeration, pH and microbial activity [2]. As a consequence, corrosion tends to be localised and difficult to predict. Pipelines are therefore protected by two complementary measures: a dielectric coating, which isolates the greater part of the steel surface from the soil, and cathodic protection, which protects the steel exposed at coating defects, commonly referred to as holidays [3, 4].
The principle of cathodic protection was first demonstrated by Davy, who in 1824 reported the protection of the copper sheathing of naval vessels by means of zinc and iron attachments [5]. When the structure is made the cathode of an electrochemical cell, its potential is displaced towards a region in which the anodic dissolution of iron is either thermodynamically suppressed or kinetically negligible [6, 7]. Protection may be provided either by galvanic (sacrificial) anodes of a more active metal, or by an impressed current supplied by a DC source, the rectifier, which drives current from comparatively inert anodes through the soil onto the structure (Figure 1). Impressed current systems are generally preferred for long or poorly coated pipelines and for soils of high resistivity, in which the driving voltage of galvanic anodes is insufficient [8, 9].
Two principal approaches to the modelling of CP systems may be distinguished in the literature. Analytical methods constitute the basis of current design practice [4, 10]. They comprise the earthing-resistance formulas of Dwight [11] and Sunde [12], together with the leaky transmission-line treatment of potential attenuation [3, 8], which was subsequently extended to account for polarisation and multiple anodes [13]. Numerical methods based on the boundary element and finite element methods resolve the complete potential field in the electrolyte. They have been applied to discrete coating holidays [14], to pipelines with non-negligible ohmic drop in the metal [15], and to more complex geometries such as storage-tank bottoms [16]. Although numerical models are more general, they require detailed input data and specialised software. Analytical models, by contrast, are transparent and computationally inexpensive, and are therefore well suited to preliminary design and to implementation in simple engineering tools.
1.1 Objective and scope
The objective of the present work was to develop the analytical core of an ICCP simulation tool for buried pipelines. The model was required to be evaluable in a spreadsheet environment and to provide (i) the distribution of protective current along the pipeline for an arbitrary rectifier layout, (ii) the electrical sizing of the protection circuit, and (iii) an assessment of the influence of coating quality on the protected length.
1.2 Structure of the report
Section 2 summarises the relevant electrochemical and electrical background. Section 3 describes the spatial discretisation, the reference case and the computational workflow. Sections 4 to 7 develop the four stages of the model. Section 8 presents a parametric design study, Section 9 discusses the validity and limitations of the approach, and Section 10 states the conclusions.
[Image: Schematic of an impressed current cathodic protection system: rectifier, positive and drain cables, anode groundbed, coated pipeline and reference electrode.]Figure 1: Schematic representation of an impressed current cathodic protection system (side elevation, not to scale). The rectifier drives current through the positive cable into the anode groundbed; the current then flows through the soil (blue arrows), enters the pipe surface, including exposed steel at coating holidays, and returns to the rectifier through the negative drain cable. Red arrows indicate the direction of conventional current in the cables. The pipe-to-soil potential E is measured between the pipe, via a test lead, and a Cu/CuSO₄ reference electrode placed at the ground surface.
2 Theoretical background
2.1 Protection criterion
The criterion most widely applied to buried carbon steel requires a structure-to-electrolyte potential equal to or more negative than −850 mV with respect to a saturated copper/copper sulphate electrode (CSE), the ohmic (IR) drop in the soil being taken into account in the interpretation of the measurement [4, 10]:
For a natural (unprotected) potential , the potential shift to be provided by the CP system is therefore
2.2 Equivalent circuit
Under steady-state conditions the ICCP system may be represented as a series DC circuit comprising the rectifier, the positive cable, the anode groundbed, the soil, the pipe surface and the negative (drain) cable. The total circuit resistance is
where denotes the anode-to-earth resistance, the cable resistance and the structure-to-electrolyte resistance. In most practical cases the circuit resistance is dominated by the electrolyte, both in the vicinity of the anodes and at the pipe surface. The contribution of the metallic path is small, except for very long or thin-walled lines [3].
3 Methodology
3.1 Spatial discretisation
The soil is represented by an lattice of square cells of side 10 m, through which the pipeline passes. All state variables, namely the current density, the potential shift and the local electric field, are evaluated at cell level. The continuous problem is thereby reduced to finite sums that can be evaluated directly in a spreadsheet. The discretisation along the pipeline is illustrated in Figure 2.
[Image: Discretisation of the soil into 10 m by 10 m cells along the pipeline, with the drain point at cell 1.]Figure 2: Discretisation of the soil into cells of 10 m × 10 m along the pipeline (schematic, one row of the lattice on either side of the pipe shown). Each cell contains a pipe surface A₁. For a drain point at cell 1, the current reaching cell n is distributed over the surface Aₙ = nA₁.
3.2 Reference case
All results presented in this report refer to the pipeline and environment described in Table 1. The external surface area of the pipe is , which corresponds to per cell.
| Parameter | Value | Parameter | Value |
|---|---|---|---|
| Length | m | Outside diameter | m |
| Wall thickness | m | Steel resistivity | |
| Soil resistivity | (1270 Ω cm) | Discretisation | 100 cells of 10 m |
| Natural potential | V (CSE) | Design current density |
Table 1: Parameters of the reference pipeline and environment.
3.3 Computational workflow
The tool is organised according to the sequence shown in Figure 3. Stages C1 and C2 determine the distribution of the protective current along the pipeline. Stage C3 determines the equipment required to deliver it. Stage C4 assesses the extent of protection achievable for a given coating. Where the resulting protection is inadequate, the rectifier layout is revised and the sequence repeated.
[Image: Computational workflow of the ICCP simulation tool: inputs, stages C1 to C4, and output.]Figure 3: Computational workflow of the ICCP simulation tool.
4 Current distribution due to a single rectifier (C1)
For a rectifier output of A distributed uniformly over the pipe surface, the mean current density is
In this simplified representation the longitudinal resistance of the steel is , and the associated metallic IR drop (of order V) is negligible. The pipe is therefore treated as equipotential at this stage, and the problem reduces to the description of the manner in which current enters the pipe along its length.
A cell-wise spreading rule is adopted for this purpose. With the drain point located at cell 1, the current reaching cell is assumed to be distributed over the pipe surface between the drain point and that cell, , so that
This yields , , , and so forth. When the drain point is located at mid-line (cell 50), the distribution becomes symmetric and the extremities of the line receive . As shown in Figure 4, this is approximately twice the minimum value obtained with an end connection.
[Image: Cell-wise current density for a single 10 A rectifier, with the drain point at cell 1 or at cell 50.]Figure 4: Cell-wise current density for a single rectifier of output 10 A, computed from Equation (5). A mid-line drain point approximately doubles the minimum current density along the line relative to an end connection. Triangles indicate the positions of the drain points; the dotted line is the mean current density for a uniform distribution.
Sign convention. The current density is treated as a one-dimensional quantity directed along the pipe axis . Since , with and the electron drift velocity antiparallel to the electric field, the sign of is fixed by the choice of axis, and only its magnitude is required.
5 Superposition of multiple rectifiers (C2)
Within the linear, purely resistive assumptions of the model, the contributions of independent sources are additive. For rectifiers, rectifier delivering a current at cell , the total current density at cell is given by
in which the unit offset ensures that the cell containing each rectifier constitutes the first cell of its spreading region. Table 2 and Figure 5 present the results for a configuration of two rectifiers, A ( A, ) and B ( A, ).
| Cell | |||
|---|---|---|---|
| 1 | 0.0070 | 0.522 | 0.529 |
| 2 | 0.0071 | 0.261 | 0.268 |
| 6 | 0.0077 | 0.087 | 0.095 |
| 50 | 0.348 | 0.010 | 0.359 |
| 100 | 0.0068 | 0.0052 | 0.012 |
Table 2: Contributions to the current density for the two-rectifier configuration (A/m²).
[Image: Superposition of two rectifiers: individual contributions and total current density along the line.]Figure 5: Superposition of two rectifiers according to Equation (6). The total current density (solid line) is the sum of the individual contributions (dashed and dotted lines). Triangles indicate the rectifier positions. The minimum total current density occurs at the far end of the line (cell 100).
Local electric field. By Ohm's law in the electrolyte, , the field at the pipe surface is . For cell 6 of the configuration considered above, V/m. The current distribution can thus be converted into a map of potential gradient suitable for comparison with close-interval survey data. Where a two-dimensional description is required, for instance in the assessment of interference, the field at a point is obtained by vector superposition of the contributions of the sources and and the sink :
6 Design of the protection circuit (C3)
6.1 Design procedure
In accordance with established practice [3, 8], the circuit is sized by the following procedure.
- The required potential shift is determined from Equation (2).
- The current requirement is computed as .
- The structure-to-electrolyte resistance is obtained as .
- The anode-to-earth resistance is calculated from the groundbed geometry (Section 6.3).
- The cable resistance is computed as , a 10% allowance being added to the routed cable length.
- The total resistance is evaluated from Equation (3), and the rectifier is rated at and . The factor of 1.5 is a design margin intended to accommodate ageing, coating degradation and seasonal variation of soil resistivity.
6.2 Current requirement
For V, Equation (2) gives V. For an uncoated line (),
6.3 Anode-to-earth resistance
The anode under consideration is a cylinder of length m and diameter m, buried at a depth m. Dwight's expression for a horizontal cylindrical electrode [11] may be written in SI units as
In design literature it is frequently quoted in the form , with expressed in Ω cm and in feet [3]. The series expansion underlying Equation (8) is valid for . In the present case , and the anode is more appropriately represented as an isolated cylinder in an infinite medium, with a correction for its image in the insulating ground surface [12]:
6.4 Rectifier rating
For a cable of resistance mΩ/m and length m, Ω. Table 3 compares the resulting rectifier ratings for a single anode and for a groundbed of ten anodes.
| Groundbed | (Ω) | (V) | (A) |
|---|---|---|---|
| Single anode | 5.40 + 0.285 + 0.020 = 5.71 | 123 | ≥ 14.4 |
| Ten anodes in parallel† | 0.54 + 0.285 + 0.020 = 0.85 | 18 | ≥ 14.4 |
Table 3: Circuit resistance and rectifier rating for two groundbed configurations. † Mutual interference between anodes is neglected; the value of is therefore a lower bound.
The groundbed resistance is the dominant term in and hence governs the rectifier voltage. The adoption of a multi-anode groundbed reduces the voltage requirement from approximately 120 V to approximately 20 V, which is within the range of standard 15 A rectifier units.
Comparison with galvanic protection. According to Peabody's empirical relation, the current output of a zinc anode is (mA, with in Ω cm) [3]. For and , mA. A galvanic system supplying 14.4 A would therefore require of the order of 345 zinc anodes, which indicates that impressed current is the appropriate technology for a line of these dimensions.
7 Coating quality and potential attenuation (C4)
In Stage C1 the pipe is treated as equipotential. On an actual pipeline, current leakage through the coating causes the potential shift to decrease with distance from the drain point. Following the classical leaky transmission-line treatment [3, 8, 12], the pipeline is characterised by the following quantities per unit length:
where is the metallic resistance of the pipe wall, the coating conductance and the specific coating resistance. For a line of length drained at and electrically isolated at its far end, the potential shift and the drain current are
These relations are evaluated in Figure 6 and Table 4 for four representative coating qualities, and the dependence of the drain current on the coating resistance is shown over the full range in Figure 6(b).
[Image: Effect of coating quality: normalised potential shift along the line, and drain current as a function of coating resistance.]Figure 6: Effect of coating quality on the reference line of length 1 km, computed from Equation (12). (a) Normalised potential shift along the line: for a bare pipe approximately 16% of the drain-point shift is retained at the far end, whereas a coating of high quality maintains an almost uniform shift. (b) Drain current I₀ required to produce ΔE₀ = 0.293 V as a function of the specific coating resistance; the markers correspond to the four cases of panel (a) and Table 4.
Over the range of coating resistances considered, the required drain current varies by more than four orders of magnitude. The coating quality also determines the length of pipeline that can be protected from a single drain point. On well-coated lines a single station may protect several kilometres, whereas bare or degraded lines require closely spaced stations. The latter configuration is precisely the problem addressed by the superposition model of Section 5.
| (Ω m²) | (Ω) | (A) | ||
|---|---|---|---|---|
| 1 (bare) | 2.53 | 328 | 0.16 | |
| 10 | 0.80 | 70 | 0.75 | |
| 0.080 | 0.028 | 0.84 | 1.00 | |
| 0.008 | 0.28 | 0.008 | 1.00 |
Table 4: Attenuation parameters for the reference line ( Ω/m, V).
8 Parametric study: number of rectifier stations
The use of Equation (6) as a design tool is illustrated by a parametric study. A fixed total output of 25 A was divided equally among stations located at the centres of equal line segments. The uniformity of protection was quantified by the ratio of the maximum to the minimum cell current density, which is plotted in Figure 7(a); the corresponding current density profiles for selected values of are shown in Figure 7(b).
[Image: Parametric study: ratio of maximum to minimum current density against the number of stations, and current density profiles for K = 1, 3 and 10.]Figure 7: Parametric study of the number of equally spaced rectifier stations for a constant total output of 25 A. (a) Ratio of maximum to minimum cell current density as a function of the number of stations K. (b) Current density profiles for K = 1, 3 and 10.
The ratio decreases from 51 for a single station to 11.7 for three stations and 3.7 for ten, while the minimum cell current density increases from 17 to approximately 34 mA/m². The marginal improvement becomes small beyond approximately five stations. This result reflects the familiar engineering compromise between the capital cost of additional stations and over-protection in the vicinity of each drain point. Over-protection not only wastes current but, at excessively negative potentials, may also promote cathodic disbondment of the coating [3, 4].
9 Discussion
9.1 Validity of the spreading rule
Equation (5) should be regarded as a heuristic indicator of the concentration of current near the drain point. It does not satisfy current conservation at cell level (), and its absolute values should therefore not be interpreted as predicted current densities. Its appropriate use is the comparative ranking of rectifier layouts by relative uniformity, as in Section 8. The attenuation law of Equation (12) is derived from the same Ohm's-law physics but conserves current, and therefore constitutes the physically consistent alternative. Its evaluation at cell level represents the natural next development of the tool.
9.2 Linearity assumption
Both the superposition principle and the transmission-line solution assume linear, purely resistive behaviour. In practice the pipe–soil interface polarises, and its effective resistance depends on the local current density. Pierson et al. [13] demonstrated how polarisation resistance may be incorporated into attenuation equations for pipelines protected by multiple anodes. Their formulation can be transferred directly to the present framework.
9.3 Representation of coating defects
The representation of the coating by a uniform conductance is equivalent to the assumption of uniformly distributed defects. Kennelley et al. [14] showed that a single large holiday imposes considerably more severe design constraints than a uniform reduction of coating efficiency of equivalent area. Where holiday survey data are available, discrete defects should therefore be modelled explicitly.
9.4 Relation to numerical models
Boundary element and finite element approaches [15, 16] resolve the three-dimensional field in the soil, heterogeneous resistivity and the interaction between anodes and pipeline. The analytical framework presented here is not intended to replace such models in detailed design. Its value lies in the preliminary design phase, where it permits rapid sizing of rectifiers and groundbeds, screening of candidate layouts and the definition of initial configurations for subsequent numerical refinement.
10 Conclusions
An analytical framework for the preliminary design of ICCP systems for buried pipelines has been developed and applied to a reference pipeline of length 1 km. The principal conclusions are as follows.
- The design problem can be decomposed into four coupled stages, namely current distribution, multi-rectifier superposition, circuit sizing and coating attenuation. Each stage admits a closed-form, cell-wise evaluation suitable for implementation in a spreadsheet.
- The distribution of a fixed output over several stations substantially improves the uniformity of protection. The ratio of maximum to minimum current density decreases from approximately 51 to approximately 4 between one and ten stations, with diminishing returns beyond five.
- The groundbed resistance dominates the circuit resistance. The replacement of a single anode by a ten-anode groundbed reduces the required rectifier voltage from approximately 120 V to approximately 20 V.
- Coating quality is the governing parameter for both current demand and protected length, each of which varies by several orders of magnitude between bare and well-coated pipe.
Further work should replace the heuristic spreading rule by the cell-wise attenuation law, incorporate polarisation kinetics [13], introduce mutual-interference factors for multi-anode groundbeds and spatially variable soil resistivity, and calibrate the tool against field close-interval potential surveys.
Appendix A: Verification of the original calculations
All worked examples contained in the original working notes [17] and on the earlier version of this project page were recomputed independently in the preparation of this report. The discrepancies identified, and the values adopted in the present report, are summarised in Table 5.
| Item | Original value or expression | Value or expression adopted |
|---|---|---|
| Position of rectifier B | "position 0" | Cell 1 (), consistent with the original numerical results. |
| Zinc anode output | 4.73 mA | 50 000 × 1.06/1270 = 41.7 mA. |
| Anode resistance | 1.19 Ω | ≈ 5.4 Ω. The original value combined the constant 0.00521 (Ω cm, ft) with SI inputs and applied Equation (8) outside its range of validity. |
| Dwight formula (web page) | in field units, or Equation (8) in SI units. | |
| Cable resistance | 0.259 Ω | 0.285 Ω, including the stated 10% length allowance. |
| 0.021 Ω | 0.0204 Ω. | |
| Pipe resistance | per unit length. | |
| Attenuation and | , | and , Equation (12). |
| at cell 6 | 1.2296 V/m | 1.20 V/m, from A/m². |
| Pipe-to-soil (web page) | Parallel-plate capacitor with dielectric | Not adopted. Under DC conditions the pipe–soil system is a conduction problem, described by and Equation (12). |
Table 5: Discrepancies identified in the original calculations and values adopted in this report.
References
- G. Koch, J. Varney, N. Thompson, O. Moghissi, M. Gould and J. Payer. International measures of prevention, application, and economics of corrosion technologies study (IMPACT). Technical report, NACE International, Houston, TX, 2016.
- M. Romanoff. Underground Corrosion. National Bureau of Standards Circular 579. U.S. Government Printing Office, Washington, DC, 1957. doi:10.6028/NBS.CIRC.579.
- A. W. Peabody. Peabody's Control of Pipeline Corrosion, 2nd ed., edited by R. L. Bianchetti. NACE International, Houston, TX, 2001.
- NACE International. SP0169-2013: Control of external corrosion on underground or submerged metallic piping systems. Standard Practice, NACE International, Houston, TX, 2013. Superseded by SP0169-2024.
- H. Davy. On the corrosion of copper sheeting by sea water, and on methods of preventing this effect; and on their application to ships of war and other ships. Philosophical Transactions of the Royal Society of London 114, 151–158 (1824).
- M. Pourbaix. Atlas of Electrochemical Equilibria in Aqueous Solutions, 2nd English ed. NACE International, Houston, TX, 1974.
- R. W. Revie and H. H. Uhlig. Corrosion and Corrosion Control: An Introduction to Corrosion Science and Engineering, 4th ed. Wiley, Hoboken, NJ, 2008.
- W. von Baeckmann, W. Schwenk and W. Prinz. Handbook of Cathodic Corrosion Protection: Theory and Practice of Electrochemical Protection Processes, 3rd ed. Gulf Professional Publishing, Houston, TX, 1997.
- J. Morgan. Cathodic Protection, 2nd ed. NACE International, Houston, TX, 1987.
- International Organization for Standardization. ISO 15589-1:2015 – Petroleum, petrochemical and natural gas industries – Cathodic protection of pipeline systems – Part 1: On-land pipelines. ISO, Geneva, 2015.
- H. B. Dwight. Calculation of resistances to ground. Electrical Engineering 55(12), 1319–1328 (1936). doi:10.1109/T-AIEE.1936.5057209.
- E. D. Sunde. Earth Conduction Effects in Transmission Systems. Dover Publications, New York, 1968.
- P. Pierson, K. P. Bethune, W. H. Hartt and P. Anathakrishnan. A new equation for potential attenuation and anode current output projection for cathodically polarized marine pipelines and risers. Corrosion 56(4), 350–360 (2000). doi:10.5006/1.3280538.
- K. J. Kennelley, L. Bone and M. E. Orazem. Current and potential distribution on a coated pipeline with holidays. Part I—Model and experimental verification. Corrosion 49(3), 199–210 (1993). doi:10.5006/1.3316041.
- F. Brichau and J. Deconinck. A numerical model for cathodic protection of buried pipes. Corrosion 50(1), 39–49 (1994). doi:10.5006/1.3293492.
- D. P. Riemer and M. E. Orazem. A mathematical model for the cathodic protection of tank bottoms. Corrosion Science 47, 849–868 (2005).
- Z. Daoudi. Basic maths for ICCP simulation tool. Unpublished working notes, June 2023.