Experimental and Computational Exploration of Chitin, Pectin, and Amylopectin Polymers as Efficient Eco-Friendly Corrosion Inhibitors for Mild Steel in an Acidic Environment. Kinetic, Thermodynamic, and Mechanistic Aspects

Herein, the inhibition impacts of chitin, pectin, and amylopectin as carbohydrate polymers on the corrosion of mild steel in 0.5 M HCl were researched utilizing various experimental and theoretical tools. The acquired outcomes showed that the inhibition efficiencies (% IEs) of the tested carbohydrate polymers were increased by raising their concentrations and these biopolymers acting as mixed-kind inhibitors with major anodic ones. The acquired % IEs values were reduced with rising temperature. The higher % IEs of the tested polymers were inferred via powerful adsorption of the polymeric molecules on the steel surface and such adsorption obeyed the Langmuir isotherm. The computed thermodynamic and kinetic quantities confirmed the mechanism of physical adsorption. The kinetics and mechanisms of corrosion and its protection by polymeric compounds were illuminated. The results obtained from all the techniques used confirmed that there was good agreement with each other, and that the % of IEs followed the sequence: chitin > amylopectin > pectin.


Introduction
Corrosion inhibitors are recognized as common operative approaches for keeping the surfaces of metals protected against corrosive media aggressiveness [1][2][3][4][5]. Many kinds of chemical compounds have been assessed and utilized as corrosion inhibitors [6][7][8][9][10][11][12][13][14][15][16]. Carbohydrate polymers, a significant type of natural and biological polymer (biopolymers), are environmentally friendly, biodegradable, biocompatible, cheap, highly abundant, renewable, and can be simply modified to create materials with excellent properties. They show diverse structural characters regarding molecular weights, structures of monosaccharides, etc. These variations determine the functional properties of them. Chitin, poly(N-acetylglucosamine), is one of the most supreme, plentiful, natural biopolymers on Earth. It is biodegradable in the natural environment over time [17,18]. Chitin has several medicinal and industrial uses such as food processing and biotechnological applications [19]. Pectin is an acidic hetero-biopolymer that originates from natural plants. It is employed as a gelling and thickening agent in food, medicines, cosmetics, and in various

Materials
The HCl solution (corrosive medium) was made from Merck 37% HCl. The investigated biopolymers (inhibitors) in this exciting work were three significant carbohydrate polymers (Sigma-Aldrich), namely, chitin, pectin, and amylopectin ( Figure 1). Fresh solutions of the investigated inhibitors were made in double-distilled water, which were applied at concentrations of 100, 200, 300, 400, and 500 ppm (mg l −1 ). Most experiments were replicated 3 times in the same conditions to ensure the reproducibility of the results. Corrosion tests were carried out on mild-steel samples (Sabic Company, Saudi Arabia).

Techniques
Various experimental and theoretical tools were utilized to perform this work. The experimental tools were electrochemical (PDP and EIS), chemical (WL), and spectroscopic (SEM). The theoretical tools were density functional theory (DFT) calculations and molecular dynamic (MD) simulation studies.
PDP and EIS experiments were performed on a thermostated PGSTAT30 potentiostat-galvanostat. The utilized electrochemical cell was a three-electrode cell [2,3]. The working electrode (mild steel) was immersed in an inhibitor-free corrosive environment (HCl) and/or treated with the required inhibitor concentration until a firm potential was reached. In the PDP experiments, the potential of the working electrode was automatically reformed from −200 mV to +200 mV vs. open circuit potential (OCP) at a scan rate of 1.0 mV/s. Using AC signals at OCP, EIS experiments were performed with a frequency range of 100 kHz to 0.1 Hz and an amplitude of 4.0 mV from peak to peak.
WL was carried out using mild-steel rods with areas of about 14 cm 2 which were initially prepared before these experiments as reported earlier [2,3].
The surfaces of the examined mild-steel examples were imaged prior to and after insertion in the corrosive medium in absence and presence of a certain concentration of the tested carbohydrate polymers. This imaging was performed using a JEOL scanning electron microscope (SEM), model T-200, with a repetition voltage of 10.0 kV. Additionally, the mild-steel surfaces were prepared before imaging as mentioned elsewhere [2,3].
The density functional theory (DFT) supports the experimental results further (using the Gaussian 09 program and the B3LYP/6-31+G (d,p) basis set). The energies of the frontier molecular orbitals, or the highest occupied molecular orbital (EHOMO) and lowest unoccupied molecular orbital (ELUMO), as well as the dipole moment, were computed utilizing quantum chemical calculations for the examined carbohydrate polymers (Chi, Pec, and A-Pec).
The molecular dynamic (MD) simulation studies assess the interaction between the Fe(110) surface and the inhibitor molecules in the simulated corrosive medium using a 5atom-thick layer unit cell of the Fe(110) surface. These calculations were performed on a

