Introduction

The study of carbon steel corrosion in acidic destructive solutions is essential in industry1. The acidic solution is widely used to: (1) remove scale in industrial operations; (2) treat water plants; and (3) pickle oil recovery and petrochemical processes. Acid aqueous solutions are among the most corrosive media, and CS is extensively used in pipelines, in the oil and gas industries. Inhibitors are used to prevent CS corrosion2. The corrosion inhibition efficacy of the compounds is related to the adsorption capabilities, which form an adsorbing layer on CS (physisorption or chemisorption)3. The adsorption is influenced by the nature and state of the metal surface, the type of corrosive media, and the chemical structure of the inhibitor4,5.

Organic compounds contain heteroatoms such as sulphur, nitrogen, oxygen, and an aromatic ring, were extensively utilized as corrosion inhibitors6. Most organic compounds are toxic and harmful to the environment7,8,9,10,11,12,13. Because of the toxicity of these organic inhibitors, there is an opportunity to investigate the application of environmentally non-toxic inhibitors14,15,16. It is critical to use friendly acid corrosion inhibitors that are low-cost, non-hazardous, and efficient17,18,19,20,21,22,23,24,25. The corrosion inhibition activity of several medications has been studied in order to determine their potential use as a competitive class of green corrosion inhibitors. Many medicines' corrosion inhibition performances have been investigated26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46. The current research aims to evaluate Furosemide as a corrosion inhibitor for CS corrosion in 1.0 M HCl. The inhibition of CS corrosion in 1.0 M HCl was determined and confirmed using chemical and electrochemical techniques. The adsorbed film on the metal surface was characterized using AFM, SEM, EDX, FT-IR, and XPS analyses.

Materials and methods

Materials

Chemical composition of carbon steel: 0.14% C, 0.52% Mn, 0.05% P, 0.02% Si, 0.03% Cr, 0.02% Ni, 0.002% P, 0.04% S, 0.02% Cu, and the rest Fe. The aggressive solution of 1.0 M HCl was prepared by dilution with bidistilled water. The inhibitor structure is illustrated in Table 1. The stock solution of Furosemide (1000 ppm) concentration was prepared by dissolving the calculated mass in bidistilled water. The concentrations used ranged from 50 to 300 ppm.

Table 1 The molecular structures, name, chemical formula and molecular weight of Furosemide.

Methods

Mass loss

The test specimens of CS with the dimensions (2 × 2 × 0.1 cm) were used. The samples were abraded with emery sheet grit (sizes 400, 600, 800, and 1200) to ensure the softness of the CS surface and then washed with bidistilled water, degreased with acetone, dried and weighed. The weighted samples were immersed in 100 ml of 1.0 M HCl in the absence and presence of different concentrations of the examined compound. The time of immersion was recorded at various temperatures; the temperature was controlled in the water by the thermostatic bath with an accuracy of ± 0.1 °C. After the immersion time, CS sheets were removed from the solution, washed with bidistilled water, dried, and weighted. Experiments were repeated three times with diverse samples to confirm the repeatability of the results.

The IE% and surface coverage (θ) of the inhibitor were calculated by Eq. (1)

$$\mathrm{IE\%}=\left(1-\left[\frac{\mathrm{ W}}{{\text{Wo}}} \right] \right)\times 100 =\uptheta \times 100$$
(1)

where Wo, and W values are the mass loss without and with different concentrations of the inhibitor, respectively.

Electrochemical techniques

Potentiodynamic polarization, electrochemical impedance spectroscopy, and the electrochemical frequency modulation technique were utilized to detect the corrosion behaviour of CS in 1.0 M HCl. All the experiments were carried out in glass cells with three electrodes. The counter electrode was a Pt electrode, the reference electrode was a saturated calomel electrode, and the working electrode was CS. The working electrode area was 1.0 × 1.0 cm. It was rinsed, polished with emery paper of different grades, washed and degreased with acetone, then washed with bidistilled water. All the experiments were carried out at 25 ± 1 °C. The open-circuit potential was started for 30 min and then recorded until the steady state of the specimens was reached. All the electrochemical experiments were carried out using a potentiostat/galvanostat from Gamry Instrument Series G 750.

