1 Introduction

Mild steel is the alloy which is easily available with its outstanding mechanical properties in construction, industrial process and fabrication [1]. The main problem of using mild steel is their tendency to corrosion in contact with the aggressive medium such as sulphuric acid solution [2, 3]. As it is well known that acid solutions are widely used in the various industrial process for pickling, descaling and cleaning. The organic molecules used as inhibitors are adsorbed on the surface of the metal through their π-electrons system and heteroatoms such as S, P, N, O [4,5,6,7]. This adsorption is either chemical (chemisorption) or physical (physisorption). The organic inhibitors, which exist in plant extract, are eco-friendly, economical and effective [8, 9]. As we know most of the natural products are biodegradable and non-toxic. It has easy availability in the market. Several studies have been reported by the various researcher using such natural products as corrosion inhibitor for different metals in different media [10,11,12,13,14,15,16,17,18,19]. But most of the green corrosion inhibitor took higher inhibitor concentration to show their highest inhibition performance.

Acacia catechu is a 9–12 m tall tree. This herb is deciduous and has short snared spines. It belongs to the Leguminosae family and known as Cutch tree, Black catechu, and Terra japonica. These are usually found all around India, eastern slopes of the Western Ghats. The bark of A. catechu is very effectively accessible in the business sector. A. catechu holds phenolic compounds (3R, 4R)-3-(3,4-dihydroxyphenyl)-4-hydroxcyclohexane [1] and (4R)-5-(1-(3,4-dihydrophenyl)-3-oxybutyl)-dihydrofuran-2(3H)-one [2] [20, 21]. Figure 1 shows the image of A. catechu barks and its principal phytochemical constituents.

Fig. 1
figure 1

aAcacia catechu barks image and their main chemical components, b Compound [1] and c Compound [2]

The current observation is expected for the extraction of A. catechu bark and analyse the corrosion inhibition properties in the corrosive medium which depends upon electrochemical examinations and weight reduction estimations. Likewise, adsorption of inhibitor molecules on the mild steel surface has been contemplated utilizing AFM and SEM. FT-IR and UV–vis. spectroscopic procedures have been done to check the presence of functional groups and the adsorption phenomenon. All the test results were associated with the hypothetical (theoretical) information to the better comprehend the adsorption phenomenon.

2 Experimental Techniques

2.1 Methodology for Inhibitor, Applicable Electrode and Electrolytes Preparation

Fresh A. catechu bark was collected and validated by Dr. Arbeen Ahmad Bhat in the Department of Biotechnology, LPU, Punjab (INDIA). The crude material was thoroughly washed under running water followed by sterile distilled water and dried in the shade. They were grinded to convert in powder. The sample was approximately 100 g of the powder was extracted in a 500 mL round bottom flask with 250 mL of water as the solvent. The filtrate was collected and concentrated using a rotary evaporator under controlled temperature and pressure conditions. The extracts were concentrated to dryness to give a crude residue. Followed by this procedure, around 20% of extract yield with the pH value of around 8 was obtained. 1 cm × 1 cm × 0.03 cm-shaped mild steel specimens were used in weight loss estimations and electrochemical analysis. The chemical composition of the used mild steel specimen is listed in Table 1. The mild steel specimens were abraded with emery paper of grade 100, 300, 600, 800, 1000 and 1200 then washed with distilled water and acetone, dried again and finally kept in a desiccator until used. The sulphuric acid was diluted to 0.5 M H2SO4 to use as the corrosive medium. The test solution with specific concentrations (100–600 mg/L) was obtained by diluting plant extract with 0.5 M sulphuric acid solution.

Table 1 Elemental composition of used mild steel

2.2 Weight Loss Estimations

Weight loss estimates were made according to the ASTM method G 31-72 for 24 h [22]. All estimates of weight loss were made at 298 K using a water-circulated thermostat. Confidence values were obtained by repeating the experiments three times.

2.3 Electrochemical Studies

