Introduction

Carbon dioxide (CO2) corrosion, which easily gives rise to the failure of pipeline and equipment, is a common corrosion type in oil and gas industry (Ref 1, 2). This is generally because that crude oil and natural gas from the oil reservoirs/gas wells by pumping CO2 with high pressures or CO2 saturated water (CO2-enhanced oil recovery technology) contain certain amount of CO2 (Ref 1). And the presence of carbon dioxide in solution causes “sweet” corrosion due to the formation of a weak carbonic acid (H2CO3), which significantly drives CO2 corrosion reactions (Ref 1, 3). However, CO2-enhanced oil recovery technology has been widely applied in oil and gas industry field. Therefore, carbon steel corrosion in CO2-containing solution is well known and studied (Ref 410).

Welding is the most common industrial method for connecting oil and gas pipes (Ref 11, 12). Nevertheless, it is hard to control the welding heat input during welding process (Ref 13). Welding heat input can be calculated by the following equation: \({\text{heat input }}({\text{KJ/mm}}) = {{{\text{voltage }}(V) \, \times {\text{ current }}(A)} \mathord{\left/ {\vphantom {{{\text{voltage }}(V) \, \times {\text{ current }}(A)} {{\text{travel speed }}({\text{mm/s}})}}} \right. \kern-0pt} {{\text{travel speed }}({\text{mm/s}})}}\). It is well known that the greater the welding heat input, the slower the weld metal cooling rate (Ref 14). The cooling rate intensively influences weld metal microstructure (Ref 15), and then affects the local corrosion resistance of piping weld joint (Ref 12, 16, 17). Therefore, different cooling rates provide different microstructure and the corrosion resistance of weld metal changes with the variation of welding heat input.

During the welding thermal cycle, various types of ferrite are formed depending on factors such as the steel composition, heat input, cooling rate, and welding process (Ref 18, 19). The representatives are acicular ferrite (AF) and grain boundary ferrites (GBF), such as Widmanstatten and polygonal ferrite (PF) (Ref 12, 20). Whereas, the content of acicular ferrite and grain boundary ferrite in the weld metal often affects the corrosion resistance of weld metal (Ref 17). Deen et al. (Ref 16) researched the microstructure and electrochemical corrosion behavior of SA516 weld joint, and the result shows that the acicular ferrite structure provides lower corrosion resistance than allotriomorphic and widmanstatten ferrite. Huang et al. (Ref 17) studied that the influences of microstructure and composition on the electrochemical behavior of A516 steel weldment, and indicated that the electrochemical behavior of weld metal is dependent upon the volume fraction ratio of grain boundary ferrite to acicular ferrite. The number of acicular ferrite and grain boundary ferrite greatly depends on welding heat input. Hence, the corrosion performance of weld metal in the various environments is closely related to welding heat input. So, it is significant to determine the relationship between corrosion performance and welding heat input. However, the underlying effects of welding heat input on the corrosion resistance of carbon steel weld metal are still unclear.

Accordingly, in the present study, comparative studies of microstructural changes and corrosion resistance of carbon steel weld metal were conducted with different welding heat inputs. Particular emphasis was placed to understand the mechanism of corrosion resistance differences.

Experiments

Welding Process

Two carbon steel (A106B) pipes, outer diameter of 219.1 mm and wall thickness of 10.3 mm, with V-grooves were butt-welded with Gas Tungsten Arc Welding (GTAW) with ER70S-G filler. Each multipass weld was produced on prepared V-groove specimens with GTAW and Shielded Metal Arc Welding (GTAW + SMAW). Different welding heat input parameters, as shown in Table 1, were performed for obtaining the welds. The inner surface of the pipeline was exposed to a corrosive medium, so the following research focused on the root pass.

Table 1 The weld parameters applied to obtain the welds

Material and Solution

The chemical compositions of the A106B steel, ER70S-G filler, and weld metal are shown in Table 2. The test samples (of 4 × 8 × 3 mm dimensions) were cut from weld metal (WM). The samples were soldered to copper wires and then embedded in PVC holder with epoxy resin. Prior to test, the specimens were ground up to 1000 grit silicon carbide paper, rinsed with deionized water, and degreased in acetone. Test solution was composed of analytical grade reagents and deionized water, simulating the produced water drawn out from oil and gas fields. Its chemical composition is listed in Table 3. The corrosive solution was deoxygenated by bubbling pure N2 through it for 12 h before introducing the CO2. The temperature of the test was 90 °C, the CO2 partial pressure of 0.02 MPa, the whole pressure of 0.3 MPa, and the pH of the test solution ranged from 4.3 to 4.6.

