1 Introduction

Corrosion is a surface phenomenon which occurs naturally when metals have a tendency to revert to their stable nature. Corrosion can be monitored by inhibitors which mainly contain in their bulk structure some of heteroatoms which help in diminishing the rate of corrosion based on their strength, nature of the metal and the corrosive solution surrounding the metal, taking into consideration environmental protection. Previously, organic inhibitors were utilized but it was found that they were toxic to humans and microorganisms meaning they were not eco-friendly, so it became very necessary to research and develop corrosives to find very good inhibitors, which have availability, low cost, non-toxic, and can diminish the corrosion rate, by studying the features of the adsorbents and checking them by surface scanning and confirming their protection ability. Because aluminum is easily corroded by the atmosphere, its corrosion potential is high (= − 1.66 V) and forms as a thin layer on its surface. As a hindrance towards destruction, we want to insulate its surface from any damage, helping to preserve its features and using time and money to repair aluminum objects. In our study, we have focused our attention on plant extracts as a natural source [1,2,3,4,5,6,7,8,9,10], due to their effectiveness in inhibiting corrosion of different metals and because they are a rich source of ingredients which help to diminish the corrosion of metals which is a major industrial problem. Moreover, we have studied iwhether or not there is a biological effect, paying attention to the environment of the metal, as hydrochloric acid, which has been chosen due to it being considered as a pickling liquid which removes scales and impurities, and is used in refining metals and cleaning [8,9,10,11,12,13]. In the present research, the corrosive solution is 1 M hydrochloric due to it being the most utilized industrial corrosive medium. Hydrochloric acid reacts with Al and vigorously liberates H2 gas indicating the dissolution of the Al as ween by the naked eye. The choice of Al as the studied metal is due to it having many applications in the varied aspects of life and industry. Al has four main uses: (1) in general products (beverages, packaging food, trays, foils, refrigerators, toasters, smartphones, labtops) [14] due to it being a good conductor [15] of heat, helping in keeping electronic devices from overheating; (2) transportation, being used by NASA spacecraft due to its light weight and strength under pressure; (3) in electrical products (satellite dishes, sound systems), due to its high corrosion resistance [16, 17]; and (4) architecture (in banks and aquatic centers) due to its strong, flexible, and docile properties. The aim of this research is to examine the influence of Cerumium rubrum extract (CRE) on Al corrosion using gravimetric, potentiometric polarization (PP), electrochemical impedance spectroscopy (EIS) and electrochemical frequency modulation (EFM) methods. The surface analysis of Al was performed using atomic force microscope (AFM) and attenuated total refraction infra-red (ATR-IR).

2 Materials and Methods

2.1 Al Specimen Design

Al samples for the chemical methods and surface analysis utilized in this investigation were in the shape of squares, cut by a wire machine to avoid dissimilar angles and distortion of the lattice structure resulting from other utilized methods, with 20 mm length, 20 mm width and 0.2 cm high with a purity of 99.9%. The working electrode for the electrochemical corrosives had a magnitude of 1 × 1 cm2 and was welded with copper wire, enclosed by a glass rod utilizing epoxy, then left for 24 h for good cohesion. The samples were mechanically abraded by various grades of silicon carbide sheets (320–1200) until having the appearance of a mirror, then washed with double-distilled water, and wiped with acetone.

2.2 Experimental Solutions Preparation

The corrosive solution was 1 M of 37% HCl prepared by dilution with double-distilled water and titrated against 1 M Na2CO3. Solutions with or without various doses of CRE stock from 50 to 300 ppm were freshly prepared.

2.3 CRE Procedure

The dehydrated plant was ground into tiny parts of 5 to 10 mm with a cylindrical grinder and extraction occurred utilizing doubled-distilled water. Then, 0.1 kg of the dehydrated plant was added to 250 ml of double-distilled water at 353 K for half an hour, then kept for 24 h and water-filtered by a filter paper utilizing a glass funnel, diluted to 1000 ml by doubled-distilled water and finally preserved in a cooling system in a glass flask closed with a plastic cover [18]

2.4 Chemical Constituents Found in the (CRE) Plant

CRE belongs to the Ceramiaceae family; Cerumium is a genus of red algae (or Rhodophyta). It is a large genus with a minimum 15 species in the British Isles. It has been found that the principal constituents are phytol (44.7%) and palmitic acid (25.8%) [19]. In other research, it was found that palmitic acid was the principal fatty acid, and it was estimated that the total acid content was 57.90% and that saturated fatty acids were the major constituents as shown in Table 1 (71.61% ± 3.08%). The total of monounsaturated fatty acids have a ratio from 8.05 to 12.12%, while the total of polyunsaturated fatty acid was 16.28–29.37% [20]. The following components have been found: loss on drying 11.01%, ash 13.83%, organic substance 75.16%, total nitrogen 3.19%, proteins 19.94%, lipids 3.43%, carbohydrates 51.90%, and beta-carotene in liposoluble substances 0.2199 (mg/100 g) [21]. It has been observed that there were contents of 4.95 mg/kg Pb, 0.206 mg/kg Cd, 5.43 mg/kg Cu, and 5.51 mg/kg Zn [22].