Electrochemical impedance spectroscopy (EIS) and potentiodynamic polarization measurements (Tafel) were performed using the CHI760C electrochemical workstation. Experiments were performed at 298 K in 0.5 M sulphuric acid, including various concentrations (100–600 mg/L) of inhibitor. A traditional three-electrode system was used where mild steel with a working area of 1 cm2 was used as working electrode. The platinum electrode used as an auxiliary electrode and the saturated calomel electrode (SCE) coupled to a luggin capillary was used as the reference electrode. Before each experiment, the working electrode was immersed in the test solution for 60 min to stabilized corrosion potential values (\({E}_{\mathrm{c}\mathrm{o}\mathrm{r}\mathrm{r}}\)). The polarization curves were recorded at ± 250 mV versus SCE with a scanning speed of 1 mV/s. The EIS spectra were scanned with a frequency range of 100 kHz to 0.01 Hz with a signal amplitude perturbation of 0.005 V.

2.4 Surface Investigations

For the surface analysis, scanning electron microscope (SEM-Model: LEO-435 VP) and atomic force microscope (AFM-Model: NT-MDT-INTEGRA) images of pre-treated mild steel specimen in 0.5 M sulphuric acid, without and with the inhibitor extract (600 mg/L) for 24 h at 298 K, were taken out.

2.5 UV–Visible and FT-IR Spectroscopic Analysis

The UV–Visible spectra of the inhibitor solution before and after immersion of mild steel sample for 24 h at 298 K were taken using Shimadzu UV-1800 UV–Visible absorption spectrophotometer. Then, they were used to explain the mechanism of inhibition. For verification of the main functional groups present in the inhibitor extract, the FT-IR spectrum was taken. The vegetal extract mixed with the KBr pellet for FT-IR analysis in the Shimadzu FT-IR 8400S spectrophotometer with wave number 400–4000 cm−1.

2.6 Theoretical Studies

Theoretical studies were carried out to a deeper understanding of the adsorption mechanism. Quantum chemical calculations were used as theoretical studies. It is a well-known fact that the extract of plants has several phytochemical constituents. For the theoretical studies, we followed the presence of two main phytochemical constituents in the plant extract A. catechu. Quantum chemical calculations were conducted using density functional theory (DFT) with Hyperchem 8.0 software. Key parameters were obtained from the optimized structures [23].

3 Results and Discussion

3.1 FT-IR and UV–Vis. Spectroscopic Techniques

FT-IR spectroscopic technique carried out for identification of various functional groups, containing different heteroatoms. Figure 2 shows the FT-IR spectra of pure inhibitor. In pure inhibitor, a peak at 3379.40 cm−1 is due to the OH starching. A peak at 2926.11 cm−1 in pure inhibitor is due to C–H starching of π-system. A peak at 1631.83 cm−1 in pure inhibitor is due to C=O bending. A peak at 1041.60 cm−1 in pure inhibitor is due to C–O starching. The presence of these peaks verified the presence of described functional groups containing heteroatoms (O) along with the π-system [24].

Fig. 2
figure 2

FT-IR spectra of pure A. catechu bark extract

To verify the adsorption phenomenon, UV–visible spectroscopy technique has been used. UV–vis. analysis has been done in two modes, before and after the corrosion test. Figure 3 shows the UV–vis. spectra of inhibitor. In this figure, two spectra have been shown one for UV–vis. spectra before the corrosion test and the second one is after the corrosion test. Before the corrosion test inhibitor shows an adsorption peak at 275 nm. This peak can be assigned as n-π* transition. With the help of Fig. 3, we conclude that the graph shows low adsorption peaks after the corrosion test. In the comparison between both the spectra, a significant change has been found in the adsorption band because of the inhibitor molecules get adsorbed on the mild steel surface [25].

Fig. 3
figure 3

UV–vis. spectra of A. catechu extract after and before the corrosion test

3.2 Weight loss estimations and adsorption studies

The weight loss method is the simplest technique for obtaining a basic idea of the relationship between inhibition efficiency and inhibitor concentration. The corrosion rate was calculated using the following equation:

$$C_{R} = \frac{K \times W}{{A \times t \times \rho }}$$
(1)