Potentiodynamic technique (PP)

In this method, the potential was applied from − 0.750 to − 0.250 V at a scan rate of 1 mV s−1, and the corrosion current density (icorr) was estimated. The IE% and θ can be calculated from Eq. (2)

$$\mathrm{IE\%}=\left(1-[\frac{ {{\text{i}}}_{{\text{corr}}\left({\text{inh}}.\right)}}{{{\text{i}}^\circ }_{{\text{corr}}\left({\text{free}}\right)}} ] \right)\times 100 =\uptheta \times 100$$
(2)

Iocorr and icorr are the current densities without and with inhibitors, respectively.

Electrochemical impedance spectroscopy (EIS)

Impedance measurements were performed in the frequency range from 100 kHz to 0.1 Hz using 5 mV amplitude. IE% and θ were estimated from Eq. (3)

$$\mathrm{IE\% }=\left(\frac{{{\text{R}}^\circ }_{{\text{p}}}- {{\text{R}}}_{{\text{p}}}}{{{\text{R}}^\circ }_{{\text{p}}}}\right)\times 100 =\uptheta \times 100$$
(3)

R\(^\circ \)p and Rp are the polarization resistances with and without inhibitors, respectively. The double-layer capacitance (Cdl) values in the presence of different concentrations were determined from Eq. (4):

$${{\text{C}}}_{{\text{dl}}}=\frac{1}{2\uppi {{\text{f}}}_{{\text{max}}}{{\text{R}}}_{{\text{ct}}}}$$
(4)

where fmax is the value of maximum frequency.

Electrochemical frequency modulation technique (EFM)

EFM can be used as a fast and non-destructive method for CS corrosion without knowledge of the Tafel slope. EFM technique with amplitudes of 10 mV and two sine waves of 2 and 5 Hz High peaks are used to calculate the current density (icorr), Tafel slope (βc and βa) and the causality factors (CF-2 and CF-3).

Surface investigations

Scanning electron microscopy

After dipping the CS specimen in 1 M HCl without and with 300 ppm Furosemide for a day at 25 °C, the surface of the CS specimen was investigated. A scanning electron microscope (SEM; JEOL JSM-5500, Japan) was used. SEM images of the metal surface were taken at a magnification of 2000.

Atomic force microscopy (AFM)

The outer surface roughness can be assessed using an AFM instrument that creates a topographic surface map with a distinct resolution. Surface roughness results from variations in a surface's ideal shape induced by corrosion or inhibitor adsorption. Thermo Fisher Nicolet IS10 (scanning probe microscope) was employed.

X-ray photoelectron spectroscopy (XPS)

These studies were carried out using a highly efficient system that uses XPS to identify the binding energies of various bonds discovered on the carbon steel surface, allowing the adsorbed atoms and functional groups on the metal surface to be determined. K-ALPHA (Thermo Fisher Scientific, USA) was used.

Fourier-transform infrared spectroscopy (FTIR)

FTIR spectra of pure solutions of the inhibitor and carbon steel sheets immersed in 1 M HCl plus the optimal concentration of the inhibitor for 24 h were measured using a PerkinElmer 1600 spectrophotometer.

Simulation analysis

The quantum chemical parameters were found by MSD Mol44047, which use efficient density theory (DFT). The chemical quantum parameters, the highest occupied molecular orbital (EHOMO) and the lowest unoccupied molecular orbital (ELUMO), dipole moments (µ), energy gaping (ΔE), hardness (η), softness (σ), ionization potentials (I), and electronegativity (X) were calculated for the inhibitor.

Results and discussion

Mass loss (ML) method

Effect of inhibitor concentrations

Figure 1 represents the relation between mass loss and time for CS in the absence and presence of various concentrations of Furosemide in 1.0 M HCl at 25 °C. The data derived from the mass loss method are presented in Table 2. The data revealed that the mass loss and the corrosion rate decreased with increasing concentrations. The increase in the IE% was due to the barrier formation of inhibitors on the metal surface, which decreases the dissolution of the metal48. IE% for CS corrosion was evaluated from Eq. (1).