Techniques
Various experimental and theoretical tools were utilized to perform this work. The experimental tools were electrochemical (PDP and EIS), chemical (WL), and spectroscopic (SEM). The theoretical tools were density functional theory (DFT) calculations and molecular dynamic (MD) simulation studies.
PDP and EIS experiments were performed on a thermostated PGSTAT30 potentiostatgalvanostat. The utilized electrochemical cell was a three-electrode cell [2,3]. The working electrode (mild steel) was immersed in an inhibitor-free corrosive environment (HCl) and/or treated with the required inhibitor concentration until a firm potential was reached. In the PDP experiments, the potential of the working electrode was automatically reformed from −200 mV to +200 mV vs. open circuit potential (OCP) at a scan rate of 1.0 mV/s. Using AC signals at OCP, EIS experiments were performed with a frequency range of 100 kHz to 0.1 Hz and an amplitude of 4.0 mV from peak to peak.
WL was carried out using mild-steel rods with areas of about 14 cm 2 which were initially prepared before these experiments as reported earlier [2,3].
The surfaces of the examined mild-steel examples were imaged prior to and after insertion in the corrosive medium in absence and presence of a certain concentration of the tested carbohydrate polymers. This imaging was performed using a JEOL scanning electron microscope (SEM), model T-200, with a repetition voltage of 10.0 kV. Additionally, the mild-steel surfaces were prepared before imaging as mentioned elsewhere [2,3].
The density functional theory (DFT) supports the experimental results further (using the Gaussian 09 program and the B3LYP/6-31+G (d,p) basis set). The energies of the frontier molecular orbitals, or the highest occupied molecular orbital (E HOMO ) and lowest unoccupied molecular orbital (E LUMO ), as well as the dipole moment, were computed utilizing quantum chemical calculations for the examined carbohydrate polymers (Chi, Pec, and A-Pec).
The molecular dynamic (MD) simulation studies assess the interaction between the Fe(110) surface and the inhibitor molecules in the simulated corrosive medium using a 5-atom-thick layer unit cell of the Fe(110) surface. These calculations were performed on a slab with a vacuum layer that was 20 Å × 28 Å with a 25 Å. This container holds 200 water molecules and 1 inhibitor molecule. Data from an MD simulation were obtained using the NVT at 298 K with a 1 fs time step and a 0.5 ns simulation period [40,41]. The temperature was changed using the Berendsen thermostat [42]. The COMPASS forcefield, which is extensively used in corrosion studies, was used in the MD simulation.  Figure 2 displays the plots of OCP versus time for mild steel in a stagnant 0.5 M HCl solution (corrosive medium) without and with numerous concentrations of amylopectin (as an illustrative example). The figure signifies that the potential of the mild-steel electrode (E OCP ) in the HCl solution moved towards the positive direction up to a time of about 30 min, after which the potential attained a steady state. This behavior indicates the dissolution of the initially air-constructed oxide film resulting in the attack of the metal surface [43]. However, with the addition of amylopectin (A-Pec), E OCP began with comparatively greater positive potentials than those in the absence of A-Pec, then moved towards lower positive potentials. The potentials of steady states in the presence of A-Pec were attained rapidly in comparison with the inhibitor-free solution. Additionally, by raising the inhibitor concentration, [A-Pec], the potential of the steady state shifted to a more positive value, suggesting a lower corrosion rate of mild steel and an improvement in the % IE [44]. Moreover, the positive (anodic) shifts in E OCP in the presence of A-Pec suggested that such a polymer might behave as an anodic inhibitor. However, because the obtained E OCP changes were less than +85 mV, the examined polymers can be considered as mixed-kind inhibitors with an anodic majority [45].

