Introduction

High-density brines have long been used during drilling, completion, and workover operations during oil and gas production.1 Concentrated aqueous solutions of halide salts of alkali and alkaline earth metals, which provide high fluid density while minimizing cost, are commonly used in these applications.1 However, such high concentrations of halides, particularly chloride (Cl) and bromide (Br), are likely to result in significant corrosion of the steel pipe (sheath) that conveys fluid hydrocarbons to the surface.2,3,4 Halides induce steel corrosion by a variety of processes including: break down of the airborne oxidation film, accelerating pit formation, and facilitating pit growth.5,6,7 Chloride ions are considered to be more aggressive than Br due to their higher electron affinity and stronger adsorption on the oxidation film surface.8

Inhibitors such as calcium nitrite (Ca(NO2)2) and calcium nitrate (Ca(NO3)2) are known to retard the corrosion of reinforcing steel.9,10,11 While Ca(NO3)2 is cheap and abundant, its ability to inhibit corrosion in highly concentrated halide environments is not known. Nevertheless, it has been suggested that nitrate inhibits corrosion by facilitating the formation of ferric hydroxide (Fe(OH)3) in the anodic corrosion region, decreasing the extent of iron migration as aqueous ferrous/ferric chlorocomplexes, and thereby reducing iron dissolution.10,12 While corrosion inhibition by Ca(NO3)2 has been studied using electrochemical methods13,14—direct observations of corroding surfaces from the nano-scale to micron-scale, which can be rationalized against electrochemical studies, have remained broadly unavailable.

Vertical scanning interferometry (VSI) can be used to study the kinetics of reactions at solid–liquid interfaces, including mineral dissolution, precipitation, and metallic corrosion at unparalleled resolution.15,16,17 The high lateral and vertical resolution18 of VSI makes it ideally suited to monitor small changes in the topography of steel surfaces, due to processes such as the dissolution of steel,19 precipitation of corrosion products,20 and the growth of the passive films21, from the nano-scale to micron-scale. This capability offers significant advantages over electrochemical methods which, most often, can only measure bulk behavior.13,14 Furthermore, the capability to probe spatially localized corrosion over large sample areas (10 s of mm2) presents advantages over scanning probe techniques, which are most often restricted to examining small, very localized surface areas.22,23

Herein, the retarding effect of Ca(NO3)2 on the corrosion of American Petroleum Institute (API) P110 steel is examined in the presence of brines composed using calcium chloride (CaCl2) or calcium bromide (CaBr2).24,25 VSI is used to quantitatively and statistically analyze three-dimensional (3D) surface topographies, and their evolution, in time to reveal the mechanisms by which Ca(NO3)2 alters and suppresses halide-induced corrosion. The outcomes support the use of Ca(NO3)2-based brines in completion and workover fluid environments and provide insights into its behavior as a corrosion inhibitor.

Results and discussion

Corrosion inhibition by calcium nitrate in the presence of halide-containing brines

Figure 1 shows representative height change maps of the steel surfaces following immersion in brines consisting of 10 mass % CaCl2 and 10 mass % CaBr2 solutions for 0, 1, 3, and 7 days. Expectedly, characteristic general corrosion features are observed following exposure to halide brines.28,29 This includes processes encompassing the initiation, propagation, and accumulation of corrosion pits.30 Quantitative evolutions of the average surface height change of API P110 steel over time as a function of Ca(NO3)2 dosage in the presence of 10% CaCl2 and 10% CaBr2 brines are shown in Fig. 2a, b. A linear function fitted to the data set reveals the net reaction rate, that is, including steel dissolution and corrosion. The uncertainty in rates is estimated to be around 15% based on replicate experiments. The relative corrosion rates in the presence of various dosages of Ca(NO3)2, RCRCN, were calculated as:

$${\mathrm{RCR}}_{\mathrm{CN}} = \frac{{{\mathrm{CR}}_{\mathrm{CN}}}}{{{\mathrm{CR}}_0}},$$
(1)

