Corrosion Inhibition Mechanism of Ultra-High-Temperature Acidizing Corrosion Inhibitor for 2205 Duplex Stainless Steel

The acidizing corrosion inhibitors reported so far have a poor effect on duplex stainless steel in high-temperature and high-concentration acid systems and cannot effectively inhibit the occurrence of selective corrosion. In this paper, a new acidizing corrosion inhibitor was designed, which was mainly composed of Mannich base and antimony salt. The inorganic substance in the corrosion inhibitor had good stability at high temperatures and could quickly form a complex with the metal matrix to enhance the binding ability. The organic substance can make up for the non-dense part of the inorganic film. The properties of developed corrosion inhibitors were analyzed by quantum chemical calculation, molecular dynamics simulation, and scanning electron microscopy. The results showed that a double-layer membrane structure could be constructed after adding the corrosion inhibitor, which could play a good role in blocking the diffusion of acid solution at high-temperature. The uniform corrosion rate of 2205 duplex stainless steel after adding acidizing corrosion inhibitor immersion in a simulated service condition (9 wt.% HCl + 1.5 wt.% HF + 3 wt.% CH3COOH + 4~6 wt.%) at 140 °C, 160 °C and 180 °C for a 4 h test is 6.9350 g·m−2·h−1, 6.3899 g·m−2·h−1 and 12.1881 g·m−2·h−1, respectively, which shows excellent corrosion inhibition effect and is far lower than that of the commonly accepted 81 g·m−2·h−1 and no selective corrosion could be detected.


Introduction
With the increasing demand for energy, the exploration and development of oil and gas fields have gradually developed from conventional working conditions to the harsh working conditions of high-temperature and high-pressure or even ultra-high-temperature and high-pressure. The high-temperature and high-pressure well is defined with wellhead pressure and bottom hole pressure greater than 70 and 105 MPa, respectively, and the bottom hole temperature greater than 150 • C by the International high-temperature and high-pressure Well Association, the wells with wellhead pressure greater than 105 MPa, bottom-hole pressure greater than 140 MPa and bottom-hole temperature greater than 175 • C is defined as ultra-high-temperature and pressure wells [1]. At present, hightemperature and high-pressure oil and gas wells in the world are mainly distributed in the Gulf of Mexico in the United States, the North Sea in the United Kingdom, Southeast Asia, Africa, and the Tarim Basin, the South China Sea and Sichuan in China [2][3][4][5]. The acidizing operation temperature of oil wells in the North Sea has exceeded 160 • C [6]. In China, representative ultra-high-temperature and high-pressure wells are mainly distributed in the Tarim Basin of Xinjiang, with deep burial depths and extremely harsh service conditions. The bottom hole temperature usually exceeds 180 • C [7,8]. In addition, the acid with 2205 duplex stainless steel could be controlled at 40.3092 g·m −2 ·h −1 in the 4 wt.% HCl + 3 wt.% CH 3 COOH + 5 wt.% QASE + 1 wt.% Sb 2 O 3 at 200 • C test environment.
Molecular simulation techniques play an important role in the modern characterization of materials [32], which are beneficial to the study of corrosion behavior by increasing the understanding of chemical and physical processes at the molecular and atomic levels. Cl − has a great influence on metal pitting corrosion, and the molecular dynamics (MD) simulations method is also used to study the pitting behavior of Cl − on metals [32][33][34][35][36]. By using molecular dynamics simulation, Sepehr Y et al. [33] studied the pitting corrosion behavior of nano-diamonds. Chen et al. [34], using MD simulation, found that the mixed corrosive anions (Cl − and HSO 3 − ) adsorbed much more strongly to the passive film, and their diffusion coefficient was also significantly improved compared to the solution containing only one kind of anion.
The above-mentioned acidizing corrosion inhibitor had a certain corrosion inhibition effect on 2205 duplex stainless steel. However, there have been no reports on corrosion inhibitors suitable for ultra-high temperature and high-concentration acid solution systems. Herein, it is essential to develop a corrosion inhibitor suitable for the ultra-hightemperature and high-concentration acidizing environment and to clarify its corrosion inhibition mechanism, which is critical to prolonging the service life of duplex stainless steel. In this paper, quantum chemical calculation and molecular dynamics simulation were applied to design a new acid corrosion inhibitor, and the suitability was further verified by high-temperature and high-pressure corrosion simulation tests. This research has great engineering application value to broaden the selection of materials for ultra-high-temperature and high-pressure wells and reduce the cost of oil and gas field string.
The test 2205 duplex stainless steel was developed and produced by Zhejiang Jiuli Special Material Technology Co., Ltd., Huzhou China. and its chemical composition was 0.019 wt.% C, 0.41 wt.%Si, 0.63 wt.% Mn, 0.023 wt.% P, 0.005 wt.% S, 2.38 wt.% Cr, 52 wt.% Mo, 5.47 wt.% Ni, 0.181 wt.%N and residual Fe. The size of the high-temperature and high-pressure corrosion test sample was cut from a pipe material with the dimension of 50 mm × 10 mm × 3 mm.
Before testing, the samples were ground by using the abrasive paper from 400 # to 800 # step by step, then immersed in anhydrous ethanol for 5 min by ultrasonic cleaning, dried with cold air, placed in a dryer for at least 1 h, weighed (accurate to 0.0001 g), and measured the size (accurate to 0.01 mm). The samples should be mutually insulated and installed on the fixture during the test. After testing, the acid solution on the surface of the sample was removed by deionization, the corrosion inhibitor film on the surface of the sample was removed by N, N-dimethylformamide, and then the sample was ultrasonically cleaned with anhydrous ethanol for 5 min, dried by cold air, placed in a desiccator for at least 1 h and weighed (accurate to 0.0001 g).