Figure 1
figure 1

Weight loss vs. time for the corrosion of CS in 1.0 M HCl without and with various concentrations from Furosemide at 298 K.

Table 2 Mass loss data for CS corrosion at 120 min in 1.0 M HCl without and with various concentrations from Furosemide at 298 K.

Effect of temperature

The ML method was used to study the effect of temperature on the corrosion rate of CS in 1.0 M HCl containing different concentrations. Figure 2 represents the effect of temperature on the IE% at different concentrations of the studied compound on CS dissolution in a 1.0 M HCl solution. The results obtained are illustrated in Table 3. From the results, we can conclude that the corrosion rate increases in the corrosive medium with increasing temperature. The inhibition efficiency increased with increasing solution temperature, which indicates the chemical absorption type of the inhibitor on the CS surface49.

Figure 2
figure 2

Effect of temperature on the IE% at various concentrations from Furosemide for CS in 1.0 M HCl solution at different temperatures.

Table 3 Mass loss data for CS corrosion at 120 min in 1.0 M HCl without and with various concentrations from Furosemide at various temperatures 303–318 K.

Activation thermodynamic parameters

The corrosion rate of the reaction is influenced by the temperature; Eq. (5) specifies this relation according to Arrhenius50,51:

$$ {\text{k}}_{{{\text{corr}}}} = {\text{A}}\;{\text{exp}}(E_{a}^{*} /{\text{RT}}) $$
(5)

where A is the Arrhenius constant, E*a is the activation energy, T is the absolute temperature and R is the gas constant.

Figure 3 shows the plot of log kcorr vs. 1/T with straight lines; from the line’s slopes, we can calculate E*a. The values of E*a are calculated and reported in Table 4.

Figure 3
figure 3

Arrhenius plots for dissolution of CS in 1.0 M HCl solution with and without different concentrations of Furosemide at different temperatures (298–318 K).

Table 4 Activation thermodynamic data for dissolution of (CS) in 1.0 M HCl in the absence and presence of various doses of Furosemide at different temperatures (298–318 K).

From the transition state theory as shown in Eq. (6):

$$ {\text{k}}_{{{\text{corr}}}} = {\text{ RT}}/{\text{ Nh exp }}\Delta {\text{S}}^{*} {\text{exp}}^{{ - \, \Delta {\text{H}}*/{\text{RT}}}} $$
(6)

where ΔS* and ΔH* are the entropy and enthalpy of activation, respectively. Figure 4 shows the Plot of log kcorr/T vs. 1/T, giving straight lines from their slopes ΔH* can be calculated and reported in Table 4. The results indicate that \({E}_{a}^{*}\) values decrease in the presence of an inhibitor compared to their absence, indicating chemical adsorption. The positive values of ΔH* indicate the endothermic activation process, which confirms the chemical adsorption of the investigated inhibitor on the CS surface52.

Figure 4
figure 4

Plotting the transition state of Log (kcorr/T) vs. (1/T) for dissolution of CS in 1.0 M HCl solution in the absence and presence of various doses of Furosemide compound at various temperatures (298–318 K).

Adsorption isotherms

The type and charge of the metal, the structure of the inhibitor, and the composition of the electrolyte all influence inhibitor adsorption on the metal surface53. The Temkin isotherm, as illustrated in Eq. (7), well matches the data:

$$ {\text{q}} = \left( {{2}.{3}0{3}/{\text{a}}} \right){\text{Log K}}_{{{\text{ads}}}} + \left( {{2}.{3}0{3}/{\text{a}}} \right){\text{Log C}} $$
(7)

"a" is the CS's heterogeneous factor (a particle interaction factor), and C is the inhibitor concentration. Plotting θ vs. log C for inhibitors at different temperatures in Fig. 5 results in straight lines with log Kads slopes and intercepts (2.303/a).

Figure 5
figure 5

Plots of θ vs. Log C for the Furosemide compound on CS surface in 1.0 M HCl at various temperatures (298–318 K).