where CRCN and CR0 refer to corrosion rates in the presence and absence of Ca(NO3)2, respectively (see Fig. 2c, d).

Fig. 1
figure 1

Representative height change maps of API P110 steel surfaces obtained using vertical scanning interferometry after immersion in a 10 mass % CaCl2 brine for: a 1 day, b 3 days, c 5 days, and d 7 days. The height change maps following periods of exposure to a 10 mass % CaBr2 brine are shown in e to h for the same reaction times, respectively. The height change is calculated with respect to the initial, pristine (unreacted) steel surface. The scale bars represent a length of 2 mm

Fig. 2
figure 2

The a, b average surface height change and c, d relative and absolute corrosion rates of API P110 steel surfaces over time in a, c 10 mass % CaCl2, and b, d 10 mass % CaBr2 brines containing 0, 0.1, 1, and 10 mass % Ca(NO3)2. The dashed lines in a, b indicate the best-fit lines for each data set, whose slope reveals the net corrosion (reaction) rate shown by the secondary y-axis in c, d. The ratio of corrosion rates in the presence and absence of Ca(NO3)2, that is, relative corrosion rates, are also shown in c, d on the main y-axis. The dashed lines in c, d indicate the corrosion rates and relative corrosion rates when Ca(NO3)2 is absent. The error bars represent the standard error of the mean

The average height change and corrosion rate data reveals that steel corrosion is enhanced and accelerated in CaCl2 as compared to CaBr2. This is also evident from the VSI images in Fig. 1, which highlight the smaller dimensions and shallower depths of pits in the latter case. This behavior is expected to be on the account of the somewhat lower pH of the chloride solutions than the bromide solutions (see Table 1), and the higher electronic density, and smaller anion size of Cl ions as compared to Br ions, which facilitates their penetration into and subsequent disruption of the air-formed oxide film that is present on steel surfaces.8,31

Table 1 The pH of the solutions used in the corrosion

The corrosion rate data also reveal that, in general, lower concentrations of Ca(NO3)2 are generally more effective at inhibiting corrosion than higher concentrations. Also, at low nitrate concentrations (≤1 mass %), the extent of inhibition enhances with increasing Ca(NO3)2 concentration. Indeed, a minimum in the corrosion rate is observed at a Ca(NO3)2 concentration of 1 mass % following exposure to both CaCl2 and CaBr2 brines. This result is consistent with previous findings which indicate that low(er) concentrations of Ca(NO3)2 are suited for ensuring inhibition.10 Increasing the dosage of Ca(NO3)2 to 10 mass % decreased the effectiveness for inhibition in both halide-containing solutions. This observation is further discussed below.

The mechanism of corrosion inhibition by Ca(NO3)2 is revealed by statistical analysis of surface height evolutions and microstructural observations

Statistical analysis of corroding surface topographies was carried out for steel samples exposed to CaCl2 brines—both in the absence of and in the presence of Ca(NO3)2. The representative frequency distributions of surface height change of steel surfaces corresponding to the height change maps in Fig. 1a–d are shown in Fig. 3a. The frequency values in the distribution plots are normalized to the total number of pixels—thereby indicative of the percentage of the total surface area that is occupied by a given corrosion feature.

Fig. 3
figure 3

The frequency distributions of height change for API P110 steel surfaces following exposure to: a 10 mass % CaCl2 brine up to 7 days, and b 10 mass % CaCl2 brine containing 0, 0.1, 1, and 10 mass % Ca(NO3)2 for duration of 7 days. The frequency is normalized to the total number of pixels in the image. In a, the secondary peaks representing pitting are labeled with dashed lines. The horizontal (orange) arrow indicates pit growth in the vertical coordinate and the vertical (green) arrows indicate lateral growth (and coalescence) of existing pits, and the formation of new pitting sites. The corresponding height change maps of b are shown in c. The height change is calculated with respect to the initial, pristine steel surface. Selected areas marked with red box in c are shown in more detail in d. The scale bars represent lengths of (c) 2 mm and (d) 500 μm