Part Use

The numerous species of red algae show antimicrobial, antibacterial, and antifungal activity [19], and generate a superior agar. Ceramium rubrum is unique in having strong antibiotic characteristics over Gram-positive bacteria, e.g., Bacillus subtilis, but no inhibitory effect has been demonstrated against Gram-negative bacteria. There is also high anti-oxidant activity [22].

Table 1 List of the major phytochemical constituents in CRE

2.5 Gravimetric Estimations (Weight Loss, WL)

The utilized samples in WL had dimensions of 20 mm × 20 mm × 0.2 cm. The samples were abraded one after another with various successions of emery sheets of dissimilar grades from 320 to 1200 grade, dry-cleaned with acetone, and air-dried. The WL corrosive was added in 100 ml 1 M HCl mixtures with and without various doses of the CRE. The ratios of dissolution were assessed utilizing the equation [23]:

$$\left( {CR} \right) = {{\Delta m} \mathord{\left/ {\vphantom {{\Delta m} {st}}} \right. \kern-\nulldelimiterspace} {st}}$$
(1)

The reduction of the weight is indicated as ∆m, the surface area of the samples exposed to the solution in cm2 as s, and the dipping time as t. The inhibition efficiency or (protection quality), %IE, and surface coverage, θ, were assessed utilizing the equation:

$$\% {\text{IE}} = \theta \, \times 100 \, = \, 1 - \left[ {{{{\text{CR}}_{{{\text{inh}}}} } \mathord{\left/ {\vphantom {{{\text{CR}}_{{{\text{inh}}}} } {{\text{CR}}_{{{\text{corr}}}} }}} \right. \kern-\nulldelimiterspace} {{\text{CR}}_{{{\text{corr}}}} }}} \right] \, \times 100$$
(2)

The dissolution ratios of Al with and without CRE are shown as CRinh and CRcorr.

2.6 Hydrogen Evolution Method

The same Al samples utilized for the gravimetric method were utilized for the H2 evolution method. Before the corrosive performance, the Al samples were abraded with the selected levels of emery papers beginning from roughest to finest, then treated with acetone and air-dried. The samples were dipped in a 100-ml closed bottle including the prepared solution. H2 gas evolved and was collected through a tube connected to a gas burette standing in a beaker filled with water, as reported before [24]. The shift of the volume was caused by air compression. This allowed the estimation of the volume of gas evolved as a function of time. The H2-evolution was performed with and without the presence of the various doses of the extract. RB (rate without extract) is \(V_{{{\text{H}}_{2} }}\) evolution divided by the corresponding time and RE (rate with extract) is the difference in \(V_{{{\text{H}}_{2} }}\) without inhibitor and \(V_{{{\text{H}}_{2} }}\) with extract divided by the corresponding time [25]. The (%IE) was computed utilizing the equation:

$$\% {\text{IE}} = {{\left[ {R_{{\text{B}}} - R_{{\text{E}}} } \right]} \mathord{\left/ {\vphantom {{\left[ {R_{{\text{B}}} - R_{{\text{E}}} } \right]} {\left[ {R_{{\text{B}}} } \right]}}} \right. \kern-\nulldelimiterspace} {\left[ {R_{{\text{B}}} } \right]}} \times {100}$$
(3)

2.7 Acidification Method

The pH was checked for the six doses of 50, 100, 150, 200, 250 and 300 ppm pre- and post-dipping in the checked solution for 3 h.

The hydrogen ion (H+) was calculated in each case utilizing the following equation:

$${\text{pH}} = {\log}\left[ {\text{H }} \right]$$
(4)

2.7.1 Corrosion Rate

The corrosion rate (CR) of the Al samples was calculated utilizing Eq. 5:

$${\text{CR}}\,\left( {{\text{mol}}\,{\text{dm}}^{{ - {3}}} \,{\text{cm}}^{{ - {2}}} \,{\text{h}}^{{ - {1}}} } \right)\, = \,{{\left[ {\Delta {\text{H}}^{ + } } \right]} \mathord{\left/ {\vphantom {{\left[ {\Delta {\text{H}}^{ + } } \right]} {At}}} \right. \kern-\nulldelimiterspace} {At}}$$
(5)

where [∆H+] is the difference between the initial and final concentrations of H+, A is the surface area of the sample in cm2 and t the time in hours.

