Corrosion Inhibition Properties of Corrosion Inhibitors to under-Deposit Corrosion of X65 Steel in CO2 Corrosion Conditions

Under-deposit corrosion is widely present in the pipelines of oil and gas production, causing significant corrosion damage. In this paper, a novel electrochemical cathodic-polarization method was carried out to accelerate the formation of CaCO3 scale on a X65 steel surface in a simulated solution containing scaling ions. Subsequently, pre-scaled X65 steel was placed in a high temperature and pressure autoclave to conduct corrosion weight-loss experiments and in situ electrochemical measurements. The study mainly compared the corrosion inhibition behavior of four quaternary ammonium salt corrosion inhibitors, pyridinium quaternary salt (BPC), quinolinium quaternary salt (BQC), 8-hydroxyquinolinium quaternary salt (BHQ) and pyridinium (1-chloromethyl naphthalene) quaternary salt (1-CPN), in a simulated oilfield scale under corrosive conditions. The results of the weight-loss experiments demonstrated that the inhibition efficiencies of the corrosion inhibitors from high to low were as follows: 1-CPN < BHQ < BQC < BPC. The in situ electrochemical measurements showed that the immersion time and type of corrosion inhibitor had a pronounced influence on the corrosion and corrosion inhibition behavior of X65 steel with CaCO3 coating. It was also proved using both EIS and PC that 1-CPN shows the best inhibition performance in all. Lastly, the inhibition mechanism of corrosion inhibitors at under-deposit conditions was analyzed via a surface morphology observation of SEM.


Introduction
The internal metallic pipelines and related facilities in industrial production often have a tendency to be coated with different types of deposits [1][2][3][4].These deposits include corrosion products, mineral scales, and products from bacterial growth.Particularly in oil and gas production processes, downhole tubulars, ground processing procedures, longdistance pipeline transportation systems, and associated equipment facilities are prone to developing complicated deposits [5][6][7][8].The interaction among corrosion, bacteria, and scaling frequently results in complex deposit formations [9][10][11][12][13].The metal surfaces beneath these deposits are vulnerable to corrosive attack due to the specific occluded environment.This accelerates metal corrosion deterioration.
In order to mitigate internal corrosion attack in oil and gas exploitation, the application of corrosion inhibitors is a common measure [14][15][16][17][18][19][20].Numerous commercial corrosion inhibitors have been developed and implemented for effective corrosion protection in production.Water-soluble or water-dispersible organic compounds containing N, O, S, or P groups are frequently employed as corrosion inhibitors for metal pipelines.Illustrative examples include imidazoline derivatives, pyridine quaternary ammonium salts, and amines [21][22][23][24][25][26][27][28][29][30].In practical production processes, the primary agents of corrosion inhibitors are often synergistically combined with small organic molecules such as thiourea and mercaptoethanol to enhance the efficacy while simultaneously reducing costs.Corrosion inhibitors usually protect against corrosion by adsorbing to the surface of the metal to form a protective film, thereby preventing oxygen, water, or other aggressive agents from coming into contact with the metal surface.Despite the attached scale layer, the corrosion inhibitor can still change the electrochemical properties of the metal surface, making it more difficult to be affected by corrosion, thus extending the service life of the metal material.In addition, corrosion inhibitors can also form a protective film on the metal surface with a self-healing or regenerative function that, once damaged, will automatically repair to continue to play a protective role [31][32][33][34][35].
However, in practical production processes, it is frequently observed that corrosion inhibitor formulations exhibiting exceptional performance selected during laboratory assessments fail to meet expectations when implemented on-site.This discrepancy can be attributed primarily to the fact that laboratory evaluations of corrosion inhibitors are predominantly conducted on bare steel surfaces, whereas metal surfaces encountered in practical production processes are typically covered with scales.Consequently, certain conventional corrosion inhibitor products having superior effectiveness may not effectively protect metal from corrosion under such conditions [31][32][33][34][35][36][37][38][39].Therefore, it is necessary to carry out investigation on evaluation diverse corrosion inhibitor molecules against under-deposit corrosion [40][41][42][43].
K. Chokshi et al. [44] investigated the precipitation process of ferrous carbonate scale and the interaction between corrosion inhibitors and ferrous carbonate deposition, as well as their impact on corrosion rate.The experiments were conducted in an electrolytic cell at 80 • C with a range of ferrous carbonate supersaturation from 7 to 150.A general imidazoline inhibitor was added at different stages to inhibit the formation of iron carbonate scale.The corrosion rate and precipitation rate were measured using electrochemical and weight-loss methods, respectively, and the scales were analyzed using scanning electron microscopy (SEM).The study found that the precipitation rate of iron carbonate was overestimated under the previously used method based on dissolved ferrous ion concentration.Although no antagonistic effect was observed under other test conditions, it can be seen that the addition of corrosion inhibitors delayed the growth of iron carbonate scale.J. E. Wong et al. [45] studied the effect of corrosion inhibitor active components on the growth of iron carbonate scale under CO 2 conditions.It is debated whether the scale is necessary for the adsorption of the corrosion inhibitor.The author proved through experiments that quaternized amines accelerated the precipitation process of iron carbonate and promoted the existant protective passivation layer.Aiming to study the impact of surface scale deposition caused by supersaturated saline water, as well as the unknown mechanism of its subsequent effect on the corrosion process, M. Ciolkowski et al. [46] proposed a range of laboratory measurements to evaluate the impact of brines on corrosion and scale on both inhibited and uninhibited conditions.
In this paper, the pre-scaling of the CaCO 3 layer was performed using cathodic polarization on X65 steel.The weight-loss and in situ electrochemical measurements were also carried out to investigate the corrosion behavior and inhibition efficiencies of four quaternary ammonium salts at under-deposit conditions.The top-view and cross-sectional morphologies of X65 steel before and after under-deposit corrosion were observed using SEM at all conditions to analyze the mechanism of corrosion and corrosion inhibition.