To offer quantitative analysis and the significance of the (height change) frequency distributions, first, the data were fitted using a two-term Gaussian function of the form:

$$f\left( x \right) = a_1 \cdot {\mathrm{exp}}\left( { - \left( {\frac{{x - b_1}}{{c_1}}} \right)^2} \right) + a_2 \cdot {\mathrm{exp}}\left( { - \left( {\frac{{x - b_2}}{{c_2}}} \right)^2} \right),$$
(2)

where x, a, b, and c denote height change, a scaling factor for frequency, mean height change, and the spread in height change, respectively. The subscripts 1 and 2 denote the main peak and secondary peak, respectively. The fitting exercise revealed main peaks, centered at −0.53, −0.88, −1.52, and −1.86 μm for reaction times of 1, 3, 5, and 7 days, respectively. These peak values are smaller than the average surface height change, that is, −1.04, −2.72, −4.44, and −6.10 μm (Fig. 2a) at the corresponding reaction times. Indeed, the main peaks represent slowly corroding areas (lighter brown shade) shown in Fig. 1a–d. The areas identified by the main peak encompass 40–60% of all pixels—indicating that a majority of the steel surface is only slightly affected by corrosion. A broader distribution to the left (i.e., more negative values of height change) of the main peak is observed that is labeled by dashed lines in Fig. 3a. The secondary peaks correspond to height changes in the range of −8 to −20 µm, consistent with localized regions undergoing much higher surface retreat (darker brown in color scale) as compared to the bulk surface seen in Fig. 1a–d. As time elapsed, the positions of the secondary peaks shifted by around 5 µm to more negative values as denoted by the horizontal orange arrow, suggesting that localized sites—for example, pits—serve as fast reaction zones that recess at a rate that is much higher than the bulk alloy surface. In addition, it should be noted that the normalized frequency of pixels increased (as marked by vertical green arrows; see Fig. 3a) implying that the extent of the surface affected by corrosion increased due to growth and coalescence of existing pitted areas, and the formation of new pits. As such, section loss due to corrosion results from both: (1) general recession of the steel surface to a small extent (by <2 µm after 7 days) and (2) fast localized corrosion that manifests by the deepening and lateral growth of pitting sites.

Figure 3b–d illustrates the effects of Ca(NO3)2 dosage on corrosion rates for API P110 steel exposed to 10 mass % CaCl2 brine. Foremost, at low dosages of Ca(NO3)2 (i.e., 0.1 mass % and 1 mass %), the frequency distribution curves differ from the case with no nitrate in several significant ways. First, both the main and secondary peaks are shifted to less negative values upon Ca(NO3)2 addition, consistent with the decrease in average height change shown in Fig. 2a. Based on analysis of the fitting parameters b1 and b2(see Fig. 4a), it is suggested that Ca(NO3)2 reduces corrosion rates by suppressing both general recession (i.e., bulk dissolution) and fast localized corrosion at pitting sites, although the influence on localized corrosion is more pronounced. In addition, peak widths given by the parameters c1 and c2 also decreased, as shown in Fig. 4b, suggesting a decrease in uniform corrosion with Ca(NO3)2 dosage. A comparison of the frequency distribution curves in the absence of nitrate and in 1 mass % Ca(NO3)2 highlights a shift of the secondary peak towards less negative values by around 7 μm, simultaneous with a decrease in the normalized frequency by more than one order of magnitude. Significantly, this indicates that low concentrations of Ca(NO3)2 inhibit corrosion processes by reducing the rate of vertical and lateral expansion of pits. Notably, further increasing the nitrate ion concentration to 10 mass % resulted in a frequency distribution that closely resembled that of the nitrate-free conditions evidencing that increasing [NO3] beyond an optimal value is detrimental.

Fig. 4
figure 4

