Introduction

Ionic liquids (ILs) as green molten salts have attracted great attention in the past decades, widely used in various applications such as catalysis, synthesis, lubrication and electrochemistry, etc.1,2,3. The various ILs with different physical and chemical properties can be designed by selecting the proper cation/anion combinations to meet different needs4. Due to the existence of strong Brönsted acid sites, Brönsted acid ionic liquids (BAILs) have their unique acidic characters, including high acid strength and controllable acid density, which have made them well documented5,6,7.

In our previous work, we have focused on the synthesis of task-specific ionic liquids, especially BAILs, and their applications as the solvents and catalysts in many acid-catalyzed reactions such as oxidation, alkylation, esterification and so on8,9,10,11, which demonstrates nice replacements of industrial-used conventional acid catalysts, such as HCl, H2SO4 and so on. The BAILs in this study contain multiple Brönsted acid sites, and are expected to be nice acid catalysts according to our previous work12.

Industrial utilization of acid catalysts usually inevitably involves interactions with containers, pipes, and equipment, and finally may lead to severe corrosion problems. It is well known that hydrochloric acid and sulfuric acid are strong corrosive acids in spite of good catalytic performance. How about the BAILs? The corrosion behaviour of some BAILs to various metal or alloys is quite different from conventional acid e.g., HCl, H2SO4 13. We have studied the corrosion behaviour of mild steel in the BAIL 3-methyl-1-(4-sulfonic acid) butyl imidazolium bisulphate previously, and interestingly nice electrochemical passivation to mild steel could be obtained in spite of the acidity of the BAIL14. It is promising to find that BAILs show good inhibition efficiency to carbon steel in HCl aqueous solution, which will greatly increase the potential for industrial applications of BAILs.

Some ILs have been reported as corrosion inhibitors. Motsie E. Mashuga investigated ionic liquid namely 1-hexyl-3 methylimidazolium hexafluorophosphate [HMIM][PF6] as an inhibitor for the corrosion of mild steel in 1 M HCl solution, with the inhibition efficiency above 70%15; Xin Zhou reported 1-hexyl-3-methy limidazolium tetrafluoroborate [BMIM]BF4 as an inhibitor for the corrosion of carbon steel in alkaline chloride solution with the highest inhibition efficiency up to above 85%16. However, the anions BF4 and PF6 contain halogen atoms, which may cause serious concerns at certain conditions17. Due to the designable character, environmental-friendly BAILs without halide atoms are highly pursued for good inhibition efficiency.

Generally, most inhibitors are organic compounds containing a π system and/or heteroatoms e.g., sulfur, nitrogen, oxygen and phosphorus atoms, which can be adsorbed on the metal surface and reduce the corrosion rate16, 18, 19. In this study, the introduction of carboxyl acid in the side chains of imidazolium rings and anionic HSO4 & H2PO4 endows BAILs good acid catalytic function, which will be included in our future work on the relationship of the structures and catalytic properties of BAILs; Meanwhile, BAILs with two imidazolium rings and one phenyl ring are expected to have good inhibiting capability20.

Due to the strong corrosivity of conventional acid including HCl and H2SO4, it is challenging to design new BAILs acting not only as good acid catalysts, but nice corrosion inhibitors in conventional acids as well. This is of great significance before their industry applications.

The inhibition capacity of BAILs for the corrosion of carbon steel in acidic medium is investigated using various methods, such as electrochemical impedance spectroscopy (EIS), potentiodynamic polarization (PDP) and weight loss (WL) measurements. Then the surface analysis of carbon steel before and after electrochemical tests have been conducted via scanning electron microscopy (SEM) and X-ray photoelectron spectroscopy (XPS). The UV-visible spectroscopic measurements are carried out to gain an insight into the possibility of forming the complex between Fe2+ ion released during the corrosion reaction and the BAIL in solution. Some thermodynamic parameters have been calculated, and the possible inhibition mechanism of BAILs has been predicted as well.

Experimental Details

Materials and sample preparation

All the chemical reagents involved in the experiments were analytical grade, and used without further purification unless otherwise stated. The synthesis schemes of corrosion-inhibiting-functionalized BAILs were shown in Fig. 1. Ethyl 1H-imidazole-1-acetate (Compound 1) was obtained by reacting combining imidazole and potassium carbonate in the presence of ethyl chloroacetate; and then ethyl imidazolium acetate reacted with 1, 3-bis(bromomethyl) benzene in acetonitrile to yield 1, 1′-(1, 4-phenylene bis(methylene)) bis(3-(2-ethoxy-2-oxoethyl)-1H-imidazol-3-ium) bromide (Compound 2); and the reaction of Compound 2 with 1 M aqueous HCl solution was carried out for 1, 1′-(1, 4-phenylenebis(methylene))bis(3-(carboxymethyl)-1H-imidazol-3-ium) chloride (Compound 3). Finally, the synthesis of targeting BAIL1 and BAIL2 (i.e., 1,1′-(1, 4-phenylenebis(methylene))bis(3-(carboxymethyl)-1H-imidazol-3-ium) bisulfate or dihydrogen phosphate) was obtained by reacting one mole of Compound 3 with two moles of concentrated sulfuric or phosphoric acid in dichloromethane, respectively. The detailed synthesis method was provided in the Supplementary Information. All of the above BAILs were characterized by 1H NMR, 13C NMR, and Fourier transform infrared spectroscopy (FTIR), and the results were included in the Supplementary Information (Figs S1S6). The 1H and 13C NMR were measured on a Bruker AVANCE III 600 MHz spectrometer. The FTIR spectra were recorded with a Perkin-Elmer FTIR model 1600.