Material Preparation
X65 steel was used in the experiments as the specimen with the chemical composition shown in Table 1.The corrosion experiments were carried out at temperature of 40 • C, total pressure of 1 MPa, CO 2 partial pressure of 0.5 MPa (total pressure of 1 MPa), and immersion time of 72 h.For the weight-loss experiment, X65 steel samples were prepared at a size of 40 mm × 13 mm × 2 mm and polished gradually using sandpaper ranging from 240# to 1000#.After rinsing with deionized water and degreasing with acetone, they were finally washed with alcohol and dried before being weighed three times.The specimens were sealed using silicone glue with exposed area of 5.2 cm 2 for accelerated scaling before corrosion experiments in the autoclave (1308550, Dalian Kemao Experimental Equipment Co, Dalian, China).Cylindrical X65 steel samples were used in electrochemical experiments (CS350 in COM3, Wuhan Crest Instruments, Wuhan, China)with exposed area of 1 cm 2 which underwent the same treatment as in the weight-loss experiment.The solution for pre-scaling treatment consisted of 0.555 g/L CaCl 2 , 0.84 g/L NaHCO 3 and 34.415 g/L NaCl.The solution for weight-loss experiments in the autoclave consisted of 50 g/L NaCl, 0.406 g/L MgCl 2 •6 H 2 O, 0.852 g/L Na 2 SO 4 , 0.444 g/L CaCl 2 and 0.0336 g/L NaHCO 3 .Corrosion inhibitors were synthesized using pyridine, quinoline, 8-hydroxyquinoline, benzyl chloride, and 1-chloromethylnaphthalene. All chemical reagents used were analytical grade reagents provided by Chengdu Kelong Chemical Co., Chengdu, China.All solutions were prepared using deionized water.

Material Preparation
X65 steel was used in the experiments as the specimen with the chemical composition shown in Table 1.The corrosion experiments were carried out at temperature of 40 °C, total pressure of 1 MPa, CO2 partial pressure of 0.5 MPa (total pressure of 1 MPa), and immersion time of 72 h.For the weight-loss experiment, X65 steel samples were prepared at a size of 40 mm × 13 mm × 2 mm and polished gradually using sandpaper ranging from 240# to 1000#.After rinsing with deionized water and degreasing with acetone, they were finally washed with alcohol and dried before being weighed three times.The specimens were sealed using silicone glue with exposed area of 5.2 cm 2 for accelerated scaling before corrosion experiments in the autoclave (1308550, Dalian Kemao Experimental Equipment Co, Dalian, China).Cylindrical X65 steel samples were used in electrochemical experiments (CS350 in COM3, Wuhan Crest Instruments, Wuhan, China)with exposed area of 1 cm 2 which underwent the same treatment as in the weight-loss experiment.The solution for pre-scaling treatment consisted of 0.555 g/L CaCl2, 0.84 g/L NaHCO3 and 34.415 g/L NaCl.The solution for weight-loss experiments in the autoclave consisted of 50 g/L NaCl, 0.406 g/L MgCl2•6 H2O, 0.852 g/L Na2SO4, 0.444 g/L CaCl2 and 0.0336 g/L NaHCO3.
Corrosion inhibitors were synthesized using pyridine, quinoline, 8hydroxyquinoline, benzyl chloride, and 1-chloromethylnaphthalene. All chemical reagents used were analytical grade reagents provided by Chengdu Kelong Chemical Co, Chengdu, China.All solutions were prepared using deionized water.

Pre-Scaling
By utilizing the technique of electrochemical cathodic-polarization, CaCO3 deposits are generated in situ on the metal surface [48].Before conducting weight-loss experiments