OCP Measurements
slab with a vacuum layer that was 20 Å × 28 Å with a 25 Å. This container holds 200 water molecules and 1 inhibitor molecule. Data from an MD simulation were obtained using the NVT at 298 K with a 1 fs time step and a 0.5 ns simulation period [40,41]. The temperature was changed using the Berendsen thermostat [42]. The COMPASS forcefield, which is extensively used in corrosion studies, was used in the MD simulation. Figure 2 displays the plots of OCP versus time for mild steel in a stagnant 0.5 M HCl solution (corrosive medium) without and with numerous concentrations of amylopectin (as an illustrative example). The figure signifies that the potential of the mild-steel electrode (EOCP) in the HCl solution moved towards the positive direction up to a time of about 30 min, after which the potential attained a steady state. This behavior indicates the dissolution of the initially air-constructed oxide film resulting in the attack of the metal surface [43]. However, with the addition of amylopectin (A-Pec), EOCP began with comparatively greater positive potentials than those in the absence of A-Pec, then moved towards lower positive potentials. The potentials of steady states in the presence of A-Pec were attained rapidly in comparison with the inhibitor-free solution. Additionally, by raising the inhibitor concentration, [A-Pec], the potential of the steady state shifted to a more positive value, suggesting a lower corrosion rate of mild steel and an improvement in the % IE [44]. Moreover, the positive (anodic) shifts in EOCP in the presence of A-Pec suggested that such a polymer might behave as an anodic inhibitor. However, because the obtained EOCP changes were less than +85 mV, the examined polymers can be considered as mixedkind inhibitors with an anodic majority [45].

PDP Measurements
Figure 3a-c illustrate the PDP curves (Tafel plots) for mild steel in a 0.5 M HCl solution at 303 K, in the absence and presence of 100-500 ppm of the tested carbohydrate polymers, Chi, Pec, and A-Pec, respectively. The values of corrosion potentials (E corr ), anodic and cathodic gradients (β a , β c ), corrosion current densities (i corr ), polarization resistance (R p ), inhibition efficiencies (% IE), and degrees of surface coverage (θ) of the tested carbohydrate polymers were evaluated and are presented in Table 1. It can be observed that the addition of the studied polymers reduced the i corr values, indicating that such polymers are proficient corrosion inhibitors for mild steel in 0.5 M HCl solution. The E corr value for steel was somewhat shifted (in most cases) to lower negative values (towards a positive or anodic trend) upon adding the polymers, recommending the mixedkind inhibition of the tested polymers with anodic seniority (the change in E corr was <85 mV) [45] as discussed in the OCP section. Additionally, both a and c values were found to decrease significantly after the polymers were added, indicating that the polymers reduced anodic metal dissolution and delayed cathodic hydrogen evolution reactions, indicating the polymers' mixed-kind inhibition. Moreover, the R p value was enhanced with increasing the polymers' concentrations, proving corrosion inhibition.
The % IE values and θ of the examined polymers (presented in Table 1) were computed from the subsequent equation [46], where i corr and i corr(inh) point to i corr in the absence (blank) and presence of the inhibitor, respectively. The values of % IE were found to augment with raising the polymers' concentrations and the magnitude of % IEs obeyed the order: chitin > amylopectin > pectin.
Overall, it could be concluded that the investigated carbohydrate polymers were proficient mixed-type inhibitors.  Figure 7, similar to that utilized earlier to model the steel/acid interface [47,48]. The components of this circuit were a solution resistance (R s ) and a constant-phase element (CPE), which were presented in the circuit instead of a pure double-layer capacitance to provide a more precise fit and were placed in parallel with charge transfer resistance (R ct ).