where\({C}_{R}\) represents the corrosion rate (mmy−1) of the inhibiting molecules, W represents the weight loss of mild steel (g), K is constant equal to \(8.76\times {10}^{4}\), and ρ density of Fe (g cm−3), which is 7.86 (g cm−3). The effectiveness of the inhibition and coverage values of the surface was calculated by the following equations:

$${\text{IE}}\left( \% \right) = \frac{{C_{R}^{0} - C_{R}^{i} }}{{C_{R}^{0} }} \times 100$$
(2)
$$\theta = \frac{{C_{R }^{0} - C_{R}^{i} }}{{C_{R}^{0} }}$$
(3)

where θ is the value of the surface coverage, and \({C}_{R}^{i}\) and \({C}_{R}^{0}\) is the corrosion rate of the mild steel sample in the presence and absence of the inhibitor, respectively.

The results obtained from the weight loss estimates are listed in Table 2, which shows an increase in inhibitor concentration, decrease in the rate of corrosion, and increase in the inhibition performance. The highest inhibition efficiency of 91.13% was achieved at 600 mg/L inhibitor concentration. The obtained results were used to follow the Langmuir adsorption isotherm. Langmuir adsorption isotherm shows a graph between C/θ vs. C as shown in Fig. 4, which shows a straight line with the reaggregation coefficient (R2) close to 1.It checks whether the A. catechu extract corresponds to the Langmuir adsorption isotherm and forms a monolayer on the surface of mild steel. That can be described as [26] follows:

$$\frac{C}{\theta } = \frac{1}{{K_{{{\text{ads}}}} }} + C$$
(4)
$$\theta = \frac{{{\text{IE}}\left( \% \right)}}{100}$$
(5)
Table 2 Corrosive properties of mild steel in 0.5 M H2SO4 without and at different concentrations of A. catechu for 24 h at 298 K
Fig. 4
figure 4

The Langmuir adsorption isotherm (C/θ vs. C) by measuring the weight loss of the extract A. catechu for mild steel surface in 0.5 M H2SO4 at a temperature of 298 K for 24 h

where θ represents the surface coverage, inhibition concentration is represented by C, and \({K}_{\mathrm{a}\mathrm{d}\mathrm{s}}\) represents the equilibrium adsorption constant. In the previous study, M. fragrans showed an effect of 83.27% inhibitory effect at 500 mg/L with \({K}_{\mathrm{a}\mathrm{d}\mathrm{s}}\)(9.95 Lg−1) whereas A. catechu showed a 91.13% inhibitory effect at 600 mg/L with \({K}_{\mathrm{a}\mathrm{d}\mathrm{s}}\) (19.14 Lg−1) and confirmed its better performance in the same corrosive medium.

3.3 Potentiodynamic Polarization Technique (Tafel)

Potentiodynamic polarization curves were recorded for mild steel in 0.5 M sulphuric acid solution absence and presence of various concentrations of A. catechu extract. Figure 5 shows the Tafel curves without and with the various concentration of A. catechu inhibitor in 0.5 M sulphuric acid. From the Tafel plots, we got the values for corrosion potential (\({E}_{\mathrm{c}\mathrm{o}\mathrm{r}\mathrm{r}}\)), corrosion current density (\({i}_{\mathrm{c}\mathrm{o}\mathrm{r}\mathrm{r}}\)), anodic and cathodic Tafel slopes (\({\beta }_{a} \mathrm{a}\mathrm{n}\mathrm{d} {\beta }_{c}\)), and inhibition efficiency (IE %) using the following equitation [27]:

$${\text{IE}}\left( \% \right) = \frac{{i_{{{\text{corr}}}}^{0} - i_{{{\text{corr}}}}^{i} }}{{i_{{{\text{corr}}}}^{0} }} \times 100$$
(6)
Fig. 5
figure 5

Polarization curves of A. catechuon mild steel in 0.5 M H2SO4 for a concentration range of 0–600 mg/L extract at 298 K

where \({i}_{\mathrm{c}\mathrm{o}\mathrm{r}\mathrm{r}}^{0}\) and \({i}_{\mathrm{c}\mathrm{o}\mathrm{r}\mathrm{r}}^{i}\) represent the corrosion current density in the absence of inhibitor and in the presence of inhibitor, respectively.