Pre-Scaling
By utilizing the technique of electrochemical cathodic-polarization, CaCO 3 deposits are generated in situ on the metal surface [48].Before conducting weight-loss experiments and electrochemical experiments, X65 steel samples were subjected to surface preparation and coated with a CaCO 3 layer through constant potential polarization on their surfaces for accelerated scaling.Through evaluating corrosion behavior of these samples, it can provide a better simulation for under-deposit corrosion under prolonged operational conditions in production pipelines.In this experiment, a three-electrode cathodic-polarization method was employed to accelerate scaling at scaling durations of 6 h.
The cathodic current was applied to the carbon steel electrode (relative to the saturated calomel electrode at −1.4 V).Ultimately, it induced the reduction in dissolved oxygen.As the pH near the working electrode increased, scale-forming ions in the solution formed deposits on the metal surface as follows: OH − ions were generated near the cathode, causing an increase in pH value.Through the following chemical reaction, solid CaCO 3 precipitated on the X65 steel electrode: After pre-scaling operation, the obtained samples with pre-scaling time of 6 h were carefully rinsed with deionized water to remove any solution and impurities adhering to the surface.After rinsing with alcohol and drying with cold air, the samples were placed in an oven at 35 • C for 2 h, then taken out and placed in a dry vessel for later use.This is necessary to avoid long period exposure of the sample to air.

Weight-Loss Experiments
The weight-loss experiments were conducted under simulated on-site working conditions in a high-temperature and high-pressure autoclave.Three parallel samples were used for the weight-loss experiments, with two of them being calculated for the average corrosion rate after de-film process, and the other sample being washed and dried for characterization of product film.After the aforementioned pre-scaling treatment, three X65 steel samples with scales were suspended in a high-temperature and high-pressure autoclave.Before the corrosion experiment, 1.0 L of corrosive solution was placed into the autoclave (with a total volume of 1.5 L).Then, N 2 gas with high purity was purged into the solution in the autoclave for 2 h to remove oxygen from the chamber.After that, CO 2 saturated solution was obtained through another 2 h purging of CO 2 gas.The heating was then applied to reach the specified temperature, and carbon dioxide was pumped in until it reached a pressure of 0.5 MPa.Pure N 2 gas was then introduced until the total pressure reached 1 MPa.Timing started when the temperature and pressure inside the autoclave reached the designated conditions.
After soaking for 72 h, the X65 steel samples coated with scales were taken out from the autoclave.Any residual impurities on the surface were rinsed off with deionized water, then rinsed and dried with alcohol.One of the samples was placed in a vacuum oven at 35 • C for 2 h for characterization of the corrosion product film.The other two samples were acid-washed to remove the film, weighed three times, and average corrosion rate was calculated.The formula for calculating corrosion rate (in millimeters per year, mm/a) was as follows: where CR was corrosion rate (mm/a), ∆w was the weight-loss before and after corrosion experiment (g), S represented exposed surface area (cm 2 ) and t represented the soaking time (h).The inhibition efficiency (IE) of corrosion inhibitor can be calculated as follows: where CR 0 was the corrosion rate of X65 steel in the solution with absence of corrosion inhibitor (mm/a) and CR inh was the corrosion rate of X65 steel in the solution with presence of corrosion inhibitor (mm/a).

Electrochemical Measurements
The in situ electrochemical measurements were conducted in a high-temperature and high-pressure autoclave [10,12].The electrochemical samples were placed into the working electrode slot, and then sealed and fixed with a fluororubber O-ring (FKM) and a specialized electrochemical pressure cap.The samples coated with a pre-scaling layer were placed in the autoclave with corrosive solution for in situ electrochemical testing in the absence and presence of different corrosion inhibitors.Other operating conditions remained consistent with the weight-loss experiments.The in situ electrochemical measurements used a threeelectrode measurement system, with X65 steel coated with scale as the working electrode, platinum wire as the reference electrode, and platinum foil as the auxiliary electrode.All of them are capable of withstanding high temperature and pressure environments, thus achieving in situ electrochemical measurements.
After the temperature and pressure reached the designated values, real-time monitoring of open circuit potential (OCP) began.Linear polarization resistance (LPR) and electrochemical impedance spectroscopy (EIS) tests were performed at certain intervals during the experiment (12 h, 24 h, 48 h, 72 h).LPR measurement was performed by applying a potential ranging from −10 mV to 10 mV (vs.OCP) at a scanning rate of 0.25 mV/s.EIS was carried out at OCP with a frequency range from 10 5 to 10 −2 Hz and an AC signal amplitude of ±10 mV.After 72 h soaking, the LPR and EIS measurements were completed, followed by Potentiodynamic Polarization Curve (PC) measurement.The scanning potential range was from −500 mV to +1200 mV (vs.OCP), with a scanning rate of 0.5 mV/s.In the linear polarization region, the corrosion current density can be calculated using the following formula: where R p is polarization resistance (Ω cm 2 ) and B isthe constant, which can be calculated as follows: b a and b k are the anodic and cathodic Tafel constants, respectively.

Characterization of Corrosion Products
Scanning electron microscopy (SEM, EVO MA15 ZEISS, Tokyo, Japan) was used to observe the microstructure of the steel surface before and after layer removal.Additionally, the steel samples were sealed with epoxy resin and cut using a cutting machine after the epoxy layer had cured, in order to observe the cross-sectional morphology of corrosion product layers.