2.7.2 Inhibition Efficiency and Surface Coverage (θ)

The IE was evaluated using utilizing Eq. 6 [26]:

$$\% {\text{IE}} = \theta \times {1}00 = \left\{ {{{1 - \left[ {\Delta {\text{H}}^{ + } } \right]_{{{\text{inh}}}} } \mathord{\left/ {\vphantom {{1 - \left[ {\Delta {\text{H}}^{ + } } \right]_{{{\text{inh}}}} } {\left[ {\Delta {\text{H}}^{ + } } \right]_{{{\text{uninh}}}} }}} \right. \kern-\nulldelimiterspace} {\left[ {\Delta {\text{H}}^{ + } } \right]_{{{\text{uninh}}}} }}} \right\} \times 100$$
(6)

where [∆H+]inh and [∆H+]uninh are changes in [H+] with and without the extract, respectively.

2.8 Potentiodynamic Polarization (PP) Method

Corrosives were achieved in a classic three-electrode cell utilizing a counter electrode, a reference electrode and a working electrode. The working electrode was made from the same Al sheet used in the chemical method, the area of the exposed surface positions was 1 cm2, and before any corrosive, the electrode surface was treated in the same procedure as in the gravimetric method. Then, the electrode was dipped in the corrosive solution at the open-circuit potential (OCP) for ½ h until a steady state was obtained. Computations were taken as a function of current densities, the %IE for each dose of the CRE was estimated using the equation [27]:

$$\% {\text{IE}} = \theta \times 100 = 1\_\left[ {{{i_{{{\text{inh}}}} } \mathord{\left/ {\vphantom {{i_{{{\text{inh}}}} } {i_{{{\text{corr}}}} }}} \right. \kern-\nulldelimiterspace} {i_{{{\text{corr}}}} }}} \right] \times {100}$$
(7)

Here, icorr and iinh are the dissolution current densities estimated from Tafel slopes without and with CRE doses.

2.9 Alternating Current Impedance Spectra (EIS) Method

The EIS was processed utilizing the same cell order as mentioned before in PP. EIS estimations were proved by utilizing AC signals with an amplitude of 10 mV peaks at the OCP in the frequency range of 100 kHz to 0.1 Hz. All the impedance results conformed to the convenient equivalent circuit utilizing the software of Gamry Echem Analyst, and the protection quality, %IE, was taken as a function of the estimated Rct [28].

2.10 Electrochemical Frequency Modulation (EFM) Method

Stratifying signals with amplitude 10 mV to 2 and 5 Hz is the way to proceed with the EFM method which is considered as a quick, non-ruinous and dependable electrochemical method. The current density, (icorr), the Tafel slopes, (βc) and βa), and the causality factors, (CF-2 and CF-3), can be immediately estimated from the higher peaks [29]. The apparatus utilized in EFM examinations was the Gamry Potentiostat/Galvanostat/ZRA (PCI4-G750). Gamry software comprises DC105 software for DC corrosion, EIS300 software for electrochemical impedance spectroscopy, and EFM140 for electrochemical frequency modulation estimations, as well as a computer for data collection. Echem analyst version 5.5 software was utilized for scheming, figuring and fitting the data.

2.11 Surface Inspection

2.11.1 ATR-FTIR and UV/Visible Spectral Analysis

ATR-FTIR determination gives a qualitative characterization to the extract adsorption on the Al surface [30]. The Al coupons inserted in the corrosive solution within 24 h post-dipping duration with and without the CRE were inspected by a Thermo Fisher Scientific IS-10 FT-IR and ATR, in order to examine the features of the film covering the surface of the samples. The corrosive solution containing CRE after insertion of the Al samples for 24 h was measured on a PG UV/VIS Spectrophotometer T80+; pure CRE was also treated by the same apparatus.

2.11.2 AFM Analysis

The AFM technique was used to investigate the morphological characteristics of the Al surface in the corrosive solution without and with CRE. The coupons of Al were treated like the gravimetric method and inserted in the corrosive solution without and with 300 ppm of the CRE for 24 h at 298 K. After this time, the coupons were removed, carefully rinsed with double-distilled water and dried by filter paper [31]. Then, the surface examination was investigated utilizing AFM performed in contact mode utilizing a silicon nitride probe (model MLCT; Bruker). Proscan 1.8 software was used to control the scan parameters and IP 2.1 software for image analysis. Scan parameters: scan area: − 10 × 10 µm2, scan rate: 1 Hz. Number of data points: the measured area divided into 256 lines and every line divided into 256 points. The scanned area was 2 µm per division, and as there are 5 divisions, so it equals 10 × 10 µm2.

2.12 Assessment the Inhibition of CRE Against Microbial Growth