A summary of the Gaussian fitting parameters: a peak positions b1, b2, and b peak widths c1, c2 for the frequency distributions of height change for steel surfaces following exposure to 10 mass % CaCl2 brine containing 0, 0.1, 1, and 10 mass % Ca(NO3)2 for 7 days. The subscripts 1 (blue) and 2 (red) denote the main peak and secondary peak, respectively. The blue and red horizontal dashed lines identify baseline values in Ca(NO3)2-free systems

To better elucidate the functions of Ca(NO3)2 as a corrosion inhibitor, the VSI observations were augmented by SEM visualizations of corroding surfaces. First, as shown in Fig. 5a, API P110 steel presents a single-phase martensitic microstructure with a grain size of around 10 μm. Visualization of corroded microstructures reveals that pits are localized at pre-austenite grain boundaries, for example, as shown in Fig. 5b and S2, consistent with previous observations.32,33,34,35 It is generally thought that in the presence of Cl ions, surface defect sites, for example, grain boundaries, and secondary-phase inclusions are most vulnerable to pitting.33,36,37 As pitting initiates, the release of iron in the form of Fe2+ promotes local acidification within the pit following the reaction: (1) Fe−2e→Fe2+, (2) Fe2++H2O→Fe(OH)++H+, and (3) Fe(OH)++H2O→Fe(OH)2+H+, resulting in an acidic pH in the bottom of the pit.38,39,40,41 The high local H+ and Fe2+ activities at the bottom of the pit—and the corresponding gradient that develops—results in the transport of anions towards the pitted area. The concentration gradient of ions induces the development of an electrochemical potential difference between the pit bottom and the surface of the steel that can be as high as hundreds of millivolts.42,43

Fig. 5
figure 5

SEM micrographs of: a an as-polished API P110 steel surface, showing its martensitic microstructure, and, b a representative pit that forms on a steel surface reacted with 10 mass % CaCl2 brine for 20 h showing a radial depression that forms around a central pitting site. VSI topography images of a representative pit and its vicinity formed following contact with: c 10 mass % CaCl2 brine, and, d 10 mass % CaCl2 + 1 mass % Ca(NO3)2 solution for 20 h, corresponding line profiles along the central lines are shown in e, f with inserted profiles of pit bottoms. The VSI images were acquired using a ×20 Mirau objective with a lateral resolution of 0.47 μm. The scale bars represent lengths of a 10 μm, b 30 μm, and c, d 50 μm

The pit morphologies observed in Fig. 5 are significantly smaller than stable pits that form on surface of passivated steels.44 Further, as shown in Fig. 5b, herein, a rapidly corroding zone is noted to form around a central pit whose radius is several times larger than that of the pit itself, that is, in terms of its radial dimension. A line profile (Fig. 5e) drawn through the center of the pit—using the VSI topography image (Fig. 5c)—shows that the surrounding radial area (“basin”) encompasses a radius of 80 μm, whereas the central pit only achieves a maximum radius of 17 μm (and a depth of around 3.5 μm). It is the formation of such radial basins that explains the secondary peaks evident in the frequency distribution curves (Fig. 3).

By simulating the effects of anodic corrosion on the evolution of the pit geometry, we attribute the formation of these radial basins as being the result of near-surficial, lateral expansion of the pit mouth (e.g., see Fig. 5b–f), for example, as observed in the corrosion of AISI 1045 steel by Guo et al.30 As such, Fig. 6 shows the simulated local potential distribution and resulting electric field strength distribution and the implications on the formation of the radial basin using a finite element approach (COMSOL Multiphysics, ver. 4.4). The simulation considers a hemispherical pit as shown in Fig. 6a. This represents a typical morphology for a pit36 and resembles the central pit shown in Fig. 5b, c. Upon the initial formation of the hemispherical pit (e.g., perhaps at a MnS site), fast dissolution results in development of an electrochemical potential difference between the pit bottom and pit mouth. Herein, the pit bottom serves as the anode with an assumed potential that is 100 mV more anodic relative to the pit mouth that serves as a cathode. The potential along the pit wall is assumed following a simple linear distribution written as:

$$\Phi _{\mathrm{wall}} = \frac{{(\Phi _{\mathrm{bottom}} - \Phi _{\mathrm{mouth}})}}{L}x - \Phi _{\mathrm{mouth}},$$
(3)

where Φwall is the potential of the pit wall at a depth of x, Φbottom is 100 mV at the pit bottom where x=L, and Φmouth is referenced as zero. Figure 6b, c show the simulated spatial distributions of the potential and normalized electric field governed by the harmonic condition: 2Φ = 0, in both the solution and the adjacent steel surface, respectively. The simulation indicates that the development of an electric field concentration at the pit mouth results from its convexity or curvature, for example, similar to a stress concentration (see arrows in Fig. 6c). Significantly, Fig. 6c highlights that the electric field concentration affects both the steel surface at the pit mouth and the solution in the vicinity. In unpassivated alloys, this forebodes the fast expansion of the pit mouth due to an electrostatically induced change in interfacial tension at the steel–solution interface.45 At later times, however, such lateral expansion is expected to hinder pit deepening due to attenuation of the local concentration gradients of ions in the pit. This suggests that in simply oxidized, that is, non-passivated systems, the pit morphology shown in Fig. 5 is unlikely to sustain a mass-transport limiting current that is required for stable pit growth. Therefore, the potential and concentration gradients will disappear following the discontinuance of the pit growth, and a general corrosion rate can be applied to both the pit wall and the pit mouth. Figure 6d shows the morphology evolution of an “arrested” pit with the same dissolution rate (5 A/m2)46 along the pit wall and the open surface. This indicates that the expansion of the pit mouth is induced as a function of its high surface to volume ratio, that is, local curvature. This suggests that the corrosion pits that form will eventually transition into “recessed basins” rather than the stable pits that are observed in passivated alloys.36,44,47

Fig. 6
figure 6

a A schematic showing the pit geometry and the applied potential profile, b the simulated potential distribution with isopotential contours in the steel and in the vicinity of the pit, c the simulated electric field strength distribution with isofield contours, the arrows indicate an electric field concentration at the pit mouth due to a convexity, and d the morphology evolution of an “arrested” pit

The radial basins discussed above were also found on steel surfaces reacted with 10 mass % CaCl2 containing 1 mass % Ca(NO3)2 solution following 20 h of contact (Fig. 5d). Although the central pit depths are similar across Ca(NO3)2-free and Ca(NO3)2-dosed systems (i.e., 3.5 µm), the central pit features a much smaller opening (8 µm in diameter) when Ca(NO3)2 is present. Furthermore, unlike the case with no added Ca(NO3)2 (Fig. 5c, e), the pits formed in Ca(NO3)2-dosed environments are less well developed. For example, first, the region of enhanced corrosion around the central pit is smaller (20 vs. 80 µm in radius). Second, the average vertical depression of this area is considerably smaller, that is, 0.8 vs. 1.8 µm. It is interesting to note that a slight increase in height around the pitting area is also apparent, for example, due to localized formation and attachment of corrosion/oxidation products. This is consistent with the proposed corrosion inhibition mechanism of NO3 ions. Specifically, nitrate is thought to consume released Fe2+ species by oxidizing it to Fe3+. This results in the precipitation of solid corrosion products such as Fe oxides and hydroxides.10,12 Consequently, the pitting site is isolated by the deposition of such precipitation products and thereby protected from further corrosion by reducing its access to electrolytes in solution. The deposition of corrosion products at the pit mouth is also expected to reduce its convexity, and electrical field concentration at the pit mouth—resulting in the formation of more diffuse, albeit shallower basin depressions as evidenced in Fig. 5d, f. Furthermore, the migration and concentration of NO3anions towards the anodically corroding regions is expected to follow the electric field intensity and compete with the transport of Cl to the same sites. These actions alleviate the Cl concentration at anodic sites and mitigate Cl-induced localized corrosion around pitting sites in the presence of Ca(NO3)2.48,49 This explains why shallower pits, and smaller basins develop in Ca(NO3)2 containing systems at moderate dosages. This interpretation is consistent with the trends obtained from the frequency distribution curves above which highlight: (1) a shift in the position of the secondary peak towards less negative values, and (2) a reduction in normalized frequency of pixels associated with secondary peaks. Contrastingly, when the Ca(NO3)2 concentration is further increased, however, the oxidizing potential of the bulk solution also increases. It is for this reason that high dosages of Ca(NO3)2 (10 mass %) enhance the oxidative dissolution of iron and compromise the corrosion inhibition effect that is offered by Ca(NO3)2 additions at lower concentrations.50