Corrosion and Inhibition Behavior by Weight-Loss Measurements
The corrosion rate and inhibition efficiency of X65 steel pre-scaling for 6 h in solutions with different corrosion inhibitors (50 mg/L) are shown in Figure 2. It can be seen that all the inhibitors provide corrosion inhibition for pre-scaled X65 steel, but their effectiveness varies significantly.The order of inhibitory effects for the four inhibitors is as follows: 1-CPN > BHQ > BPC > BQC.Among them, 1-CPN and BHQ have better corrosion inhibition effects, with corrosion inhibition rates reaching 80.22% and 80.15%, respectively.This indicates that the multi-benzene ring structure of 1-CPN plays a protective role in X65 steel after scaling, forming a protective film and producing a shielding effect to inhibit metal corrosion.At the same time, 1-CPN has a strong penetration ability and can effectively reach the metal substrate surface through the scale layer.
with different corrosion inhibitors (50 mg/L) are shown in Figure 2. It can be seen that al the inhibitors provide corrosion inhibition for pre-scaled X65 steel, but their effectiveness varies significantly.The order of inhibitory effects for the four inhibitors is as follows: 1-CPN > BHQ > BPC > BQC.Among them, 1-CPN and BHQ have better corrosion inhibition effects, with corrosion inhibition rates reaching 80.22% and 80.15%, respectively.This indicates that the multi-benzene ring structure of 1-CPN plays a protective role in X65 steel after scaling, forming a protective film and producing a shielding effect to inhibit metal corrosion.At the same time, 1-CPN has a strong penetration ability and can effectively reach the metal substrate surface through the scale layer.

OCP Variations
After 6 h of pre-scaling treatment on X65 steel, in situ electrochemical testing was conducted, and the results of the open circuit potential (OCP) test are shown in Figure 3 It can be clearly observed that during the initial stage of corrosion, the OCP rapidly increases and then starts to stabilize with a slow upward trend around 18 h.The significant fluctuations in OCP during in situ monitoring often indicate major changes in corrosion product films.Therefore, it is evident that corrosion time has a significant impact on steady-state potential.Different protective films with a different protective performance are formed at different stages.Before the electrochemical test, a layer of product film (CaCO3) was deposited on the surface of X65 steel through an accelerated scaling process.However, CaCO3 does not provide ideal protection to the substrate and may also cause corrosion under the scale, accelerating corrosion behavior.Therefore significant fluctuations in open circuit potential can be observed during the early stage of OCP testing.The presence of pre-scale (CaCO3 film) has a certain influence on the performance of corrosion inhibitors.Some corrosion inhibitors can only adhere to the scale layer, which reduces their effectiveness in inhibiting corrosion.Therefore, the penetrability of corrosion inhibitors through the scale layer is particularly important, as reflected by significant differences in open circuit potential (OCP) under different conditions of quaternary ammonium salts.

Linear Polarization Resistance
LPR tests were conducted at different time periods, and the results are Figure 4.The electrochemical parameters are shown in Table 2.There was a difference in Rp under different corrosion inhibitor conditions, and the results w inhibitors (50 mg/L) had higher Rp values than the blank.The relationship betwe corrosion current can be calculated using Formula (5), where B is a constant.A value indicates a slower corrosion rate at this time.Therefore, the corrosion efficiency of different corrosion inhibitors is in the following order from high CPN > BHQ > BQC > BPC, which is consistent with the results of the w experiments.It is worth noting that the Rp value gradually decreases over time, a relative weakening of the protective effect of corrosion product film during immersion process.This may be because the CaCO3 product film generated d pre-passivation process can provide a certain level of protection to the substr early stages.However, as time goes on, some loosely attached product films f partial polarization will detach.At the same time, some corrosion inhibito penetrate through the scale layer and adhere to the surface product film.These corrosion inhibitors also detach and enter into the corrosive medium.Therefo value tends to decrease with increasing time.

Linear Polarization Resistance
LPR tests were conducted at different time periods, and the results are shown in Figure 4.The electrochemical parameters are shown in Table 2.There was a significant difference in R p under different corrosion inhibitor conditions, and the results with added inhibitors (50 mg/L) had higher R p values than the blank.The relationship between R p and corrosion current can be calculated using Formula (5), where B is a constant.A larger R p value indicates a slower corrosion rate at this time.Therefore, the corrosion inhibition efficiency of different corrosion inhibitors is in the following order from high to low: 1-CPN > BHQ > BQC > BPC, which is consistent with the results of the weight-loss experiments.It is worth noting that the R p value gradually decreases over time, indicating a relative weakening of the protective effect of corrosion product film during the 72 h immersion process.This may be because the CaCO 3 product film generated during the pre-passivation process can provide a certain level of protection to the substrate in the early stages.However, as time goes on, some loosely attached product films formed via partial polarization will detach.At the same time, some corrosion inhibitors cannot penetrate through the scale layer and adhere to the surface product film.These ineffective corrosion inhibitors also detach and enter into the corrosive medium.Therefore, the R p value tends to decrease with increasing time.

Electrochemical Impedance Spectroscopy
The in situ electrochemical tests were conducted on X65 steel after pre-sc h.The Nyquist and Bode plots of the electrochemical impedance spectra obtai different corrosion inhibitors (50 mg/L) are shown in Figure 5.The electri diagram used for fitting the EIS spectra is shown in Figure 6, where Rs represen resistance, CPEdl represents double layer capacitance, and n is the coefficient.W CPEdl represents pure capacitance with capacitance Y −1 .When n = 0, it repr resistance as Y −1 .When 0 < n < 1, it is non-ideal capacitance.When n = 0.5, it is impedance.Rct represents charge transfer resistance, L stands for inductanc represents the film resistance of corrosion products.The fitted electrochemical p are presented in Table 3.