The CRE was examined for inhibitory action against the bacterial growth of the total bacteria present in the cooling tower of the ammonia plant at the Talkha factory for fertilizers by performing the spore suspension method. The bacteria were cultivated in a plate over nutrient agar, then after growth, several swabs were taken and multiplied in a 1-l measuring flask containing double-distilled water. This was then left for 1:3/2 h before cultivation before pouring from it into a 100-ml flask containing 10 ml of HCl and 30 ml of CRE, then filling it to 100 ml. It was then left it for ½–1 h. before 2 ml was taken from the solution by syringe and poured over freshly prepared agar solution in several plates and waiting for a maximum of 2 days. All the plates were incubated at 310 K then the colonies were counted using a UVP colony DOC-It apparatus. The plate containing the CRE showed good resistance to the total bacteria, and the same was carried out for pure CRE only and gave the same outcome, which means that the CRE is resistant for this bacteria and for the bare solution.

3 Results

3.1 Weight Loss (WL) Estimations

Weight Loss (WL) of the Al samples was registered periodically, at 30, 60, 90, 120, 150 and 180 min at separate temperatures, 298, 303, 308, 313 and 318 K; the WL graph at 298 K is shown in Fig. 1. The %IEs at various temperatures are set out in Table 2. The impact of temperature on %IE is shown in Fig. 2. The results indicate that the insertion of CRE diminishes the Al ratios of dissolution in 1 M HCl solution. The %IE was monitored and increased with the increase of the dose of plant extract, as seen in Table 2. This referred to the adsorption of extract particles on the Al surface. These adsorbents diminish the Al destruction by passivation of the corrosion sites as the dose of the extract increases, so increasing the quality.

Fig. 1
figure 1

Weight loss against time for Al in 1 M HCl (corrosive solution) with and without various doses of CRE at 298 K

Table 2 Effect of addition of various doses of CRE on the (ϴ) and (%IE) at different temperatures
Fig. 2
figure 2

Effect of temperature on %IE utilizing different doses of CRE on the Al surface in 1 M HCl (corrosive solution)

3.1.1 Adsorption Isotherms

The implementation of adsorption isotherms was estimated to focus on whether the adsorption behavior is chemical or physical [32]. The estimates of θ were gained from the WL method and is a function of CRE doses which were then graphed to fit the most appropriate form of adsorption to compute the adsorption isotherms [33]. To identify the adsorption model, various isotherms were tried (Frumkin, Langmuir, Temkin, Freundlich). The Langmuir adsorption isotherm (Fig. 3) proved the best, and provides a straight-line graph for the scheme of C/ against C [11]:

$${C \mathord{\left/ {\vphantom {C {\theta = {1 \mathord{\left/ {\vphantom {1 {K + C}}} \right. \kern-\nulldelimiterspace} {K + C}}}}} \right. \kern-\nulldelimiterspace} {\theta = {1 \mathord{\left/ {\vphantom {1 {K + C}}} \right. \kern-\nulldelimiterspace} {K + C}}}}$$
(8)

where the doses of the extract are expressed as C, and the adsorptive equilibrium constant is Kads which can be computed from the intercept of the variation between the C/ and C in Fig. 3 (θ = IE/100). The relationship between Kads and standard free energy expressed as \(\left( {\Delta G_{{{\text{ads}}}}^{ \circ } } \right)\), can be estimated from Eq. 7, while Fig. 4 explains the variation between log Kads and 1/T. The slope of this line indicates the value of \(\Delta H_{{{\text{ads}}}}^{ \circ }\) by implementing in Eq. 9

$$K_{{{\text{ads}}}} = 1/55.5\exp {{\left[ { - \Delta G_{{{\text{ads}}}}^{ \circ } } \right]} \mathord{\left/ {\vphantom {{\left[ { - \Delta G_{{{\text{ads}}}}^{ \circ } } \right]} {RT}}} \right. \kern-\nulldelimiterspace} {RT}}$$
(9)

where R is the universal gas constant, T is the absolute temperature and 55.5 is the molar concentration of water in M−1.

Fig. 3
figure 3

Langmuir adsorption graph for Al in 1 M HCl (corrosive solution) including different doses of CRE at various temperatures in the range 298–318 K

Fig. 4
figure 4

Plot of (log Kads) against (1000/T) for the dissolution of Al in 1 M HCl (corrosive solution) + 300 ppm CRE

The Vant’t Hoff equation can be utilized to compute \(\Delta H_{{{\text{ads}}}}^{ \circ }\)

$$\log K_{{{\text{ads}}}} = {{\Delta H_{{{\text{ads}}}}^{ \circ } } \mathord{\left/ {\vphantom {{\Delta H_{{{\text{ads}}}}^{ \circ } } {2.303RT + {\text{Constant}}}}} \right. \kern-\nulldelimiterspace} {2.303RT + {\text{Constant}}}}$$
(10)

