Introduction

Mild steel (MS) is an important metal and commonly used in various human and industrial activities. Hence, nowadays application of MS metal in industries has increased. The MS has good standard corrosion potential, innocuousness, high stiffness, high electrical conductivity, and light weight. Because of these properties, MS metal is used in packing, transportation, chemical, and engineering applications. The MS metal often contacts corrosive ions (H+ or Cl) in various industrial processes. The exposed MS metal loses its weight due to the aggressive attack of corrosive ions. These corrosive solutions increase the dissolution process by destroying the MS surface [1,2,3,4,5].

Corrosion of MS not only affects the properties of the metal, but also affects the nation’s economy. Hence, prevention of MS corrosion is very much essential. Among the corrosion inhibiting process, chemical inhibitors are the best choice owing to the strong adsorption property. In past decades, several inorganic inhibitors such as nitrites, phosphates, molybdates, tungstate’s, silicates, and chromates have been found to serve as effective potential corrosion inhibitors for a variety of metallic systems, by repressing both the cathodic and anodic reactions. In addition, a majority of polymeric and organic species showed the predominant anticorrosive behavior at the metal–electrolyte solution interface.

Organic species bearing special elements such as N, O, S, and P, the pi electrons in the conjugated double/triple bonds and individual functional groups in their moieties are assigned as good adsorption centers show good inhibitive action by shifting the electrons via pi orbitals by on adsorption mechanism. The adsorption process leads to modification in the electrochemical process in the region of the double layer. Adsorption occurs when the liquid species accumulate on the solid surface, which is due to the presence of an invisible thick layer on the surface of a solid. It is applicable in the chemical, physical, and biological processes. It is operative in the various industrial operations such as purification of water, activated charcoal, and synthetic resins.

The adsorption takes place in two ways, (a) physical force adsorption (occurs through weak Van der Waals forces) and (b) chemical force adsorption (occurs through formation of a new chemical bond between adsorbent and adsorbate). The adsorption process mainly depends upon several factors such as, the nature of the metal, metal surface charge, type of electrolyte solution, molecular configuration in the inhibitor and nature of interaction of inhibitor molecules on the surface of the metal [6,7,8,9]. The artificial corrosion inhibitors such as Nicotinamide, acetylenic alcohols, and thiourea are mainly employed in pickling, descaling, etching, electrochemical, and chemical processes. Many industries have strictly banned these synthetic compounds because of their toxicity nature. Therefore, research shifted toward cheap and eco-friendly corrosion inhibitors. Plant products fulfill these characteristics [10,11,12].

Ekanem et al. [13] selected Pineapple leaves and examined their role as green corrosion inhibitor on MS surface in HCl medium via chemical technique. They reported good protection efficiency of the plant extract. Langmuir adsorption model was the best fit for their study. Authors, Hussin and Kassim [14] tested the influence of Uncaria Gambir plant extract on MS in hydrochloric acid. Protection efficiency of Uncaria Gambir plant extract was due to adsorption of green chemicals from the plant extracts on the surface of the MS which followed the Langmuir isotherm model. Ambrish Singh et al. [15] selected electrochemical and chemical techniques to examine the corrosion inhibition role of Karanj seed extract on MS surface in HCl medium. Weight loss studies show that protection efficiency increased with plant extract concentration. Ji et al. [16] discussed the activities of Argemone Mexicana extract on the surface of the MS in HCl environment by employing UV-visible, surface imaging, and electrochemical techniques.

Even though there are many reports available on MS corrosion inhibition in the literature, further research is required in order to solve the MS dissolution process in industries. Hence, in the present research, we selected Elaeocarpus seed. Literature study confirms that Elaeocarpus seed contains alkaloids, glycosides, saponins, phenolic compounds, tannins, phytosterols, carbohydrates, proteins, aminoacids, flavanoids, quinones, and terpenoids [17, 18]. The presence of functional groups in green extract was analyzed by FT-IR spectroscopy. The adsorption and corrosion inhibition properties of Elaeocarpus seed extract was examined by weight loss, electrochemical (Tafel plot and AC impedance), and atomic absorption spectroscopy techniques. Further, mathematical model and quantum studies used to support the experimental results.

Experimental Section

Preparation of Optimum Concentration (OC) of Corrosion Inhibitor

About 300 g of the Elaeocarpus seed (ES) was crushed and soaked in half liter of 1% aqueous hydrochloric acid solution for one day at temperature 303 K. Green chemicals present in the Elaeocarpus seed were extracted with the help of Soxhlet extractor. The solution filtered and kept in a refrigerator in order to prevent its degradation.