Table 2 The chemical compositions of the A106B steel, ER70S-G filler, and weld metal
Table 3 Chemical composition (mg/L) of the corrosive solution

Electrochemical Experiments

The linear polarization resistance (LPR), potentiodynamic polarization, and electrochemical impedance spectroscopy (EIS) tests were performed by using an electrochemical workstation (Gamry Interface 1000) and a 10 L high temperature and high pressure autoclave. A platinum sheet was counter electrode (CE), and an Ag/AgCl probe (1 mol/L KCl) with high temperature/pressure was reference electrode (RE). The samples were the working electrode (WE). Polarization curves were recorded at a constant sweep rate of 0.5 mV/s at a −0.3 to +0.3 V interval respect to open circuit potential (OCP). Corrosion current density (i corr) was calculated by using the Tafel extrapolation method and taking an extrapolation interval of ±250 mV around the stable E corr. LPR tests were carried out by polarizing the specimen from +10 to −10 mV in respect to OCP at a scanning rate of 0.125 mV/s during 36 h. Electrochemical impedance spectroscopy (EIS) tests were carried out at OCP by using a signal with the amplitude of 5 mV in a frequency range from 100 KHz to 10 mHz. The Kramers-Kronig transforms was used to validate the electrochemical impedance data, and the ZSimpWin V3.10 impedance analysis software was used to fit the achieved data.

EBSD Tests

The corroded sample surface was defined as the normal direction (ND). The gage length and width of the drawing sample were parallel to the drawing direction (RD) and traverse direction (TD) of the cold-drawing, respectively. Three specimens (of 12 × 8 × 6 mm dimensions) with different welding heat inputs were sectioned to three equal parts from the drawing direction. Then, the bottom of specimens was polished with an electrolyte solution that consisted of 650 mL of alcohol, 100 mL of perchloric acid, and 50 mL of distilled water (General Research Institute for Nonferrous Metals, Beijing, China) at 30 V for 10 s at 20 °C (Ref 21). After polishing, three specimens were investigated with a JEOL JSM-7001F scanning electron microscope with an Oxford Instruments Nordlys nano EBSD detector. All tests were done at the bottom center of specimens. When EBSD tests were completed, EBSD original data were analyzed by using TSL OIM 6 Analysis software.

Results and Discussion

Microstructural Observation

The samples were cut from a whole pipeline, and the test surface is shown in Fig. 1. The microstructure at the bottom center of samples with different welding heat inputs was observed by using Leica DMI5000M. As it can be seen from Fig. 2, the microstructure mainly contained pearlite (dark areas) and ferrite (white areas). The representative acicular ferrite (AF) and polygonal ferrite (PF) were distinguished according to the International Institute of Welding (IIW) microstructure classification scheme for ferrous weld metals (Ref 18, 22). Ferrite phases were found as acicular ferrite (AF) and irregular polygonal ferrite (PF), and grain boundaries were clear. The number of acicular ferrite decreased and the number of irregular polygonal ferrite increased with welding heat input increasing. Pearlite phase was found as irregular polygonal shape. Generally, polygonal ferrite firstly nucleated at austenite grain boundary, lengthened along the boundary, and thickened into the grain to form the equiaxed or near-equiaxed ferrite grains (Ref 23). The number of irregular polygonal ferrite increasing was caused by the large heat input and subsequent weld heat treatment. The recrystallization happened and a large number of irregular polygonal ferrite grains would form. Therefore, the weld metal microstructure became more uniform with welding heat input increasing.

Fig. 1
figure 1

The schematic of test position in the weld joint

Fig. 2
figure 2

The microstructure at the bottom center of different welding heat input samples (a and b: W1; c and d: W2; e and f: W3)

Potentiodynamic Polarization and Linear Polarization Resistance Tests

A comparison of experimental potentiodynamic polarization curves for different samples in simulated produced water containing CO2 is shown in Fig. 3. It was found that three samples of active dissolution occurred during the anodic polarization process from Fig. 3. Using both the cathodic and anodic branches of these polarization curves between −250 mV (Ag/AgCl) and +250 mV (Ag/AgCl) around the stable E corr, the polarization curve parameters were obtained through Tafel’s extrapolation by using the Gamry Echem analysis software, as shown in Table 4, indicating E corr for weld metals were very similar and the active values happened around −685 mV (Ag/AgCl). The maximum current density (i corr) was for weld metal W1 (around 182 μA/cm2), while the minimum current density was for weld metal W3 (around 111 μA/cm2). It is apparent to see that current density decreased with welding heat input increasing.