Test Conditions
The typical operating temperature and acidizing operation system of an oil and gas field in western China were selected to evaluate the performance of corrosion inhibitors. The test period was selected based on normal operation time and possible long operation time in the oil field. Table 1 shows the specific test conditions. The high-temperature and high-pressure test was carried out in TFCZ5 25/450 autoclave, which the test temperature ≤ 450 • C and pressure ≤ 25 MPa.
The uniform corrosion rate was calculated by the weight-loss method according to the following equation: where V is uniform corrosion rate; g·m −2 .h −1 ; ∆t is reaction time, h; ∆m is weight loss, g; and A is surface area of test sample, mm 2 .

Microstructure Analysis
The depth of local corrosion was measured and counted by the Smart Zoom5 (Smart Zoom 5, Zeiss, Oberkochen, Germany), with a magnification of 10-500×. The phase composition of 2205 duplex stainless steel was analyzed by an X-ray diffractometer (SmartLab, Rigaku, Tokyo, Japan). The step length was 0.02 • , the time of each step was 5 s, and the angular spacing was between 30 • and 90 • . Scanning electron microscope (SEM, JSM-IT500LA, JEOL Ltd., Japan) and energy spectrum analysis (EDS, JEOL Ltd., Japan) were used to test the corrosion morphology, inhibitor film thickness, and the composition of the film after high-temperature and high-pressure tests. The magnification was 5-300,000×, the secondary electron was 3.0 nm (30 kV), and the backscattered electron was 4.0 mm (30 kV). When measuring the thickness of the film, the sample was embedded in the epoxy resin, and a 50 mm × 3 mm section was observed. Before observing the inner film of the corrosion inhibitor, soak the sample in N, N-dimethylformamide for 10 s to remove the outer film, and then wash it with clean water, dehydrate it with anhydrous ethanol, and dry it with cold air.

Molecular Dynamics Simulation
The molecular dynamics simulation software Accelrys MS Modeling 7.2 (Accelrys, San Diego, CA, USA) was used to build the model of the water-Fe corrosion inhibitor system, and the diffusion behavior of the corrosion medium particles H 2 O, H 3 O + , and Cl − in the corrosion inhibitor film was established and calculated.