Attempts were successfully made to determine the optimum concentration (OC) by preparing different amounts of Elaeocarpus seed (ES) extract. The amount (AESE) of a given ESE concentration (CESE) added to HCl solution (VHCl) was analyzed through the following relation:

$$A_{{{\text{ESE}}}} = \frac{{V_{{{\text{HCl}}}} C_{{{\text{ESE}}}} }}{{10^{ - 6} }}$$
(1)

It was observed that Elaeocarpus seed extract (ESE) amount between 5 to 8 mg/L yields same protection efficiency values. Below this, the protection efficiency increases with a rise in the ESE concentration. Above this, no significant variations in the protection values were observed. This was true for five different solution temperatures (303, 313, 323, 333, and 343 K). Hence, from these it was decided to use concentrations of ES extract selected within 1–5 mg/L at five different solution temperatures. Five different concentrations, namely 1, 2, 3, 4, and 5 mg/L were made for chemical, electrochemical, and surface studies.

Phytochemical, Physical Parameters, and Functional Groups Screening

Phytochemical tests were performed to determine the bioactive species such as alkaloids, polyphenols, tannins, and saponins present in the Elaeocarpus seed. The tests were carried out according to the procedure reported in the literature [19]. To support phytochemical and FT-IR results, physical parameters (refractive index (nD20), surface tension (dynes/cm), viscosity (centipoise), and density (g/ml) were determined and tabulated in Table 1.

Table 1 Physical parameters of Elaeocarpus seed extract

Materials and Chemicals

The MS metal pieces with chemical composition (weight %): Mn = 0.6, C = 0.18, P = 0.04, S = 0.05, Si = 0.1, and Fe = 99.03 were employed for experimental tests. About 3 M HCl solution was prepared by using double distilled water.

Thermal Properties

The thermal properties of Elaeocarpus seed extract at different stages were performed by analyzing the 10 mg samples. The weight derivative, heat flow rate, and weight loss were determined by using differential thermal analysis (DTA), differential scanning calorimetry (DSC), and thermo gravimetric analysis (TGA), respectively, with the help of a thermogravimetric analyzer (Model; SDT Q600 V20.9, Japan). The tests were performed under dry N2 gas atmosphere with a flow rate of 30 ml/min from room temperature to 400 °C. DSC measures the heat flow rate with respect to the temperature giving information on molecular transformations such as phase changes. All these three techniques provide information about how material changes under thermal conditions.

Gravimetric Experiment

In the weight loss technique, initial weight of the MS was taken prior to test by using an analytical balance. The MS pieces were introduced to 3 M HCl solution separately without and with different amounts of green compounds for 2, 4, 6, 8, and 10 h at 303 K. The experiments were also carried out at 313, 323, 333, and 343 K at immersion period of 2 h. After the specified time, MS specimens are withdrawn from the acid solution. The difference in the MS weight was recorded. The corrosion rate (CR), degree of surface coverage (θ), and inhibition efficiency (IE%) were calculated using equations 2, 3, and 4.

$${\text{CR}} = \frac{W}{At}$$
(2)
$$\theta = \frac{{\left( {{\text{ CR}}_{1} - {\text{CR}}_{2} { }} \right)}}{{{\text{CR}}_{1} }}{ }$$
(3)
$${\text{IE}}\,{\text{(\% )}} = \frac{{\left( {{\text{ CR}}_{1} - {\text{CR}}_{2} { }} \right)}}{{{\text{CR}}_{1} }}{ } \times 100,$$
(4)

where W = average MS weight loss (mg), A = MS area in cm2, T = exposed time in hours, CR2 = corrosion rate values in the presence green compounds and CR1 = corrosion rate values in the absence of green compounds.

Atomic Absorption Spectroscopy (AAS) Evaluation

The AAS experiment provides important information about concentration of the ionic species on the sample surface. Generally, the concentration of ionic species decreases with respect to concentration of the inhibitor molecules. Hence, in present investigation, AAS test performed in 100 ml of 3 M HCl solution without and with five different concentrations of ES extract (1, 2, 3, 4, and 5 mg/L) on mild steel surface at 303 K with an exposure period of two hours. For this purpose, AAS analyzer of model G8-908 (Australia) was used. The AAS test performed three times and average values are reported.

The surface coverage (θ) was evaluated with the help of the following relation:

$$\theta = \frac{{{\text{Weight}}\,{\text{ of}}\,{\text{ MS}}\,{\text{ dissolved }}\,{\text{in }}\,{\text{unprotected}}\,{\text{ condition}} - {\text{Weight }}\,{\text{of}}\,{\text{ MS }}\,{\text{dissolved }}\,{\text{in }}\,{\text{protected }}\,{\text{condition }}}}{{{\text{Weight }}\,{\text{of }}\,{\text{MS}}\,{\text{ dissolved }}\,{\text{in }}\,{\text{unprotected}}\,{\text{ condition}}}}$$

The protection efficiency (PE) was calculated from the below equation:

$${\text{PE}} = \frac{{{\text{Weight}}\,{\text{ of}}\,{\text{ MS}}\,{\text{ dissolved}}\,{\text{ in}}\,{\text{ unprotected}}\,{\text{ condition}} - {\text{Weight }}\,{\text{of}}\,{\text{ MS }}\,{\text{dissolved }}\,{\text{in }}\,{\text{protected }}\,{\text{condition }}}}{{{\text{Weight}}\,{\text{ of}}\,{\text{ MS}}\,{\text{ dissolved}}\,{\text{ in }}\,{\text{unprotected }}\,{\text{condition}}}} \times 100.$$

Electrochemical Studies

Conventional platinum (auxiliary), calomel (reference) and MS (working) electrodes were used to carry out the Tafel and AC impedance studies. Tafel diagrams were obtained in ± 200 mV potential range at a scan rate of 0.01 V/s. Nyquist plot were obtained in the frequency range 1,000,000–1 Hz with an AC signal of 0.01 V. The schematic representation of electrochemical cell shown in Figure 1.

Fig. 1
figure 1

Schematic representation of electrochemical cell

Mathematical and Quantum Chemical Studies

In this investigation, the weight loss results at different times and temperatures can be studied through mathematical models. Further, the different Quantum chemical parameters, i.e., energy of lowest unoccupied molecular orbital (ELUMO), energy of highest occupied molecular orbital (EHOMO), electro negativity (χ), electrophilicity index (ω), chemical hardness (η), Chemical softness or electron polarizability (σ), electron affinity (A), chemical potential (μ), ionization potential (I) were calculated from the ArgusLab software as per the previous report [20].

Results and Discussion

Fourier Transform-Infrared (FT-IR) Analysis

The functional groups in the Elaeocarpus seed extract were identified through FT-IR spectroscopic technique. Fig. 2 shows the IR spectrum of Elaeocarpus seed extract. The likely available groups in the Elaeocarpus seed extract are presented in the figure. The electron-rich groups are expected to participate in the adsorption process and generate a protective film on the substrate surface in acid media, which effectively isolate the substrate surface from the corrosive solution.

Fig. 2
figure 2

IR spectrum of Elaeocarpus seed extract

Phytochemical Results

The phytochemical species present in the results Elaeocarpus seed extract are reported in Table 2. It is observed that the Elaeocarpus seed extract mainly contains polyphenols, tannins and flavonoids in their moieties. These constituents contain hydroxyl (OH) and carbonyl (C=O) groups, which accelerate the adsorption process, thus increasing the protection ability of Elaeocarpus seed extract. Our previous studies also attributed the protection property of plant extract species to presence of these bioactive species [21].

Table 2 Phytochemical screening results of Elaeocarpus seed extract

Thermal Properties

Thermal gravimetry is the study of material nature as a function of temperature. Thermogravimetry gives important information about the decomposition profile of plant extract constituents and its kinetic properties. Previously, many scientists reported that the decomposition of plant extract constituents with respect to temperature follows first order kinetics. Hence, decomposition of plant extract constituents is directly proportional to the concentration of its individual species. The literature study shows that Elaeocarpus seed extract mainly contains alkaloids, polyphenols, and tannins in their moiety. The detailed results of thermal properties carried out on Elaeocarpus seed extract are shown in Figure 3a, b, and c.

Fig. 3
figure 3

TGA (a), DTA (b), and DSC (c) of Elaeocarpus seed extract

From TGA Figure 3a and DTG Figure 3b, the initial weight loss occurs at 30 °C and continues up to 110 °C, which is due to evaporation of moisture content in the Elaeocarpus seed extract, decomposition of some lower melting point species and intermolecular hydrogen bonded chemical adsorbed water species. The next degradation occurs at 240 °C which is due to decomposition of catechin, epicatechin, gallic acid, tannic acid, and ellagic acid. The DTG (Fig 3b, shows one broad exothermic peak at 268 °C, which is an indication of decomposition of gallic acid, it contains oxygen functional groups.

DSC Fig 3c shows heat flow rate with respect to temperature change. From all these, it is concluded that, Elaeocarpus seed extract contains a high concentration of gallic acid, tannic acid, and ellagic acid which are expected to participate in the corrosion process. The chemical structure of important constituents presents in the Elaeocarpus seed extract are shown in Figure 4.

Fig. 4
figure 4

Major constituents of Elaeocarpus seed extract

Weight Loss Experiment

The weight loss test was carried out at five different solution temperatures to study the influence of ES extract concentration, contact time, and solution temperature. The contact time and solution temperature not only influence corrosion rate of MS in 3 M HCl solution, but also influence the interaction between the surface of MS and ES extract. The influence of solution temperature and contact time on the disintegration of MS is abstruse.

The values of corrosion rate, degree of surface coverage and protection efficiency for different green compound concentrations are reported in Tables 3 and 4. The corrosion protection efficiency increases, and corrosion rate decreases sharply with the increase in the concentration of green compounds. This behavior is due to the enhancement in the surface coverage by the green compounds on the MS surface, indicating that the plant extract species exhibits the corrosion inhibition property which reduces the attack of corrosive ions by preventing the attack of H+ and Cl ions on MS surface.

Table 3 Weight loss parameters at 303 K
Table 4 Effect of 3 M HCl solution on protection efficiency at different solution temperatures in 2 hours

A decrease in the protection efficiency with the increase in time and temperature was observed. The reduction in the inhibition property is correlated to the desorption of green species from the MS surface and corrosion inhibition efficiency of the extract has an inverse relationship with both time and temperature of the system. The enhanced MS dissolution is a complex phenomenon, because at higher solution temperature many modifications take place on the surface of MS such as rapid etching, decomposition, and desorption of plant extract species. The decrease in protection efficiency values with an increase in the solution temperature signifies physisorption.

Plant extract species exhibit corrosion protection due to the formation of a protective layer on metal surfaces via an adsorption process. The adsorption takes place by replacing water species by plant extract active molecules as per the following relation:

$$\left( {{\text{Plant}}\,{\text{ extract}}} \right)_{{\text{(Solution)}}} + \, \left( {n{\text{H}}_{{2}} {\text{O}}} \right)_{{\text{(ads)}}} \to \left( {{\text{Plant}}\,{\text{extract}}} \right)_{{\text{(ads)}}} + \, n{\text{H}}_{2} {\text{O}}_{{\text{(Solution)}}}$$

In the present study, ES extract species undergo adsorption on the surface of MS by replacing the water species, which leads to MS-ES extract interaction. The nature of the adsorption process can be studied by introducing weight loss parameters into Freundlisch, Langmuir, Frumkin, Temkin, Flory-Huggins, and Kinetic thermodynamic adsorption models. The result shows that the correlation coefficient (R2) between the degree of surface coverage (θ) and concentration (C) of ES extract on MS surface in 3 M HCl solution for the Langmuir model was above 0.9, which is superior to those for the other five adsorption models. This confirms that, the nature of adsorption is Langmuir adsorption which is uni-layer in character.

Langmuir adsorption is vital to recognize the relations between the green extract molecules and the MS surface. Constants for adsorption–desorption process (Kads) and free energy of adsorption (Gads0) are calculated from the Langmuir adsorption isotherm plot (Fig. 5). The obtained negative Gads0 values in the present investigation favorable for the adsorption process. The −ve sign in the Gads0 indicates a spontaneous adsorption phenomenon. The Gads0 values in the present investigation were between − 35 and − 37 kJ mol−1. These values are between the literature values (around 20 kJ mol−1 = physical adsorption and around 40 kJ mol−1 = chemical adsorption). These supports both physical and chemical adsorption phenomena which are due to combined effect of the electrostatic interaction and sharing of electron between the charged plant extract species and the MS metal surface. The binding capacity of green corrosion inhibitor can be examined by Kads values. The high Kads values in acid system show more adsorption than desorption process and consequently higher protection efficiency. The obtained Kads values also show that the MS corrosion in 3 M HCl solution takes place on the uncovered portion (MS surface not covered by organic species) of the MS surface (from Table 5).

Fig. 5
figure 5

Langmuir isotherm plot

Table 5 Thermodynamics parameters

Activation Parameters

Activation parameters (activation energy (Ea*), activation enthalpy (∆H*) and activation entropy (∆S*) are vital for studying the nature of the interaction between the ES extract and the Mild steel. Ea* obtained from the below equation (Arrhenius plot; ln [corrosion rate] versus 1000/T):

$$\ln \left[ {{\text{corrosion}}\,{\text{rate}}} \right] = \ln A - \frac{{E_{{\text{a}}} }}{RT},$$
(4)

where A = Arrhenius constant, and R = gas constant.

The activation enthalpy (∆H*) and entropy (∆S*) were calculated from the transition state relation (ln [corrosion rate]/T versus 1000/T:

$$\ln \frac{{{\text{Corrosion}}\,{\text{rate }}}}{T} = \left[ {\ln \frac{R}{Nh} + \frac{{\Delta S^{*} }}{R}} \right] - \frac{{\Delta H^{*} }}{RT} ,$$
(5)

where N is Avogadro’s number and h are plank’s constant.

The results obtained from the Arrhenius plot (Figure 6) and transition state plot (Figure 7) is depicted in Table 6. The link between the activation energy and solution temperature can be divided into following three divisions:

  1. (a)

    If the protection efficiency has an inverse relationship with temperature, then activation energy in protected condition is greater than the unprotected condition.

  2. (b)

    If the protection efficiency has a direct relationship with temperature, then activation energy in protected condition is less than the unprotected condition.

  3. (c)

    If the protection efficiency does not change with temperature, then activation energy in protected condition is equal to than the unprotected condition.

Fig. 6
figure 6

Arrhenius plots

Fig. 7
figure 7

Transition state plots

Table 6 Activation parameters for mild steel in 3 M HCl system

In present investigation, the activation energy values for mild steel in 3 M HCl solution in the HCl solution was higher than the unprotected system and protection efficiency decreases with respect to solution temperature. This shows that the protective layer generated by ES extract on MS surface is electrostatic in nature (physical force of attraction). The difficulties in the mobility of H+ and Cl ions occur at active MS surface due to the presence of an invisible barrier layer. Hence, the interaction between the MS surface and HCl solution decreases with a rise in the concentration of ES extract. As a result of this, more energy is required for the oxidation process. Adsorption effects lead to higher activation energy in the protected system compared to the unprotected system. In another way, the superior activation energy values explore the robust MS corrosion protection ability of ES extract. Therefore, MS surface is protected from the 3 M HCl solution by introduction of ES extract. Further, the activation enthalpy values are positive in both the systems (protected and unprotected), which is an indication of endothermic MS disintegration process in 3 M HCl solution. The disintegration of MS in acid system is difficult in the presence of five different concentrations of ES extract. Both activation enthalpy and energy values varying in the same fashion gives evidence for the anticipated MS corrosion protection mechanism. ∆S* is another activation parameter that is higher in the ES extract than unprotected system. This clearly shows the dissociation process is the rate determining step. The disorderness reduces during reactants changes into activated complex. The activation entropy values are less negative compared with the blank system, indicating that the addition of five different amounts of ES extract to the 3 M HCl solution created near-equilibrium mild steel disintegration condition.

Atomic Absorption Spectroscopy (AAS) Results

The AAS technique of monitoring the protection efficiency is useful because of its reliability and simple application. The degree of surface coverage and protection efficiency of ES extract of five different concentrations is listed in Table 7. The effect of five different concentrations of ES extract is shown in Figure 8. It is seen that increasing ES extract reduces the amount of MS dissolved in the acidic medium, consequently enhancing both degree of surface coverage and protection efficiency. This nature could be related to the enhanced adsorption process of ES extract species at the electrode (MS)–electrolyte (3 M HCl) interface. The invisible protective layer blocks aggressive attack of H + and Cl ions over the MS surface. The maximum protection efficiency 97.111 % was attained at 5 mg/L of ES extract. Further, a rise in the concentration of the ES extract did not show any significant variation in the protection efficiency values (not shown in Table 6). This nature is due to saturation state of ES extract species at MS surface.

Table 7 AAS results
Fig. 8
figure 8

Relation between the C, PE, and W in AAS results

Electrochemical Measurements

Polarization (Tafel plot) Study

Polarization curves of MS in 3 M HCl solution in the absence and presence of green compounds at five different concentrations at 303 K are shown in Fig. 9. All related parameters are listed in Table 8. The degree of surface coverage and protection efficiency was evaluated by using Eq. 4 and 5.

$${\text{Degree}}\,{\text{ of}}\,{\text{ surface }}\,{\text{coverage }} = \left[ { 1 - \frac{{i_{{{\text{corr}}}}^{\prime } }}{{i_{{{\text{corr}}}} }} } \right]$$
(4)
$${\text{Protection }}\,{\text{efficiency}} = \left[ { 1 - \frac{{i_{{{\text{corr}}}}^{\prime } }}{{i_{{{\text{corr}}}} }} } \right] \times 100,$$
(5)
Fig. 9
figure 9

Tafel plots

Table 8 Tafel parameters

where icorr′ = corrosion current densities in protected system, and icorr = corrosion current densities in unprotected system.

Table 8 shows that, icorr values in protected MS surface are low compared to the bare system. The decrease in icorr values in protected system is due to the adsorption of green extract components on the MS surface. The adsorption layer on the MS surface in 3M HCl system prevents the diffusion of ions directed toward the MS metal. Table 8 also shows that protection efficiency increasing with the concentration of green extract molecules. This aspect is analogous to the results of weight loss technique. The change in the corrosion potential (Ecorr), anodic Tafel slope (βa), and cathodic Tafel slope (βc) values showed that the adsorption of green organic species prevents the anodic dissolution and cathodic evolution processes. The shift in the Ecorr values is not more than 85 mV in acid media, which clearly indicates the mixed corrosion inhibition property of the extract. This shows that, green extract molecules adsorb on both cathodic and anodic reactive sites.

Impedance Studies

Nyquist and bode diagrams that show the impedance characteristics of MS in 3 M HCl solution significantly varied with introduction of green chemicals are shown in Fig. 10a, b, and c. The Nyquist experimental and computed curves are shown in Figure 11. The various impedance parameters such as double layer capacitance (Cdl), CPE exponent (n), constant phase element (Q), frequency (fmax), Chi-squared value (χ2), and resistance (Rct) values are obtained as per procedure stated in previous reports [22]. Increasing the depressed semicircle curves with plant extract molecules indicates the adsorption and inhibitory modality of green extract species. ES extract decreases the 3 M HCl conductivity on the MS surface. Hence, MS is protected from disintegration process. The depressed semi circle also indicating the existence of charge transfer phenomena which are not affected by green molecules. The shape of the Nyquist diagrams is akin in bare and protected systems which show that protection efficiency of the ES extract on MS surface in 3 M HCl systems is related to the coverage ratio. All other parameters obtained from Nyquist plots support the corrosion protection role of ES extract. The results obtained from the Nyquist plots well supports the weight loss and Tafel plot technique results (Table 9).

Fig. 10
figure 10

Nyquist plots (a), bode plots (b) and bode phase angle plots (c)

Fig. 11
figure 11

Nyquist experimental and computed curves

Table 9 Impedance parameters

Mathematical Views

In this case, how five different concentrations of ES extract and exposure time can affect both the protection efficiency (PE) and corrosion rate (CR) has been studied through the linear mathematical model. Generally, if the correlation coefficient is < 0.30, then the relationship between the two variables is very weak. The correlation coefficient between 0.50 to 0.70 indicates a moderate relationship between the two variables, whereas a correlation around 0.90 or close to unity signifies the powerful relationship between the two variables [23]. The linear regression carried out for protection efficiency and corrosion rate (obtained from weight loss technique) in protected and unprotected system in 3 M HCl at five different solution temperatures are shown in the below equations. Their respective plots are shown in Figure 12a, b, c, d, and e.

$$\begin{aligned} {\text{From}}\,{\text{Figure}}\, \, 12{\text{a}}: & 2\,{\text{h}}:\,{\text{CR}} = \, 0.11173 - \, 0.02375 \cdot C \left( {R^{2} = 0.67315} \right) \\ & 4\,{\text{h}}:{\text{CR}} = \, 0.20864 - 0.04285 \cdot C \left( {R^{2} = \, 0.72331} \right) \\ & 6\,{\text{h}}:{\text{CR}} = \, 0.33616 - 0.05892 \cdot C \left( {R^{2} = \, 0.78141} \right) \\ & 8\,{\text{h}}:{\text{CR}} = \, 0.49478 - 0.08183 \cdot C \left( {R^{2} = \, 0.75879} \right) \\ & 10\,{\text{h}}:{\text{CR}} = 0.65328 - 0.09469 \cdot C \left( {R^{2} = 0.71750} \right) \\ {\text{From}}\,{\text{ Figure}}\,{\text{ 12b}}: & 2\,{\text{h}}:\,{\text{PE}} = \, 56.1701 + 7.5357 \cdot C \left( {R^{2} = \, 0.99534} \right) \\ & 4\,{\text{h}}:{\text{PE}} = 50.2702 + 8.4368 \cdot C \left( {R^{2} = 0.98037} \right) \\ & 6\,{\text{h}}:{\text{PE}} = 39.1872 + 8.6586 \cdot C \left( {R^{2} = 0.96158} \right) \\ & 8\,{\text{h}}:{\text{PE}} = 39.095 + 7.8708 \cdot C \left( {R^{2} = \, 0.93905} \right) \\ & 10\,{\text{h}}:\,{\text{PE}} = 37.9921 + 6.4507 \cdot C \left( {R^{2} = 0.94596} \right) \\ {\text{From}}\,{\text{ Figure}}\,{\text{ 12c: }} & {303}\,{\text{K: CR}} = 0.11173 - 0.02375 \cdot C \left( {R^{2} = 0.67315} \right) \\ & 313\,{\text{K}}:{\text{CR}} = 0.14229 - 0.02817 \cdot C \left( {R^{2} = 0.789892} \right) \\ & 323\,{\text{K}}:{\text{CR}} = 0.1588 - 0.0302 \cdot C\, \left( {R^{2} = \, 0.85761} \right) \\ & 333\,{\text{K: CR}} = 0.17849 - 0.02991 \cdot \, C \left( {R^{2} = \, 0.8471} \right) \\ & 343\,{\text{K}}:{\text{CR}} = \, 0.20097 - 0.03197 \cdot \, C \left( {R^{2} = \, 0.8534} \right) \\ {\text{From}}\,{\text{Figure}}\,{\text{12d}}: & 303\,{\text{K}}:{\text{ PE}} = \, 56.1701 + 7.5357 \cdot \, C \left( {R^{2} = 0.99534} \right) \\ & {313}\,{\text{K}}:{\text{PE}} = 42.9024 + 9.6154 \cdot \, C \left( {R^{2} = 0.98978} \right) \\ & {323}\,{\text{K}}:{\text{PE}} = \, 34.5473 \, + 11.0039 \cdot C\left( {R^{2} = \, 0.99963} \right) \\ & {333}\,{\text{K}}:{\text{PE}} = \, 31.7638 \, + \, 9.6872 \cdot \, C \left( {R^{2} = 0.98196} \right) \\ & {343}\,{\text{K}}:{\text{PE}} = \, 29.8666 + 9.3772 \cdot C \left( {R^{2} = 0.98802} \right) \\ {\text{From}}\,{\text{ Figure}}\,{\text{12e:}} & {1}\,{\text{mg/L: PE}} = 66.0271 - 2.17565 \cdot t \left( {R^{2} = 0.89502} \right) \\ & {\text{2 mg/L: PE}} = \, 76.3341 - 2.70375 \cdot t \left( {R^{2} = 0.90604} \right) \\ & 3{\text{ mg/L: PE}} = \, 87.1349 - 3.23215 \cdot t \left( {R^{2} = 0.89775} \right) \\ & 4{\text{ mg/L: PE}} = \, 92.8687 - 3.22345 \cdot t \left( {R^{2} = \, 0.96304} \right) \\ & 5{\text{ mg/L: PE}} = \, 100.8164 - 2.5998 \cdot \, t \left( {R^{2} = \, 0.92031} \right) \\ \end{aligned}$$
Fig. 12
figure 12

Corrosion rate as a function of concentration (a), Protection efficiency as a function of concentration at 303 K (b), corrosion rate as a function of concentration (c), protection efficiency as a function of concentration at different solution temperatures (d), protection efficiency as a function of time at five different concentration of ES extract (e)

From these plots, the reduction in the corrosion rate (CR) and elevation in protection efficiency (PE) with ES extract increases depending on five different solution temperatures (T) and immersion time (t). From these results, the correlation coefficients were greater than >  0.60 (concentration (C) versus corrosion rate) and > 0.93 (concentration versus protection efficiency) and > 0.89 (contact time versus protection efficiency) for the considered systems. These clearly show the good relationship between the two variables. Further, the below relations represent the mathematical model between corrosion rate and protection efficiency.

$$\begin{aligned} {\text{At}} & \quad {303}\,{\text{K: PE}} = { 99}{\text{.91991}} - {654}{\text{.16801}} \cdot {\text{CR }}\left( {{\text{R}}^{{2}} = {1}} \right) \\ & \quad {\text{313K: PE = 99}}{.92695} - {558}{\text{.42949}} \cdot {\text{CR }}\left( {{\text{R}}^{{2}} = {1}} \right) \\ & \quad {\text{323K: PE = 100}}{.14958} - {527}{\text{.52642}} \cdot {\text{CR }}\left( {{\text{R}}^{{2}} = {0}{\text{.999}}} \right) \\ & \quad {\text{333K: PE = 100}}{.00191} - {475}{\text{.55855}} \cdot {\text{CR }}\left( {{\text{R}}^{{2}} = {1}} \right) \\ & \quad {\text{343K: PE = 99}}{.99769} - {426}{\text{.82409}} \cdot {\text{CR }}\left( {{\text{R}}^{{2}} = {1}} \right) \\ \end{aligned}$$

The mathematical views show a reduction in the MS disintegration rate with rise in ES extract concentration with decrease in the solution temperature and contact time, which shows a strong relationship between mathematical studies and weight loss studies.

Quantum Chemical Studies

The various quantum chemical properties of phytochemical compounds of ES extract computed from Argus Lab software are presented in Table 10 and Figure13. All the three compounds having high − EHOMO compared to − ELUMO values show effective corrosion protection property of catechin, gallic acid, and ellagic acid. These compounds have high tendency to donate electrons to vacant d-orbitals of the mild steel surface. The small energy gap ΔE indicates high reactivity of ES extract; hence, high protection rate observed; this is because the energy required to remove the outer most orbital is low. All other quantum chemical parameters strongly support the experiential results for ES extract on MS surface in 3 M HCl solution.

Table 10 Quantum chemical parameters
Fig. 13
figure 13

Optimized structures, HOMOs and LUMOs of Main constituents of ES extract

Mechanism of Action

Corrosion inhibition of MS in 3 M HCl solution by the extract of ES can be thoroughly explained by molecular adsorption. The examined green compounds would have been adsorbed on the surface of MS as follows; donor–acceptor interaction occurs between the electrons of catechin, gallic acid , and ellagic acid and vacant d-orbitals of surface MS atoms. ES extract contains catechin, gallic acid, and ellagic acid as major components. In addition, it also contains a mixture of organic compounds in small amounts. Hence, it is difficult to decide the group that is responsible for the MS corrosion inhibition process. Therefore, the present study reports the combined effect all these compounds toward MS corrosion inhibition in 3 M HCl media. From the weight loss thermodynamic studies, it is revealed that adsorption of ES extract on MS surface in 3 M HCl involves comprehensive adsorption (both physical and chemical adsorption Fig. 14). Hence, MS corrosion inhibition in HCl media takes place via (a) electrostatic pure interaction existing between the ES extract molecules and MS metal or (b) transfer or sharing of electrons from ES to the MS surface in 3 M HCl media.

Fig. 14
figure 14

Proposed mechanism of MS corrosion inhibition in 3 M HCl solution

ES extract contains electron-rich species which possess electrons and lone-pair electrons in their moiety. The ES extract species exist as protonated species in a hydrochloric acid environment as follows:

$${\text{ESE}} + x{\text{H}} \leftrightarrow [{\text{ESE}} - {\text{H}}_{x} ]^{x + }$$

The ES extract components expected to adsorb on MS-HCl system interface by the following routes:

  1. 1.

    The protonated organic species of ESE adsorbed via electrostatic force of attractions with the positively charged MS surface by using the Cl- ions which are attached to MS surface as negative species. After that, electrostatic interaction takes place between the electron-rich species of ES extract and d-orbital of MS surface, which leads to MS-inhibitor complexes as follows:

    $$\begin{aligned} & {\text{Fe}} \to {\text{ Fe}}^{2 + } + 2e^{ - } \\ & [{\text{ESE}} - {\text{H}}_{x} ]^{x + } + {\text{Fe}}^{2 + } \to [{\text{ESE}} - {\text{H}}_{x} - {\text{Fe}}]^{(2 + x) + } \\ \end{aligned}$$
  2. 2.

    Neutral ligand species of ES extract adsorbed over MS surface through chemical bond mode, which involves displacement of H2O species from the surface of MS. The ES extract species adsorbed over the MS surface by donor–acceptor interactions in between the electron-rich species and vacant d-orbitals of iron. The donor (ESE)-acceptor (Fe2+) interactions can be represented as follows:

    $${\text{Fe}} \cdot {\text{H}}_{2} {\text{O}}_{{({\text{ads}})}} {\text{ + ESE}} \to {\text{Fe}} \cdot {\text{ESE}}_{{({\text{ads}})}} + {\text{H}}_{2} {\text{O}}$$

The presence of ES extract in 100 ml of 3 M HCl solution enhances the surface coverage of MS and hence there by high corrosion inhibition efficiency.

Comparison

The observed results from this investigation are reported in Table 11 for comparison purposes. It is observed from Table 11 that protection efficiency from weight loss technique is slightly different from the Tafel plot, impedance, and atomic absorption spectroscopy techniques. Weight loss method gives average corrosion inhibition efficiency values and the Tafel plot, impedance, and atomic absorption spectroscopy give instantaneous protection efficiency value. This is the main reason for the observed deviation in protection efficiency values. The high protection efficiency of ES extract is due to presence of π electrons, hydroxyl, and carbonyl groups in their organic species. ES extract compared with other natural inhibitors, and it is shown in Table 12.

Table 11 Protection efficiency comparison obtained from different techniques
Table 12 Comparison of ES extract with other plant extract species

Conclusions

In our investigation the following conclusion can be drawn,

  1. (a)

    Chemical weight loss studies show that ES extract acts as a green corrosion inhibitor for MS in 3 M HCl system and shows robust corrosion protection.

  2. (b)

    Adsorption of ES extract on the MS surface in 3M HCl solution obeys the Langmuir isotherm model.

  3. (c)

    Polarization study shows that the shift in corrosion potential value is less than 85 mv, hence, green ES extract acts as a mixed type in 3 M HCl solution by deactivating both the anodic and cathodic sites.

  4. (d)

    Impedance studies confirm the adsorption property of the inhibitor and inhibit the MS disintegration process by charge transfer phenomena.

  5. (e)

    Mathematical and quantum chemical results were in good agreement with the chemical and electrochemical results.