As such, in closing this paper has comprehensively examined the corrosion of API P110 steel in concentrated halide environments in the presence of Ca(NO3)2 as a corrosion inhibitor. Special focus is placed on examining the evolution of corroding topographies—at unparalleled resolution—across a large field of view (FOV) using VSI for samples reacted in a controlled environment under isothermal conditions. Careful analysis of surface topographies, pixel-by-pixel, indicates that while moderate concentrations of Ca(NO3)2 can effectively inhibit corrosion in the presence of Cl and Br, such inhibition is compromised at higher dosages due to the significant oxidizing potential of the bulk solution. By statistical analysis of surface height data (“frequency distributions”), it is highlighted that Ca(NO3)2 suppresses localized corrosion primarily, although a measurable effect on general corrosion was also observed. Localized corrosion is manifested by a fast dissolution zone (i.e., basin), which forms in the vicinity of central pitting sites. Simulations of the electrochemical evolutions within a pit suggest that these features arise from the fast expansion of the pit mouth whose local curvature results in the concentration of an electric field distribution. The mechanism of NO3 inhibition is consistent with this model such in the presence of nitrate the oxidation of Fe2+ to Fe3+ leads to the precipitation and deposition of Fe oxides and hydroxides, hindering further pit expansion. To the best of our knowledge, this is the first time that the inhibition effect of Ca(NO3)2 has been evidenced from quantitative and statistical analysis of corroding surfaces. These findings provide new insights regarding the role of the water chemistry and inhibitor dosage to suppress steel corrosion evolutions in aggressive halide-rich environments.

Methods

Materials: Preparation of steel surfaces and brines

Commercially available API P110 steel (McMahon Steel Supply) with a nominal composition of C (0.25%), Si (0.36%), Mn (1.24%), P (0.013%), S (0.004%), Cr (0.50%), Al (0.03%), and Fe (97.6%) was used. During its processing, this steel is quenched, giving rise to a microstructure that is characterized as monophasic martensite. The steel was machined into coupons having dimensions of 6 mm × 6 mm × 4 mm (length × width × height) and then embedded in epoxy resin to facilitate handling, while leaving only the top surface of the steel exposed. The steel surface was then polished successively using SiC sand paper and diamond paste until it featured a surface roughness (Sz) of 1 μm. Thereafter, the sample was ultrasonically rinsed with ethanol and deionized (DI) water for 3 min, and stored in a desiccator after being dried under an air stream. The epoxy-mounted samples were secured on kinematic mounts (Thorlabs) to maintain imaging positions within ±3 µm and ±1 µm over the course of the experiments.

Brines were prepared by adding ACS reagent grade CaCl2, CaBr2, and Ca(NO3)2 to DI water to produce 10% CaCl2 or 10% CaBr2 solutions that contain 0%, 0.1%, 1%, and 10% Ca(NO3)2 (mass basis). The measured pH’s of these solutions are listed in Table 1. These concentrations were chosen to encompass a wide range of Ca(NO3)2 concentrations to assess the effect(s) of a diversity of dosage levels, and potential changes in inhibition mechanisms and the resulting effects on corrosion evolutions.

Methods: Surface topography evolutions captured using VSI