Construction of Water-Fe-Corrosion Inhibitor System Model
Firstly, construct a cell of metal Fe, cut the cell along the (001) plane into a surface with a thickness of 17.198 Å, and construct it into (11 × 11) Two-dimensional supercell, and then build it as 31.53 Å × 31.53 Å × 15.76 Å three-dimensional supercell, and 31.53 Å × 31.53 Å × 24.06 Å of liquid water three-dimensional amorphous unit is constructed by the Amorphous Cell module. The constructed inhibitor molecules were immersed into the amorphous unit. The molecular positions of water and corrosion inhibitor are determined randomly. Finally, a three-layer supercell structure was constructed by the "vacuum layer-corrosion inhibitor solution layer-metal Fe supercell" in top-down order. In order to study the interaction between the inhibitor molecule and the Fe surface, the inhibitor molecule was manually moved to the appropriate position near the Fe surface, and the position was appropriate to not form a short-range interaction. The simulation process adopts a group-based truncation method (that is, group-based truncation), with a truncation radius of 9.5 Å, to ensure the calculation accuracy and minimize the calculation time. Then the Fe layer of the final structure is fixed. The smart method is used to minimize the energy of the built three-layer supercell structure by 5000 steps to remove the local high potential energy points for dynamic balance and data acquisition.
The NVT ensemble is used for dynamic balance and data acquisition. The Andersen temperature control method was used to conduct dynamic balance of 160 ps at first and then conduct data acquisition of 80 ps. One track file was output every 800 fs, and a total of 100 track files were output. The time step in the simulation process was 0.8 fs. COMPASS force field was used in the simulation process.

Establishment and Calculation of Diffusion Behavior Model of Corrosion Medium Particles H 2 O and H 3 O + in Corrosion Inhibitor Film
Three corrosion particles, H 2 O, H 3 O + , and Cl − , were selected. The simulation system consists of one corrosion medium particle and 100 corrosion inhibitor molecules. Firstly, the Amorphous Cell module was used to build an amorphous structure containing 100 corrosion inhibitor molecules with periodic boundary conditions, and then the NPT ensemble was chosen to simulate the system with molecular dynamics at 298 K at one atmospheric pressure. The time step was 1 fs, and the total simulation time was 300 ps. After balancing, the average density of the system was calculated. Then the Particle number, Volume, Temperature(NVT) ensemble was selected to simulate the dynamics of the system. The temperature was 298 K, the time step was 1fs, and the total simulation time was 200 ps. One frame was output every 2 ps, a total of 100 frames. The COMPASS force field was used to optimize the system in all dynamic simulations, which were completed through the Fortite module. The charge group method was used for the interaction between van der Waals and Coulomb, and the truncation radius was 9.5 nm. The charge of each anion and cation was assigned by using the current method, and the universal force field was applied to define the potential energy [33].

Microstructure
According to ASTM A923-2014, the polished sample of 2205 was etched in 40 g reagent grade NaOH plus 100 g water solution weight at 2 V DC for 20 s to obtain the structure in Figure 1. It can be seen that the microstructure of 2205 duplex stainless steel consists of an elongated austenite phase (γ, light color) inlaid on a ferrite matrix (α, Dark), the two phases are evenly distributed, and the contents of ferrite and austenite phases are 49.13% and 50.87% respectively.