Fig. 3
figure 3

Comparison of experimental potentiodynamic polarization curves of samples

Table 4 Potentiodynamic polarization curve parameters

Electrochemical corrosion monitoring using the linear polarization resistance (LPR) method is well established for the determination of average corrosion rate, and the method is relatively simple to implement (Ref 24, 25). The dependence of the linear polarization resistance (R p) on the time (Ref 26, 27) is displayed in Fig. 4. It can be seen that the minimum R p, and thus the maximum i corr was for weld metal W1, whereas the R p for weld metal W2 and W3 was the almost same, and the R p for the weld metal W2 exceeded that for weld metal W3 around 18 h. The R p increased with the time, indicating a decrease in the corrosion rate as time elapsed. This behavior can be attributed to the fact that at the start of the test, the surface of the specimens was clean and consequently active. After a period of time, the corrosion product film formed on the sample surface, isolating the metal from the environment and decreasing the corrosion rate (Ref 11). According some researchers, the initial product film formed in the corrosion of the steel in “sweet” environment is FeCO3 mainly (Ref 3, 28, 29).

Fig. 4
figure 4

The dependence of the linear polarization resistance (R p) on the time

Electrochemical Impedance Spectroscopy (EIS) Tests

Electrochemical impedance spectroscopy tests were carried out at OCP for different samples. In order to validate the results of EIS and check the system whether to meet the constraints of Linear System Theory (LST) and three basic prerequisites (causality, linearity, and stability) (Ref 30). The K-K transforms had been applied to the EIS measurements by transforming the real axis into the imaginary axis and the imaginary axis into the real axis (Ref 3133). Figure 5 shows the similar results between the experiment points and corresponding K-K transforms, confirming that the system satisfies the constraints of Linear System Theory (Ref 3134). Therefore, the EIS results of present study were valid.

Fig. 5
figure 5

K-K transforms of EIS data for weld metal W2 at 10 h in CO2-containing simulated produced water

The electrochemical impedance spectroscopy test results in the Nyquist format for three weld metals during 36 h are shown in Fig. 6. As it can be seen from Fig. 6, the spectra were characterized by two time constants: a high frequency capacitive loop associated with the charge transfer process occurring at the steel-electrolyte interface, and a low-frequency capacitive loop related to the adsorbed intermediate product and the amorphous film formed during the dissolution of electrode (Ref 7, 35). In previous works, at the initial immersion stage (about 0-7 h), the EIS character was attributed to the increased surface area between the substrate and electrolyte which was beneficial to the cathodic reaction and galvanic corrosion effect, indicating that a corrosion process was controlled by charge transfer (Ref 36). For immersion time longer than 7 h, the EIS character could be owed to the porous corrosion scale, manifesting the corrosion mechanism changed from electrochemical steps control to mixed control of mass transfer and charge transfer (Ref 36). In the study, the turning point of EIS character was 10 h, as shown in Fig. 6. Within 10 hours, the semicircle diameter of weld metal W1 was less than those of weld metal W2 and W3 in the Nyquist, so there was more surface area in weld metal W1, which was beneficial for the cathodic reaction and galvanic corrosion effect. After 10 hours, the semicircle diameter of weld metal W1 was less than those of weld metal W2 and W3 in the Nyquist, hence there were more holes in the corrosion scale of weld metal W1, and those holes were conductive to mass transfer and charge transfer. In a word, the smallest semicircle diameter was monitored in the weld metal W1, while the largest semicircle diameter was observed in the weld metal W2, indicating that the corrosion impedance increased at first and then decreased slightly with welding heat input increasing.

Fig. 6
figure 6

Nyquist diagram for weld metal in CO2-containing simulated produced water (a and b: W1, c and d: W2, e and f: W3)

Schematic representation of the interfacial reactions and equivalent electrical circuit used to simulate EIS data is shown in Fig. 7. The impedance parameters were determined by using this equivalent circuit and the ZSimpWin V3.10 impedance analysis software. In the equivalent electrical circuit, R s is the solution resistance, Q f is the constant phase element (CPE) which represents the capacitance of porous corrosion scale, R pore is the resistance of porous corrosion scale, Q dl is the constant phase element (CPE) which represents the capacitance of double layer, and R ct is the charge transfer resistance. The constant phase element (CPE) is used instead of a capacitance to take the non-ideal interface behavior into account. The CPE is given by