Figure 1
figure 1

Synthesis schemes of BAIL1 and BAIL2.

The aggressive medium of 0.5 M HCl solution was prepared by diluting the stock solution (37% HCl) using bi-distilled water. The inhibited solution with various concentrations (0, 0.25, 0.5, 0.75 and 1 mM, respectively) of the BAILs were prepared by adding suitable amount of as synthesized BAILs into 250 mL volumetric flask and bring to volume by 0.5 M HCl solution.

The composition (wt%) of the carbon steel coupons is C: 0.42~0.50%, Si: 0.17~0.37%, Mn: 0.50~0.80%, Cr: ≤0.25%, Ni: ≤0.30%, Cu: ≤0.25%, Fe for balance. The exposed surface area of carbon steel used in the electrochemical experiments was 1 cm2, while the rest was embedded by epoxy resin. Besides, the dimension of steel specimens for weight loss experiments was 4.0 × 1.2 × 0.2 cm. Prior to each measurement, the surface of carbon steel specimens was successively abraded with abrasive paper from 360 up to 2000 grit size, then rinsed with bi-distilled water, degreased with anhydrous ethanol, and finally dried at room temperature.

Electrochemical tests

All electrochemical measurements were performed with PARSTAT 2273 electrochemical workstation (Princeton Applied Research) in a conventional three-electrode cell with its electrolyte volume of 200 mL. The carbon steel was used as the working electrode (the exposed surface area is 1 cm2), a saturated calomel electrode (SCE) as the reference electrode, and a graphite electrode as the counter electrode. Before each EIS and subsequent PDP experiment, the steel surface was immersed in the 0.5 M HCl solution without or with different concentrations of BAIL1 or BAIL2 for 30 min until a steady state of the open circuit potential (OCP). All measurements were carried out in non-deaerated solutions and performed using aqueous thermostat bath.

The EIS experiments were performed with a 10 mV amplitude signal in the frequency range of 100 kHz–50 mHz. The inhibition efficiency (IE EIS%) was analyzed by EIS experiments through the follow equation15:

$$I{E}_{{\rm{E}}{\rm{I}}{\rm{S}}}{\rm{ \% }}=({R}_{{\rm{c}}{\rm{t}}}-{R}_{{\rm{c}}{\rm{t}}({\rm{i}}{\rm{n}}{\rm{h}})})/{R}_{{\rm{c}}{\rm{t}}}\times 100$$
(1)

where R ct and R ct(inh) are the values of charge transfer resistance without or with inhibitors for carbon steel in 0.5 M HCl solution, respectively.

The PDP measurements were carried out in the potential ranging from −150 mV to 250 mV versus the OCP with a scan rate of 0.5 mV s−1. The inhibition efficiency (IE PDP%) was calculated by extrapolation of cathodic (β c) and anodic (β a) branches of Tafel curves using the equation15:

$$I{E}_{{\rm{PDP}}} \% =({i}_{{\rm{corr}}}\,\mbox{--}\,{i}_{{\rm{inh}}})/{i}_{{\rm{corr}}}\times 100$$
(2)

where i corr and i inh are the corrosion current densities of carbon steel in 0.5 M HCl solution without or with inhibitors, respectively.

Weight loss measurements

Weight loss is a more reliable technique for the determination of corrosion rates and inhibition efficiency than electrochemical techniques21. The weight loss of carbon steel coupons was measured over 24 h of immersion in 100 mL HCl solutions without or with different concentrations of BAIL1 and BAIL2 at room temperature, respectively. The corrosion rate (CR), the inhibition efficiency (IE WL%) and the degree of surface coverage (θ) were calculated by the following the equations:

$$CR({\rm{m}}{\rm{g}}\cdot {{\rm{c}}{\rm{m}}}^{-2}\cdot {{\rm{h}}}^{-1})={\rm{\Delta }}W/(A\times t)$$
(3)
$$I{E}_{{\rm{WL}}} \% =(C{R}_{0}-C{R}_{{\rm{inh}}})/C{R}_{0}\times 100$$
(4)
$$\theta =I{E}_{{\rm{WL}}}/100$$
(5)