The free energy of adsorption (Goads) was calculated using Kads in Eq. (8) as follows:

The Temkin adsorption isotherm was very good, with a correlation factor R2 close to 0.978–0.996. The values of "a", Kads and ΔGoads were listed in Table 5. Kads in Eq. (8) was used to determine the free energy of adsorption (ΔGoads) as follows:

$$ \Delta {\text{G}}^{{\text{o}}}_{{{\text{ads}}}} = - {\text{RT ln }}\left( {{55}.{\text{5 K}}_{{{\text{ads}}}} } \right) $$
(8)

where 55.5 is the molar dosage of H2O in the bulk of the solution (mol L−1). The calculated data showed that these studied compounds were adsorbed on CS through the lone pair of electrons of heteroatoms (S, N, or O atoms). The ΔGoads and Kads values increase with temperature in the range of 298–318 K, also indicating the chemical adsorption of this inhibitor on the CS surface.

Table 5 Adsorption parameters of Temkin isotherm for the (CS) surface in 1.0 M HCl for Furosemide compound at (298–318 K).

Figure 6 as well as Eq. (9), can detect the heat adsorption (∆Hoads)54.

$$ {\text{Log}}\;{\text{K}}_{{{\text{ads}}}} = - \Delta {\text{H}}_{{{\text{ads}}}}^{ \circ } /2.303{\text{RT}} $$
(9)

where (− ∆Hoads/2.303R) is the slope of the straight-line Log K ads vs. 1/T, ∆Soads obtained by Eq. (10):

Figure 6
figure 6

Plots of variation of Log Kads vs. 1/T for the adsorption of various doses of Furosemide compound on the CS surface in 1.0 M HCl at (298–318 K).

$${\Delta {\text{G}}}_{{\text{ads}}}^{{\text{o}}}={\Delta {\text{H}}}_{{\text{ads}}}^{{\text{o}}}-\mathrm{ T}{\Delta {\text{S}}}_{\mathrm{ads }}^{{\text{o}}}$$
(10)

Data in Table 5 indicated that ΔG°ads values were greater and around − 40 kJ mol−1 dependent on adsorbing by inhibitors on CS surface chemisorption, the coordination of electrons of active groups of the inhibitor molecules to unfilled d-orbitals of CS55. The negative values of the free energy of adsorption (ΔG°ads) express the spontaneity of the adsorption. The values of ΔH°ads in the present study are higher than 40 kJ mol−1, which means the chemisorption process56. The unshared electron pairs (S, N, and O atoms) might depend on the metal surface of CS. The "a" +ve values are due to the interaction of the adsorbed layers on the CS surface. Furthermore, the values of Kads reveal that the increase in the adsorption equilibrium caused by an increase in temperature (Table 5). Entropy values were negative, revealing that the adsorption of the inhibitor was associated with adsorption rather than desorption on the metal surface. Table 5 shows the increase in ∆Soads values as the disorders increase owing to the adsorption of H2O molecules by the adsorption of inhibitors on the surface of CS57.

Electrochemical techniques

Open circuit potential (EOCP)

Figure 7 depicts the change in EOCP over time obtained for C-steel in 1 M HCl in the absence and presence of various doses of Furosemide at 298 k. The figure demonstrates that EOCP in the blank started at − 573 mV and then shifted anodically until the steady state was achieved. In the presence of Furosemide, EOCP began with a significantly positive potential compared to its absence and later shifted anodically. The shift in EOCP becomes more positive as the concentration increases. The highest shift in the value of OCP was 35 mV in the presence of the inhibitor. This behaviour indicates that the corrosion inhibitor functions as a mixed type corrosion inhibitor for C-steel in aggressive 1 M HCl58,59.

Figure 7
figure 7

Potential-time curves for CS immersed in 1.0 N HCl solution at 298 K without and with different concentrations from Furosemide.

Potentiodynamic polarization (PP)

