Abstract
Cathodic protection as a complementary technique is widely considered in the industry along with the selection of suitable materials as well as efficient coating considerations. In cathodic protection (CP), anode produces a current output to protect the structure (cathode) and part of the current output is wasted by the grounding system. We developed a 3D, and time-dependent numerical model to simulate the anode corrosion (using arbitrary Lagrangian-Eulerian method), find the deposit formation (by interface tracking level set method), anode mass loss and current wasted by the grounding system. We also defined a CP efficiency as anode mass loss times the current percentage received by the structure. The CP efficiency can be utilized for anode quantity and placement pattern. The results showed when the conductivity of corrosion products (deposit) is lower than that of soil, the current output from the anode decreases over time. When the deposit conductivity is higher than that of soil, the current output from the anode increases in time, reaches a peak, then decreases. This is due to the competition among three factors: anode surface increase, medium conductivity change, and inhibition effect of the deposition layer. For the studied case, almost 54% of the current from the anode is wasted by the grounding system. To illustrate the significance of CP efficiency, this study compares three alternative anode configurations with the original design. It is observed that for a 14.5 kg anode, burying the anodes 2 m deeper enhances the mean potential distribution on the structure by 4%. Additionally, the configuration featuring the 7.7 kg anode, owing to its superior dimensional design, demonstrates improved performance compared to other configurations.
Keywords
Introduction
Cathodic Protection (CP) as an electrochemical process is an effective and widely used technique for mitigating the in-ground corrosion of metallic structures. The performance of this method is greatly influenced by anode bed arrangement, electrode surface characteristics, electrolyte properties, and the corrosion deposits. The findings show that the corrosion deposits have different properties and depend on the species present in the medium. The corrosion deposits can be metal oxides,1–3 metal salts,4,5 porous layers,6,7 or dense layers. 8 The deposits may be impervious/tenacious or porous. Where the corrosion product is impervious, the corrosive medium cannot pass through the deposits, and corrosion rate decreases.9–11 Whereas for the porous layer, the corrosion deposit doesn't have a protective effect12–14 and corrosion accelerates.15–17
Analytical or numerical studies have modeled the corrosion phenomenon, considering the formation of corrosion products (deposits). Yan et al.
18
were among the pioneers who simulated the deposit formation on cathodic-protected steel. They examined the formation of
In all the mentioned articles, the process of deposit formation was time-dependent and dilute solution theory was used. Also, in most of the studies, the deposited layer was considered isotropic, except for Ref. 24. In Refs. 19, 21, and 22, Archie’s law was used to calculate deposit conductivity, while Wang et al. 24 used Bruggeman's law for that. In some sources, e.g. Refs. 19, 21, and 24 the cathode was assumed to be non-corrosive also the LSM was used in some, e.g. Refs. 22–24. All the models were limited to 2D domains and simple geometries. A 3D modeling is needed to simultaneously consider the anode dissolution as well as the deposit formation, and ion inhibition. The 3D model can be used to study the effect of deposit types (porosity and conductivity) on efficiency of cathodic protection and placement of anodes in in-ground cathodic protection systems.
In the literature, the anode and cathode were positioned in close proximity, resulting in greater deposition on the anode and a smaller volume on the cathode. However, in the current model, where the distance between the piles and the anode is approximately 1 m, the majority of the deposit volume is observed on the anode, with only a minimal amount settling on the cathode. Consequently, the primary focus is directed towards the anode. Furthermore, the soil conductivity is characterized by a ratio of 0.01 compared to the brine solution (0.025 S/m versus 2.5 S/m), as outlined in Ref. 21. Consequently, the deposition layer's growth is anticipated to occur at a slower pace.
Our aim in this study is to improve our previously developed 2D time-dependent model to a 3D model and simultaneously model the anode deformation (using arbitrary Lagrangian-Eulerian finite element approach 22 ) and deposit formation (using LSM 26 ). The developed methodology is applied to model the cathodic protection of a screw-pile. It was shown that a portion of the output current from the anodes is wasted by the grounding system. The wasted portion depends on the number and location of anodes.
In previous works and using 3D simulations, the design of the anode bed and the selection of the optimal mode in the steady-state were investigated27,28 and in another work, with the development of simulation factors, the process of protecting the structure over 30 years with anode deformation was studied. 29 In the end, by using wire anodes with backfill and ribbon mesh, the cathodic protection process of the tank bottom was investigated and economic aspects and key parameters were examined. 30
This paper is organized as follows: in the first section, after presenting the considered geometry and expressing the problem hypotheses, the relations governing the simulation model are described i.e. the relations between the electric and concentration fields. Then, by explaining the arbitrary Lagrangian-Eulerian method and LSM for dissolution and deposit formation on the anode, respectively, and defining the boundary conditions, the problem is simulated. In this regard, validation is performed to confirm the simulation. In the second section, the effect of corrosion deposits on cathodic protection system is mentioned. Then changes in current density, deposit formation, and magnesium and hydroxide ion concentrations are presented as 30-year animated albums. The changes in mass of the anode, the output current from the anode, the input current to the steel structure/copper grounding system are expressed. In the third section, in order to find the effect of anode arrangement and anode type from the sizing point of view, several different configurations have been considered. In this regard, cathodic protection efficiency is defined as a parameter for comparing different anode configurations. To understand the usefulness of the cathodic protection efficiency, the preliminary anode configuration is compared with three other configurations, and the most suitable configuration is selected by considering the performance.
Case study and field data
Screw-piles are favored foundations in transmission and distribution lines in wetlands. However, the saturated nature of soils in marshlands renders a high risk of underground corrosion for any steel structure. The design service life for the screw-pile foundation is 50 years; nonetheless, corrosion inspections confirmed 10% material loss in less than 6 years. Sample photos of corrosion damage on the selected foundation are shown in Figure 1. This screw-pile is used to demonstrate our approach for modeling the cathodic protection. Cathodic protection analysis relies on three fundamental points: I. Cathodic protection is applicable when the metal to be protected must be in an electrolyte. Thus, cathodic protection in the atmosphere or air is ineffective. II. Both the anode and cathode must be present in the same electrolyte for cathodic protection to be effective. III. Corrosion occurs at any metal point where the current (loss of electrons) flows out and into the electrolyte. Corrosion created on above the ground (see Figure 1) is atmospheric corrosion, and due to the fact that air is not considered an electrolyte, the cathodic protection method cannot be used and is out of the scope of this article. In these cases, one of the best ways to protect the structure from atmospheric corrosion is to use paint coating in structure in the vicinity of air (waterline).