where ΔW is the weight loss in mg, A is the area of the carbon steel exposed in solution in cm2, t is exposure time in hours, and CR 0 and CR inh are the corrosion rate in uninhibited and inhibited 0.5 M HCl solution, respectively.

UV–visible spectrophotometric studies

For optical characterization, UV–visible absorption spectrophotometric measurements were carried out within the working range of 200–600 nm. The absorption spectra of all the tested solutions were recorded using UV–vis Spectrophotometer (Evolution 300, Thermo), and determined with uninhibited 0.5 M HCl solution as reference.

Surface analysis

After some electrochemical tests including OCP- EIS- PDP tests, the steel electrodes were cleaned with bi-distilled water and acetone, and dried by blowing with cool air for further surface analysis. The surface morphologies and chemical compositions of fresh or corroded samples were examined using a scanning electron microscope (SEM, Phenom prox) and XPS (ESCALAB 250, VG Company), respectively. XPS had been performed with a monochromatic Al Kα (1486.6 eV) radiation source, and the binding energies were referenced to the C 1s peak (284.6 eV) of carbon. The collected XPS data were dealt with XPS PEAK Version 4.1 software for Shirley background subtraction, fitting and deconvolution of the peaks.

Results and Discussion

Open circuit potential

The results of open circuit potential studies were shown in Fig. 2. As compared with the blank, it is obvious that the addition of BAILs shifts the stable potential (E OCP) towards less negative value, with a distinct shift (about 27–32 mV) at the inhibitor BAIL concentration of 0.75 mM, which may be attributed to the formation of a protective film on the electrode surface22.

Figure 2
figure 2

Time variation of the open circuit potential (OCP) for carbon steel in 0.5 M HCl solution without/with different concentrations of BAIL1 (A) and BAIL2 (B).

Electrochemical impedance spectroscopy

The representative Nyquist and Bode plots of carbon steel immersed in 0.5 M HCl solution without or with different concentrations of BAILs at the OCP are shown in Figs 3 and 4, respectively.

Figure 3
figure 3

Nyquist plots for carbon steel in 0.5 M HCl solution without/with different concentrations of BAIL1 (a) and BAIL2 (b).

Figure 4
figure 4

Bode plots for carbon steel in 0.5 M HCl solution without/with different concentrations of BAIL1 (a) and BAIL2 (b).

As can be seen from Fig. 3, all the impedance spectra in EIS tests show depressed semicircles, and the deviation to a perfect semicircle may be attributed to inhomogeneity and roughness of the electrode surface23. An increased radius of the impedance plot in the presence of BAILs suggests the enhanced inhibition efficiency, so the inhibition efficiency (IE EIS%) increases with the concentration of BAILs within the range of 0.25 to 0.75 mM, reaching its maximum value 80.4% (BAIL1) and 89.7% (BAIL2), and then decreases when further increasing the concentration of BAILs.

The Bode plot in Fig. 4 shows the shifts of frequency at maximum phase angle to higher value in the presence of inhibitors, and two time constants could be observed in the presence of inhibitors. The equivalent circuit shown in the inset of Fig. 1 has been used for EIS data fitting. R s is the solution resistance, the first time constant at high frequencies can be described to the film resistance (R f), which corresponds to the adsorption of inhibitor, and the other one at low frequencies is related to the charge transfer resistance (R ct), which can be ascribed to the electron transfer reactions occurring in the metal/solution interface. Generally, CPE representing a constant phase element is often used to replace the double layer capacitance (C dl) to give a more accurate fit24. CPE 1 and CPE 2 are constant phase elements correspond to the capacitance of the film formed on the electrode surface and the double layer capacitance at the interface between the steel and solution in the film pores. The impedance function of the CPE can be expressed as follows25.

$${Z}_{{\rm{CPE}}}=1/{Y}_{0}{(j\omega )}^{{\rm{n}}}$$
(6)

where Y 0 is the CPE constant, j is the imaginary number (j 2 = −1), ω (ω = f) is the angular frequency, and n (−1 ≤n ≤1) is the phase shift related to the inhomogeneity on the steel surface. n is a phase shift. While n = 0, CPE denotes a resistance; for n = 1, a capacitance; for n = 0.5, a Warburg element; and for n = −1, an inductance25. So in this paper, the CPE 1 is equal to the C dl. In addition, the double layer capacitance, C dl is obtained by the following equation26:

$${C}_{{\rm{dl}}}={Y}_{0}{({\omega }_{{\rm{\max }}})}^{n-1}={Y}_{0}{(2\pi {f}_{{\rm{\max }}})}^{n-1}$$
(7)

where f max is the frequency where the imaginary value reaches the maximum value on the Nyquist graph.