The plot of \(\Delta G_{{{\text{ads}}}}^{ \circ }\) versus T is shown in Fig. 5 and is as reported by the thermodynamic basic Eq. 11

Fig. 5
figure 5

Plot of \(\Delta G_{{{\text{ads}}}}^{ \circ }\) versus T for the adsorption of 300 ppm CRE on the Al surface in 1 M HCl (corrosive solution) at different temperatures

The slope equal to \(\Delta S_{{{\text{ads}}}}^{ \circ }\) can be computed:

$$\Delta G_{{{\text{ads}}}}^{ \circ } = \Delta H_{{{\text{ads}}}}^{ \circ } - T\Delta S_{{{\text{ads}}}}^{ \circ }$$
(11)

The negative value of \(\Delta G_{{{\text{ads}}}}^{ \circ }\) refers to the spontaneous adsorption of the extract particles on the surface of the Al. Hence, the value of \(\Delta G_{{{\text{ads}}}}^{ \circ }\) ranged from 37.98 to 41.3 kJ mol−1 (Table 3), assisting the suggested chemisorption mechanism. \(\Delta G_{{{\text{ads}}}}^{ \circ }\) value up to − 20 kJ mol−1 is coherent with physisorption mechanism while that more negative than − 40 kJ mol−1 assigns chemisorption mechanism [34]. The experimental data fits the utilized adsorption isotherm as the correlation coefficients (R2) close to 1. The K values raises with raising in temperature Table 3. K value points to the strength between adsorbent and adsorbate [35], its ranges raises with raising temperature, and this confirms the chemical mechanism. An exothermic adsorption process \(\left( {\Delta H_{{{\text{ads}}}}^{ \circ } < \, 0} \right)\) may include either physical adsorption or chemical adsorption or a combination of them, while endothermic process is typical to chemical adsorption. The exothermic adsorption matched from the elucidation of the negative and large estimates of the entropy change \(\left( {\Delta S_{{{\text{ads}}}}^{^\circ } } \right)\) in the presence of the considered extract is endothermic \(\left( {\Delta S_{{{\text{ads}}}}^{^\circ } > 0} \right)\).

Table 3 Adsorption parameters of CRE for the Al surface in 1 M HCl (corrosive solution) generated from the Langmuir adsorption isotherm at different temperatures

3.1.2 Effect of Temperature (Kinetic–Thermodynamic Parameters)

At various temperatures from 298 to 318 K in the presence of various dosages of CRE, the WL method was achieved. It was found that the rise in temperature is α with CR increasing. In Table 2, the CR of Al without CRE increased sharply from 298 to 318 K, while with CRE it was observed to diminish leading to an increase in IE%. The activation parameters without and with CRE in the temperature range of 298–318 K is shown in Table 4.

Table 4 Kinetic-thermodynamic parameters for Al dissolution with and without different doses of CRE with the 1 M HCl (corrosive solution)

The activation energy \(\left( {E_{a}^{*} } \right)\) for Al in 1 M HCl was computed from the slope of the graph (Fig. 6) by utilizing the Arrhenius equation:

$$\log k = {{ - E_{a}^{*} } \mathord{\left/ {\vphantom {{ - E_{a}^{*} } {2.303RT + \log A}}} \right. \kern-\nulldelimiterspace} {2.303RT + \log A}}$$
(12)

where k expresses the rate of dissolution, \(E_{a}^{*}\) expresses the activation energy, R expresses the universal gas constant, T the absolute temperature and A the Arrhenius pre-exponential factor [36]. The estimates of change in entropy (ΔS*) and change in enthalpy (ΔH*) can be computed by utilizing the equation (Fig. 7):

$$k_{{{\text{corr}}}} = \left[ {{{RT} \mathord{\left/ {\vphantom {{RT} {Nh{\exp}\left( {{{\Delta S^{*} } \mathord{\left/ {\vphantom {{\Delta S^{*} } R}} \right. \kern-\nulldelimiterspace} R}} \right){\exp}\left( {{{ - \Delta H^{*} } \mathord{\left/ {\vphantom {{ - \Delta H^{*} } {RT}}} \right. \kern-\nulldelimiterspace} {RT}}} \right)}}} \right. \kern-\nulldelimiterspace} {Nh{\exp}\left( {{{\Delta S^{*} } \mathord{\left/ {\vphantom {{\Delta S^{*} } R}} \right. \kern-\nulldelimiterspace} R}} \right){\exp}\left( {{{ - \Delta H^{*} } \mathord{\left/ {\vphantom {{ - \Delta H^{*} } {RT}}} \right. \kern-\nulldelimiterspace} {RT}}} \right)}}} \right]$$
(13)