Optimization Calculation and Design of Corrosion Inhibitor
The quantum chemical method was used to calculate the geometric optimization of the corrosion inhibitor, and the corresponding frontier orbital charge distribution was obtained. The results are shown in Figure 2. The electronic density of the nucleophilic frontier orbital (HOMO) of the organic matter in the corrosion inhibitor is mainly distributed on the O and N atoms in the molecule (Figure 2a), and the electronic density of the electrophilic frontier orbital (LUMO) is respectively distributed on the benzene ring ( Figure 2b, providing electrons or receiving electrons on the 4 s orbital of the Fe atom respectively. The adsorption behavior of the corrosion inhibitor and Fe surface in an aqueous solution was simulated by molecular dynamics, and the kinetic equilibrium configuration of the corresponding system at different temperatures was obtained ( Figure 3). Figure 4 shows the adsorption mechanism of organic corrosion inhibitors on the iron surface. The combination of chemical adsorption and physical adsorption could form a protective film to reduce the corrosion of acid solution on the metal surface. When the corrosion inhibitor interacts with the iron surface, the O and N atoms in the benzene ring and molecule are close to the iron surface and tend to adsorb on the iron surface in parallel to form an adsorption layer. The alkyl chain deviates from the iron surface at a certain angle to form a thicker hydrophobic layer (Figures 3 and 4). With the increase in temperature, the planarity of adsorption between the benzene ring and the iron surface becomes weaker, indicating that the adsorption capacity of the molecule and iron surface would decrease with the increase in temperature (Figure 3c). The interaction energy between the inhibitor molecule and the iron surface at different temperatures was calculated according to the track file collected during the dynamic simulation [37].
where ∆E is the interaction energy of the corrosion inhibitor and iron surface, E inhibitor+Fe is the total energy of the corrosion inhibitor and iron surface, E Fe is the energy of the iron surface, and E inhibitor is the energy of the inhibitor molecule. The binding energy is defined as the negative value of the interaction energy, i.e., E binding = −∆E.  Table 2 depicts the calculated binding energy of the corrosion inhibitor and iron surface in an aqueous solution at different temperatures. The binding energy of the corrosion inhibitor and iron surface decreases gradually with the increase in temperature. The temperature has a great impact on the adsorption performance of corrosion inhibitors. Desorption is easy to occur with the increase in temperature, thus reducing its adsorption performance. Corrosion inhibitor molecules could adsorb on the metal surface to form a protective film exhibiting corrosion inhibition performance, which slows down the anode reaction and the diffusion of metal ions, thus preventing the corrosion of the corrosive medium particles on the metal. The most important criterion of corrosion inhibition performance is whether corrosion inhibitors can adsorb on the metal surface to form a stable, protective film and maintain a high coverage for a long period of time, and can effectively prevent the migration of corrosive medium particles to the metal surface so as to block the reaction path of corrosion, which could be judged by the diffusion of the corrosion medium particles in the corrosion inhibitor film: "the stronger the diffusion ability, the worse the barrier performance of the film and the corrosion inhibitor molecules, on the contrary, the corrosion inhibition is stronger [38].
The diffusion behavior of corrosion medium particles H 2 O, H 3 O + , and Cl − in corrosion inhibitor film was studied by molecular dynamics simulation. The diffusion coefficient of corrosion medium particles in the inhibitor film and the interaction energy between the inhibitor film and two kinds of corrosion medium particles were calculated. The diffusion coefficient is the most direct measure of the diffusion and migration ability of particles in the system. The larger the diffusion coefficient, the stronger the diffusion and migration ability of particles in the system, and the weaker the diffusion and migration ability of particles in the system.
According to Einstein's relation [39], the diffusion coefficient can be expressed as Equations (3) and (4): By applying the finite difference approximation, the diffusion coefficient can be expressed as Equation (5): where m is the slope of the MSD curve, and its value can be directly calculated by the software. Table 3 shows the diffusion coefficients of H 2 O and corrosive medium particles in the inhibitor film. It shows that the diffusion coefficient is significantly reduced compared with that in the water system. The corrosion inhibitor film has a good blocking effect on the diffusion of corrosive medium particles, which could avoid its migration to the metal interface as much as possible and effectively inhibit the corrosion of metals. Table 3. Diffusion coefficient of two corrosion media particles in the inhibitor film, the self-diffusion coefficient of water is 2.34 × 10 −9 m 2 /s.

System Corrosion Inhibitor -H 2 O Corrosion Inhibitor -H 3 O +
Diffusion coefficient (10 −9 m 2 /s) 0.0108 0.0099 Table 4 shows the diffusion coefficients of Cl − in inhibitor film at different temperatures. The diffusion coefficient of Cl − is relatively large in an aqueous solution, and it is easy to diffuse and migrate, resulting in corrosion pits. After the addition of the corrosion inhibitor, the diffusion coefficient decreases sharply, indicating that the diffusion and migration of Cl − were effectively prevented and pitting is mitigated. The diffusion coefficient increases with the increase in temperature and the pitting corrosion is accelerated. The interaction will have a greater impact on the diffusion and migration behavior of particles in it. If the interaction energy is positive, the medium has a repulsive effect on the particle, which can accelerate the diffusion of the particle. On the contrary, which means the medium is attractive to hinder the diffusion of particles. The interaction energy between corrosion medium particles and corrosion inhibitor film can be expressed by the following Equation: E = E film+particle −E film −E particle (6) where E represents the interaction energy of particle and film, E film+particle is the total energy of particle and film, E film is the energy of the corrosion inhibitor film, and E particle is the energy of the corrosion medium particles. Table 5 shows the interaction energy between corrosion medium particles and corrosion inhibitor film. It can be seen that the interaction energy of water molecules and the inhibitor film is much smaller than that of the interaction energy of H 3 O + and the inhibitor film, indicating that there may be a stronger interaction between H 3 O + and the inhibitor film, which has excellent corrosion inhibition effect. Considering the serious desorption of organic corrosion inhibitors at high temperatures, the formulation is to combine organic matter and inorganic salts that can form complexes so as to achieve rapid and stable film formation at high temperatures.

Corrosion Inhibition Mechanism
Analysis at High-Temperature and High-Pressure 3.3.1. Effect of Temperature on Performance of Corrosion Inhibitor Figures 5-7 show the uniform corrosion rate, inhibitor film thickness, and local corrosion depth of 2205 duplex stainless steel in acid solution at 140 • C, 160 • C, and 180 • C, respectively. It can be seen that the uniform corrosion rate shows no significant difference between 140 • C and 160 • C but rises sharply at 180 • C, which is twice that at 160 • C, which is far lower than the commonly accepted 81 g·m −2 ·h −1 [41] and 26.8053 g·m −2 ·h −1 of the 2205 duplex stainless steel in the reported 120 • C 15 wt.% HCl + 1.5% wt. HF + 3 wt.% HAC + 5.1 wt.% acid corrosion inhibitor [12]. The thickness of both layers showed a decreasing trend with the increase in temperature. When combined with the local corrosion and the morphology of the corrosion inhibitor film, it can be seen that the density of the film decreases with the increase in temperature.   No obvious localized corrosion was observed on the specimen surface after the 140 • C test. But the sample surface appeared to have localized corrosion at 160 • C and 180 • C tests. The maximum localized corrosion depth of the 160 • C sample is 22 µm. The average localized corrosion depth is 10 µm. The depth of the corrosion pit is mainly concentrated in 5~10 µm. The maximum localized corrosion depth of 180 • C sample surface is 37 µm. The average localized corrosion depth is 16 µm. The depth of the corrosion pit is mainly concentrated at 11~15 µm. It can be seen that the localized corrosion depth increases with the increase in test temperature. Figure 8 shows the SEM morphology of the corrosion inhibitor film at different temperatures. At 140 • C, the inner and outer films of the corrosion inhibitor on the surface of the sample were relatively intact without obvious damage. With the increase in temperature, the corrosion inhibitor film was damaged, and the inner and outer films on the surface of the 180 • C sample were damaged. Thus, localized corrosion occurred. The EDS results of the main element contents of outer and inner films are displayed in Table 5. The main elements of the film are C, O, Sb, Cl, Fe, Sand Cr, and the content of C in the outer film is much higher than that of in the inner film, while the content of Sb in the inner film is much higher than that of in the outer film. The contents of C and Sb indicate that the outer layer is mainly organic film, and the inner layer is mainly inorganic salt. The content of Cl − in the outer film is higher than that of in the inner film, indicating that the corrosion inhibitor film has an excellent blocking effect in the acid solution, which is consistent with the simulation results (see Table 6). The content of Fe in the inner film increases with the increase in temperature, indicating that the corrosion resistance of the film is reduced.

Effect of Time on Performance of Corrosion Inhibitor
The uniform corrosion rate of 2205 duplex stainless steel after 4 h and 12 h tests in acid solution at 180 • C is shown in Figure 9. It can be seen with the extension of test cycles, and the corrosion rate generally shows a decreasing trend. Figure 10 shows the thickness of two corrosion inhibitor film layers at different test cycles. With the extension of the test cycles, the thickness of the two layers displays an increasing trend. According to the local corrosion situation and the micro-morphology of the inhibitor film, although the film thickness increases with the increase in temperature, the compactness decreases, and the localized corrosion density and depth increase.  The cross-section and surface micromorphology of the inhibitor film at different test cycles shows in Figure 11. The two film layers are relatively complete in the fresh acid medium at 180 • C, which has a good protective effect on the substrate, but the local film layer is damaged, which leads to pitting corrosion on the surface of the sample. Although the thickness of the film in the 12 h test was significantly larger than that in the 4 h test, the compactness of the film was not significantly improved, and the degree of damage was more serious than that in the 4 h test.   Figure 12a that the maximum pitting depth is 37 µm, the average pitting depth is 16 µm, and the depth of the corrosion pit is mainly concentrated at 11~15 µm at 180 • C for 4 h. The maximum pitting depth is 64 µm, the average pitting depth is 23 µm, and the depth of the corrosion pit is mainly concentrated in 21~25 µm at 180 • C for 12 h (see Figure 12b).

Corrosion Inhibitor Layer Analysis
In the acid solution system with high temperature and high concentration, the common organic corrosion inhibitor is seriously desorbed at high temperature, and its adsorption capacity differs greatly from that of austenite and ferrite, which is prone to selective corrosion and difficult to play a good protective role. The corrosion inhibitor in this study constructs a double-layer membrane adsorption structure, which uses inorganic substances with good stability at high temperature to form a complex with the metal matrix to enhance the binding ability with the metal matrix and maintain the high-temperature stability of the film. However, the inorganic film is not dense enough; organic film is used to supplement, as shown in Figure 14a. The microscopic morphology of the film cross-section after adding corrosion inhibitor in the 180 • C acid solution is displayed in Figure 14b. It can be seen the inhibitor has a double-layer membrane structure, which is consistent with the expected results of the inhibitor mechanism. Inorganic salt has a good binding ability with metal matrix at high-temperature. However, the film is easy to crack at high-temperature and forms a channel for acid diffusion. The crack defect could be repaired by the organic film, making the corrosion inhibitor film more dense and better protective for the matrix.
The cross-section of the line scan results of the corrosion inhibitor film is shown in Figure 15. The outer film and the inner film is mainly composed of element C and Sb, respectively, which is consistent with Table 5. From the results of line scanning, it can be seen that the organic film and the inorganic salt film penetrate into each other and combine closely.   Figure 16 shows the cross-section morphology of 2205 duplex stainless steel after testing in 180 • C acid solution with a corrosion inhibitor. No selective corrosion was observed. Figure 17 shows the XRD analysis results of the sample surface after the 180 • C test without corrosion inhibitor and with corrosion inhibitor. The peaks of the austenitic phase are much stronger than that of the ferritic phase in tests without the corrosion inhibitors. However, the peaks of the ferritic phase are as strong as those of the austenitic phase when the corrosion inhibitor is added. The results show that without adding a corrosion inhibitor, selective ferrite corrosion could be observed in high-temperature and high-concentration acid solutions, and selective corrosion is effectively inhibited after adding a corrosion inhibitor.   Figure 18 shows the corrosion mechanism of duplex steel in a high-temperature and high-concentration acid solution system. Minor differences could be seen in the element composition of 2205 duplex stainless steel. Cr, Mo, Ni, and N tend to be concentrated in the ferrite and austenite phases, respectively [26,42,43]. The distribution of elements in the phase is a key factor affecting selective corrosion. The 2205 duplex stainless steel is in an active state when working with high-temperature and high-concentration hydrochloric acid and hydrochloric acid plus hydrofluoric acid [12,26]. Because the potential of Cr is more negative than that of Fe, Cr is more likely to lose electrons and form ions than Fe, and the corrosion of ferrite is more serious than that of austenite. The possible chemical reactions are:

Discussion
anodic [44]: Fe → Fe 2+ + 2e (8) cathodic [12]: 2H + + e → H 2 (9) Figure 18. Corrosion mechanism of duplex stainless steel in high-temperature and high-concentration acid solution system. Figure 19 shows the corrosion inhibition mechanism of acid corrosion inhibitors in high-temperature and high-concentration acid solution systems. The passive film of 2205 duplex stainless steel was dissolved in those harsh environments. Using high-temperature acid corrosion inhibitors can promote the steel to form a protective film on its surface, thus isolating the metal from the acid solution system and reducing the corrosion process. The SEM (see Figure 14) and EDS (see Figure 15) results all confirmed that the inhibitor film shows a double layer, and the inorganic film combined with the substrate forms a coordination bond, which enhances the stability of the inhibitor film at high-temperature. The outer layer is an organic layer. The quantum chemical calculation results show that the organic corrosion inhibitor molecule mainly takes the benzene ring and the O and N atoms in the molecule as the main adsorption sites. The O and N atoms have solitary electron pairs, which will coordinate with the empty orbit on the metal surface in the anode region to form an adsorption film [45] or adsorb at the defects of the inorganic film layer so as to improve the overall compactness of the film layer. The results of molecular dynamics simulation of the diffusion behavior of corrosion medium particles in the organic corrosion inhibitor film also show a good blocking effect on the corrosion media and improves the corrosion resistance of the double-layer film. The simulation result is confirmed by the EDS test results in Table 5, the content of Cl − in the inner membrane is far lower than that of in the outer membrane, and the outer film provides a good barrier and supplement for the inner membrane. When the temperature rises from 140 • C~180 • C, the binding energy of the organic corrosion inhibitor decreases from 188.39 kcal·mol −1 to 180.75 kcal·mol −1 . The high-temperature corrosion simulation test results demonstrate that there is no obvious local corrosion on the surface of the sample at 140 • C, and there is obvious local corrosion on the surface of the test sample at 160-180 • C, and the pitting corrosion is deeper at higher temperatures. The corrosion inhibitor bilayer film is relatively dense when the temperature is low (see Figure 19a). The inorganic film is cracked or damaged with the increase in the experimental temperature, and the organic matter is adsorbed, which plays a supplementary role in the film layer (see Figure 19b). However, the binding energy of the organic matter and the adsorption property is reduced with the increase in temperature. Parts of the damaged film could not be repaired, leading to the base metal contact with the acid solution, then localized corrosion occurred (see Figure 19c). Although a thicker film could be formed with the further extension of test cycles, a loose inorganic film would be formed in the inner layer, and the organic film on the outer layer was also not intact. Hence, the local corrosion depth and scope were greatly increased (see Figure 19c). To sum up, the compactness of corrosion inhibitor film will be affected by the higher testing temperature and longer cycles.

Conclusions
In this paper, the corrosion inhibition performance of the self-designed ultra-high temperature acidizing corrosion inhibitor was studied by using quantum chemical calculation, MD simulation, SEM, EDS, and XRD. The main conclusions are summarized as follows: (1) The 2205 duplex stainless steel ultra-high-temperature acidizing corrosion inhibitor showed excellent corrosion effect in the 180 • C 9 wt. % HCl + 1.5 wt. % of HF + 3 wt. % CH 3 COOH acid system, the corrosion rate can be reduced to 12.1881 g·m −2 ·h −1 and is far below the commonly accepted 81 g·m −2 ·h −1 , and no selective corrosion was observed. (2) The ultra-high temperature acidizing corrosion inhibitor has a double-layer membrane structure, and the inorganic membrane bonded with the substrate is mainly composed of Sb element, and the outer layer is an organic membrane mainly composed of C element. (3) The ultra-high temperature acidizing corrosion inhibitor had a good blocking effect on the diffusion of corrosive medium particles. With the increase in temperature, the binding energy of the corrosion inhibitor and substrate decreases, the blocking effect of corrosion inhibitor film on Cl − also decreases, and pitting corrosion could easily be detected. (4) With the increase in temperature and the extension of test time, the density of corrosion inhibitor film could be damaged, and the corrosion inhibition effect decreased, which was manifested as the increase in local corrosion depth and diameter. (5) The developed acidizing corrosion inhibitor has great engineering application value to broaden the selection of materials for ultra-high-temperature and high-pressure wells and reduce the cost of oil and gas field string.