The fitted impedance parameters are listed in Table 1. The value of R ct increases while the C dl decreases with increasing the concentration of inhibitor within the range of 0.25 to 0.75 mM. The higher R ct value (280.7 Ω cm2 for BAIL1; 379.7 Ω cm2 for BAIL2) has been found at optimum BAIL concentration of 0.75 mM, and the best inhibition efficiency (IE EIS%) for BAIL1 and BAIL2 are 88.0% and 91.1%, respectively. The increase of R ct indicates the increase of inhibitor molecules adsorbed on the steel surface27, and the decrease in C dl can be attributed to the decrease in local dielectric constant and/or the increase in the thickness of the double layer. Hence, these results may be attributable to the adsorption of BAIL forming protective adsorption layers on the steel surface28, 29. Further increasing the concentration of BAIL above 0.75 mM, the value of R ct decreases while the C dl increases with the concentration of BAIL, meanw hile the value of inhibition efficiency (IE EIS%) decreases accordingly, which can be attributed to the desorption of BAIL inhibitor due to extra concentration of BAIL. The addition of BAIL causes a decrease in the value of n2 at large, which may due to the surface inhomogeneity arising from the nonuniform film formed on the steel surface, and the random adsorption of BAIL molecules on the steel surface may be responsible for a decrease in steel surface homogeneity30.

Table 1 Electrochemical impedance parameters for carbon steel in 0.5 M HCl solution without/with different concentrations of BAIL1 and BAIL2.

Potentiodynamic polarization (PDP) measurements

The potentiodynamic polarization curves for carbon steel in 0.5 M HCl solution without or with different concentrations of BAILs are shown in Fig. 5, and the respective electrochemical parameters {i.e., corrosion current density (i corr), corrosion potential (E corr), anodic Tafel slope (β a), cathodic Tafel slope (β c), and inhibition efficiency (IE PDP%)} extracted from the corresponding Tafel plots (E corr ± 100 mV) are given in Table 2.

Figure 5
figure 5

Potentiodynamic polarization (PDP) plots for carbon steel in 0.5 M HCl solution at a scan rate of 0.5 mV s−1 without/with different concentrations of BAIL1 (A) and BAIL2 (B).

Table 2 The potentiodynamic polarization parameters for carbon steel in 0.5 M HCl solution without/with different concentrations of BAIL1 and BAIL2.

It is apparent from Fig. 5 that regardless of the concentration of BAIL inhibitors, a significant drop in both cathodic and anodic current densities occurred, indicating that both BAIL1 and BAIL2 could effectively suppress cathodic hydrogen evolution reactions and anodic metal dissolution. Moreover, the shift in the corrosion potential (E corr) towards more positive value corresponds to the dominant anodic inhibition of BAILs31. Inspection of the data of Table 2 reveals that the displacements of the corrosion potential in the presence of BAIL1 and BAIL2 are both less than 85 mV, which consequently suggests that BAILs act as mixed-type inhibitors15.

Furthermore, the values of β c and β a show only slight changes after the addition of BAIL1 and BAIL2, indicating that there is a minor effect on both cathodic hydrogen evolution and anodic iron dissolution, so the inhibition may mainly occur by a blocking mechanism due to the adsorption of BAIL inhibitors on the steel surface32.

The values of inhibition efficiency (IE PDP%) enhanced with the increase of the concentration of BAILs initially, reaching the maximum at the concentration of 0.75 mM, and then decreased slightly when further increasing concentration of BAILs. This can be explained as follows: BAILs are adsorbed onto the steel surface forming a protective film to block the active corrosion sites, thus retards the corrosion reaction; and the increase in concentration results in good inhibition efficiency (IE PDP%) by the increased coverage of BAIL adsorbed and/or the formation of corrosive products on the electrode surface33, which will be further confirmed by the subsequent XPS results. While extra inhibitor results in desorption of BAIL molecules from the electrode surface. The optimum inhibition efficiency (IE PDP%) of BAIL1 and BAIL2 in 0.5 M HCl solution is 81.6% and 89.5% at the concentration of 0.75 mM, respectively. These PDP results are in good harmony with those obtained from the EIS experiments.

Weight loss measurements

The results obtained from weight loss experiments are listed in Table 3. At room temperature, the corrosion rate decreased first and then increased with the concentration of BAILs; while the inhibition efficiency(IE WL%) increased first and then decreased. The maximum inhibition efficiency (IE WL%) reaches 81.3% (BAIL1) and 89.7% (BAIL2) at the optimum concentration of 0.75 mM. These results obtained from the WL measurements are consistent with those from above EIS and PDP experiments.

Table 3 Corrosion parameters for carbon steel immersed in 0.5 M HCl solution for 24 h without/with different concentrations of BAIL1 and BAIL2 at 298 K obtained from WL measurements.

SEM analysis

SEM analysis is performed to study the corrosion morphology of the steel surface before and after electrochemical tests without or with 0.75 mM BAILs, and their SEM images are shown in Fig. 6.

Figure 6
figure 6