Table 3 shows the polarization parameters for the mild steel in the absence and presence of different concentrations of inhibitors. According to the table, the greater variability of the slopes of the anode table indicates its anodic response. The corrosive potential (\({E}_{\mathrm{c}\mathrm{o}\mathrm{r}\mathrm{r}}\)) is within 85 mV in relation to the blank, suggesting its behaviour as a type of mixed inhibitor [28]. The Tafel curves show the fall in the value of the slopes of anodes and cathode curves with the addition of an inhibitor. This is due to the effect of the coating of active inhibitory molecules on the surface of the mild steel and the reduction of the solubility of the metal. At each addition of the concentration of the inhibitor, the density of the corrosion current (\({i}_{\mathrm{c}\mathrm{o}\mathrm{r}\mathrm{r}}\)) continually decreases [29]. In the previous study, M. fragrans showed an effect of 87.42% inhibitory effect at 500 mg/L with \({i}_{\mathrm{c}\mathrm{o}\mathrm{r}\mathrm{r}}\) (112.00 μA cm−2) whereas A. catechu showed a 93.85% inhibitory effect at 600 mg/L with \({i}_{\mathrm{c}\mathrm{o}\mathrm{r}\mathrm{r}}\)(54.70 μA cm−2) and confirmed its better performance towards the same corrosive medium.

Table 3 Polarization parameters for mild steel in 0.5 M H2SO4 without and with different concentrations of A. catechu at 298 K

3.4 Electrochemical Impedance Spectroscopy (EIS)

To study the effect of A. catechu extract concentration, electrochemical impedance spectroscopy for mild steel was performed in 0.5 M sulphuric acid at 298 K to obtain a stable state. Figure 6a shows the equivalent circuit used to adapt to the results obtained. \({E}_{\mathrm{O}\mathrm{C}\mathrm{P}}\) (open circuit potential) was found relatively stable after 60 min of immersion, which indicates a stable condition. A constant phase element (CPE), a solution resistance (\({R}_{\mathrm{s}}\)), and a charge transfer resistance (\({R}_{\mathrm{c}\mathrm{t}}\)) are the parts of the circuit. Using the following equations, it is better to explain the impedance of a constant phase element [30]:

$$Y_{{{\text{CPE}}}} = Y_{0} (j\omega )^{n}$$
(7)
$$Z_{{{\text{CPE}}}} = \left( {\frac{1}{{Y_{0} }}} \right) \left[ {\left( {j\omega } \right)_{n} } \right]^{ - 1}$$
(8)
Fig. 6
figure 6

a An equivalent circuit, b Nyquist and Bode c plots of mild steel in 0.5 M H2SO4 solution in the absence and presence of A. catechu extract

where \({Y}_{0}\) represents the proportional factor, and n explains the phase-shifting behaviour at different concentration. For n = 0, 0.5,1 and − 1, CPE represents to a resistance, Warburg component, capacitance, and inductance, respectively. The estimations of the double-layer capacitance (\({C}_{\mathrm{d}\mathrm{l}}\)) can be acquired from the condition [31]:

$$C_{{{\text{dl}}}} = Y_{0} \left( {\omega^{\prime\prime}_{m} } \right)^{n - 1}$$
(9)

where \(\omega^{\prime\prime}_{m}\) represents the frequency of the impedance. The results are exhibited in Table 4. Figure 6b, c shows the Nyquist and Bode plots for mild steel in the absence and presence of the different concentration of A. catechu extract. The inhibition viability in connection to impedance was acquired by using the accompanying recipe [32]:

$${\text{IE}}\left( \% \right) = \frac{{R_{{{\text{ct}}}} - R_{{{\text{ct}}}}^{o} }}{{R_{{{\text{ct}}}} }} \times 100$$
(10)
Table 4 EIS parameters of mild steel in 0.5 M H2SO4 without and at different concentrations of A. catechu at 298 K

where \({R}_{\mathrm{c}\mathrm{t}}\) denotes the charge transfer resistance in the presence of the inhibitor and \({R}_{\mathrm{c}\mathrm{t}}^{0}\) denotes the charge transfer resistance in the absence of the inhibitor.