Figure 8 shows the polarization performance of the CS in 1.0 M HCl with and without different doses of the inhibitor. The measured data: corrosion current density (icorr), corrosion potential (Ecorr), cathodic Tafel slope (βc), Tafel slope (βa), (θ), and (\(\mathrm{IE\%}\)) were estimated and reported in Table 6. Moreover, by adding an inhibitor, the corrosion current decreased, indicating that this inhibitor agreed with the suitable inhibitor's behaviour. The slight change in both Tafel slopes and Ecorr indicates that this investigated inhibitor behaves as a mixed type inhibitor60. The Tafel lines were parallel with and without inhibitor, indicating that there is no change in the mechanism.

Figure 8
figure 8

Plotting of PP for dissolution of (CS) in 1.0 M HCl using different doses of Furosemide at 298 K.

Table 6 Data of PP of CS in 1.0 M HCl without and with various doses of Furosemide at 298 K.

Electrochemical impedance spectroscopy

Electrochemical impedance spectroscopy (EIS) is a technique used to gain insight into the characteristics of electrochemical processes that occur on the steel surface in acid solution. Figure 9a shows Nyquist plots of carbon steel with and without various amounts of Furosemide in 1.0 M HCl. They are semicircles moving along the real impedance of the x-axis. However, the smoothness of these semicircles deviated slightly from the classic EIS idea. Metal surface heterogeneity and frequency dispersion can also create imperfect capacitance loops61. The semicircle radii are changed by the inhibitor concentrations. The radius of the semicircular lines increases in direct proportion to the concentration. The widths of the capacitance loops are greater in the presence of Furosemide than in its absence, demonstrating that inhibitor molecules can greatly promote steel surface anticorrosion62. The concentration of inhibitor molecules adsorbing on carbon steel's surface is proportional to its concentration. The double-layer capacitance (Cdl) from Eq. (11) can be reproduced using CPE63:

$$\mathrm{C }_\text{dl}= {Y}_{o}({\omega }_{max})\mathrm{ n}-1$$
(11)

where \({\omega }_{max}\) represents the frequency corresponding to the maximum value of the imaginary component of the Nyquist plot.

Figure 9
figure 9

(a) EIS spectra of Nyquist for dissolution of CS in 1.0 M HCl without and with various doses of the Furosemide compound at 298 K. (b) Electrochemical equivalent circuit used by fitting the EIS data.

Figure 9b shows the correlated equivalent circuit used to model the CS/HCl interface, where Rs represents the uncompensated solution resistance, the Rp, includes charge transfer resistance (Rct), diffuse layer resistance (Rd), the accumulated species at the CS/HCl interface (Ra), and the resistance of the inhibitor film at the surface64,65,66,67.

Table 7 shows that Rp values increase as inhibitor concentration increases. The Rp value varies between 44.1 and 176.9 Ω/cm2. This could imply that the inhibitor develops a protective coating on the electrode surface at all concentrations. This could imply that the inhibitor develops a protective coating on the electrode surface at all concentrations68. As a result, corrosive ions are successfully kept from coming into contact with the working electrode. At the same time, the addition of inhibitors lowers Cdl values by forming a protective layer on the steel surface. The inhibitor exhibits the highest inhibitory efficiency at a concentration of 300 ppm, according to the EIS method. The varying n values in the presence of inhibitors indicate that the heterogeneous properties of the steel surface have changed. This could be related to the adsorption of inhibitor molecules on the electrode surface69.

Table 7 EIS data for the corrosion of (CS) in 1.0 M HCl without and with various doses of Furosemide at 298 K.

Electrochemical frequency modulation

Two sine waves with frequencies of 2 and 5 Hz are supplied to the cell for EFM measurements in the absence and presence of varying doses of the examined substance. The Tafel constants are not required because the results are generated instantaneously with this approach70. The output current fluctuates with frequency and is nonlinear. The causality factors (CF-2 and CF-3) acquired from EFM testing are critical because they validate the EFM measurements if their values are near the theoretical values (2 and 3). Harmonic peaks in the output spectrum of the current compromise the data for CR. The larger the current density (icorr), the higher the peaks. The EFM spectra of CS in 1 M HCl in the absence and presence of various concentrations are shown in Fig. 10 and the results are displayed in Table 8. As the inhibitor concentration rose, the icorr decreased. Theoretical values are equivalent to testing-derived causality factors71.