SEM micrographs of the steel surface with the magnification of 2000: fresh surface (a); after electrochemical tests in 0.5 M HCl solution (b); after electrochemical tests in 0.5 M HCl solution with 0.75 mM BAIL1 (c); after electrochemical tests in 0.5 M HCl solution with 0.75 mM BAIL2 (d).

The steel surface before electrochemical tests is uniform and only some abrading scratches can be observed in Fig. 6a, while seriously damaged surface is shown in uninhibited 0.5 M HCl solution (Fig. 6b); However, in the presence of the BAILs at optimum concentration (0.75 mM), the steel surface is smoother and less damaged, indicating good inhibition efficiency of the two BAILs (see Fig. 6c and d).

XPS spectra analysis

XPS spectra for C, N, Fe, O, Cl, S and P elements on carbon steel after PDP experiments in 0.5 M HCl solution in the absence and presence of 0.75 mM BAILs have been tested. In the C 1s XPS spectra, a peak at 284.6 eV can be assigned to the C-C bonds, and the other two can be ascribed to C-N (286.8 ± 0.2 eV) and C = N (285.4 ± 0.2 eV), respectively (Fig. 7A)18. In the N 1 s XPS spectra in Fig. 7B, a peak at 399.5 ± 0.2 eV can be attributed to NR3 and the signal at 401.5 ± 0.2 eV can be assigned to the positively charged nitrogen atom (NR4 +) in the imizazolium18, which affirms the presence of BAIL on the steel surface. Meanwhile, S is not detectable on the steel surface inhibiting by BAIL1 in the spectrum of S 2p, while in the P 2p spectrum of BAIL2 inhibiting system, a small peak at around 133.3 eV could not be negligible and might be attributed to the corrosion product in the form of an insoluble phosphate, which may be one of the important reasons for the higher inhibiting efficiency of BAIL2 compared with BAIL1. The detailed spectra are included in the Supplementary Information (Fig. S7).

Figure 7
figure 7

XPS spectra for carbon steel immersed in 0.5 M HCl solution without/with 0.75 mM BAILs after electrochemical experiments: (A) C 1 s; (B) N 1 s; (C) Fe 2p3/2; (D) O 1 s; (E) Cl 2p.

The corrosion products have been further studied by Fe, O and Cl spectra. The deconvoluted XPS spectra of Fe 2p3/2 in Fig. 7C shows three peaks, respectively. A peak at 709.6 ± 0.2 eV is assigned to ferrous compound, and the peak at 710.9 eV can be attributed to ferric compound, while a peak at 713 eV can be ascribed to the satellite peak of ferric compound16, 34. The corrosion products on the steel surface are obtained after BAILs inhibiting according to Fe XPS spectra, which can also retard the dissolution process of the steel electrodes together with the adsorption of BAILs.

In the spectra of O 1 s (Fig. 7D), a peak at 530.2 eV can be attributed to O2− of ferric oxides such as Fe2O3 and/or Fe3O4, and the peak of OH of hydrous iron oxides (i.e., FeOOH) appears at 531.7 ± 0.2 eV35. In the spectra of Cl 2p in Fig. 7E, a peak at 198.7 ± 0.2 eV can be attributed to Cl 2p 3/2, and the peak at 199.2 ± 0.2 eV can be ascribed to Cl 2p 1/2 36. The steel surface could be accessible by lots of Cl and H+ ions in the absence of corrosion inhibitors, which leads to serious corrosion, while in the presence of BAILs, less Cl ion appears on the steel surface, which can be explained that BAILs adsorbed on the steel surface block active sites on the steel surface against the attack of Cl33.

Hence, in the XPS spectra, we can conclude that the adsorbed cation of BAILs on the steel surface and the decrease in Cl attack may lead to the efficient corrosion inhibition.

Adsorption isotherms and thermodynamic characterization

To provide a better understanding of adsorption mechanism of BAILs on the steel surface, several adsorption isotherms including Temkin, Frumkin, Freundlich (see the Supplementary Information Figs S7S9) and Langmuir adsorption isotherm are used to understand the interaction mechanism between BAILs and the steel surface. According to the above adsorption isotherms, the surface coverage (θ) is related to the concentration (C) of inhibitors according to the following equations:

$${\rm{L}}{\rm{a}}{\rm{n}}{\rm{g}}{\rm{m}}{\rm{u}}{\rm{i}}{\rm{r}}:\theta /(1-\theta )={K}_{{\rm{a}}{\rm{d}}{\rm{s}}}{C}_{{\rm{i}}{\rm{n}}{\rm{h}}}$$
(8)
$${\rm{Freundlich}}:\,\mathrm{log}\,\theta =\,\mathrm{log}\,{K}_{{\rm{ads}}}+1/n\,\mathrm{log}\,{C}_{{\rm{inh}}}$$
(9)
$${\rm{Temkin}}:\,\mathrm{log}(\theta /{C}_{{\rm{inh}}})=\,\mathrm{log}\,{K}_{{\rm{ads}}}-g\theta $$
(10)
$${\rm{Frumkin}}:\,\mathrm{log}(\theta /(1-\theta ){C}_{{\rm{inh}}})=\,\mathrm{log}\,{K}_{{\rm{ads}}}+g\theta $$
(11)