As the concentration of inhibitors rises, the \({C}_{\mathrm{d}\mathrm{l}}\) decreases and the \({R}_{\mathrm{c}\mathrm{t}}\) rises as shown in Table 4. This can be attributed to a decrease in local dielectric constant and/or to enhance in the thickness of \({C}_{\mathrm{d}\mathrm{l}}\). The dissolution mechanism can be estimated from the value of the phase shift (n). The only constant on the Bode and Nyquist plots emphasized the load protection mechanism for coated and unprotected samples. Based on the Nyquist curves, in all cases, the highest performance was achieved at maximum concentration. It means with increase in the inhibitor concentration, the protective coating is formed.

Next, the results are plotted, showing a slight change in the value of n at different concentrations of inhibitors. Uniform n values reveal that the dissolution mechanism is controlled by the charge transfer process, both in the absence and in the presence of different concentrations of inhibitors [33, 34]. In the previous study, M. fragrans showed an effect of 87.88% inhibitory effect at 500 mg/L with \({R}_{ct}\) (128.88 Ω cm2) whereas A. catechu showed a 93.12% inhibitory effect at 600 mg/L with \({R}_{ct}\)(228.56 Ω cm2) and confirmed its better performance towards the same corrosive medium.

3.5 SEM and AFM Analysis

Figure 7 highlights scanning electron microscopy (SEM) and atomic force microscopy (AFM) micrographs of mild steel surface prior and afterwards the corrosion tests without and with the inhibitor. Figure 7a shows the SEM and AFM micrographs of the abraded mild steel surface. It shows a sleek surface with least surface roughness (2.99 nm) and maximum height (60 nm) values. Figure 7b shows the mild steel surface after the corrosion test without the inhibitor. In this case, the mild steel surface is highly corroded due to the acidic corrosive media, resulting a rough micrograph with highest surface roughness (138.81 nm) and maximum height (2100 nm) values. Figure 7c shows the mild steel surface after the corrosion test with the inhibitor. It shows the presence of the inhibitor covers the surface and prevents the corrosion process with much lower surface roughness (26.46 nm) and maximum height (200 nm) values. It is very less than the outcomes obtained in the case of without inhibitor. It shows A. catechu is adsorbed on the surface of the mild steel creating a protective layer to prevent the corrosion process on the mild steel surface [35,36,37].

Fig. 7
figure 7

AFM and SEM micrographs of the surface of mild steel after 24 h immersion at 298 K in 0.5 M H2SO4a abrade soft steel, b without inhibitor and c with inhibitor

3.6 Theoretical Study Explanation

3.6.1 Quantum Chemical Calculations

Plant extracts have lots of phytochemical components. There are two main components of A. catechu selected for the theoretical study. A. catechu contains compound [1] and compound [2] as the main phytochemical components. Figure 8 shows the optimized, HOMO, and LUMO orbitals of the compound [1] and compound [2]. Following equations have been used to calculate different quantum chemical parameters:

$$\Delta E = E_{{{\text{LUMO}}}} - E_{{{\text{HOMO}}}}$$
(11)
$$\eta = \frac{1}{2}\left( {E_{{{\text{LUMO}}}} - E_{{{\text{HOMO}}}} } \right)$$
(12)
$$\chi = - \frac{1}{2}\left( {E_{{{\text{LUMO}}}} + E_{{{\text{HOMO}}}} } \right)$$
(13)
$$\Delta N = \frac{{\chi_{{{\text{Fe}}}} - \chi_{{{\text{inh}}}} }}{{2\left( {\eta_{{{\text{Fe}}}} - \eta_{{{\text{inh}}}} } \right)}}$$
(14)
$$\sigma = \frac{1}{\eta }$$
(15)
$$\Delta E_{{{\text{Back}} {\text{Donation}}}} = - \frac{\eta }{4}$$
(16)
$$\pi = - \chi$$
(17)
Fig. 8
figure 8

Optimized structures and frontier molecular orbital density distributions (HOMO & LUMO) of Compound [1] and Compound [2] obtained by DFT/B3LYP/6-31G+(d,p) method