Figure 10
figure 10

EFM spectra for corrosion of the CSl surface in 1.0 M HCl with and without various concentrations of Furosemide compound at 298 K.

Table 8 Electrochemical parameters from EFM of the CS in 1.0 M HCl without and with various doses of Furosemide at 298 K.

Surface investigations

SEM examination

C-steel bars were immersed in a corrosive medium containing 300 ppm Furosemide at 298 K for 24 h to study surface morphology72. The effect of Furosemide addition on the surface of C steel is depicted in Fig. 11. Figure 11b,c depict the surface of C-steel in corrosive conditions without and with the addition of Furosemide, respectively, demonstrating the production of rust on the metal surface as a result of exposure to corrosive medium oxygen, water molecules, and chloride ions, as described in Eqs. (12) and (13):

Figure 11
figure 11

SEM micrographs of (CS) samples (A) pure CS sample, (B) CS in 1.0 M HCl solution after the immersion for 24 h at 298 K (C) CS immersed in 1.0 M HCl solution with 300 ppm of Furosemide for 24 h at 298 K.

$${Fe}^{+2}+2{Cl}^{-}\to {FeCl}_{2}$$
(12)
$${H}_{2}O+{O}_{2}+{FeCl}_{2}\to {2H}^{+}+2{Cl}^{-}+{FeO}_{3}$$
(13)

The figure shows the construction of a shielding adsorbed layer on the surface of the C-steel.

AFM examination

AFM was employed to measure surface image evidence at the nano-to-micro-scale73. The morphologies of CS dissolution in a 1.0 M HCl corrosive solution in the absence and presence of a 300 ppm inhibitor are shown in Fig. 12. The root mean square roughness (Rq) determines the average lines, and the average roughness (Ra) explains the mean deviations of all roughness images. Significant corrosion and increased roughness are visible in an AFM image of the CS specimen in 1.0 M HCl. The measured IE% calculated from ML and electrochemical performances were validated and matched with roughness data. The data in Table 9 reveal that in the presence of Furosemide, the metal surface is smoothed due to the adsorption of the compound through the active center sites.

Figure 12
figure 12

Three-dimensional (3D) AFM images of the CS samples, (A) before involvement in acid, (B) the CS sample immersed in 1.0 M HCl for 24 h at 298 K (C) the CS sample immersion in 1.0 M HCl with 300 ppm of the Furosemide for 24 h at 298 K.

Table 9 AFM roughness measurements of the (CS) samples without and with 300 ppm of from the investigated compound after immersion in 1.0 M HCl for 24 h at 298 K.

Examination of X-ray photoelectron spectroscopy (XPS)

It is an ideal system for predicting the adsorbed atoms on the metal surface. XPS investigation of carbon steel after immersion in 1 M HCl with 300 ppm Furosemide at 25 °C for particular atoms such as C, O, N, and Fe. The obtained results are displayed in Figs. 13 and 14. The position of the peak of this curve represents the adsorbed atoms and the intensity represents the concentration of the adsorbed element74,75,76,77. The C steel bar is released in a corrosive medium (1 M HCl) for 24 h in the presence of 300 ppm of the investigated compound. Table 10 summarizes the results of the data analysis.

Figure 13
figure 13

The XPS survey spectrum results of Furosemide compound adsorbed on the CS in 1 M HCl at 298 K.

Figure 14
figure 14

High-resolution X-ray photoelectron profiles of (1) Fe 2p, (2) O 1s, (3) Cl 2p, (4) C 1s and (5) N 1s for (CS) in presence of 300 ppm furosemide compound in 1 M HCl at 298 K.

Table 10 Lists the binding energies of various surveys and the expected bonds for each.

FT-IR spectroscopy