$${\text{Z}}_{\text{CPE}} { = (}{1 \mathord{\left/ {\vphantom {1 {Y_{0} }}} \right. \kern-0pt} {Y_{0} }})(jw)^{ - n},$$
(1)

where Y 0 is a proportional factor, \(j = \sqrt { - 1}\), \(w = 2\pi f\), n is the dispersion coefficient related to surface inhomogeneity. For n = 0, it represents a resistance with \(R = Y_{0}^{ - 1}\); for n = 1, it represents a capacitance with C = Y 0. For example, the parameters which were calculated for simulating EIS data of weld metal W3 by using the circuits shown in Fig. 7(b) are listed in Table 5. The agreement between the experimental and simulated values was demonstrated by the chi-squared values between 1.90×10-4 and 7.79×10-3, indicating a good fitting quality.

Fig. 7
figure 7

Schematic representation of the interfacial reactions (a) and equivalent electrical circuit used to simulate EIS data (b)

Table 5 Parameters used to simulate the EIS data for weld metal W3

The R ct and R pore calculated from the experimental data in Fig. 6 are shown in Fig. 8 and 9, respectively. It can be seen from Fig. 8 that R ct of weld metal W2 was close to that of weld metal W3, and they were higher than R ct of weld metal W1. The R ct increased with time, and then kept a stable value at around 30 h. The variation of R ct was due to the change of electrode surface state with the immersion time. Because the corrosion rate was inversely proportional to R ct (Ref 36), i.e., the corrosion rate reached a stable value after 30 h immersion.

Fig. 8
figure 8

Change in the calculated charge transfer resistance R ct with time for weld metal W1, W2, and W3

Fig. 9
figure 9

Change in the calculated corrosion scale resistance R pore with time for weld metal W1, W2, and W3

It can be seen from Fig. 9 that R pore increased quickly at initial immersion time (before 6 h), then kept a stable value with longer immersion time. The corrosion scale resistance was small, showing the corrosion scale was porous and loose (Ref 27). From Fig. 8 and 9, it can be seen that R ct values were much higher than R pore values, indicating that the reason of the increase in the total impedance was the sample surface active state, thus demonstrating the surface activity of W1 was more intensity.

As discussed in previous works (Ref 36), the interfacial dissolution processes of Fe in CO2-saturated solution were divided into two different states: charge transfer control, and mixed control of mass transfer and charge transfer. The processes follow the consecutive steps (Ref 7, 37, 38):

$$\mathop {\text{Fe}}\limits_{{1 - \uptheta_{1} }}+\, {\text{H}}_{ 2}{\text{O}} \, {\mathop\leftrightarrows \limits_{{k_{-1}}}^{{k_{1} }}} \, \mathop {{\text{Fe(OH)}}_{\rm ads} }\limits_{{\uptheta_{1} }} + \,{\text{H}}^{ + } +{\text{e}}$$
(2)
$$\mathop {{\text{Fe(OH)}}_{\text{ads}} }\limits_{{\uptheta_{1} }} \, {\mathop{\longrightarrow}\limits^{{K_{2} }}}{\text{ FeOH}}^{ + } +{\text{e}}$$
(3)
$${\text{FeOH}}^{ + } {\text{ + H}}^{ + } {\text{ = Fe}}^{{ 2 { + }}} {\text{ + H}}_{ 2} {\text{O}}$$
(4)
$$\mathop {\text{Fe}}\limits_{{1 - \uptheta_{1} - \uptheta_{2} }}+\, {\text{HCO}}_{ 3}^{ - } \, {\mathop{\longrightarrow}\limits^{{K_{3} }}} \, \mathop {{\text{FeCO}}_{ 3} }\limits_{{\uptheta_{2} }} {\text{ + H}}^{ + } +{\text{2e}}$$
(5)
$${\text{FeCO}}_{ 3} {\text{ + HCO}}_{ 3}^{ - } \, {\mathop{\longrightarrow}\limits^{{K_{4}}}}{\text{ Fe(CO}}_{ 3} )_{2}^{ 2- } {\text{ + H}}^{ + },$$
(6)