Pole foundation and extent of corrosion damage.
The foundation design represents a rather complex geometry that demands advanced modeling approaches to find an optimized anode arrangement for cathodic protection of the foundation. Each footing includes eight battered screw-pile and a large vertical pile in the middle. All piles are made of structural steel (ASTM A2527). The buried external surface area of each battered screw pile is 4.2 m2 (45.2 ft2), and for the center pile, it is 12.5 m2 (134.6 ft2). As such, a total bare surface area of 46.1 m2 (496.6 ft2) needs to be protected by cathodic protection. Additionally, a grounding system including a loop and four spikes is attached to the foundations. The grounding loop and spikes are made of copper with a diameter of 3.81 cm (1.5 inches). The buried surface area of the grounding system is 2.49 m2 (26.8 ft2). A saturated copper-copper sulfate reference electrode and a calibrated high-impedance multi-meter (Fluke 28 II) were used to measure structure-to-soil potentials, also known as native or equilibrium corrosion potentials. Measurements were performed at different directions and distances around the structure and showed a slight variation of ±20 mV. An averaged native potential of −700 mV vs. copper/ copper sulfate electrode (CSE) is considered for the structure. Soil resistivity tests were performed per ASTM G57 at the footing of the pole using a soil resistivity meter (Fluke 1623 GEO Earth Ground Tester) to characterize the soil service environment. Measurement data are summarized in Table 1. The results confirm a relatively constant soil resistivity at different soil horizons. Sample photos of field measurements are shown in Figure 2.