Electrochemical Impedance Spectroscopy
The in situ electrochemical tests were conducted on X65 steel after pre-scaling for 6 h.The Nyquist and Bode plots of the electrochemical impedance spectra obtained under different corrosion inhibitors (50 mg/L) are shown in Figure 5.The electrical circuit diagram used for fitting the EIS spectra is shown in Figure 6, where R s represents solution resistance, CPE dl represents double layer capacitance, and n is the coefficient.When n = 1, CPE dl represents pure capacitance with capacitance Y −1 .When n = 0, it represents the resistance as Y −1 .When 0 < n < 1, it is non-ideal capacitance.When n = 0.5, it is Warburg impedance.R ct represents charge transfer resistance, L stands for inductance, and R f represents the film resistance of corrosion products.The fitted electrochemical parameters are presented in Table As shown in Figure 5, the electrochemical behavior of X65 steel under different corrosion inhibitors exhibits certain differences.However, in the test results, the Nyquist plots obtained under different corrosion inhibitor conditions have very similar shapes, showing a large semicircle in the high-frequency region and an inductive behavior in the low-frequency region [12][13][14].This indicates that the electrochemical kinetics on the surface of X65 steel are identical.From the Nyquist plot, it can be observed that the semicircle at high frequencies represents the charging and discharging relaxation process on the electrode surface, while the semicircle at low frequencies corresponds to the adsorption of corrosion products on the anode and their coverage on the metal substrate.The appearance of inductance in the low-frequency region is attributed to the presence of a composite layer consisting of ferrous carbonate and calcium carbonate on the metal surface.The low-frequency induction loop indicates the active dissolution of X65 steel substrate in CO 2 media, with a continuous adsorption of hydrogen ions and other surface substances.Moreover, there is a negative correlation between these surface substances' coverage degree on the metal surface and potential.As shown in Figure 5, the electrochemical behav corrosion inhibitors exhibits certain differences.Howeve plots obtained under different corrosion inhibitor cond showing a large semicircle in the high-frequency region low-frequency region [12][13][14].This indicates that the surface of X65 steel are identical.From the Nyquist p semicircle at high frequencies represents the charging an on the electrode surface, while the semicircle at low adsorption of corrosion products on the anode and their The appearance of inductance in the low-frequency regio a composite layer consisting of ferrous carbonate and surface.The low-frequency induction loop indicates th substrate in CO2 media, with a continuous adsorption of substances.Moreover, there is a negative correlation be coverage degree on the metal surface and potential.
The difference in charge transfer resistance (Rct) Nyquist plot shown in Figure 5.It is generally believed to the corrosion rate, meaning that a higher Rct correspon fitted values of Rct can be seen in Table 3, where the Rct va around 100 Ω•cm 2 .However, after adding corrosion inh For example, under the condition of using a 1-CPN inh times that of the blank.This indicates that the corrosion  The difference in charge transfer resistance (R ct ) can be visually observed in the Nyquist plot shown in Figure 5.It is generally believed that R ct is inversely proportional to the corrosion rate, meaning that a higher R ct corresponds to a lower corrosion rate.The fitted values of R ct can be seen in Table 3, where the R ct value for the blank group is usually around 100 Ω•cm 2 .However, after adding corrosion inhibitors, there is an increase in R ct .For example, under the condition of using a 1-CPN inhibitor, R ct even reaches about six times that of the blank.This indicates that the corrosion inhibitor can penetrate through the pre-existing scale layer and adsorb on the substrate, but there are significant differences in penetration ability among different corrosion inhibitors.For example, under the conditions of BPC corrosion inhibitor, the R ct value only increases by less than two times compared to the blank.It is worth noting that under the same conditions, the EIS impedance arc radius decreases with time, which means that the protective effect of the corrosion product film decreases.Generally speaking, it is believed that with increasing time, the protective effect of the corrosion product film will gradually increase.The main reason for this phenomenon in this article is that a CaCO 3 protective film is formed during the pre-scaling process.It is commonly believed that FeCO 3 has a better protection effect than CaCO 3 .At the same time, the deposition of CaCO 3 during the pre-scaling process also has a certain influence on ferrous carbonate sedimentation.Therefore, with the increase in immersion time, some loose CaCO 3 will fall off, which will also take away some FeCO 3 attached to the CaCO 3 layer.The detachment of scale and the inability of newly formed products to effectively deposit on X65 steel matrix result in changes in R p and EIS, as mentioned in the article.However, some corrosion inhibitors can still penetrate through the gaps between calcium carbonate scales and act on the matrix.R f represents the film resistance value of the product film, and its size reflects the protective nature of the product film.At the same time, with the addition of corrosion inhibitors, CPE dl values gradually decrease, indicating a reduction in dielectric constant at the X65 sample corrosion interface.Quaternary ammonium salt molecules have larger sizes and smaller dielectric constants, which can further inhibit corrosion by adsorbing on X65 steel surface.