where \(\uptheta_{1}\) and \(\uptheta_{2}\) are the coverage of intermediate adsorbed product Fe(OH)ads and corrosion product FeCO3. \(K_{ + 1}\), \(K_{ - 1}\), \(K_{2}\), \(K_{3}\) and \(K_{4}\) are the reaction rate constants (Ref 7, 39). The dissolution of Fe and the formation of corrosion scale happen on the surface without the intermediate adsorbed product and corrosion product. Therefore, the reaction current density can be expressed as \(I_{ + 1} = k_{ + 1} { (1}\, - \,\uptheta_{ 1} \, - \,\uptheta_{ 2} )\); \(I_{ - 1} = k_{ - 1} {\text{C}}_{{{\text{H}}^{ + } }} \uptheta_{ 1}\); \(I_{ 1} { = }I_{ + 1} \, - \, I_{ - 1}\); \(I_{2} { = }k_{ 2} \uptheta_{ 1}\); \(I_{3} = k_{ 3} {\text{C}}_{{{\text{HCO}}_{ 3}^{ - } }} (1 - \uptheta_{1} - \uptheta_{2} )\); \(I_{4} = k_{4} {\text{C}}_{{{\text{HCO}}_{ 3}^{ - } }} \uptheta_{2},\)where I +1 and I −1 are the forward and afterward reaction current densities, respectively. So, the whole current density of active region can be expressed as follows:

$$I_{a} { = }I_{ 1} { + }I_{3}.$$
(7)

The whole current density of the intermediate adsorbed product and corrosion product can be expressed as follows:

$$I_{f} \, = \, I_{2} \, + \, I_{4}$$
(8)

Accordingly, the faradic current density of anodic reaction can be expressed as follows:

$$I_{\text{F}} \, = \, I_{a} \, + \, I_{f}.$$
(9)

The electrode process was affected by θ1 and θ2 besides electrode potential E, and then the increase rate of θ1 and θ2 can be expressed as follows: \(\uptheta^{\prime}_{1} { = }{{d\uptheta_{ 1} } \mathord{\left/ {\vphantom {{d\uptheta_{ 1} } {dt}}} \right. \kern-0pt} {dt}}{ = }K_{ 1} (I_{1} \, - \, I_{2} )\);\(\uptheta^{\prime}_{2} { = }{{d\uptheta_{2} } \mathord{\left/ {\vphantom {{d\uptheta_{2} } {dt}}} \right. \kern-0pt} {dt}}{ = }K_{2} (I_{3} \, - \, I_{4} )\), where K 1 and K 2 are the coverage-electricity conversion coefficients, respectively.

Cao (Ref 40) believed that if the electrode reaction was controlled by two-surface state variable \(X_{1}\) and \(X_{2}\), then the faradic admittance \(Y_{\text{F}}\) could be described as