The field measurements for structure-to-soil potential and soil resistivity.
Soil resistivity measurement data (per ASTM G57).
Conventional anode bed design
This section presents basic calculations to estimate the weight of anodes required for cathodic protection of the considered foundation. Considering the level of soil corrosivity, high-potential magnesium alloy anodes (type M1, per ASTM B843) are considered.
31
A nominal lifespan of 30 years is assumed for such CP system. A current density of 9 mA/m2 (0.84 mA/ft2), a conservative value for current density, is assumed for cathodic protection. This results in an overestimation of anode mass and can be considered a safety design factor to account for transient effects such as anode passivation (formation of deposition on the anode surface). Considering the buried surface area of 46.1 m2, the total current for cathodic protection is estimated at 0.415 A. The capacity of the CP system can be calculated from equation (1):
Numerical approach for anode bed design
The calculated anode weight from equation (2) is used to construct a preliminary anode bed for numerical simulations. It is essential to mention that several anode arrangements with different sizes (shapes) for anodes can be considered; however, a balance between installation cost and performance of the cathodic protection system must be considered. The preliminary anode bed and numerical domain are shown in Figure 3, which includes 2 × 4 × 14.5 kg (2 × 4 × 32 lb) cylindrical anodes (diameter: 14 cm, and height: 51.8 cm) symmetrically arranged between screw-pile pairs, so the total mass is 116 kg and approximately equal to the mass calculated using equation (2). Anode pairs are vertically stacked with equal spacing in between, the bottom depth of lower anodes is 2 m. The radial distance of anodes from the vertical screw-pile is 2.32 m.

Three-dimensional geometry model for the preliminary anode bed design.
A hemisphere of soil around the foundation is selected as the main electrolyte domain. An outer shell domain with proper boundary conditions is considered around the main hemisphere domain to take into account the effects of the infinite soil environment.
Numerical model assumptions
Before expressing the main governing equations, the model assumptions are listed as follows:
The electrolyte (soil) temperature is uniform and steady. Dilute solution theory is considered. The iron oxidation reaction is ignored as far as the steel is under cathodic protection.
18
The formed deposits are assumed to be A homogeneous reaction occurs in the computational domain. The cathodes are non-corrosive. The deposition formation is an irreversible reaction.
Current in the soil
For transient problems, the electrical potential for the computational domain of soil and the deposition are as follows
21
:
Mass transfer
The soil near the participant anode surface becomes more alkaline compared to the bulk, combination of
Effective diffusion coefficients are expressed using the soil volume fraction:
The material balance equation of species is expressed as:
The formation of deposits
One of the methods of tracking the moving interfaces is to use a LSM.
26
This method is a conceptual framework for surface sets and is a tool for numerical analysis of surfaces and shapes; and tracks the moving interfaces or boundaries utilizing a fixed mesh. Also, the LSM makes it easy to follow shapes that change topology. To find the interface with the velocity field
The corrosion of anode includes two steps: (i) magnesium ions dissolve from the anode surface into the soil near the anode (equation (21)) and (ii) the magnesium ions react with hydroxide ions and form the deposit on the anode surface (equation (22)). In other words, as the anode surface is deformed due to dissolution, the
Boundary conditions
The Tafel equations are used as boundary conditions for anodes and cathodes as follows
35
:
Simulation parameters.
Model validation
The validation examined the effect of bimetallic corrosion between a magnesium alloy and mild steel in contact with brine solution. In this regard, the developed model in this study is validated against the experimental finding using SVET (Scanning vibrating electrode technique) of a bimetallic corrosion in, 44 and a numerical result in, 21 see Figure 4, where current density distributions are shown in the magnesium-steel coupled surface at a time interval of 1000 s. Negative and positive values determine the cathodic reduction and anodic dissolution currents, accordingly. The maximum anodic current density in,21,44 and this study are: 84.1 A/m2, 81.6 A/m2 and 80.7 A/m2, accordingly. Hence, our numerical results are in excellent agreement with experimental results.

Results and discussions
To accurately model the electrochemical process of cathodic protection for steel structure, a nonlinear set of governing equations needs to be solved numerically. In this study, we utilized COMSOL MULTIPHYSICS (V 5.2), a finite element PDE solver, to impressively solve these equations and draw the distributions of potential and current density within the computational domain.
In order to create a suitable mesh, considering the importance of dissolution and formation of deposition on the anode, we employed an extra fine element size in the meshing process. The resulting meshes comprise 86,618 mesh vertices, 446,343 tetrahedron elements, 49,384 triangle elements, 7268 edge elements, and 315 vertex elements, with an average element quality of 0.8468. With the completion of this meshing process, now we discuss about the deposition formation process and its simulation.
The