Corrosion behavior under brine immersion was monitored for up to 7 days at 25 ± 0.2 °C in a temperature-controlled environment. The surfaces of the steel samples were exposed to brine volumes on the order of 135 ± 2 mL resulting in a nominal surface-to-volume ratio (mm−1) of 1/9000. Prior to immersion, approximately half of the sample surface was covered with a peelable silicone mask (Silicone Solutions SS-380) to preserve a portion of the steel surface in a pristine state, which serves as the reference surface. As a result, absolute height changes can be ascertained by comparing the reference surface with the reacted (i.e., exposed to brine) surface. The effectiveness of this procedure is illustrated in Fig. 7, which shows VSI images of a steel surface before and following immersion. To assess the chemical stability of the silicone mask, concentrations of dissolved silicon in contact with brine were measured using a Perkin-Elmer Avio 200 inductively coupled plasma optical emission spectrometer. Measured Si concentrations ranged from 0.13 to 1.14 ppm, with an average value of 0.64 ppm. This level of silicon abundance and negligible changes in the silicon mask’s surface topography following immersion indicate that it is inert up on exposure to the brine environment.

Fig. 7
figure 7

Representative VSI topography maps of API P110 steel surface obtained a as-polished, and b following immersion in 10 mass % CaCl2 brine for 7 days. The boundary between the unreacted (“masked”) surface and reacted surface is labeled by the dashed line. The scale bars represent a length of 2 mm

The steel’s surface topography was monitored following its contact with the brines at time intervals of 0, 1, 3, 5, and 7 days. At each time point (except 0 days), any corrosion products that may have formed on the steel surface were removed following ASTM G1.26 Thereafter, the silicon adhesive was peeled cleanly and the surface topography was examined using VSI. The VSI used a Zygo NewView 8200 fitted with a 5× Mirau objective having a numerical aperture of 0.13 and offering a lateral (in the x and y directions) resolution of 1.63 μm. The lateral resolution is determined by both the objective and the spatial sampling of the camera (1024 pixel × 1024 pixel in one FOV, that is, 1.67 mm × 1.67 mm). The resolution in the z-direction is estimated to be on the order of ±2 nm based on analysis of a NIST traceable step-height standard. Imaging of the steel surface that encompassed an area on the order of 12–15 mm2 was carried out by stitching multiple overlapping sub-images that were acquired sequentially along a grid map. It should be noted that the use of kinematic mounts as described above enabled repeatability in lateral positioning on the order of ±3 µm which is similar to the resolution of images acquired using this specific (5×) Mirau objective.

Analysis of 3D surface topography data

The 3D surface topography images (i.e., height maps) obtained using VSI were processed and analyzed using Matlab® R2017b and rendered using Gwyddion.27

Quantification of corrosion rates from average height change: The absolute surface height change at time t, Δzt, was determined from the difference in average heights of the reacted (s) and reference (r) surfaces, \(z_{\mathrm{t}}^{\mathrm{s}}\) and \(z_{\mathrm{t}}^{\mathrm{r}}\), respectively, at time t, as compared to that at time 0, as given by:

$$\Delta z_{\mathrm{t}} = \left( {z_{\mathrm{t}}^{\mathrm{s}} - z_{\mathrm{t}}^{\mathrm{r}}} \right) - \left( {z_0^{\mathrm{s}} - z_0^{\mathrm{r}}} \right).$$
(4)

Hence, at time t = 0, the absolute height change, Δz0 = 0, whereas a negative Δzt would imply a net decrease in surface height at a given pixel location, that is, loss of metal due to corrosion. Although corrosion is expected to result in the deposition of corrosion products which have a higher molar volume compared to the native alloy, and hence result in a height increase, the removal of corrosion products before each imaging sequence eliminates ambiguities in the interpretation of height change—resulting in a height decrease, in time.

Frequency distribution of height change: In addition to surface height changes, the spatial distribution of height change was assessed—pixel by pixel—across a given surface. This offers insights into the frequency distributions of reaction (corrosion) rates. The 3D images, following alignment in the vertical direction using the known reference surface, were each subtracted pixel-by-pixel from that obtained at t = 0, to give the height change map. The frequency distribution of height changes, normalized to the total number of pixels—which is on the order of 107 pixels—is then plotted for each time interval.