FT-IR spectra, as shown in Fig. 15, illustrate the functional groups of the solutions and their behaviour on the metal surface following adsorption with amazing precision. Table 11 shows how the FTIR results could be interpreted. Figure 15 depicts the FT-IR spectra of pure inhibitor and layers formed on CS samples after dipping in 1.0 M HCl for a day in the presence of 300 ppm Furosemide. When the spectra of the inhibitor solution and the spectra of the CS surface after immersion are compared, the two spectra have identical features, suggesting that the compounds were adsorbed on the CS78. The results demonstrate the interference mechanism between the inhibitor and the carbon steel surface. The shifting and removal of peaks in the spectrum after immersion demonstrated that the inhibitor interacted with the carbon steel surface via functional groups.

Figure 15
figure 15

FT-IR spectra of pure Furosemide and of CS metal surface in1.0 M HCl with 300 ppm of Furosemide compound for 6 h at 298 K.

Table 11 FTIR spectra of Furosemide pure solutions and the spectra of the CS surface after inhibitor adsorption CS metal surface in1.0 M HCl with (300 ppm) of Furosemide compound for 6 h at 298 K.

Quantum chemistry and statistics parameters

Figure 16 represents the HOMO and LUMO electronic densities distributions of the Furosemide compound. According to the literature, the inhibitor molecule's EHOMO is a direct indication of its tendency to donate electrons to acceptor atoms, whereas ELUMO is a measure of taking electrons into its LUMO from a compatible donor molecule. ΔEgap indicates the difference between ELUMO and EHOMO. It is widely known that low values of ΔEgap afford good inhibitory performances, since the energy for removing an electron from the final occupied orbital is low79. The low value of ΔEgap for the investigated inhibitor reveals the strong inhibition efficacy of the examined compound, which indicates good adsorption of the explored inhibitor on the mild steel surface79. Equation (14) is used to estimate the fraction of electrons transported (ΔN) from an inhibitor molecule to the metallic surface:

$$ \Delta {\text{N}} = (\chi_{{{\text{Fe}}}} - \chi_{{{\text{inh}}}} )/{2}(\eta_{{{\text{Fe}}}} + \eta_{{{\text{inh}}}} ) $$
(14)

whereas χFe and χinh represent the overall electronegativity of the iron atom and the inhibitor molecule, respectively, ηFe and ηinh imply the absolute hardness of the iron atom and the inhibitor molecule. χFe is 7 eV mol−1 and ηFe iron is 0 eV mol−1.

Figure 16
figure 16

HOMO and LUMO electronic densities distributions of Furosemide compound.

These quantities are directly associated with the electron affinity (A) and ionization potential (I) of the relevant chemical systems shown below. Electronegativity (χ) and hardness can be calculated from Eqs. (15) and (16), respectively

$$\chi = (I+A)/2$$
(15)

and

$$\eta = (I-A)/2$$
(16)

Using Koopman's theorem, I = − EHOMO and A = − ELUMO. It has been found that a value of ΔN smaller than 3.6 indicates higher inhibitor efficacy due to the inhibitor's electron-donating capacity to the iron surface80. The computed ΔN value of 1.437 supports the experimental interpretations. Figure 16 depicts a schematic illustration of Furosemide inhibition.

Table 12 provides quantum chemical characteristics that predict the relationship between the molecular construction of inhibitor particles and their effect against CS corrosion, in addition to the major effect on electronic interference between CS and inhibitor solution.

Table 12 Quantum chemical parameters for Furosemide compound in liquid phase.

One of the most vital features, which is related to the polarity of the inhibitive particle, is the dipole moment81. Table 12 displays that the calculated value of the dipole moment (μinh = 6.18 Debye) for the studied molecule is higher than that of H2O (μH2O = 1.88 Debye). The number of inhibitory sites on the metal surface in the corrosive environment is increased by this high dipole moment value. As a result, the strong dipole–dipole interactions between the inhibitor and the metal surface, as demonstrated in Table 12 and Fig. 16, are responsible for the inhibitor's high dipole monent. Certain parameters, such as global hardness (η) and softness (σ), are linked to the molecule's selectivity and reactivity. As per the Lewis theory of acid/base and Pearson's hard/soft acids and bases82, more reactive and greater ∆E values are associated with hard molecules. Based on Table 12, it can be inferred that Furosemide has a greater σ value, indicating a softer nature. Furosemide would therefore be more likely to provide electrons to CS.