Variations in current density (
The corrosion deposition may increase or decrease the electrical resistance at the anode-soil interface depending on the deposit conductivity relative to soil conductivity (see Figure 5). The deposit formation also affects the ion transport and inhibits the ion transfer which should result in slower electrochemical reactions.
When the deposition conductivity is lower than the soil conductivity (e.g. Figure 5(b)), formation of deposit layer increases the electrical resistance at the anode-soil interface; as well as ion transport inhibition. As such, the current output from the anode constantly reduces. However, when the deposit conductivity is higher than that of soil (e.g. Figure 5(c)), as the anode dissolves, the medium near the anode becomes more conductive, and as shown in Figure 5(c) the current density increases in time.
Further investigations show that the current density of the case in Figure 5(c) increases in time, reaches a peak then decreases, see Figure 6(a). In other words, the increase in anode corrosion rate (more current output) means the cathodic protection is higher. So, when the deposit conductivity is higher than the electrolyte conductivity, the cathodic protection is more effective at first, and after passing the peak current value, the corrosion rate and thus the cathodic protection process decreases. This phenomenon is explained by the competition between the expanding anodic surface and the inhibiting effect of the deposit layer. Thus, the growing deposit layer can inhibit the current density, while the enlarging of the electrode area over time leads to an increase in the current. Initially, the thin deposit layer has little protective effect and thus the expanding electrode area dominates the competition, causing the current to increase with time. Over time, the deposit layer becomes increasingly thick and forms an effective protective barrier to inhibit the corrosion current density. In this condition, the expansion of the electrode area cannot neutralize the inhibiting effect of the growing deposit layer, and as a result, the current decreases with increasing time.

(a) current output from all anodes (b) average anode mass loss in soil at different deposit conductivity and without deposition over 30 years (c) current input to structure (d) current input to grounding system.
It is worth noting that neglecting the effect of deposition in the simulations may result in over-predicting or under-predicting the anode corrosion, depending on the corrosion deposition conductivity, see Figure 6(b).
Using Figure 6(a) and (b), one may compare the output current from anode and anode mass loss after 30 years for three cases:
As expected current output from anodes is divided between the steel structure and the copper grounding system. In the following, the distribution of the CP currents between the steel structure and the copper grounding system is shown in Figure 6(c) and (d), respectively. Simulation results show that around 54% of the CP current is received by the grounding system, and only about 46% is used to protect the main structure, despite a significant portion of steel structure.
An animated trend of deposit formation on anode-soil interface is shown over 30 years in Figure 7. The formation of deposit begins from the two ends of the anodes and then covers the whole anode surface.

Schematic of deposit formation on anode surface over 30 years (a) deposition conductivity is lower than the soil conductivity, i.e.
Indeed, Figure 7 shows a plot of volume fraction of deposition over 30 years. The region with volume fraction 1 represents the corrosion product deposition and value 0.5 represents the position of corrosion product interface. The simulation results show when the deposition conductivity
Due to the competition between the transport process and the electrochemical reaction, as the electrons are free to leave the anode,

Distribution of (a)
Figure 9 shows the distribution of potential and cathodic protection current density distribution on the main structure after one year, 15 years and 30 years from the protection. The results confirm a decrease in protection level. Based on the NACE SP0169 standard, 45 middle and bottom sections of structure depict low protection levels compared to the top section. The reason is that the focus of the anode arrangement is in the upper part of the structure, and most of the protection current is consumed by the copper grounding system.

(a) Potential (
As explained in Figures 3, 6(c) and (d) almost 54% of the output current from the anode is wasted by the grounding system, and only about 46% is used to protect the structure. The designer goal is to protect the buried structure from corrosion, not the grounding system. The number of anodes, their location, and cost (anode and installation) are the most essential parameters of the cathodic protection system, and in practice, these parameters should be optimized. So here we define a cathodic protection efficiency as follows:

The studied configurations are shown: (a) the original:
Figure 11 shows cathodic protection current density and potential distribution on the steel structure after 1 year and 30 years. As can be seen, the

Potential (

Variations in current density (
The data of different configurations where
*The remaining current is received by the grounding system
As shown in Figure 10, the anode mass in all the configurations is somewhat equal. After 30 years, in the
Overall, the comparison indicates that from the protection perspective, the 3rd configuration displays relatively better performance than other configurations but at a higher cost. Thus, trading between cost and level of protection is the most important challenge and creates a condition to perform an industrial optimization in future, of course, if the structure is close to the protection range or on the threshold of losing the protection range.
The information in Table 3 shows the inefficiency of the 14.5 kg anode. In this regard, the current output in each anode and the overall current have been investigated. Using the empirical tests around the magnesium anode,48–50 the relation 29 is presented for the output current from every anode as follows:
Also Dwight's relationship and the output current from each anode are presented as equation (30):
Comparing the results of output current values from 7.7 and 14.5 kg anodes using equations 29, 30 and Comsol software.
The summary of calculations is presented in Table 6 for configurations 2 and 3 with identical anode placement. As can be seen despite the anodes having nearly equal mass, the 7.7 kg anodes have 42.9% more current output than the 14.5 kg anodes and provide much better potential distribution and higher efficiency (see Figure 11). Meanwhile, the 14.5 kg anodes do not even supply the current required for protection. Also, considering the 30-year-old design, it was expected that a large percentage of the anode would be consumed to determine the efficiency of the anode, but in the anode of 14.5 kg, about 51% of the mass of the anode remains and only 57% of the output current is directed to the structure and 43% goes to the adjacent structure (see Table 3). Also, optimization and experience show that as the ratio of anode length to diameter increases, current output and anode efficiency increase. Also, the 14.5 kg anodes have an inefficient design due to their low current output compared to their large mass, and to solve the shortcoming of this design, they must be used together with backfill to fix the small current output defect. With the descriptions provided, it can be concluded that the 7.7 kg anode has a suitable design in terms of dimensions and due to its effective current output and suitable efficiency, is more practical in industries.
Specifications related to current output, total weight and dimensional ratio for Config. 2 and 3.
In general, our model thoroughly explores the dynamics of current output from dissolved magnesium sacrificial anodes, encompassing concentration, electrical, and electrochemical fields, while incorporating the influence of deposition through the level set method. The investigation spans a 30-year timeframe, addressing critical factors such as anode burial depth and the utilization of anodes. Specifically, we carefully examine the impact on the current directed towards the protected steel structure and the consequential waste current to the ground system. This model can be applied to diverse CP situations, providing valuable insights into anode corrosion, deposit formation, and CP efficiency across varying conditions.
Conclusion
In this study, we conducted a comprehensive three-dimensional and time-dependent numerical simulation to model cathodic protection for in-ground structures. The concentration, electrical, and electrochemical fields, along with their governing relationships, were thoroughly explained to describe the impact of deposition on the current output of magnesium sacrificial anodes. Our findings revealed that if the conductivity of the deposition is lower than the soil conductivity, the output current diminishes over time. Conversely, when the deposition conductivity surpasses the soil conductivity, the output current experiences an initial increase, reaches a peak, and subsequently decreases. Three key factors influencing this process include an increase in anode surface area, alterations in medium conductivity, and the inhibitory effect of the deposition layer. The primary goal of our research is to protect steel structures, recognizing that a significant portion of the anode's output current is lost to the grounding system. In the original cathodic protection system, 54% of the anode current is directed towards the grounding system. Furthermore, we explored the impact of anode burial depth on the current directed towards the steel structure, emphasizing the need to reach a balance between burial depth and increased costs. In a comparative analysis, we evaluated the current output of two anodes weighing 7.7 and 14.5 kg. The results indicated that the 7.7 kg anode exhibits a more effective current output for structural protection, attributed to its superior dimensional design. Our assessment introduced a cathodic protection efficiency parameter, calculated as the anode mass loss fraction multiplied by the current fraction received by the steel structure. To evaluate the significance of this parameter, we compared the original configuration with three alternative configurations, each possessing a relatively equal total anode mass.
Footnotes
Acknowledgments
AM would like to acknowledge the HCT interdisciplinary grant for generous financial support.
Declaration of conflicting interests
The authors declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The authors received no financial support for the research, authorship, and/or publication of this article.