EIS Measurements
that the addition of the studied polymers reduced the icorr values, indicating tha ymers are proficient corrosion inhibitors for mild steel in 0.5 M HCl solution value for steel was somewhat shifted (in most cases) to lower negative values positive or anodic trend) upon adding the polymers, recommending the mixed bition of the tested polymers with anodic seniority (the change in Ecorr was < 8 as discussed in the OCP section. Additionally, both a and c values were found t significantly after the polymers were added, indicating that the polymers redu metal dissolution and delayed cathodic hydrogen evolution reactions, indicatin ymers' mixed-kind inhibition. Moreover, the Rp value was enhanced with incr polymers' concentrations, proving corrosion inhibition. The % IE values and θ of the examined polymers (presented in Table 1) puted from the subsequent equation [46], where icorr and icorr(inh) point to icorr in the absence (blank) and presence of the in spectively. The values of % IE were found to augment with raising the polyme trations and the magnitude of % IEs obeyed the order: chitin > amylopectin > pe all, it could be concluded that the investigated carbohydrate polymers were mixed-type inhibitors.
(a)       Figure 7, similar to that utilized earlier to model the steel/ac The components of this circuit were a solution resistance (Rs) and a ment (CPE), which were presented in the circuit instead of a pure d tance to provide a more precise fit and were placed in parallel with sistance (Rct).     Using CPE points to the heterogeneity of steel surfaces due to surface irregularity, disruptions, impurities, the adsorption of the inhibitor, and the construction of porous adsorption films [49].

EIS measurements
The EIS parameters, namely, R s , R ct, and CPE, evaluated via EIS spectra are shown in Table 2. The values of % IE were computed from Equation (2) [46] and are also listed in Table 2, The acquired value of R ct in the corrosive medium was augmented with increasing polymer concentrations with a reduction in the CPE value, indicating that such polymers reduce the corrosion rate of mild steel. Furthermore, reducing the CPE value implies the adsorption of the polymeric molecules on the metal/solution interface [49] leading to the protection of the metal, thus enhancing the values of the % IEs.  Table 3. The acquired outcomes indicated that the CR of the steel was augmented by increasing [HCl].
(c)        Table 4. The values of % IEs and θ of these polymers were also computed ( Table 4) via Equation (3) [50],   Figure 9 presents the WL runs for mild steel which were carried out in 0.5 M HCl solution (blank) with numerous concentrations (100-500 ppm) of the examined carbohydrate polymers (Chi, Pec, and A-Pec) at 303 K. The CR values for mild steel in the blank and with carbohydrate polymers were calculated and are shown in Table 4. The values of % IEs and θ of these polymers were also computed ( Table 4) via Equation (3) [50], The obtained results illuminated that adding the tested polymers to the blank reduced the CR of mild steel and, hence, inhibited the rate of steel corrosion. The values of the % IEs of the tested polymers were found to enhance with raising their concentrations. The gained outcomes (Table 4) indicated that, at comparable inhibitor concentrations, the % IE values of the examined carbohydrate polymers were raised in the order: Chi > A-Pec > Pec, in good agreement with those gained from both PDP and EIS tools, proving the rationality of the obtained outcomes as illustrated in Figure 10.

Effect of Time of Immersion on % IEs
The influence of time of immersion on the % IEs of the tested polymers at a certain concentration (500 ppm as a descriptive case) in 0.5 M HCl solution was explored for 24 h at 303 K as shown in Figure 11. This figure demonstrates that the tested polymeric molecules inhibited mild-steel corrosion for all times of immersion. Initially, the values of % IEs increased continuously with expanding the time of immersion up to around 12 h; afterwards, they reduced slightly for short times and, lastly, they reached approximately the constant values after 16 h. The values of % IEs increasing with the time of immersion at the initial stages can be attributed to the adsorption of multilayers of the polymeric molecules on the steel surface leading to increased % IE values. After around 12 h, some adsorbed polymeric molecules were desorbed from the steel surface, resulting in a reduction in the covered areas with polymeric molecules and, thus, decreasing the % IEs. After 16 h, the constancy of the % IE values with time may be ascribed to the compactness of the adsorbed layers on the steel surface [51].

Effect of temperature
To evaluate thermodynamic and activation parameters, WL measurements were performed at numerous temperatures. The values of CR of mild steel and both the % IEs and θ values of the tested carbohydrate polymers at different temperatures were evaluated and are shown in Table 4. As the temperature increased, the values of CR increased while the values of IE decreased, as shown in Figure 12. This supports the physical adsorption of the examined polymers [52,53].

Effect of Temperature
To evaluate thermodynamic and activation parameters, WL measurements were performed at numerous temperatures. The values of CR of mild steel and both the % IEs and θ values of the tested carbohydrate polymers at different temperatures were evaluated and are shown in Table 4. As the temperature increased, the values of CR increased while the values of IE decreased, as shown in Figure 12. This supports the physical adsorption of the examined polymers [52,53].

Effect of temperature
To evaluate thermodynamic and activation parameters, WL measurements w formed at numerous temperatures. The values of CR of mild steel and both the % θ values of the tested carbohydrate polymers at different temperatures were e and are shown in Table 4. As the temperature increased, the values of CR increas the values of IE decreased, as shown in Figure 12. This supports the physical ad of the examined polymers [52,53].

Adsorption considerations
In the present investigation, the examined carbohydrate polymers were set to sionally inhibit mild-steel corrosion in a 0.5 M HCl solution up to a % IE of approx 90%, and such performance was explained by the strong adsorption of the polyme ecules on the steel surface [54][55][56][57][58]. The illustrative outcomes revealed that the fi piction of the polymers' adsorption was the Langmuir isotherm ( Figure 13), ter

Adsorption Considerations
In the present investigation, the examined carbohydrate polymers were set to professionally inhibit mild-steel corrosion in a 0.5 M HCl solution up to a % IE of approximately 90%, and such performance was explained by the strong adsorption of the polymeric molecules on the steel surface [54][55][56][57][58]. The illustrative outcomes revealed that the finest depiction of the polymers' adsorption was the Langmuir isotherm ( Figure 13), termed by Equation (4) [59], where K ads is the adsorption constant. Values of K ads were evaluated as the reciprocal of the intercepts of Figure 13 and are presented in Table 5.

Thermodynamic Parameters
The values of free energy (∆G o ads ), enthalpy (∆H o ads ), and entropy (∆S o ads ) of adsorption were evaluated and are presented in Table 5 The gained higher negative values of ∆G o ads designated the spontaneity of adsorption and steadiness of the adsorbed film on the steel surface [60,61]. where Kads is the adsorption constant. Values of Kads were evaluated as the reciprocal of the intercepts of Figure 13 and are presented in Table 5.

Thermodynamic parameters
The values of free energy (ΔG o ads), enthalpy (ΔH o ads), and entropy (∆S o ads) of adsorption were evaluated and are presented in Table 5. The ΔG o ads values were evaluated via Equation (5) The ln Kads vs. 1/T plots were straight (Figure 14), from which the gained negative values of ∆H o ads agreed with the exothermic physical adsorption [63].
The  The ln K ads vs. 1/T plots were straight (Figure 14), from which the gained negative values of ∆H o ads agreed with the exothermic physical adsorption [63]. The ∆S o ads values were evaluated using the Gibbs-Helmholtz equation, Equation (7) ∆G o ads = ∆H o ads −T∆S o ads (7) The gained positive values of ∆S o ads specified the bigger disorder of the polymeric molecules in their adsorption on the steel surface [64].

Kinetic Parameters
The values of activation energy (Ea * ) were evaluated ( The Arrhenius plots are illustrated in Figure 15. The gained values of Ea * wer range of physical adsorption of the polymeric inhibitors [66].
The values of both ΔH * and ΔS * were calculated (

Kinetic Parameters
The values of activation energy (E a * ) were evaluated ( The Arrhenius plots are illustrated in Figure 15. The gained values of E a * were within the range of physical adsorption of the polymeric inhibitors [66]. The values of both ∆H * and ∆S * were calculated (Table 6) via Equation (9) [67], Also, the transition state plots are shown in Figure 16. The gained positive values of ∆H * refer to the endothermic nature of corrosion, while the negative values of ∆S * describe an association between the polymeric molecules leading to a decrease in the polymeric molecules' disorder [68].

Kinetics of Corrosion
The corrosion kinetics of mild steel in a 0.5 M HCl solution were investigated in the absence and presence of various concentrations of the examined carbohydrate polymers. The ln WL vs. time plots (for chitin at 303 K as an illustrative example) were linear (Figure 17), demonstrating that mild-steel corrosion in 0.5 M HCl and its inhibition were negatively first-order reactions. The values of the first-order rate constant, k 1 (in h −1 ), were computed and are shown in Table 7. The values of half-life times (t 1/2 , in h) of this process were gained (and are also listed in Table 7) via Equation (10)   Additionally, the orders (n) of corrosion inhibition were calculated using Equation (11) [70], log CR = log k + n log C inh (11) where k is the specific rate constant (mg cm −2 h −1 ). The graphs of log CR vs. log C inh for the tested carbohydrate polymers at 303 K were linear as presented in Figure 18. The values of n were found to be −0.76, −0.69, and −0.61 for Chi, Pec, and A-Pec, respectively (fractional first-order). The negative sign of n values points to good % IEs [71].  Figure 19 shows the micrographs of the surfaces of the examined mild-steel specimens prior to and after insertion in the blank (0.5 M HCl) in the absence and presence of 300 ppm of the examined carbohydrate polymers. Figure 19 (a) and (b) illustrate the surfaces of the mild-steel specimen prior to and after 24 h immersion in the blank, respectively. Figure 19 (b) demonstrates that the surface of the mild steel was highly corroded and various pits were spread on its surface. Figure 19 (c), (d), and (e) demonstrate the micrographs of the surfaces of the mild-steel specimens after 24 h immersion in the blank with 300 ppm of Chi, Pec, and A-Pec, individually. These micrographs show that the damages shown on the steel surfaces vanished and the surfaces were highly covered with the tested polymers. This is considered proof of the strong adsorption of the polymer molecules on the steel surfaces, thus demonstrating good corrosion inhibition [72].  Figure 19 shows the micrographs of the surfaces of the examined mild-steel specimens prior to and after insertion in the blank (0.5 M HCl) in the absence and presence of 300 ppm of the examined carbohydrate polymers. Figure 19a,b illustrate the surfaces of the mildsteel specimen prior to and after 24 h immersion in the blank, respectively. Figure 19b demonstrates that the surface of the mild steel was highly corroded and various pits were spread on its surface. Figure 19c-e demonstrate the micrographs of the surfaces of the mild-steel specimens after 24 h immersion in the blank with 300 ppm of Chi, Pec, and A-Pec, individually. These micrographs show that the damages shown on the steel surfaces vanished and the surfaces were highly covered with the tested polymers. This is considered proof of the strong adsorption of the polymer molecules on the steel surfaces, thus demonstrating good corrosion inhibition [72].

DFT study
Every ground state property of an electronic system is exclusively determined by the electron density, according to the Hohenberg Kohn theorem, which forms the foundation of DFT. This hypothesis offers the simplest approach for investigating the molecular structure and behavior of corrosion inhibitors on metal surfaces [73]. The molecules of the investigated carbohydrates polymers contain several oxygen atoms for the Pec and A-Pec moieties as well as several oxygen and nitrogen atoms for the Chi moiety. These

DFT Study
Every ground state property of an electronic system is exclusively determined by the electron density, according to the Hohenberg Kohn theorem, which forms the founda-tion of DFT. This hypothesis offers the simplest approach for investigating the molecular structure and behavior of corrosion inhibitors on metal surfaces [73]. The molecules of the investigated carbohydrates polymers contain several oxygen atoms for the Pec and A-Pec moieties as well as several oxygen and nitrogen atoms for the Chi moiety. These heteroatoms might be responsible for the metal surface's effective adsorption by creating coordinating bonds with the metal ions that prevent corrosion [74]. The polysaccharide polymer molecules can be protonated by the aqueous acidic medium of 0.5 M HCl, which can contribute significantly to the adsorption process.
The Koopman theorem coupled the parameters E HOMO and E LUMO to ionization potential (I) and electron affinity (A) values as follows [75]: Electron Other reactivity indices, such as electronegativity (χ), electronic chemical potential (µ), global hardness (η), softness (σ), and electron transfer fraction (∆N), were calculated using the formulas: Chemical potential (µ) = −χ (15) Global hardness (η) = Iron has a global hardness (η Fe ) of 0 eV and an electronegativity (χ Fe ) of 4.82 eV. Fe is coupled to the Fe (110) surface at 4.82 eV, which has a packed surface and a larger stabilization energy [76]. The value for bulk Fe atoms using Pearson's electronegativity scale was set to zero [77]. Figure 20 depicts the optimized structure and frontier molecular orbitals, specifically the HOMO and LUMO of Chi, Pec, and A-Pec. The electron density in the HOMO and LUMO orbitals, respectively, appropriately depicts the inhibitor molecule's electrondonating and electron-accepting sites [78]. The quantum chemical characteristics in Table 8 effectively reveal the corrosion inhibitor's reactivity as well as how well it adhered to the metal surface. The energy details show how the molecules Chi, Pec, and A-Pec can donate electrons. The higher electron exchange value of ∆N, the higher the contact of inhibitors with the metal surface, which improves corrosion inhibition [79]. In conclusion, the Chi inhibitor molecule has a higher propensity to transfer electrons to the metal surface than do the Pec and A-Pec inhibitor molecules. In other words, the molecules of Chi, Pec, and A-Pec bond with the metal surface during the chemisorption process, successfully preventing corrosion [80,81]. Higher dipole moment values are related to improved inhibitor-metal surface interaction through increased polarizability and effective surface area [82]. Compared to the dipole moment of water, the dipole moments of Chi, Pec, and A-Pec are significantly higher (1.88 Debye). As a result, the adsorbed water molecules on the metal surface are successfully replaced by the Chi, Pec, and A-Pec molecules [83].

MD Simulation Study
The MD simulation accurately modelled the interaction between the inhibitor molecules and the metal surface [84]. The Chi, Pec, and A-Pec polymer molecules, as well as the Fe(110) crystal structure, were all adjusted before the MD simulations began. The top and side viewpoints of the interaction site under examination are shown in Figure 21. It can be observed that all of the polymer molecules of carbohydrates were adsorbed on the smooth Fe (110) surface. As a result, the flat location ensured the best contact possible between the heteroatoms and the metallic surface. All inhibitor molecules rejected water molecules from their adsorption sites, implying that as inhibitor concentrations grow, more water molecules will be desorbed from the mild-steel surface [85]. In theory, when the adsorption energy is the lowest during the simulation process, the inhibition performance is at its maximum. The adsorption energies of the Chi, Pec, and A-Pec molecules were determined to be 136387, 136396, and 136515 kcal mol −1 , respectively, which corresponds to the order of inhibition efficiency reported in the experimental investigations. The negative outcome suggested that the adsorptive system was stable, and spontaneous adsorption may occur in this setting. In general, the theoretical analyses back up the experimental findings.

MD simulation study
The MD simulation accurately modelled the interaction between the inhibitor molecules and the metal surface [84]. The Chi, Pec, and A-Pec polymer molecules, as well as the Fe(110) crystal structure, were all adjusted before the MD simulations began. The top and side viewpoints of the interaction site under examination are shown in Figure 21. It can be observed that all of the polymer molecules of carbohydrates were adsorbed on the smooth Fe (110) surface. As a result, the flat location ensured the best contact possible between the heteroatoms and the metallic surface. All inhibitor molecules rejected water

Mechanism of corrosion and corrosion inhibition
In HCl solutions, the mechanism of corrosion of iron and steel has been suggested by Mulle [86] to proceed according to the following stages: Anodic reactions which result in the dissolution of iron into ferrous cations as follows,

Mechanism of Corrosion and Corrosion Inhibition
In HCl solutions, the mechanism of corrosion of iron and steel has been suggested by Mulle [86] to proceed according to the following stages: Anodic reactions which result in the dissolution of iron into ferrous cations as follows, Instead, iron and steel can form various oxide phases on their surfaces, which somewhat defend them. The presence of Cl − ions as well as the augmented potential in the positive path, which is applied through the PDP measurements, can dissolve these ox-ides [33]. When Cl − ions were present in the solution, they strongly attacked the surface of iron as an active anodic potential, leading to the continuous dissolution of iron in the forms of uniform and pitting corrosion [33].
The results obtained from the various tools used in this paper indicated that the inhibitory performance of the investigated carbohydrate polymers on mild-steel corrosion in HCl solutions was determined to be dependent on the chemical structures and concentrations of such polymers. The proposed mechanism of steel corrosion inhibition in the tested medium included strong adsorption of the polymeric molecules on the steel surface due to such compounds containing free electron pairs on the heteroatoms which exist in their chemical structures that can construct coordination bonds with the vacant d-orbitals on the iron surface [87]. Furthermore, in the hydrochloric acid solutions, Cl − ions were specifically adsorbed on the steel surface which formed negative charges on the surface. Additionally, in the acidic solutions, the examined polymeric molecules which contained basic groups were suggested to protonate, forming positively charged ones. Therefore, an electrostatic attraction was suggested to occur amongst the positive-charged polymeric molecules and the negative-charged steel surface (physical adsorption), leading to the formation of a strongly adsorbed layer that protected the metal surface [63].

Conclusions
The inhibitory impacts of chitin, pectin, and amylopectin as carbohydrate polymers on mild-steel corrosion in 0.5 M HCl were explored utilizing several experimental and theoretical techniques. The outcomes of the PDP study showed that the examined polymers were set to be mixed-kind inhibitors with a major anodic one. The high % IEs of the tested polymers were explained via strong polymeric adsorption on the steel surface and such adsorption agreed with the Langmuir isotherm. The computed thermodynamic and kinetic parameters confirmed the mechanism of physical adsorption of the inhibitors. The kinetics and mechanisms of corrosion and its inhibition by the investigated polymers were examined and discussed. The results gained from all employed tools were found to be consistent with each other, which revealed that, under similar experimental circumstances, the inhibition efficiencies of the tested polymers followed the sequence: chitin > amylopectin > pectin.