where k expresses the dissolution rate, h the Planck’s constant, N the Avogadro number, ΔS* the entropy of activation and ΔH* the enthalpy of activation. The negative values of ΔS* for the CRE infer that the activated complex in the rate-determining step indicates an association instead of dissociation step, signifying that a lack in disorder occurs starting from the reactants to the activated complex [37]. The negative sign of ΔH* confirms the exothermic feature of the dissolution process. In general, an exothermic process detects either physical adsorption or chemical adsorption.

Fig. 6
figure 6

Arrhenius graph for dissolution rates (kcorr) of Al in 1 M HCl (corrosive solution) with and without various doses of CRE

Fig. 7
figure 7

Plot of log (kcorr/T) against (1000/T) of Al in 1 M HCl (corrosive solution) with and without different doses of CRE

3.2 Hydrogen Evolution Method

Figure 8 shows that there is a linear relationship between the volume of evolved H2 gas and time. The average of evolved H2 gas is limited at the start of the reaction then increases significantly with time. Due to Al being soluble in acidic aqueous medium with the release of hydrogen gas, the amounts of released hydrogen gas are based on the Al dissolution rate which is measured from the slope of the curve in the presence and absence of the inhibited acid solution. Adding CRE limits the rate of evolved H2 gas with increasing doses. The estimates of %IE of various doses of CRE are summarized in Table 5 [25].

Fig. 8
figure 8

Variation of the volume of H2 gas evolved versus time for Al dissolution in 1 M HCl (corrosive solution) with and without different doses of CRE at 298 K

Table 5 Computed values of CR and %IE for Al dissolution in 1 M HCl (corrosive solution) including CRE at 298 K from the H2 evolution method at 120 min

3.3 Acidification Method

In this acidimetric method, the corrosion reaction of the metal was monitored as a function of the change of [H+] in the acid solution. The equation for the corrosion of Al metal in dilute HCl solution can be represented thus:

$${\text{Fe }} + {\text{2HCl }} = = = {\text{ FeCl}}_{{2}} + {\text{ H}}_{{2}}$$
(14)

The H2 may dissolve and affect the measured value of the pH. It must, however, be considered that factors which affect the acidity of a salt solution are mainly size, charge density of the cation, and the nature of the solution. Ions of small size and high charge easily hydrolyse to yield considerable amounts of H+ in aqueous solution to affect acidity, with Fe3+ and Al3+ being good examples [38]. The aqueous solution of AlCl3 in acidic medium is always clear because the hydrolysis of AlCl3 will not be significant enough to alter the H+ level to make the results unreliable. Also, in an acidic solution like this medium, the equilibrium in Eq. (15) shifts more to the left-hand side and therefore the [H+] will be significantly low.

$${\text{Al}}^{{{3} + }} + {\text{ HOH }} = = = = \, \left[ {\text{Al OH}} \right]^{{{2} + }} + {\text{ H}}^{ + }$$
(15)

This is why an aqueous solution of AlCl3 in acidic medium is always clear. The corrosion rate as observed, i.e. [H+] (Table 6), decreased with the increase in the concentration of the extract and hence the increase in %IE. This is a clear propensity of inhibitive action of the extract for the corrosion of the Al sample in the acid medium [39]. The same trend was observed in the case of the gravimetric method (Table 2). These two techniques gave very comparable results of (%IE). This suggests that the acidimetric technique can be conveniently adopted for corrosion inhibition evaluation. However, values obtained through the acidimetric technique are slightly higher than those of the gravimetric technique. As earlier pointed out, the possibilities of the introduction of errors into the results are greater in the gravimetric technique than in the acidimetric method.

Table 6 Values of %IE for the acidimetric method for CRE at 298 K

3.4 Tafel Extrapolation Curves

Tafel extrapolation curves for the corrosion of Al were studied to examine the type of the inhibitor. The dissolution rate and dissolution current density (icorr) of Al in the bare solution diminishes by adding CRE. The presence of the CRE raises both the cathodic and anodic overvoltages and raises the shift in their values to the more negative and positive. The analogous cathodic and anodic Tafel curves in Fig. 9 confirm that the reduction and dissolution mechanisms experienced no change in the presence of CRE [40]. Thus, it can be deduced that CRE is considered as mixed-type inhibitor adsorbed on the cathodic locations of Al and which diminishes the evolution of hydrogen gas. Further, the molecules of CRE adsorbed on anodic locations diminish the anodic dissolution of Al [41]. Values of Ecorr slightly shift in a trend of less negative. Tafel slopes do not change and the Ecorr shift is less than 85 mV, confirming mixed-type inhibitor (Table 7).

Fig. 9
figure 9

Tafel extrapolation curves for the dissolution of Al in 1 M HCl (corrosive solution) with and without different doses of CRE at 298 K