$$Y_{\text{F}} = \, {1 \mathord{\left/ {\vphantom {1 {R_{t} }}} \right. \kern-0pt} {R_{t} }}{ + }{{ (A{ + }j\upomega B )} \mathord{\left/ {\vphantom {{ (A{ + }j\upomega B )} { (D \, - \, \upomega_{ 2} { + }j\upomega T}}} \right. \kern-0pt} { (D \, - \, \upomega_{ 2} { + }j\upomega T}}),$$
(10)

where \({1 \mathord{\left/ {\vphantom {1 {R_{t} }}} \right. \kern-0pt} {R_{t} }}{ = }\left( {{{\partial I_{\text{F}} } \mathord{\left/ {\vphantom {{\partial I_{\text{F}} } {\partial E}}} \right. \kern-0pt} {\partial E}}} \right)_{\text{SS}}\); \(A = \, m_{1} b_{2} J_{12} \, + \, m_{2} b_{1} J_{21} \, - \, m_{1} b_{1} J_{22} \, - \, m_{2} b_{2} J_{11}\); \(B = \, m_{1} b_{1} \, + \, m_{2} b_{2}\); \(D = \, J_{11} J_{22} \, - \, J_{12} J_{21}\); \(T = \, - (J_{11} + J_{22} )\).

The variables of m 1, b 1, m 2, b 2, J 11, J 12, J 21, and J 22 can be calculated by the following equations:

$$m_{ 1} = \left( {{{\partial I_{\text{F}} } \mathord{\left/ {\vphantom {{\partial I_{\text{F}} } {\partial \uptheta_{1} }}} \right. \kern-0pt} {\partial \uptheta_{1} }}} \right)_{\text{SS}} = \left( {{{\partial I_{a} } \mathord{\left/ {\vphantom {{\partial I_{a} } {\partial \uptheta_{1} }}} \right. \kern-0pt} {\partial \uptheta_{1} }}} \right)_{\text{SS}} \,+ \,\left( {{{\partial I_{\text{f}} } \mathord{\left/ {\vphantom {{\partial I_{\text{f}} } {\partial \uptheta_{1} }}} \right. \kern-0pt} {\partial \uptheta_{1} }}} \right)_{\text{SS}} = \, - k_{1} \, - \, k_{ - 1} C_{{{\text{H}}^+ }} \, + \, k_{2} \, - \, k_{3} C_{{{\text{HCO}}_{ 3}^{ - } }} ;$$
(11)
$${\text{m}}_{2}\, =\, \left( {{{\partial {\text{I}}_{\text{F}} } \mathord{\left/ {\vphantom {{\partial {\text{I}}_{\text{F}} } {\partial \uptheta_{2} }}} \right. \kern-0pt} {\partial \uptheta_{2} }}} \right)_{SS}\, =\, \left( {{{\partial {\text{I}}_{\text{a}} } \mathord{\left/ {\vphantom {{\partial {\text{I}}_{\text{a}} } {\partial \uptheta_{2} }}} \right. \kern-0pt} {\partial \uptheta_{2} }}} \right)_{SS} \,+\, \left( {{{\partial {\text{I}}_{\text{f}} } \mathord{\left/ {\vphantom {{\partial {\text{I}}_{\text{f}} } {\partial \uptheta_{2} }}} \right. \kern-0pt} {\partial \uptheta_{2} }}} \right)_{SS} \,=\, -k_{ 1} -k_{ 3} {\text{C}}_{{{\text{HCO}}_{3}^{ - } }} ;$$
(12)
$$b_{1} \, = \, \left( {{{\partial \uptheta^{\prime}_{1} } \mathord{\left/ {\vphantom {{\partial \uptheta^{\prime}_{1} } {dE}}} \right. \kern-0pt} {dE}}} \right)_{\text{SS}} \, = \, K_{1} \left( {{{\partial I_{1} } \mathord{\left/ {\vphantom {{\partial I_{1} } {\partial E}}} \right. \kern-0pt} {\partial E}} \, - \, {{\partial I_{2} } \mathord{\left/ {\vphantom {{\partial I_{2} } {\partial E}}} \right. \kern-0pt} {\partial E}}} \right)_{\text{SS}} ;$$
(13)
$$b_{2} \, = \, \left( {{{\partial \uptheta^{\prime}_{2} } \mathord{\left/ {\vphantom {{\partial \uptheta^{\prime}_{2} } {dE}}} \right. \kern-0pt} {dE}}} \right)_{\text{SS}} \, = \, K_{2} \left( {{{\partial I_{3} } \mathord{\left/ {\vphantom {{\partial I_{3} } {\partial E}}} \right. \kern-0pt} {\partial E}} \, - \, {{\partial I_{4} } \mathord{\left/ {\vphantom {{\partial I_{4} } {\partial E}}} \right. \kern-0pt} {\partial E}}} \right)_{\text{SS}} ;$$
(14)
$$J_{11} \, = \, \left( {{{\partial \uptheta^{\prime}_{1} } \mathord{\left/ {\vphantom {{\partial \uptheta^{\prime}_{1} } {d\uptheta_{1} }}} \right. \kern-0pt} {d\uptheta_{1} }}} \right)_{\text{SS}} \, = \, - K_{1} \left( {k_{1} + k_{ - 1} C_{{H^{+} }} + k_{2} } \right)_{\text{SS}} ;$$
(15)
$$J_{12} \, = \, \left( {{{\partial \uptheta^{\prime}_{1} } \mathord{\left/ {\vphantom {{\partial \uptheta^{\prime}_{1} } {d\uptheta_{2} }}} \right. \kern-0pt} {d\uptheta_{2} }}} \right)_{\text{SS}} \, = \, - K_{1} k_{1} ;$$
(16)
$$J_{21} \, = \, \left( {{{\partial \uptheta^{\prime}_{2} } \mathord{\left/ {\vphantom {{\partial \uptheta^{\prime}_{2} } {d\uptheta_{1} }}} \right. \kern-0pt} {d\uptheta_{1} }}} \right)_{\text{SS}} \, = \, - K_{2} k_{3} C_{{{\text{HCO}}_{ 3}^{ - } }} ;$$
(17)
$$J_{22} \, = \, \left( {{{\partial \uptheta^{\prime}_{2} } \mathord{\left/ {\vphantom {{\partial \uptheta^{\prime}_{2} } {d\uptheta_{2} }}} \right. \kern-0pt} {d\uptheta_{2} }}} \right)_{\text{SS}} \, = \, - K_{2} \left( {k_{3} C_{{{\text{HCO}}_{3}^{ - } }} \, + \, k_{4} C_{{{\text{HCO}}_{3}^{ - } }} } \right),$$
(18)

where the subscript ‘SS’ denotes steady state. It is obviously that \(A \, > \, 0\)and \(B = \, m_{1} b_{1} \, + \, m_{2} b_{2} = ({{K_{1} F} \mathord{\left/ {\vphantom {{K_{1} F} {RT}}} \right. \kern-0pt} {RT}})\left[ {(1 - \alpha_{1} )I_{ + 1} + \alpha_{1} I_{ - 1} } \right]\left( { - k_{1} \, - \, k_{ - 1} C_{{H^{ + } }} \, + \, k_{2} \, - \, k_{3} C_{{{\text{HCO}}_{3}^{ - } }} } \right)\). It is well known that equation (3) is the reaction control step and the k 2 value is vey small, so \({\text{B < 0}}\). According to the theory of Cao (Ref 40), when A > 0 and B < 0, the impedance plane would exhibit a capacitive loop at low-frequency position. The above theoretical calculation is in agreement with the experiment results shown in Fig. 6.

EBSD Tests

The primary objective of EBSD tests carried out in this study was to determine the distribution of grain size, crystal plane orientation, and grain boundary type of the test samples. Figure 10(a)–(c) shows the inverse pole figure (IPF) map at the bottom center of different welding heat input specimens. The region always touched the corrosion medium when the weld was in service. Therefore, IPF maps were constructed in the region in all specimens. IPF maps, as shown in Fig. 10(a)–(c), show an accumulation of grain with 〈111〉 ⊥ ND orientation in weld metal W1 surface, while 〈101〉 ⊥ ND orientation in weld metal W2 and W3 surface. In other words, there were more grains with 〈111〉 ⊥ ND orientation in weld metal W1 surface, and more grains with 〈101〉 ⊥ ND orientation in weld metal W2 and W3 surface. The electrochemical test results showed the corrosion resistance of weld metal W2 and W3 was superior to weld metal W1. According to the broken bond theory, the surface free energy of crystal planes {h k l} for BCC metal is approximately equal to \({{6hE_{\text{b}} } \mathord{\left/ {\vphantom {{6hE_{\text{b}} } {4d^{2} \sqrt {h^{2} + k^{2} + l^{2} } }}} \right. \kern-0pt} {4d^{2} \sqrt {h^{2} + k^{2} + l^{2} } }}\) or \({{3E_{\text{b}} (h + k + l)} \mathord{\left/ {\vphantom {{3E_{\text{b}} (h + k + l)} {4d^{2} \sqrt {h^{2} + k^{2} + l^{2} } }}} \right. \kern-0pt} {4d^{2} \sqrt {h^{2} + k^{2} + l^{2} } }}\) (Ref 41), “\(E_{\text{b}}\)” is the bond energy identified as the enthalpy changes during the sublimation process (Ref 42); and “\(d\)” is the bond length between two nearest neighbor atoms. Calculated the surface free energy, {101} was the crystal face with the lowest energy, and the ranking of surface free energy should be {101} < {111} < {001}. The {101} with the lowest energy dissolved slower than the crystal face of other orientations, which was consistent with our current observation. The result was attributed to the atoms in the lower surface energy planes were the most difficult to dissolve (Ref 43). At the same time, corrosion, as a surface-dependent property, was an anisotropic characteristic of materials (Ref 44, 45). It was observed that the corrosion rate anisotropy corresponded with surface energy anisotropy in this study.

Fig. 10
figure 10

IPF color map at the bottom center of samples ((a) W1, (b) W2, and (c) W3. For interpretation of the references to color in this figure legend, the reader is referred to the web version of this article)

The grain size distribution at the bottom center of weld metal W1, W2, and W3 is shown in Fig. 11. As shown in this figure, the relative frequency of fine grains (less than 10 μm in diameter) in weld metal W2 and W3 is higher than that in weld metal W1. The average grain size is 10.2702 ± 2.5967 μm (W1), 6.6349 ± 1.4956 μm (W2), and 5.3344 ± 1.1236 μm (W3), respectively. It shows that microstructures become more uniform with welding heat input increasing. Meanwhile, the maximum grain size of W2 and W3 is around 20 μm, while the maximum grain size of W1 is around 40 μm. Based on the hypothesis of grain boundary conduction and reactivity, i corr should vary with grain boundary length. Ralston et al. (Ref 46) proposed that the grain boundary length (gbl) can be presented as

$$gbl = \left( C \right) + \left( D \right)gs^{ - \alpha } ,\quad 0.5 \le \alpha \le 1,$$
(19)

where the constant C is an area term and D is a scale term, and gs is the grain size. In the ideal case, for perfectly equiaxed grains, α = 1 (as shown in Fig. 12a), while for the random grain structures with dispersed relationships, α = 0.5 (as shown in Fig. 12b). Assume that the constants C and D are invariant for weld metals. According to the equation (19), the ranking of grain boundary length (gbl) should be W1 (C+0.40D) > W2 (C+0.28D) > W3 (C+0.22D). Under a non-passivating condition, grain boundary densities would enhance overall surface reactivity. Therefore, i corr increased with grain boundary length increasing, i.e., i corr of weld metal W1 was higher than that of weld metal W2 and W3.

Fig. 11
figure 11

The relative frequency of grain size distribution at the bottom center of samples

Fig. 12
figure 12

Simulated grain structures illustrating an (a) ideal and (b) random structure with α values of approximately 1 and 0.5, respectively

The distribution of ferrite and cementite at the bottom center of weld metal W1, W2, and W3 is shown in Fig. 13. Ferrite and cementite are shown with red and green colors, respectively. The volume fractions of cementite at the bottom center of three specimens were 1.0, 2.1, and 1.6 % for W1, W2, and W3, respectively. It was found a ruleless volume fraction of ferrite and cementite with the change of welding heat input. Hunnik et al. (Ref 47) reported that the effect of cathodic regions of the cementite was considerable in carbon steels with carbon content higher than approximately 0.15 wt.%. In this work, the weld metal used for electrochemical tests had a carbon content of 0.12 wt.%, as shown in Table 2. It can deduce that the galvanic effect of cementite in weld metal was not the main reason for the difference in corrosion rate observed as shown in Fig. 3.

Fig. 13
figure 13

The distribution of ferrite and cementite at the bottom center of samples ((a) W1, (b) W2, and (c) W3. For interpretation of the references to color in this figure legend, the reader is referred to the web version of this article)

Figure 14 shows the distribution of high-angle grain boundaries (HAGBs), medium-angle grain boundaries (MAGBs), and low-angle grain boundaries (LAGBs) in weld metals. A grain boundary with a misorientation angle of 15° < θ < 180°, 5° < θ < 15°, and 2° < θ < 5° was considered as a HAGB, MAGB, and LAGB, respectively. In Fig. 14, HAGB, MAGB, and LAGB are shown with black, blue, and green lines colors, respectively. As shown in Fig. 14(a)–(c), the number of HAGBs becomes more and more with welding heat input increasing. The accumulation indicates that the recrystallization process completed in these regions with welding heat input increasing. The volume fraction of three type grain boundaries is shown in Fig. 15. It was shown that the volume fraction of LAGBs and MAGB was highest in the weld metal W1. And a high volume fraction of HAGBs in weld metal W3 indicated that a high amount of LAGBs had been changed to HAGBs during recrystallization and therefore the volume fraction of LAGBs decreased. It was commonly believed that the energy of HAGBs was higher than that of LAGBs due to the high level of the atomic non-coherent arrangement. Therefore, high-angle grain boundaries (HAGBs) were more vulnerable to local corrosion along grain boundaries than low-angle grain boundaries (LAGBs) (Ref 48, 49). It should be noted that the number of HAGBs for samples in Fig. 15 increased in the following order: W1 < W2 < W3. Thus, combined with the grain orientation and grain size analysis, the effect of grain boundaries was inferior to that of the grain orientation and grain size on the corrosion resistance of A106B steel weld metal in CO2-containing simulated produced water.

Fig. 14
figure 14

EBSD reconstructed grain boundary map at the bottom center of samples ((a) W1, (b) W2, and (c) W3. For interpretation of the references to color in this figure legend, the reader is referred to the web version of this article)

Fig. 15
figure 15

Volume fraction of LABs, MABs, and HABs at the bottom center of samples

Conclusions

The effect of welding heat input on the corrosion resistance of A106B steel weld metal was evaluated by using the electrochemical tests. The number of acicular ferrite decreased and the number of irregular polygonal ferrite increased with welding heat input increasing. The electrochemical test results showed that weld metal with a large number of irregular polygonal ferrite performed higher corrosion resistance. The bottom center of specimens with different welding heat inputs was analyzed with electron backscatter diffraction (EBSD) technique. The results showed that the {101} crystal planes parallel to the surface could provide samples with high corrosion resistance, and the corrosion rate anisotropy was closely tied up with the surface energy anisotropy. Meanwhile, samples with a low dispersion degree of grain size showed high corrosion resistance, while the corrosion resistance of samples had nothing to do with grain boundary type.