Polarization Curves
PC measurements were conducted in the final stage of in situ electrochemical testing.The polarization curve test results under different corrosion inhibitors conditions (50 mg/L) are shown in Figure 7.The electrochemical parameters obtained from fitting the PC data are presented in Table 4, indicating differences in PC under different corrosion inhibitor conditions.In the weight-loss experiment, the corrosion rates from smallest to largest were as follows: 1-CPN < BHQ < BQC < BPC < blank.Correspondingly, the corrosion current density (i corr ) values obtained from fitting the polarization curves were 0.018 mA/cm 2 , 0.098 mA/cm 2 , 0.070 mA/cm 2 , 0.323 mA/cm 2 , and 0.531 mA/cm 2 , respectively.The greater the current density, the more severe the tendency for corrosion.Based on OCP analysis, the results indicate that after adding corrosion inhibitors, the relative negative shift in corrosion potential was observed, compared to the blank solution without any additives.Under different conditions of using various types of inhibitors, PC showed consistent trends where increasing potentials resulted in a continuous increase in anodic currents without clear signs of passivation phenomena.The main behavior of anodic processes was active dissolution until reaching higher potentials values.At high potentials, a significant increase in currents was observed due to the rapid deposition of corrosive products on metal surfaces.Literature reports suggest that if |∆E corr | exceeds 85 mV, it indicates either a cathodic or anodic-type inhibitor.While if |∆E corr | falls below 85 mV, it suggests a mixed-type inhibitor.These four quaternary ammonium salts belong to mixed-type inhibitors that are primarily cathode inhibitive in nature.As for X65 steel samples coated with CaCO 3 through 6 h of pre-scaling, they were taken into the autoclave for corrosion experiments.The surface morphologies of X65 steel with different corrosion inhibitors for 72 h immersion are shown in Figure 8.It can be observed that different corrosion inhibitors have a significant impact on the surface morphology of the samples.Figure 8a shows the surface of the blank sample after 6 h of scale formation, which exhibits severe corrosion with a large amount of porous and loose corrosion products covering the surface.These are commonly mixed corrosion products consisting of calcium carbonate scale and FeCO 3 corrosion product scale [49].After adding the corrosion inhibitor, the surface of the specimen shows varying degrees of corrosion.When BPC is added, the surface of the corrosion product film becomes denser and roughness decreases.However, when BQC and BHQ inhibitors are added, a large amount of flocculent corrosion product film covers the surface, increasing coverage and reducing pore size compared to blank samples.When 1-CPN is added as an inhibitor as shown in Figure 8c, the corrosion product is significantly reduced, with fewer corrosion products and a denser protective film on the substrate.
When BPC is added, the surface of the corrosion product film becomes denser and roughness decreases.However, when BQC and BHQ inhibitors are added, a large amount of flocculent corrosion product film covers the surface, increasing coverage and reducing pore size compared to blank samples.When 1-CPN is added as an inhibitor as shown in Figure 8c, the corrosion product is significantly reduced, with fewer corrosion products and a denser protective film on the substrate.The surface morphology after removing the corrosion product film of scale-coated X65 steel samples is shown in Figure 9.It can be seen that after film removal, the loose and porous surface corrosion product film on the blank sample without adding any corrosion inhibitor was effectively removed, revealing a clear surface morphology of the substrate after corrosion.There were large corrosive pits and holes all over, indicating uniform corrosion on the metal.The surface of the samples with corrosion inhibitors added after product layer removal changed from flocculent to cellular and exhibited numerous grooves, indicating that the addition of corrosion inhibitors inhibited the corrosion of X65 steel.This resulted in corrosive ions entering the metal substrate surface through scale layers and causing localized corrosion.However, BPC and BQC have limited protective effects on metals as their penetration ability is insufficient to form a uniform protective The surface morphology after removing the corrosion product film of scale-coated X65 steel samples is shown in Figure 9.It can be seen that after film removal, the loose and porous surface corrosion product film on the blank sample without adding any corrosion inhibitor was effectively removed, revealing a clear surface morphology of the substrate after corrosion.There were large corrosive pits and holes all over, indicating uniform corrosion on the metal.The surface of the samples with corrosion inhibitors added after product layer removal changed from flocculent to cellular and exhibited numerous grooves, indicating that the addition of corrosion inhibitors inhibited the corrosion of X65 steel.This resulted in corrosive ions entering the metal substrate surface through scale layers and causing localized corrosion.However, BPC and BQC have limited protective effects on metals as their penetration ability is insufficient to form a uniform protective film.However, the corrosion inhibitors BHQ and 1-CPN exhibit excellent corrosion inhibition performance, with minimal adsorption on the scale surface and almost complete penetration through the scale to reach the metal surface underneath, protecting the metal [50].After removing the corrosion product film, the sample surface is smooth and even, indicating effective corrosion inhibition, which is consistent with weight-loss and electrochemical results.