Table 7 Effect of CRE doses on the electrochemical dissolution parameters of Al in 1 M HCl (corrosive solution) at 298 K

3.5 EIS Tests

EIS is a non-ruinous technique on the interface between the electrode and the corrosive solution. The protection quality (%IE) can be computed by Rct due to the formation of the protective layer on the Al surface. Among its advantages is an ability to compute Rct and Cdl by utilizing the amplitude to decrease the error of the measurements. This is an Impedance technique and the resistance increases by increasing the dose of CRE, Impedance is the power of measuring the resistance of a circle to the current flow. Impedance estimates occur by implementing the AC potential and quantifying the current passed within the cell. Rct can be measured from the Bode plots by taking a tangent to the Y-axis at high frequency (Rct + RS) and taking a tangent for the X-axis at low frequency (Rct) and subtracting from each other, resulting in Rct. %IE can be computed from the equation:

$$\% {\text{IE}} = \left[ {{1} - \left( {R^{\prime}_{{{\text{ct}}}} /R_{{{\text{ct}}}} } \right)} \right] \times {1}00$$
(16)

Then \(R^{\prime}_{{{\text{ct}}}}\)and Rct are the charge transfer resistances of 1 M HCl (corrosive solution) and CRE, respectively.

The Nyquist plot, Cdl, which is the relationship between Zimag and Zreal, can be estimated by computing Rct, which is the diameter of the high-frequency loop and, owing to Cdl, is inversely proportional to the Rct; Cdl can be computed from the equation:

$$C_{{{\text{dl}}}} = \frac{1}{{2\pi \, f_{\max } \, R_{{{\text{ct}}}} }}$$
(17)

Nyquist impedance Fig. 10 spectra do not exhibit ideal semicircles [42] due to Cdl roughness and the electrode surface heterogeneity. Rct increases by increasing the dose of the examined CRE, so that there is a decline in the dissolution rate. Cdl values diminish with the CRE dose increasing, which is associated with the progressive replacement of water molecules in the double layer by the adsorbed extract particles, diminishing the dielectric constant of the metal solution interface, increasing the thickness of the double layer and diminishing the trend of the dissolution reaction [43]. The experimental data of Nyquist graphs can be determined by using the circuit in Fig. 11, in which Rct represents the charge-transfer resistance, Rs represents the electrolyte resistance and the constant phase element. The inhibition behavior of the inhibitor resulting from other procedures was confirmed by the impedance data (Table 8).

Fig. 10
figure 10

EIS Nyquist plots (a) and Bode plots (b) of Al in 1 M HCl (corrosive solution) with and without different doses of CRE at 298 K

Fig. 11
figure 11

Electrical equivalent circuit model used to fit the results of impedance

Table 8 EIS parameters for the dissolution of Al in 1 M HCl (corrosive solution) with and without different doses of CRE at 298 K

3.6 EFM Tests

EFM is a rapid and non-ruinous technique, which draws a relationship between current and frequency without knowing the Tafel constants (Fig. 12). It gives information about (icorr) immediately, thus differing from the polarization technique. The height [44] of the peaks is a measure for (icorr) and which is a measure of protection quality %IE. In this technique, frequency is implemented and (icorr) is measured. EFM is a non-linear response at which (icorr) diminishes in going towards doses of CRE, owing to (icorr) being the current resulting from dissolution and so in the case of CRE should have small values. In this technique, we insert a current higher than what should be inserted due to not needing to make the polarization in Table 9 change slightly confirming that CRE is a mixed-type inhibitor. Causality factors [45] (CF-2 and CF-3) make internal checks on the validity of the estimates, and their values of around 2 and 3 are evidence for the validity of the results. The electrochemical parameters were detected and are set out in Table 9.

Fig. 12
figure 12

EFM spectra of Al dipped in solutions of 1 M HCl (corrosive solution) treated with different doses of CRE at 298 K

Table 9 EFM data for the dissolution of Al in 1 M HCl (corrosive solution) containing different doses of CRE at 298 K

3.7 ATR-FTIR and UV/Visible Spectral Analysis

Figure 13 shows the relevant ATR-FTIR spectra.

Fig. 13
figure 13

a Al ATR-FTIR spectra after dipping in 1 M HCl (corrosive solution) + 300 ppm of CRE, b pure CRE before immersion

3.7.1 ART-IR Analysis

