1. Introduction
Corrosion protection of metallic materials represents a critical challenge for the sustainable development of modern industry, particularly in harsh environments such as petrochemical processing and marine engineering. Owing to their cost-effectiveness and operational convenience, corrosion inhibitors have become the core component of protective systems [
1]. In recent years, ionic liquids (ILs) have attracted considerable attention in the field of green corrosion inhibitors due to their tunable molecular structures, negligible vapor pressure, high thermal stability, and unique solubility characteristics, making them highly promising candidates [
2,
3,
4,
5,
6]. Studies have demonstrated that by tailoring different cation–anion combinations, it is possible to construct more than 10
19 ILs. Certain ILs with specific structures can adsorb onto diverse metallic surfaces to form interfacial inhibitors with high efficiency [
7]. This occurs because the synergistic interaction between cations and metals enables these ionic liquids to form dense, firmly adherent, and stable protective films on various metallic substrates. For instance, the inhibition performance of imidazolium-based inhibitors depends on the specific interactions between their functional groups and the metal surface. This is attributed to the presence of the –C = N– functional group and the electronegative nitrogen atom within the molecular structure, which facilitate strong coordination and adsorption on the metal surface, thereby providing excellent corrosion resistance in aggressive environments [
8]. Therefore, systematic investigation into the performance of ILs is of pronounced importance.
As early as 2009, Zhang et al. reported that 1-Butyl-3-methylimidazolium chloride and 1-Butyl-3-methylimidazolium hydrogen sulfate could inhibit the acid corrosion of low-carbon steel in acidic environments [
8]. In addition, in 2021, Xue et al. investigated the corrosion inhibition behavior of pyridinium-based ILs with different alkyl chain lengths on N80 steel in hydrochloric acid solution and found that N-octyl-4-methylpyridinium bromide exhibited the highest inhibition efficiency, exceeding 90% [
9]. More recently, Hu et al. from China University of Petroleum (East China) reported two novel imidazolium-based ILs inhibitors—1-benzylethyl-3-(3-phenylpropyl) imidazolium hexafluorophosphate (PPIPF
6) and 1,3-diphenylimidazolium hexafluorophosphate (DPIPF
6)—and evaluated their anticorrosion performance on carbon steel in 1 M HCl (1 molar hydrochloric acid). The results showed that at an ILs concentration of 1 × 10
−3 M, the inhibition efficiencies of PPIPF
6 and DPIPF
6 reached 94.8% and 94.4%, respectively [
10]. Furthermore, Li et al. combined molecular dynamics simulations with density functional theory to elucidate the adsorption configurations of ILs at metal interfaces. Their findings indicated that long-chain alkyl imidazolium ILs could repel corrosive species, such as Cl
− via electrostatic interactions and lessen the contact between the metal surface and water molecules [
11]. All-atom molecular dynamics (MD) simulations can provide deep insights into the coordination modes, hydrogen-bond interactions, and adsorption configurations of ions at metal or oxide interfaces, thereby bridging the gap between microscopic interactions and macroscopic inhibition performance. For example, Stanković et al. employed all-atom MD simulations to investigate the effects of water content on the transport and thermodynamic properties of phosphonium ionic liquids, revealing the critical role of water–ion interactions in regulating viscosity and ionic mobility [
12]. At larger spatial scales, coarse-grained molecular dynamics (CG-MD) simulations can be used to explore the flow and lubrication behaviors of ionic liquids under confinement. Dašić et al. found that nanoscale confinement significantly alters the structural layering and shear response of ILs [
13]. These simulation studies complement experimental findings and provide molecular-level support for a deeper understanding of the corrosion inhibition mechanisms of ILs.
Although the above studies have made notable progress, research on ILs still primarily follows the traditional paradigm of assessing surface coverage and inhibition efficiency. In contrast, systematic investigations into another key protective property—the resistance of ILs films to the permeation of corrosive species—remain largely absent. Owing to the bulky molecular structures of ILs and the complex interactions between cations and anions, their interfacial films exhibit a high degree of structural tunability, offering unique molecular design space to optimize film compactness. However, the structure–property relationship governing this tunability is not yet fully understood. As industrial environments become increasingly complex (e.g., high flow rates, multi-ion coexistence, extreme temperature/pressure), the limitations of the coverage-based theory have become more pronounced: high coverage (even >95%) does not always guarantee long-term or reliable protection. Fundamentally, coverage is a static descriptor that reflects the overall inhibition efficiency—namely, the fraction of the metal surface occupied by the protective film—yet it does not adequately capture the film’s ability to dynamically resist penetration by corrosive media, particularly aggressive ions, such as Cl−. We hypothesize that, under practical conditions of high ionic strength and hydrodynamic impact, the molecular packing density, structural integrity, interfacial bonding strength, and mechanical stability of the ILs film—collectively defining its film impermeability to corrosive species (hereafter referred to as anti-permeability)—represent the decisive dynamic performance that governs whether the protective film can effectively block corrosive species.
Thus, it is the unification of coverage and anti-permeability that provides a more comprehensive criterion for evaluating the effectiveness of ILs. The lack of in-depth understanding and precise evaluation of anti-permeability has become a major bottleneck restricting the optimization and engineering applicability of corrosion inhibitors. Current assessment methods—such as relying on single impedance modulus or contact angle measurements—are indirect and cannot directly or quantitatively reveal internal structural defects or permeation pathways within the film. Extending from prior studies that evaluated compactness through surface morphology analysis [
14], it is reasonable to infer that a smoother post-corrosion surface indicates a denser ILs film and better overall inhibition efficiency. However, if the ranking of inhibition efficiency does not align with the trends in surface roughness, this discrepancy suggests the independent existence of anti-permeability as a distinct property. Together with coverage, it jointly determines the protective performance of ILs, while surface roughness can serve as an effective metric for evaluating anti-permeability.
Based on this rationale, our study employed electrochemical measurements to characterize overall inhibition efficiency (coverage), coupled with three-dimensional surface roughness quantification using confocal microscopy. We investigated how three imidazolium-based ILs inhibitors, at varying concentrations, affected the surface roughness of corroded metal specimens and the corresponding inhibition performance, thereby elucidating the anti-permeability characteristics of different ILs.
2. Results and Discussion
2.1. EIS Measurements
Electrochemical testing was conducted to verify the overall corrosion resistance of ILs inhibitors against external corrosive media, which reflected their surface coverage on Q235 electrodes (Carbon structural steel, working electrode) and served as the criterion for evaluating overall inhibition performance. EIS measurements were performed to investigate the inhibition behavior of Q235 working electrodes in the presence of three different ILs (1 cation with 3 different anions)—[C3mim][OTf], [C3mim][NO3], and [C3mim][Br]—at concentrations of 10, 30, and 50 mM.
For concentration selection, 10 mM was initially adopted as the starting point to ensure the ionic liquid system possessed fundamental corrosion inhibition capability. Experimental results indicated that overall corrosion inhibition effectiveness was limited at low concentrations, prompting gradual increases to 30 mM and 50 mM. Findings demonstrated that within this concentration range, the trend in anti-permeation performance of the ionic liquid became distinctly evident, sufficiently reflecting the influence of concentration on system performance. Consequently, no further concentration increases were pursued.
The Nyquist and Bode plots of Q235 in solutions containing these ILs at different concentrations (0, 10, 30, and 50 mM) are shown in
Figure 1a–f. Meanwhile, the equivalent electrical circuits used to fit the Electrochemical Impedance Spectroscopy (EIS) data are presented in
Figure 1g–i. For the case of 50 mM [C
3mim][OTf], no inductive component was observed; therefore, the circuit shown in
Figure 1h was adopted as the corresponding equivalent model. The electrochemical impedance spectroscopy (EIS) data were fitted using ZSimpWin (3.6) software, and the fitting quality was evaluated by the chi-squared (χ
2) value (see
Table 1). All obtained χ
2 values were in the range of 10
−3–10
−5, indicating high fitting quality and good agreement between the experimental spectra and the simulated curves.
As shown in
Figure 1a,c,e, each spectrum consists of a high-frequency capacitive loop and a low-frequency inductive loop. In the uninhibited solution, the capacitive loop was typically attributed to the charge-transfer resistance (R
ct), whereas in the inhibited solutions it arose from both R
ct and the film resistance (R
f) [
15]. The inductive loop was generally associated with the relaxation process of adsorbed species [
16]. These findings indicate that the corrosion of Q235 in the test solutions is predominantly controlled by charge transfer [
17]. Upon the addition of ILs, the diameters of the capacitive loops increase, demonstrating that all three ILs exhibit pronounced inhibition effects on Q235 corrosion in the H
2S–HCl–H
2O system. Furthermore, the diameter of the high-frequency capacitive loops increased with rising ILs concentration (
Figure 1b,d,f), while the low-frequency impedance modulus and phase angle also increased correspondingly. These results suggested that, as interfacial inhibitors, the effectiveness of the three ILs is further enhanced with increasing concentration [
7,
18].
As illustrated in
Figure 1g–i, R
s represents the solution resistance, R
f denotes the film resistance, L and R
L corresponded to the inductive elements, CPE
1 was the constant phase element associated with the film, and CPE
2 was the constant phase element related to the double layer [
15]. The inhibition efficiency (η) was used to evaluate the overall corrosion performance of different ILs, and was calculated according to Equation (1), where R
p,o and R
p,i represent the polarization resistance in the absence and presence of the ILs inhibitor, respectively. The polarization resistance R
p in the equivalent circuit (
Figure 1i) was calculated using Equation (2), The polarization resistance (R
p) in the equivalent circuit (
Figure 1g) was calculated using Equation (3), For the case of 50 mM trifluoromethanesulfonate, no inductive element was observed; therefore, the corresponding equivalent circuit is shown in (
Figure 1h), and the polarization resistance (R
p) was calculated according to Equation (4) [
19]:
As shown in
Table 1, the EIS parameters of Q235 obtained from the electrochemical equivalent circuits confirmed that all three ILs increased R
p, thereby suppressing corrosion. Among them, [C
3mim][OTf] consistently exhibited the highest efficiency, outperforming [C
3mim][NO
3] and [C
3mim][Br] across all tested concentrations. However, at 50 mM, [C
3mim][Br] surpassed [C
3mim][NO
3] due to a more pronounced increase in inhibition efficiency, underscoring the distinct concentration-dependent behaviors of the three inhibitors. This divergence is most likely attributable to differences in anion adsorption strength and film compactness, which together governed both the coverage and anti-permeability of the protective films.
2.2. Surface Roughness Evaluation of Corroded Specimens
2.2.1. Surface Morphology Analysis
As shown in
Figure 2, at the same concentration, the surface of Q235 specimens exposed to [C
3mim][NO
3] appeared visibly smoother, with the polishing marks from sample preparation largely preserved. In comparison, the surface treated with [C
3mim][OTf] was less smooth, while that treated with [C
3mim][Br] exhibited the roughest morphology, characterized by numerous corrosion pits. This indicated that the bromide provides weaker protection, forming a less compact IL film, whereas the nitrate delivered the strongest protection, even outperforming the trifluoromethanesulfonate. Notably, this deviates from the overall inhibition efficiency trend, suggesting that nitrate exhibited superior anti-permeability performance. Furthermore, comparison across concentrations revealed that, for each IL, the specimen surface became progressively smoother with increasing concentration. This demonstrated that higher IL concentrations strengthened the integrity of the protective film and ameliorated its ability to resist corrosive penetration.
2.2.2. Arithmetic Mean Surface Roughness Analysis
As shown in
Table 2, at identical ILs concentrations, the surface roughness consistently followed the ascending order: [C
3mim][NO
3] < [C
3mim][OTf] < [C
3mim][Br]. These results indicated that the nitrate forms the most compact film, providing the most effective protection for Q235 steel. For each IL, increasing the concentration led to progressively lower surface roughness values, suggesting that higher concentrations enhance the anti-permeability of the ILs films against corrosive media.
Moreover, the variation rates of inhibition efficiency and surface roughness exhibited consistent trends with concentration. Taking the nitrate as an example, both parameters initially increased expeditiously with concentration before reaching a more gradual regime. This finding highlighted the importance of maintaining sufficiently high surface coverage when evaluating anti-permeability: only when the metal surface is extensively covered can the influence of rougher uncovered regions be minimized, thereby allowing surface roughness to serve as an effective indicator of anti-permeability.
2.2.3. Three-Dimensional Surface Morphology Analysis
As shown in
Figure 3, the three-dimensional (3D) surface topographies exhibited consistent trends at identical ionic liquid concentrations. Taking the 30 mM condition as an example, the specimen treated with [C
3mim][Br] displayed the highest color scale threshold, exceeding 500 μm. Its 3D image appeared highly irregular and visually rough, indicating a low film compactness and poor resistance to corrosive penetration. In contrast, the specimen treated with [C
3mim][NO
3] exhibited the smallest color scale range (approximately 0–250 μm) and a relatively smooth surface, confirming that this IL formed a denser protective film with superior protective capacity. Furthermore, increasing IL concentration consistently abated surface roughness across all three systems, in full agreement with the arithmetic mean roughness (S
a) values obtained from software analysis (Confomap).
2.2.4. Cross-Sectional Profile Analysis
In correspondence with the 3D surface views in
Figure 3, cross-sectional profiles were analyzed along the diagonals of the corroded specimens, with 30 mM as a representative case. As shown in
Figure 4, the profile of the specimen treated with [C
3mim][NO
3] (
Figure 4a) fluctuated narrowly within the −50 to 50 μm range, indicating effective surface protection. In contrast, the specimen treated with [C
3mim][OTf] (
Figure 4b) fluctuated mainly within −50 to 100 μm, with more frequent and larger oscillations compared with the nitrate. The bromide-treated specimen (
Figure 4c) also fluctuated within −50 to 100 μm but exhibited highly irregular, high-frequency oscillations, suggesting inferior film quality and weaker protective ability. Integrating these observations with the 3D surface analyses provided a comprehensive evaluation of the surface roughness of corroded specimens.
2.3. Anti-Permeability Evaluation of Inhibitors
By comparing the rankings derived from overall inhibition efficiency and surface roughness, noticeable deviations were observed. Specifically, under conditions of high inhibition efficiency, the roughness ranking diverged from the efficiency trend. For example, [C3mim][OTf] exhibited the highest inhibition efficiency but a poorer surface roughness compared with [C3mim][NO3]. This indicated that higher inhibition efficiency did not necessarily correspond to smoother surfaces, and that coverage, as reflected by overall efficiency, was not directly linked to film compactness.
In contrast, superior surface roughness implies curtailed penetration of corrosive species, highlighting the stronger anti-permeability of the protective film. These findings suggested that anti-permeability and inhibition efficiency represent two complementary properties that jointly determined the effectiveness of IL inhibitors. Moreover, surface roughness served as a reliable indicator for evaluating anti-permeability, as it reflected differences in film compactness.
2.4. Mechanistic Discussion on Film Densification
The superior compactness of the protective film formed by [C
3mim][NO
3] can be attributed to its strong interactions with the imidazolium cation. The nitrate anion, as a moderately coordinating species, forms strong hydrogen-bonding and electrostatic interactions through its oxygen atoms with the C
2–H and C
4/C
5–H sites on the imidazolium ring, promoting an ordered ionic arrangement, enhanced interfacial adhesion, and the formation of a dense, continuous three-dimensional network [
20]. In contrast, the trifluoromethanesulfonate ([OTf]
−) and bromide ([Br]
−) anions lack exposed oxygen atoms capable of forming strong hydrogen bonds with the imidazolium ring. The bulky [OTf]
− anion introduces steric hindrance that disrupts ionic packing, while Br
− exhibits relatively weak coordination ability, leading to more loosely packed and defect-prone films. As emphasized by Silva et al. [
21], the type of anion determines the strength of the hydrogen-bonding network and the molecular packing between cations; anions containing exposed oxygen atoms and possessing strong coordinating ability (such as [NO
3]
−) facilitate the formation of a more compact molecular arrangement. Consequently, the nitrate system demonstrates superior anti-permeability owing to its stronger coordination ability and optimized cation–anion interactions, which collectively yield tighter molecular packing and improved structural integrity of the protective film.