Cross-Sectional Morphologies of Scale-Coated Samples after Corrosion Experiments
The cross-sectional morphologies of scale-coated X65 steel samples after being soaked in various corrosion inhibitor solutions for 72 h are shown in Figure 10.It indicates that there exists a layer of corrosion product film on the surface of the corroded samples.In the absence of a corrosion inhibitor, this layer of corrosion product film exhibits a loose attachment to the matrix surface and can be easily cleared off.After adding the corrosion inhibitor, it chelates with the scale layer to form a thicker corrosion product film, which makes it difficult for calcium carbonate scale to detach from the metal substrate.This provides isolation protection and reduces the contact between corrosive media and X65 steel, thereby lowering the corrosion rate.However, different corrosion inhibitors have varying abilities to penetrate the scale layer and provide uniform protection to the substrate.BPC, BQC and BHQ exhibit less than optimal corrosion inhibition effects, resulting in localized corrosion on the surface of X65 steel and an insufficient surface smoothness of the substrate.When using inhibitor 1-CPN, the corrosion product film is dense and evenly distributed on the substrate surface, effectively protecting it and significantly reducing its corrosion rate.
Molecules 2024, 29, x FOR PEER REVIEW 15 of 19 film.However, the corrosion inhibitors BHQ and 1-CPN exhibit excellent corrosion inhibition performance, with minimal adsorption on the scale surface and almost complete penetration through the scale to reach the metal surface underneath, protecting the metal [50].After removing the corrosion product film, the sample surface is smooth and even, indicating effective corrosion inhibition, which is consistent with weight-loss and electrochemical results.

Cross-Sectional Morphologies of Scale-Coated Samples after Corrosion Experiments
The cross-sectional morphologies of scale-coated X65 steel samples after being soaked in various corrosion inhibitor solutions for 72 h are shown in Figure 10.It indicates that there exists a layer of corrosion product film on the surface of the corroded samples.In the absence of a corrosion inhibitor, this layer of corrosion product film exhibits a loose attachment to the matrix surface and can be easily cleared off.After adding the corrosion inhibitor, it chelates with the scale layer to form a thicker corrosion product film, which makes it difficult for calcium carbonate scale to detach from the metal substrate.This provides isolation protection and reduces the contact between corrosive media and X65 steel, thereby lowering the corrosion rate.However, different corrosion inhibitors have varying abilities to penetrate the scale layer and provide uniform protection to the substrate.BPC, BQC and BHQ exhibit less than optimal corrosion inhibition effects, resulting in localized corrosion on the surface of X65 steel and an insufficient surface smoothness of the substrate.When using inhibitor 1-CPN, the corrosion product film is dense and evenly distributed on the substrate surface, effectively protecting it and significantly reducing its corrosion rate.

Conclusions
After 6 h of pre-scaling on X65 steel, the inhibition efficiencies of several corrosion inhibitors on under-deposit corrosion were compared using weight-loss and in situ electrochemical measurements.The conclusions are as follows: (1) Weight-loss experiments have shown that different corrosion inhibitors can effectively inhibit under-deposit corrosion.But there are different capabilities in

Conclusions
After 6 h of pre-scaling on X65 steel, the inhibition efficiencies of several corrosion inhibitors on under-deposit corrosion were compared using weight-loss and in situ electrochemical measurements.The conclusions are as follows: (1) Weight-loss experiments have shown that different corrosion inhibitors can effectively inhibit under-deposit corrosion.But there are different capabilities in inhibiting the under-deposit corrosion of X65 steels coated with CaCO 3 layer.The inhibition efficiencies of the corrosion inhibitors from high to low are as follows: 1-CPN < BHQ < BQC < BPC.
(2) The differences in electrochemical behavior under different corrosion inhibitor addition indicate different corrosion inhibition properties to the corrosion under-deposit layer.The pre-scaled CaCO 3 , which forms before corrosion occurs, provides adequate protection in the early stage.However, as immersion was prolonged, a decrease in R p and R ct occurred, which inferred the increase in corrosion rate.Both EIS and PC results proved the best inhibition efficiency for 1-CPN.(3) The surface morphology of the sample in the absence of a corrosion inhibitor exhibits as a loose and porous layer, which can provide less protection to the substrate.However, in the presence of a different corrosion inhibitor, pre-scaled X65 steels exhibit varying degrees of corrosion.Under the action of corrosion inhibitors, the underdeposit corrosion is inhibited to varying degrees, with BHQ and 1-CPN showing the best inhibition effect to under-deposit corrosion.In the cross-sectional morphologies of BPC and BQC, it exhibited as uneven and the corrosion under the deposit was relatively severe.The corrosion product of 1-CPN covers the substrate surface as a thin and uniform layer.A slightly corroded surface can be observed after the product layer is removed.

Figure 1 .
Figure 1.Chemical structures of four synthesized corrosion inhibitors.

Figure 1 .
Figure 1.Chemical structures of four synthesized corrosion inhibitors.

Figure 2 .
Figure 2. Corrosion rate and inhibition efficiency of pre-scaled X65 steels after immersing in a solution environment at 40 °C, CO2 partial pressure of 0.5 MPa (total pressure of 1 MPa) for 72 h with different corrosion inhibitors (50 mg/L).