where K ads is the adsorption equilibrium constant, C inh is the inhibitor concentration, g is the adsorbate interaction parameter, n is constant at any temperature. The above adsorption isotherms were all tested in an attempt to fit the experimental data, however, only the Langmuir adsorption isotherm provided the best linear fits with the value of correlation coefficient (R 2) > 0.9, and was finally chosen for further study the mechanism of corrosion inhibition for BAILs. The intercept was applied to calculate the K ads, and the adsorption free energy (ΔG 0 ads) was estimated from the follow equation.

$${\rm{\Delta }}{G0}_{{\rm{a}}{\rm{d}}{\rm{s}}}=-RT\,{\rm{l}}{\rm{n}}(55.5{K}_{{\rm{a}}{\rm{d}}{\rm{s}}})$$
(12)

where R is the universal gas constant and T is the absolute temperature. The adsorption of BAILs molecules on the steel surface in 0.5 M HCl solution obeys the Langmuir adsorption isotherm according to the plot of C inh/θ versus C inh 37, 38 in Fig. 8, and the ΔG 0 ads obtained from Langmuir adsorption isotherm for the adsorption of BAIL1 and BAIL2 are provided in Table 4.

Figure 8
figure 8

Langmuir isotherm for carbon steel in 0.5 M HCl solution with different concentrations of BAIL1 (a) and BAIL2 (b) calculated by EIS (), PDP () and WL () results.

Table 4 Thermodynamic parameters for adsorption of BAIL1 and BAIL2 on the steel surface in 0.5 M HCl solution obtained from EIS, PDP and WL measurements.

Generally, The negative value of free energy means that the adsorption process occurs spontaneously, and the values of adsorption free energy (ΔG 0 ads) up to −20 kJ mol−1 or less negative usually correspond to physical adsorption, namely the electrostatic interaction between the charged metal and the charged inhibitor, while those more negative than −40 kJ mol−1 are assigned to chemisorption by sharing or transferring electrons from organic molecules to the metal surface to form a coordinate type of bond39, 40. Therefore, the interaction of BAIL inhibitors with the steel surface takes place mainly through physisorption, with ΔG 0 ads value between −18.00 and −21.85 kJ mol−1 shown in Table 4. However, chemisorption could not be completely excluded. As compared with BAIL1, the more negative value of ΔG 0 ads of BAIL2 and the higher value of the adsorption equilibrium constant K ads in aqueous 0.5 M HCl with BAIL2 indicates that BAIL2 exhibits a slightly stronger tendency to be adsorbed on the steel surface, and consequently provides a higher corrosion inhibiting efficiency.

The effect of temperature in the range of 298–328 K on the corrosion rates of the steel was studied by weight loss method in 0.5 M HCl solution in the absence and presence of 0.75 mM of two BAILs for 24 h shown in Table 5. Regardless of the presence of the inhibitors, the corrosion rate increased with temperature. In the presence of BAIL, the inhibition efficiency (IE WL%) decreased with the increase of temperature, which was due to the fact that the metal dissolution process was enhanced and the adsorbed BAIL molecules were partially desorbed from the steel surface when increasing temperature41.

Table 5 Corrosion parameters for carbon steel immersed in 0.5 M HCl solution for 24 h without/with 0.75 mM BAIL1 and 0.75 mM BAIL2 at 298 K, 308 K, 318 K and 328 K obtained from WL measurements.

The apparent activation energy (E a) was deduced using the following equation:

$$\mathrm{ln}(CR)=-{E}_{{\rm{a}}}/RT+A$$
(13)

where CR is the corrosion rate, E a is the apparent activation energy, R is the general gas constant, T is the absolute temperature and A the Arrhenius pre-exponential factor. A plot of logCR of carbon steel obtained from weight loss experiments vs. 1000/T gave straight lines as shown in Fig. 9. The values of E a determined from the slope of the lines are given in Table 6.

Figure 9
figure 9

Arrhenius plot for carbon steel in 0.5 M HCl solution without BAIL () and with 0.75 mM of BAIL1 () and BAIL2 ().

Table 6 The values of activation parameters E a, ΔH 0 a and ΔS 0 a for carbon steel in 0.5 M HCl solution without/with 0.75 mM BAIL1 and 0.75 mM BAIL2 obtained from WL measurements.

ΔS 0 a and ΔH 0 a were calculated using an alternative formula of the Arrhenius equation40:

$$CR=RT/Nh\exp \,({\rm{\Delta }}{S}_{{\rm{a}}}^{0}/R)\exp (-{\rm{\Delta }}{H}_{{\rm{a}}}^{0}/RT)$$
(14)