This analysis shows that there are two peaks, at 641 cm−1 and 677 cm−1, referring to the SO42− group, a peak at 710 cm−1 referring to skeletal C–C vibrations, a peak at 986 cm−1 referring to vinyl (=C–H)/aromatic C–H in plane bend, a peak at 1105 cm−1 referring to C–C of alkane/C=S thio carbonyl, a peak at 1227 cm−1 referring to sulfate ester (C–O stretch), a peak at 1398 cm−1 referring to carboxylic acid salt/phenol//tertiary alcohol///ammonium ions, a peak at 1644 cm−1 referring to alkene (C=C)/(C–O) of amide CONH2//conjugated ketone, a peak at 2071 cm−1 referring to the isothiocyanate (–NCS group)/cumulated system (C=C=O)//transition metal carbonyl, a peak at 2812 cm−1 referring to the C–H stretch, two peaks at 3239 cm−1 and 3523 cm−1 referring to alcoholic O–H, and a very weak peak at 3804 cm−1 referring to the crystallization of water [46, 47].

3.7.2 ATR-IR Analysis

This analysis shows a shift of (C=C)/(C–O) of the amide//conjugated ketone from 1644 to 1650 cm−1, a shift of alcoholic O–H from 3239 and 3523 to 3381 cm−1, confirming the adsorption of inhibitor molecules. There is a disappearance of peaks at 986 cm−1, 1105 cm−1, 1227 cm−1, 2071 cm−1, and 2812 cm−1, and three new bonds of the aromatic nitro group formed at 1520 cm−1,1541 cm−1, and 1558 cm−1 (N–O stretch) (Fig. 13).

3.7.3 UV Spectroscopy

Figure 14 shows the relevant UV/Vis spectra.

Fig. 14
figure 14

UV/visible spectra of CRE solution (a) and the corrosive solution containing CRE after immersion of Al coupons for 24 h (b)

3.7.3.1 Before Immersion

The value of 518 nm refers to the polyene system β-carotene, 274 nm to β-carotene (–C–CH=CH–C–)/NR2 polar group//tyrosine, and 218 nm to the peptide bond/R–S–R system//acyclic ketone///parent open chain or heteroannular diene or cyclo hexane [48].

3.7.3.2 After Immersion

The value 516 nm refers to the polyene system β-carotene, 308 nm to the phenyl structure benzenonitrile, 282 nm to the formation of –C=N–NH–C=S –NH2/aniline, 271 nm to the diene –NR2 polar group, 258 nm to guano sine/phenyl alanine C9H11NO2, and 239 nm to the R2S/peptide bond (R-HC-CONH-CH-R)//aniline 'protein///H2C = CH-CH2-CH=NOH////R– CO–NH–CO–R. There are five bands after immersion which means that new bands also formed demonstrating that IR results confirmed adsorption (Fig. 13).

3.8 AFM Studies

AFM provides images from which it is possible to compute the roughness of metal superficies. The three-dimensional and two-dimensional AFM micrographs for the Al surface in 1 M HCl (bare solution) with and without CRE are shown in Fig. 15, the data inferring that the Al surface dipped in 1 M HCl (bare solution) overnight is higher in surface roughness than the inhibited Al, which reveals that the Al sample is acutely deteriorated due to the corrosive medium. The average roughness of the protected Al was diminished to 437.2 nm (Table 10) and these parameters reveal that the surface is soft. The softness of the surface is due to the setting up of a condensed protective film of the CRE on the metal surface, hence protecting the Al surface deterioration.

Fig. 15
figure 15

Three-dimensional AFM images of the polished surface of Al dipped in 1 M HCl and in 1 M HCl containing 300 ppm of the extract

Table 10 AFM estimations for Al surface in the presence and absence of CRE

3.9 Biological Activity

The results of Table 11 show that CRE has a good impact against bacterial growth, so that the corrosion rate is diminished.

Table 11 Bacteria colonies cultivated in Petri dishes computed by the Doc-it colony counter device for blanks of bacteria compared with pure and 300 ppm of CRE

4 Conclusions

  1. 1.

    Cerumium rubrum (CRE) acts as good inhibitor to protect Al against dissolution in corrosive solutions.

  2. 2.

    The data collected from chemical methods (WL method, hydrogen evolution, acidification method) and electrochemical (potentiodynamic polarization, EIS, and EFM) techniques reveal that the protection quality relies on the dosage of the investigated CRE and the temperature of the corrosive solution, meaning that it increases with increasing CRE doses, and solution temperature

  3. 3.

    The adsorption of the inspected CRE on the Al surface in 1 M HCl (corrosive solution) matches the Langmuir adsorption isotherm

  4. 4.

    The thermodynamic parameters acquired by this research indicate that the activation energy diminishes in the presence of CRE and the negative values of \(\Delta G_{{{\text{ads}}}}^{ \circ }\) indicates that the adsorption is irreversible

  5. 5.

    Cdl diminishes with regard to the case of the free acid when the CRE is present in the corrosive solutions, which can be ascribed to the adsorbed molecules.

  6. 6.

    CRE molecules established a covering film through either the possibility of sharing free electrons on the hetero-atoms or π–electron interaction of the aromatic nucleus.