Figure 2 .
Figure 2. Corrosion rate and inhibition efficiency of pre-scaled X65 steels after immersing in a solution environment at 40 • C, CO 2 partial pressure of 0.5 MPa (total pressure of 1 MPa) for 72 h, with different corrosion inhibitors (50 mg/L).

3. 2 .
Electrochemical Behavior of Corrosion Inhibitors to Scale-Coated X65 Steel 3.2.1.OCP Variations After 6 h of pre-scaling treatment on X65 steel, in situ electrochemical testing was conducted, and the results of the open circuit potential (OCP) test are shown in Figure 3.It can be clearly observed that during the initial stage of corrosion, the OCP rapidly increases and then starts to stabilize with a slow upward trend around 18 h.The significant fluctuations in OCP during in situ monitoring often indicate major changes in corrosion product films.Therefore, it is evident that corrosion time has a significant impact on steady-state potential.Different protective films with a different protective performance are formed at different stages.Before the electrochemical test, a layer of product film (CaCO 3 ) was deposited on the surface of X65 steel through an accelerated scaling process.However, CaCO 3 does not provide ideal protection to the substrate and may also cause corrosion under the scale, accelerating corrosion behavior.Therefore, significant fluctuations in open circuit potential can be observed during the early stage of OCP testing.The presence of prescale (CaCO 3 film) has a certain influence on the performance of corrosion inhibitors.Some corrosion inhibitors can only adhere to the scale layer, which reduces their effectiveness in inhibiting corrosion.Therefore, the penetrability of corrosion inhibitors through the scale layer is particularly important, as reflected by significant differences in open circuit potential (OCP) under different conditions of quaternary ammonium salts.

Figure 3 .
Figure 3.The variation in OCP with time during a 72 h immersion process of X65 steel for 6 h, at 40 °C and under different corrosion inhibitor conditions (50 mg/L) with a pressure of 0.5 MPa.

Figure 3 .
Figure 3.The variation in OCP with time during a 72 h immersion process of X65 steel, pre-scaled for 6 h, at 40 • C and under different corrosion inhibitor conditions (50 mg/L) with a CO 2 partial pressure of 0.5 MPa.

Figure 4 .
Figure 4.The Rp values of X65 steel after pre-scaling for 6 h during immersion at 40 °C, partial pressure of 0.5 MPa, under various corrosion inhibitor conditions (50 mg/L).

Figure 4 .
Figure 4.The R p values of X65 steel after pre-scaling for 6 h during immersion at 40 • C, with a CO 2 partial pressure of 0.5 MPa, under various corrosion inhibitor conditions (50 mg/L).

Figure 5 .
Figure 5.The EIS spectra during a 72 h immersion process of X65 steel, pre-scaled for 6 h, at 40 °C and under a CO2 partial pressure of 0.5 MPa with different corrosion inhibitor conditions (50 mg/L).

Figure 5 .Figure 6 .
Figure 5.The EIS spectra during a 72 h immersion process of X65 pre-scaled for 6 h, at 40 • C and under a CO 2 partial pressure of 0.5 MPa with different corrosion inhibitor conditions (50 mg/L).

Figure 7 .
Figure 7. PC comparison of X65 steel under different corrosion inhibitor addition (50 m pre-scaling for 6 h.

Figure 7 .
Figure 7. PC comparison of X65 steel under different corrosion inhibitor addition (50 mg/L) after pre-scaling for 6 h.

Figure 8 .
Figure 8. SEM images of the corroded surface before product removal and after immersing scalecoated X65 steel in different corrosion inhibitors (50 mg/L) at a temperature of 40 °C and CO2 partial pressure of 0.5 MPa (total pressure of 1 MPa) for 72 h: (a) Blank, (b) BPC, (c) BQC, (d) BHQ and (e) 1-CPN.

Figure 8 .
Figure 8. SEM images of the corroded surface before product removal and after immersing scalecoated X65 steel in different corrosion inhibitors (50 mg/L) at a temperature of 40 • C and CO 2 partial pressure of 0.5 MPa (total pressure of 1 MPa) for 72 h: (a) Blank, (b) BPC, (c) BQC, (d) BHQ and (e) 1-CPN.

Figure 10 .
Figure 10.Cross-sectional images of samples before product film removal after immersing scalecoated X65 steel in different corrosion inhibitors (50 mg/L) for 72 h at a temperature of 40 • C and CO 2 partial pressure of 0.5 MPa (total pressure of 1 MPa): (a) Blank, (b) BPC, (c) BQC, (d) BHQ and (e) 1-CPN.

Table 2 .
The electrochemical parameters of the LPR for X65 steel with different corrosio (50 mg/L) for samples of 6 h pre-scaling.

Table 2 .
The electrochemical parameters of the LPR for X65 steel with different corrosion inhibitors (50 mg/L) for samples of 6 h pre-scaling.

Table 3 .
Electrochemical parameters obtained from fitting of EIS spectrum.

Table 4 .
The electrochemical parameters of the PC for X65 steel with different corrosion inhibitors (50 mg/L) for samples of 6 h pre-scaling.