where h is the Planck’s constant, N is the Avogadro’s number, ΔS 0 a is the activation entropy and ΔH 0 ads is the activation enthalpy. Figure 10 shows a plot of ln(CR/T) vs. 1000/T, from which the values of ΔS 0 a and ΔH 0 a are calculated, and also listed in Table 6.

Figure 10
figure 10

Plot of ln(CR/T) vs. 1000/T for carbon steel in 0.5 M HCl solution without BAILs () and with 0.75 mM of BAIL1 () and BAIL2 ().

Generally, increased activation energy (E a) indicates physical adsorption which occurs in the first stage or weak chemical bonding between the inhibitors and the steel surface, while unchanged or lower E a in the presence of inhibitor suggests chemisorption42, 43. It is seen from Table 6 that E a and ΔH 0 a values are higher in inhibited solution compared to those in the blank, which shows that the energy barrier of corrosion reaction increases, and also supports that physisorption of inhibitors occurs dominantly. The value of ΔS 0 a is less negative in the presence of BAILs than that without BAILs, and the increase of ΔS 0 a is generally interpreted by the increase in disorder taking place in going from reactants to the activated complex44, 45.

UV–visible spectrophotometric studies

UV–visible spectroscopic measurements were undertaken for 0.5 M HCl solution without or with 0.75 mM BAIL1 or BAIL2 before and after 24 h immersion of carbon steel at room temperature, since the position of absorbance maximum and the peak intensity will change suggesting the formation of a complex between two species in solution46, 47. The spectra are illustrated in Fig. 11.

Figure 11
figure 11

UV–visible spectra of 0.5 M HCl solution without/with 0.75 mM BAIL1 and BAIL2 before and after steel immersion of 24 h. Note: 0.5 M HCl solution +BAIL1 (); 0.5 M HCl solution +BAIL2 (); 0.5 M HCl solution after steel immersion (); 0.5 M HCl solution +BAIL1 after steel immersion (); 0.5 M HCl solution +BAIL2 after steel immersion ().

In the presence of BAILs before or after steel immersion, all the optical spectra show two broad bands, one is strong in the range of 200–230 nm and the other is moderate-intensity at around 258 nm. The first band is attributed to the π → π* transition of phenyl or imidazole ring and n → π* electronic transition from carboxyl groups; The latter could be mainly assigned as π → π* electronic transition related to aromatic ring46, however, the contribution of n → π* electronic transition from carboxyl group could not be excluded. The enhancement in peak intensity at 258 nm in inhibited solution of BAIL1/BAIL2 means the formation of complex between Fe2+ released and the BAILs in solution. A weak absorption peak at around 336 nm is related to the interaction between Fe2+ and chloride complex47, and the peak intensity in the absence of inhibitors is stronger than that in the inhibited solution, which demonstrates the corrosion inhibition capability of BAIL1 and BAIL2.

Postulated mechanism of inhibition

Organic inhibitors generally prevent the metal from corrosion by adsorption on the metal surface. Here the adsorption of BAILs is primarily a physisorption process which obeys Langmuir adsorption isotherm best due to electrostatic interaction, although weak chemisorption could not be excluded, which can be confirmed by the UV–visible spectroscopic studies.

The adsorption process not only depends on the kind of inhibitors, also depends on the surface charge of metal employed and the aggressive solution used48. According to previous references, the surface of carbon steel in acidic solution is positively charged at its OCP in various concentrations of HCl solution48, 49. This situation will firstly favor the adsorption of the negatively charged ions such as Cl onto the surface of carbon steel, if considering the electrostatic attraction. Therefore, according to the above discussion, the possible inhibition mechanism is predicted.

The anodic reaction (Fe dissolution) of carbon steel in 0.5 M HCl solution may be given as follows50:

$$\begin{array}{c}{\rm{F}}{\rm{e}}+{{\rm{C}}{\rm{l}}}^{-}({\rm{a}})\leftarrow \to {({{\rm{F}}{\rm{e}}{\rm{C}}{\rm{l}}}^{-})}_{{\rm{a}}{\rm{d}}{\rm{s}}}({\rm{b}})\leftarrow \to ({{\rm{F}}{\rm{e}}{\rm{C}}{\rm{l}}}^{-}{)}_{{\rm{a}}{\rm{d}}{\rm{s}}}+{{\rm{e}}}^{-}({\rm{c}})\to {{\rm{F}}{\rm{e}}{\rm{C}}{\rm{l}}}^{+}+{{\rm{e}}}^{-}({\rm{d}})\leftarrow \to {{\rm{F}}{\rm{e}}}^{2+}+{{\rm{C}}{\rm{l}}}^{-}({\rm{e}})\\ \quad \quad \quad \quad \quad \quad \quad \quad \Updownarrow \\ 2{({{\rm{F}}{\rm{e}}{\rm{C}}{\rm{l}}}^{-})}_{{\rm{a}}{\rm{d}}{\rm{s}}}({\rm{b}})+{{\rm{B}}{\rm{A}}{\rm{I}}{\rm{L}}}^{2+}\to {[{\rm{F}}{\rm{e}}(2{{\rm{C}}{\rm{l}}}^{-}){{\rm{B}}{\rm{A}}{\rm{I}}{\rm{L}}}^{2+}]}_{{\rm{a}}{\rm{d}}{\rm{s}}}({\rm{f}})\leftarrow \to {({{\rm{F}}{\rm{e}}{\rm{B}}{\rm{A}}{\rm{I}}{\rm{L}}}^{2+})}_{{\rm{a}}{\rm{d}}{\rm{s}}}+2{{\rm{C}}{\rm{l}}}^{-}({\rm{g}})\end{array}$$