where \({\chi }_{\mathrm{i}\mathrm{n}\mathrm{h}}\) and \({\eta }_{\mathrm{i}\mathrm{n}\mathrm{h}}\) represent the electronegativity and hardness of inhibitor molecule, whereas \({\chi }_{\mathrm{i}\mathrm{n}\mathrm{h}}\) and \({\eta }_{\mathrm{F}\mathrm{e}}\) represent the electronegativity and hardness of iron, respectively. According to the Pearson’s electronegativity scale, a value of 7 eV/mol has been taken for \({\chi }_{\mathrm{F}\mathrm{e}}\), and at the same time, 0 eV/mol has been taken for \({\eta }_{\mathrm{F}\mathrm{e}}\).

Table 5 contains the basic properties of compound [1] and compound [2], which are of great importance due to their effect on the interaction of electrons between the inhibitor molecule and the mild steel surface. We can see the values in Table 5, and compound [2] (− 1.46 eV) shows a high value of EHOMO indicating its high capacity to deliver the charge to the mild steel. Compound [2] has the lowest values of ELUMO (− 1.25 eV), which shows the highest capacity to receive electrons from Fe. Again compound [2] (0.21 eV) shows a high value of ΔE indicating its strong influence of the [Fe- compound [2]] complex. However, since these molecules change extensively for their concoction structures and any of them might exert a dominant impact under specific conditions and concentration, for example, if the examination states are fluctuate, specific characteristics might turn into upgrade alternately suppressed, which may prompt the change of the inhibition performance of A. catechu extract. As per the previous information, the phytochemical part secluded from the plant extricate showed moderately low extraction productivity contrasted with a mix of various phytochemical substances, which means a mix of compound [1] and compound [2] delivers preferred outcomes over independent [38, 39].

Table 5 Quantum chemical parameters calculated for the Compound [1] and Compound [2] molecules by the method DFT/B3LYP/6-31G+(d, p)

3.7 A Proposed Mechanism of Action

To explain the inhibitory effect of A. catechu on mild steel in 0.5 M H2SO4, it is important to evaluate the experimental and calculated results and correlate them with the structural, chemical and electronic properties of the inhibitory molecules. A. catechu contains several phytochemical compounds that take into account the number of heteroatoms and aromatic rings. These compounds act as Lewis bases and form coordination bonds with the free d-orbital of Fe and adsorb on a mild steel surface to form a protective layer on the mild steel surface to protect against corrosive environments. The HOMO orbitals of the molecules studied indicate that a uniform pair of electrons is available for nucleophilic interaction (chemisorption) with the mild steel surface. The LUMO in the heteroatoms causes the formation of dπ–dπ bonds, and the formation of superimposed three-dimensional electrons of iron atoms with a free spatial orbital heteroatom is possible. Also, the adsorption can be done by electrostatic interaction (physisorption) between heteroatoms and the Fe2+. Retrospection can be done using π-electrons of aromatic rings. This phenomenon is also verified by theoretical studies and polarization measurements. Figure 9 shows the proposed mechanism for the phenomenon of compound [2] molecule adsorption on a mild steel surface [40,41,42,43].

Fig. 9
figure 9

Suggested mechanism of adsorption behaviour of the Compound [2] molecule on a mild steel surface

4 Conclusion

The corrosion control effect of A. catechu in a corrosive environment of 0.5 M sulphuric acid for mild steel has been tested by electrochemical analysis followed by weight loss test, UV–vis., FT-IR, AFM, SEM and computational studies. The conclusions of this assessment are as follows:

  1. I.

    Electrochemical tests and weight loss confirmed that A. catechu indicates > 91% of corrosion prevention efficiency at 600 mg/L.

  2. II.

    The presence of several active functional groups found in A. catechu has been confirmed by FT-IR and the adsorption phenomenon has been confirmed by UV–vis. spectroscopy technique.

  3. III.

    The most important phytochemicals of the extract were simulated with DFT, and the results confirm the experimental results.

  4. IV.

    SEM supported by AFM confirmed the surface adsorption of A. catechu on the mild steel surface.