Search/

Request a free quote

Online Circuit Simulator

Cathodic protection rectifier simulation: potential control, IR drop and instant-off

We typically respond within one business day.

An impressed current cathodic protection system on a bench scale: a rectifier drives current from a groundbed anode through the soil to a buried pipe. A reference electrode reads the pipe-to-soil potential, and an ATmega328P sets the rectifier output to hold that potential. The program can control the ON reading or the instant-OFF reading taken while the current is interrupted. The circuit, the soil, the pipe surface and the chip are simulated together.

A teaching model: bench-scale values, the pipe surface as a linear polarization model, and time scaled down so that a cycle lasts 1 s and the pipe polarizes in seconds. On a real structure polarization takes hours to days. It is not a design tool; cathodic protection systems are designed, installed and tested by qualified people.

PlayPauseTimeThe recorded run could not be loaded.ReadingPolarizedCurrentONOFFPipe to soil, CSE

Recorded runs, reference electrode at grade over the pipe. Blue: the meter reading; orange: the polarized potential of the pipe surface; grey: current; dashed: 850 mV. Rain lowers the soil resistance at 30 s.

What is being simulated?

Current leaves the rectifier, passes the groundbed resistance and the soil, and enters the pipe. The pipe surface has its own potential, 650 mV negative to a copper/copper sulfate reference (CSE) in this model, and polarizes further as current flows: a polarization resistance Rp in parallel with a capacitance Cdl. The reference electrode sits in the soil, so part of the soil voltage drop, the IR drop, is in its reading.

reading = 650 mV + polarization + f I Rs

Cdl d(polarization)/dt = I - polarization / Rp

Here f is the share of the soil drop Rs between the reference electrode and the pipe. For a long pipe in uniform soil the potential in the soil falls with the logarithm of the distance, which gives f = 0.059 for a reference buried 5 cm from the pipe, 0.387 at grade over the pipe, 0.722 at 5 m to the side and 1 at remote earth.

PartValue
Rectifier output (teaching model)0 to 12 V, set by the chip
Groundbed resistance2.0 ohm
Soil to the pipe Rs1.5 ohm
Polarization resistance Rp0.2 ohm
Capacitance Cdl10 F
Interruption cycle800 ms ON, 200 ms OFF
Current limit2.0 A

Why does the instant-OFF reading matter?

Criteria used in practice, such as those in NACE SP0169, include a polarized potential of at least 850 mV negative to CSE and at least 100 mV of cathodic polarization. The ON reading includes the IR drop, so it looks better than the pipe really is. When the current is interrupted, the IR drop disappears at once while the polarization decays slowly; a reading taken right after the interruption shows the polarized potential.

In the model, holding the ON reading at -850 mV with the reference at grade leaves the pipe polarized to only -701 mV, 51 mV of polarization; even with the reference buried 5 cm from the pipe it reaches -789 mV. Holding the instant-OFF reading at -850 mV gives -850 mV of polarized potential wherever the reference is placed; with the reference at grade the ON reading is then about -1555 mV with 1.21 A flowing.

What does the default program do?

Every millisecond a timer advances the 1 s cycle and opens the interrupter on D7 for the last 200 ms. 30 ms after it opens, the program reads the reference electrode, four readings averaged, and changes the rectifier command by 0.11 steps per mV of error. It also reads the output current every 100 ms and backs off above 2 A, and it never aims past 1200 mV, since too much protection can harm coatings.

Default program in AVR assembly
Default program in C

Lessons and challenges

  1. IR drop. With a fixed output, compare the ON and instant-OFF readings at each reference position. The difference is f I Rs, the IR drop at the reference.
  2. ON control. Close the mode switch. The ON reading holds at -850 mV, but the polarized potential settles near -701 mV with the reference at grade. Check both criteria.
  3. Instant-OFF control. Open the switch. Check: the polarized potential within 4 mV of -850 mV by cycle 15.
  4. Placement. Move the reference electrode: buried next to the pipe, at grade, 5 m to the side, remote earth. ON control changes with each place; instant-OFF control does not.
  5. Rain. At 30 s the groundbed and soil resistances drop. The current rises for the same output; instant-OFF control lowers the output and holds -850 mV, ON control drifts.
  6. Challenge: a coating holiday. Make Rp ten times smaller. The 2 A limit stops the program before -850 mV; make the program report it on the serial line instead of trying forever.

How were the numbers checked?

The circuit is linear, so its building and decay time constants and its periodic steady state with interruption have closed forms; the simulated runs agree with them. The assembly and C programs give the same rectifier command at every sample, and the ON control result was also solved on the project framework solver.

Reading, polarized potential and current with instant-OFF control
Instant-OFF control. Blue: the meter reading, high when ON and low when OFF. Orange: the polarized potential. Grey: current (A, right). Dashed: 850 mV. Dotted: rain.
Reading, polarized potential and current with ON control
ON control. The reading holds 850 mV while the polarized potential stays far less negative.

From our engineering work

Get your project started

We typically respond within one business day.

Request a free quoteor call (866) 621-6920

Newsletter

Engineering notes from Dreiym

New articles on power systems, corrosion and forensic engineering, by email when we publish. Free account included: keep your calculator work, reports and exports in one place.

Latest article: DC Arc Flash in Battery, UPS and PV Systems: How the Hazard Is Assessed

One email per new article. Unsubscribe in one click.

You are subscribed: new articles come to you by email.

Manage in My account