Due to the concentration of Cl is much higher than HSO4 and H2PO4 (the anion of BAIL1 and BAIL2), the adsorption and desorption of HSO4 /H2PO4 can be neglected. In the absence of BAIL inhibitors, the mechanism of the anodic dissolution reactions follows the pathway (a→b→c→d→e)51. However, in the presence of BAIL inhibitors, the reaction pathway (a→b→f or a→b→f→g) is favored. Thus, the Cl is also blocked by the cation of BAIL inhibitors.

The cathodic reactions (hydrogen evolution) of carbon steel in 0.5 M HCl solution are given as follows:

$$\begin{array}{c}{\rm{Fe}}+{{\rm{H}}}^{+}({\rm{a}}\mbox{'})\leftarrow \to {({{\rm{FeH}}}^{+})}_{{\rm{ads}}}+{{\rm{e}}}^{-}({\rm{b}}\mbox{'})\to {({\rm{FeH}})}_{{\rm{ads}}}+{{\rm{H}}}^{+}+{{\rm{e}}}^{-}({\rm{c}}\mbox{'})\to {\rm{Fe}}+{{\rm{H}}}_{2}({\rm{d}}\mbox{'})\\ \updownarrow \,+{{\rm{BAIL}}}^{2+}\\ {({{\rm{FeBAIL}}}^{2+})}_{{\rm{ads}}}({\rm{e}}\mbox{'})\\ \downarrow +2{{\rm{e}}}^{-}\\ {({\rm{FeBAIL}})}_{{\rm{ads}}}({\rm{f}}\,\mbox{'})\end{array}$$

In the absence of BAIL inhibitors, the reaction pathway seems to be through the pathway (a’→b’→c’→d’). Whereas in the presence of BAIL inhibitors, the cation of BAIL can also be adsorbed at cathodic sites in competition with hydrogen ions that going to reduce H2 gas evolution. So the reaction pathway (a’→e’→f’) is favored.

In addition, because of the weak chemisorption exists between the BAILs and steel surface, the adsorption of the cation of BAILs shows a stronger preference over the competitive adsorption of H+. Meanwhile, the phenyl and imidazolium rings can cover a large part of the steel surface against further corrosion33. Therefore, good corrosion inhibition capacity could be obtained.

No great difference in inhibition efficiency of the two BAILs could be explained that the two BAILs have the same cation, which contributes much on the inhibiting capability; However, the effect of anion cannot be negligible due to the fact that the corrosion inhibiting efficiency of BAIL2 is slightly better than that of BAIL1. This may be caused by the higher acidity of HSO4 than that of H2PO4 in their aqueous solution, meanwhile, the possible corrosion product of ferric phosphate is more insoluble than ferric sulfate52, 53, and could form a protective film on the steel surface, which has been demonstrated by XPS result that a small peak at 133.3 eV could be attributed to the corrosion product as an insoluble phosphate.

Conclusions

Two Brönsted acid ionic liquids have been synthesized and acted as effective and green corrosion inhibitors for carbon steel in 0.5 M HCl solution, suggesting that the two BAILs can work as acidic catalyst and corrosion inhibitors in acidic medium simultaneously, and this will greatly speed up the industrial use of BAILs.

  1. (1)

    The PDP studies showed that the two BAILs acted as mixed-type inhibitors and could effectively suppress both cathodic and anodic reactions. The results obtained from EIS, PDP and WL tests are in good agreement, the best inhibition efficiency (IE EIS%) of BAIL1 and BAIL2 can reach 88.0% and 91.1%, respectively.

  2. (2)

    The steel surface analyses from SEM and XPS demonstrate the effectiveness of inhibition, and the adsorption of BAILs cation on the steel surface contributes much to corrosion inhibition.

  3. (3)

    The adsorption of BAIL inhibitors on the steel surface was found to obey the Langmuir adsorption isotherm best. The values of activation energy and free energy of adsorption indicate that the physisorption of BAILs through electrostatic interaction is dominant.

  4. (4)

    UV-visible spectroscopic analysis illustrates the possible formation of the complex between BAIL inhibitors and Fe2+ released during the corrosion process, so that weak chemisorption cannot be excluded.