Molecular electrostatic potential (MEP)

The molecular electrostatic potential (MEP) is used to determine a species' relative reactivity under nucleophilic and electrophilic attack. DFT calculations were used to analyze the compound's MEP surface, using the optimized structure and B3LYP/6-31Gþ(d,p) basis set. MEP is used to examine the relationship between a compound's structure and its physicochemical properties, as well as interactions with metal surfaces. MEP modeling was recognized as a highly effective method83. Figure 17 depicts the electrostatic potential surface mapped for Furosemide. The MEP chart shows discrete zones with negative and positive potential. The MEP chart depicts how potential varies with colour is transite from blue to green, yellow, orange, and red84. The polarization effect is plainly seen in the compound. The negative potential regions of the MEP are confined over the electronegative atoms (oxygen, nitrogen, and sulfur). The green–blue regions represent positive potentials, indicating they receive electrons from the metal surface. Conversely, the red-yellow zones show negative potentials associated with electrophilic and nucleophilic performance.

Figure 17
figure 17

MEP surface of Furosemide compound.

Mechanism of inhibition

The efficacy of the investigated compound as an inhibitor for CS corrosion in 1 M HCl is examined. Concentration, the number of active sites and their charge densities, molecule mass, and environmental stability are factors that influence the inhibition process85,86,87,88. In a 1 M HCl solution, the examined compound could exist as neutral molecules or in protonated form (cations). The compound may adsorb on the CS/HCl interface via one or more of the following mechanisms: (1) electrostatic interaction of the protonated form with adsorbed chloride ions; (2) donor–acceptor interactions between the electrons of the aromatic ring and vacant d orbitals of surface iron atoms; and (3) interaction between unshared electron pairs of inhibitor heteroatoms and vacant d orbitals of iron surface atoms. In one approach, the neutral inhibitor may be adsorbed on the CS surface via the chemisorption mechanism89. The inhibitor molecules can also adsorb on the surface via donor–acceptor interactions between the p-electrons of the heterocyclic ring and the surface iron's unoccupied d orbitals. In another way, because it is well known that the CS surface bears a positive charge in acid solution, the protonated inhibitor finds it difficult to approach the positively charged CS surface due to electrostatic repulsion. Because the CS surface is positively charged, anions (Cl ions) in an aqueous hydrochloric acid solution are adsorbed on it. The CS surface becomes negatively charged after Cl ion adsorption. As a result of electrostatic interactions with the Cl ions already adsorbed on the surface of CS, the protonated positively charged form of inhibitor is adsorbed on the surface of CS. As a result, adsorbed Cl ions and protonated inhibitor work together. Figure 18 shows a graphic representation of the adsorption of the investigated inhibitor molecule on the CS surface.

Figure 18
figure 18

Representation of the different modes of adsorption of Furosemide drug on the CS surface.

Conclusions

  1. 1.

    Furosemide is safe for people; it can be used as a green corrosion inhibitor to protect CS from corrosion in 1 M HCl.

  2. 2.

    As Furosemide medication concentrations are increased, the efficiency of corrosion inhibition improves, reaching 90.5% at 300 ppm and 318 K.

  3. 3.

    The potentiodynamic polarisation investigations revealed that Ecorr values are slightly affected, indicating that the Furosemide drug inhibitor is a mixed-type inhibitor.

  4. 4.

    The adsorption of Furosemide medication on the Cs surface, as well as the formation of a barrier film that isolates the metal from corrosive environments prevent corrosion.

  5. 5.

    The inhibitor's adsorption followed the Temkin adsorption isotherm.

  6. 6.

    According to the studies from different procedures that are in good agreement with one another, Furosemide medicine prevents CS corrosion in 1 M HCl and delays the process of iron breakdown in this environment.

  7. 7.

    The quantum chemical description of the inhibitory activity of Furosemide confirms the experimental data.

Comparison between the results obtained from this study and other studies on Furosemide and its related compounds are illustrated in Table 13.

Table 13 Comparison of our outcomes with previously reported studies on the employment of Furosemide and its derivatives as anti-corrosive agents.