Advanced Protective Films Based on Binary ZnO-NiO@polyaniline Nanocomposite for Acidic Chloride Steel Corrosion: An Integrated Study of Theoretical and Practical Investigations

Due to their thermal stability characteristics, polymer/composite materials have typically been employed as corrosion inhibitors in a variety of industries, including the maritime, oil, and engineering sectors. Herein, protective films based on binary ZnO-NiO@polyaniline (ZnNiO@PANE) nanocomposite were intended with a respectable yield. The produced nanocomposite was described using a variety of spectroscopic characterization methods, including dynamic light scattering (DLS), ultraviolet–visible spectroscopy (UV-Vis), Fourier-transform infrared spectroscopy (FTIR), and X-ray photoelectron spectroscopy (XPS) approaches, in addition to other physicochemical methods, including X-ray powder diffraction (XRD), transmission Electron Microscopy (TEM), field emission scanning electron microscopy (FESEM), and selected area electron diffraction (SAED). By using open-circuit potentials (OCP) vs. time, electrochemical impedance spectroscopic (EIS), and potentiodynamic polarization (PDP) methods, the inhibitory effects of individual PANE and ZnNiO@PANE on the mild steel alloy corrosion in HCl/NaCl solution were assessed. The ZnNiO@PANE composite performed as mixed-type inhibitors, according to PDP findings. PANE polymer and ZnNiO@PANE composite at an optimal dose of 200 mg/L each produced protective abilities of 84.64% and 97.89%, respectively. The Langmuir isotherm model is used to explain the adsorption of ZnNiO@PANE onto MS alloy. DFT calculations showed that the prepared materials’ efficiency accurately reflects their ability to contribute electrons, whereas Monte Carlo (MC) simulations showed that the suitability and extent of adsorption of the ZnNiO@PANE molecule at the metal interface determine the materials’ corrosion protection process.


Introduction
Metal corrosion is a costly scientific issue that appeared with the beginning of metal detection [1]. It has a significant economic and environmental influence on the worldwide infrastructure causing huge losses in time and money due to the periodic maintenance work. One of the most used materials in infrastructure is carbon steel, owing to its strength, solidity, and versatility. However, the surrounding environment induces the occurrence of electrochemical reactions, which frequently damage metallic materials. Thus, it was necessary to look for practical solutions to prevent or at least reduce the environmental and the remainder was iron. The electrodes were covered by epoxy resin, keeping a 1.0 cm × 1.0 cm surface exposed to the corrosive medium. Before the electrochemical and surface analytical experiments, the MS alloy surface was polished to a mirror finish using several grades of 320, 400, 600, and 1500 grits sandpaper, washed with anhydrous ethanol, and dried in the air [18]. A standard solution of 5000.0 mg/L was made in 50.0 mL of the aggressive solution (1.0 M HCl containing 3.5% NaCl) using 1.0 g of the solid ZnNiO@PANE. For the corrosion inhibition experiments, the applied dosages of 25.0, 50.0, 75.0, 100.0, 150.0, and 200.0 mg/L were created by sufficient dilution. All chemicals were of A.R grade (Sigma-Aldrich) and used without further purifying.

Fabrication of ZnO-NiO Nanoparticles 2.2.1. Fabrication of ZnO Nanoparticles
For the preparation of ZnO nanoparticles by the sol-gel method, a specific amount of Zn(NO 3 ) 2 was dissolved in 20 mL of bi-distilled water in a beaker. The acquired solution was stirred at 450 rpm for a few minutes and kept under stirring until dissolution is completed. On the other side, a hydrolysis process was performed by dissolving 0.3 M KOH in 100 mL of bi-distilled H 2 O. To the same Zn beaker, 1.5 M of the fuel solution (SDS + urea) was added under continuous stirring, while keeping the mass ratio of fuel: Zn near to the unity. The fuel slows down the nanoparticle's growth rate. The pH of the obtained solution was adjusted at pH 7-8 using a known amount of (0.3 M) KOH solution, which was added slowly under stirring producing Zn sol. The solution was then left under vigorous stirring for 2 h [19]. Then, the obtained solution was sonicated at 40 • C for 40 min. Later, the solution was filtrated and washed with bi-distilled water. The obtained precipitate was dried in a vacuum oven at 110 • C for 3 h, then ground well to get ZnO nanoparticles ( Figure S1).

Fabrication of Binary Metal Oxide ZnO-NiO Nanoparticles
In a separated beaker, a known mass of Ni(NO 3 ) 2 was dissolved in bi-distilled water. Then, add the fuel solution of SDS and urea dissolved in bi-distilled water to the previous solution followed by continuous stirring until the dissolution is complete. The pH of the obtained NiO solution was adjusted at 7.5-8.5 by 33% NH 3 , added slowly under stirring. Then, the solution was left under stirring for 2 h, giving NiO sol. Finally, the NiO sol was added to ZnO sol by dropping slowly under stirring and kept under vigorous stirring for a further 1 h. The obtained ZnO-NiO blend was ultrasonicated at 40 • C for 40 min. Then, it was filtrated and washed with bi-distilled water. The obtained binary mixed oxides were dried in an oven at 130 • C for 3 h, then ground well to get ZnO-NiO nanopowders ( Figure S2).

Fabrication of ZnO-NiO/PANE Nanocomposites
ZnO-NiO/PANE nanocomposite was prepared according to the described approaches [9,[23][24][25][26][27][28][29] using the route of oxidation in situ-polymerization, whereby 0.7 g of the acquired ZnO-NiO powder (prepared previously) was dispersed in 2:3 (v:v) of EtOH and bi-distilled H 2 O. The blend was stirred at 450 rpm for a few minutes. After that, it was ultrasonicated at 35 • C for 30 min (labelled as Sol A). In another beaker, a solution of aniline (2.2 mL) in 1.0 M of HCl acid was dispersed for 30 min. Then, 2.3 g of potassium persulfate (KPS) was added to the previous mixture with continuous stirring and labelled as (Sol B). Then, (Sol B) was added slowly to the (Sol A) under stirring till a blackish green precipitate of emeraldine salt was obtained and kept under stirring for 3 h. This mixed sol was transferred into an ice soak at a low temperature (5 • C) for 12 h. Then, it was filtrated and washed with 1 M HCl, then dried in a vacuum oven at (65 • C) for 3-4 h. The collected precipitate was treated with 1 M NH 3 under stirring to set the pH at 8 until attaining emeraldine-base of polyaniline, which has a molecular formula (C 6 H 5 N) n . The solution was stirred for 12 h, filtrated, and washed several times with distilled water. Then, Polymers 2022, 14, 4734 4 of 26 it was dried at 65 • C for 3-4 h in a vacuum oven to get the black precipitate and converted into powder by grinding. This sample was coded as ZnNiO/PANE ( Figure S3).

Characterization Techniques
The surface morphology of the prepared ZnNiO/PANE composite was screened by scanning electron microscopy (SEM, Joel Jsm6360LA-Japan). After that, a transmission electron microscope (TEM) using a Jeol-1230 electron microscope was applied to describe the TEM morphology of the designed composite. Furthermore, the dynamic light scattering technique (DLS) nano Zetasizer (model: Zetasizer nano ZS90 Malvern Instruments, UK) was used to describe the scale size of the prepared particles. The X-ray diffraction (XRD, TD-3500 diffractometer) was used to analyse the crystallinity of the synthesized oxide/polymer composite at room conditions, 40 kV and 30 mA with Ni-filtered CuKα radiation (λ = 1.5418 Å). The BET surface area was studied via N 2 adsorption-desorption isotherm and additionally used to describe the porosity of the prepared composite using Brunauer-Emmett-Teller (BET) at 77 K (Tristar II 3020 version 3.02, USA). The UV-Vis spectroscopy and FTIR spectroscopy were applied by a Shimadzu UPVC-1800 spectrophotometer (Kyoto, Japan) and BRUKER equipment, respectively. The surface chemistry of the synthesized ZnNiO-PANE composite sample was evaluated via XPS (XPS, Escalab 250Xi, Thermo Scientific, Waltham, MA, USA). Thermal gravimetric analysis equipment from New Castle, DE 19720, USA, was employed to examine the thermal stability of the prepared ZnNiO-PANE composite by increasing the environment temperature up to 1000 • C.

Electrochemical Analysis
Electrochemical analysis was applied using the Gamry Galvanostat/Potentiostat/ZRA electrochemical workstation. A traditional three-electrode system was utilized in this work, encompassing the Pt wire counter electrode, the MS alloy working electrode, and the silver/silver chloride (Ag/AgCl) reference electrode. Water bath heating was used to perform electrochemical tests at 298 K. The open circuit potential (E OCP ) testing was done after 60 min in HCl/NaCl solution, to assure that the electrode surface had achieved a stable state. Then, the EIS test was performed at an amplitude of 10 mV and a frequency range of 100 kHz down to 0.1 Hz. Moreover, Echem Analyst software from Gamry was used to analyse the EIS data. Polarization curve testing was conducted at E OCP ± 250 mV with a scan rate of 0.2 mV/s.

Computational Information
Utilizing the B3LYP-functional with DNP 4.4 basis set implemented in the Dmol3 module of the BIOVIA Materials Studio 2017, Dassault Systems, France for DFT calculations, the energy minimization of the examined PANE, ZnO@PANE, and ZnONiO@PANE compounds in aqueous conditions were evaluated [24]. The outcomes attained from DFT calculations such as the highest occupied molecular orbital (E HOMO ), the lowest unoccupied molecular orbital (E LUMO ), the gap energy (∆E), hardness (η), electronegativity (χ), global softness (σ), electrophilicity index (ω), and ∆E back-donation , dipole moment (µ), and the number of electrons transferred (∆N) were examined and calculated as follows [30]: where χ inh represents the inhibitor electronegativity, ϕ is the Fe (110) function work, η Fe and η inh are the chemical hardness for Fe (0 eV) and additives, respectively. Operating the adsorption locator module in the BIOVIA Materials Studio 2017, Dassault systems, France revealed the correct adsorption configurations of the PANE, ZnO@PANE, and ZnONiO@PANE compounds on the iron (110) interface for Monte Carlo (MC) simulations [31]. Firstly, the COMPASS force mild midfield was operated to optimize the adsorbate molecules [32]. Subsequently, in a simulation box (37.24 Å × 59.81 Å × 37.24 Å), the studied inhibitors, chloride ions, hydronium ions, and water molecules were successfully adsorbed onto the surface of Fe(110) [33]. The morphology of the prepared ZnNiO/PANE as an oxide/polymer composite was described in Figure 1A,B. The seen morphology has an irregular size and shape of particles with some aggregated particles. The heterogeneity character of the synthesized ZnNiO/PANE composite could be due to the existence of two different parts: the polymer part in addition to the mixed oxide one having both ZnO and NiO. There are no big size pores that could be found in the SEM morphology, which could be attributed to the pores' filling after the oxide incorporation at the surface of the applied polymer (PANE). After that, TEM and SAED analyses were studied in Figure 1C,D, respectively. Some crystalline phases could be observed which indicates the formation of crystalline oxide inside the studied composite. In addition, the presence of the polymer part that could be amorphous, causes the ambiguous character of ring circles in the shown SAED image ( Figure 1D). To conclude, the morphology of the prepared ZnNiO/PANE confirmed to be a heterogeneous particle with the mix between nano and micro-scale sizes containing amorphous and crystalline parts.

Results and Discussions
The DLS curve of the designed ZnNiO@PANE composite was shown in Figure 2A. The displayed distribution size has a symmetrical and broad hydrodynamic size distribution reaching the highest size at 797.3 nm. This symmetric distribution explains the uniform dispersion of the synthesized particles, because of the stable electric dipole layer that adhered around it [34]. In addition, Figure 2B shows the XRD analysis of the synthesized ZnNiO@PANE, where only small intensity peaks could be seen that indicate the amorphous character of the prepared composite. This is likely because of the presence of polymer organic content besides the oxide part. The seen broad peak at 2θ = 17.93 • could be assigned to the polymer cross chains. Furthermore, other small crystalline XRD peaks of NiO at 37.23 • , 43.37 • , and 51.95 • could be due to the cubic fm-3m NiO conceded with JCPDS 02-1216 [35]. Additionally, small-intensity peaks at 31.13 • , 36.61 • , and 48.45 • could be due to (100), (101), and (102) ZnO planes, respectively, of hexagonal crystals (space group P63mc, JCPDS 00-036-1451) [36]. This result indicates the successful incorporation of ZnO/NiO into the polymer frame to form the ZnNiO/PANE composite [37]. In short, the XRD analysis showed the amorphous character of PANE polymer as well as small content from hexagonal zincite ZnO and cubic NiO. The DLS curve of the designed ZnNiO@PANE composite was shown in Figure 2A. The displayed distribution size has a symmetrical and broad hydrodynamic size distribution reaching the highest size at 797.3 nm. This symmetric distribution explains the uniform dispersion of the synthesized particles, because of the stable electric dipole layer that adhered around it [34]. In addition, Figure 2B shows the XRD analysis of the synthesized ZnNiO@PANE, where only small intensity peaks could be seen that indicate the amorphous character of the prepared composite. This is likely because of the presence of polymer organic content besides the oxide part. The seen broad peak at 2θ = 17.93° could be assigned to the polymer cross chains. Furthermore, other small crystalline XRD peaks of NiO at 37.23°, 43.37°, and 51.95° could be due to the cubic fm-3m NiO conceded with JCPDS 02-1216 [35]. Additionally, small-intensity peaks at 31.13°, 36.61°, and 48.45° could be due to (100), (101), and (102) ZnO planes, respectively, of hexagonal crystals (space group P63mc, JCPDS 00-036-1451) [36]. This result indicates the successful incorporation of ZnO/NiO into the polymer frame to form the ZnNiO/PANE composite [37]. In short, the XRD analysis showed the amorphous character of PANE polymer as well as small content from hexagonal zincite ZnO and cubic NiO.

XPS Analysis
To describe the chemical contents of the prepared composite surface, XPS analysis was studied as displayed in Figure 3. The survey or normal scan was shown in Figure 3A in addition to the fine scan with the fitting of N 1s, C 1s, Zn 2p, O 1s, and Ni 2p were displayed in Figure 3B,C, 3D, 3E, and 3F, respectively. From Figure 3A, the XPS peaks at 283.08 eV, 402 eV, 530.08 eV, 857 eV, and 1022 eV referring to the presence of carbon (C 1s) [38], nitrogen (N 1s) [39], oxygen (O 1s) [40], nickel (Ni 2p) [38], and zinc (Zn 2p) [41]. These XPS data could suggest the existence of both ZnO/NiO oxides at the surface of the

XPS Analysis
To describe the chemical contents of the prepared composite surface, XPS analysis was studied as displayed in Figure 3. The survey or normal scan was shown in Figure 3A in addition to the fine scan with the fitting of N 1s, C 1s, Zn 2p, O 1s, and Ni 2p were displayed in Figure 3B-F, respectively. From Figure 3A, the XPS peaks at 283.08 eV, 402 eV, 530.08 eV, 857 eV, and 1022 eV referring to the presence of carbon (C 1s) [38], nitrogen (N 1s) [39], oxygen (O 1s) [40], nickel (Ni 2p) [38], and zinc (Zn 2p) [41]. These XPS data could suggest the existence of both ZnO/NiO oxides at the surface of the carbon content, which could be expected to be PANE polymer. The N 1s, C 1s, Zn 2p, O 1s, and Ni 2p XPS peaks were further scanned by the fine scan as shown in Figure 3B-F, respectively. For N 1s ( Figure 3B), the existence of deconvoluted XPS peaks at 398.88 eV and 399.58 eV could be referred to two different nitrogen content in -C=N-and the O-M-N (M could be Zn or Ni). For C 1s ( Figure 3C), the deconvoluted fitted peaks of the C1s XPS spectrum have two peaks at 283.98 eV and 285.08 eV which could be related to the carbon-carbon bond (C=C) and carbon-nitrogen bond (C-N), respectively [37,41]. Then, Figure 3D shows the fitting of the Zn 2p fine scan and two peaks could be seen at 1021.78 eV and 1044.98 eV, which can be attributed to Zn 2p 3/2 and Zn 2p 1/2 , respectively. In addition, the binding energy separation between Zn 2p peaks was estimated and found at 23.20 eV which suggested the presence of Zn metal as Zn (+2) in the synthesized composite [41]. After that, Figure 3E [42]. The deconvoluted peaks of Ni 2p ( Figure 3F) at 855.78 eV and 873.48 eV for Ni 2p could be assigned to Ni 2p 3/2 and Ni 2p 1/2 , respectively [33]. Furthermore, the satellite peaks could be seen in addition to the major peaks for Ni 2p at 879.38 eV and 859.78 eV, respectively. The binding energy separation confirmed the existence of Ni as Ni (II). The atomic % contents of N, C, Zn, O, and Ni were observed at 9.50%, 72.67%, 12.86%, 2.86% and 2.11%, respectively. Therefore, carbon is the major percentage of the prepared composite, which confirmed the polymeric character of the major content at the nanoscale surface of the designed composite. Therefore, XPS indicates the surface chemistry of the prepared composite has carbon as a major percentage in addition to O, N, Zn (II), and Ni (II) which could be due to the presence of ZnO and NiO.

Surface Area and Thermal Gravimetric Analysis
To identify the porous surface capacity of ZnNiO@PANE, the surface area of the synthesized ZnNiO@PANE was analysed with an N 2 adsorption-desorption isotherm which was displayed in Figure 4A to estimate the BET surface area at 77 K. According to the observed data, the isotherm is type IV isotherm with H3 hysteresis loop depending upon IUPAC classification, which is traditionally attributed to the predominance of mesopores. Both the adsorption and desorption curves are sloping, whereas the desorption region has a steep curve in which the remaining condensate releases suddenly from the pores as a result of the tensile strength effect [35]. S BET value of ZnNiO/PANE was determined at 48.3 m 2 /g with a total pore volume of 5.05 × 10 −2 cm 3 /g, in addition to a mean pore width at 4.18 nm ( Figure 4B). The prepared ZnNiO@PANE composite has lower surface area than normal nano-oxides because of the existence of the PANE matrix with ZnO/NiO. Thus, the presence of a polymer part besides the oxide part decreases the expected surface area. Although the S BET of the synthesized ZnNiO@PANE was low, the pores could be filled with ZnO/NiO, which can play an outstanding role as a corrosion inhibitor against the expected corrosion.
Ni were observed at 9.50%, 72.67%, 12.86%, 2.86% and 2.11%, respectively. Therefore, carbon is the major percentage of the prepared composite, which confirmed the polymeric character of the major content at the nanoscale surface of the designed composite. Therefore, XPS indicates the surface chemistry of the prepared composite has carbon as a major percentage in addition to O, N, Zn (II), and Ni (II) which could be due to the presence of ZnO and NiO.  m 2 /g with a total pore volume of 5.05 × 10 −2 cm 3 /g, in addition to a mean pore width at 4.18 nm ( Figure 4B). The prepared ZnNiO@PANE composite has lower surface area than normal nano-oxides because of the existence of the PANE matrix with ZnO/NiO. Thus, the presence of a polymer part besides the oxide part decreases the expected surface area. Although the SBET of the synthesized ZnNiO@PANE was low, the pores could be filled with ZnO/NiO, which can play an outstanding role as a corrosion inhibitor against the expected corrosion.  Thermal stability including TGA and DTG investigations was studied for the synthesized ZnNiO @PANE material as displayed in Figure 4C. The importance of TGA study is to determine the composition of materials, drying and ignition temperatures of the prepared materials, and knowing the stability temperatures of the introduced composite. Additionally, the introduced composite has two parts; oxide and polymer, which have different thermal stability. The weight loss at the last studied temperature (980 • C) was found at 54.89% owing to the decomposition of the organic contents (PANE polymer), which indicates the existence of more than half-percent from the prepared material as a carbon content. There are major steps of the DTG curve that can be seen. The first one is around 140 • C, which can be due to the adsorbed and crystalline water. The second and third major peaks located at 413 • C and 842 • C, respectively, could be attributed to the decomposition of organic bonds. These variable thermal gravimetric peaks for PANE decomposition might be because of its chemical structure having alkyl chains and various O-functional groups [43]. Therefore, thermal analysis indicates the existence of thermal stable content (oxide content) and decomposed one at high temperature (polymer content).

Spectroscopic Analyses
The UV-Vis spectrum was studied for the synthesized ZnNiO@PANE composite, to evaluate the optical characteristics in the corrosive medium ( Figure 5A). The ZnNiO@PANE composite spectrum has an absorption peak at 225 nm that could be attributed to π-π* transition of the benzenoid ring in the organic/polymeric part. Additionally, another absorption peak was seen at around 274 nm, which could be due to the interaction between Zn/Ni oxide and PANE [9] and the absorption curve declined from 321 nm.
140 °C, which can be due to the adsorbed and crystalline water. The second and third major peaks located at 413 °C and 842 °C, respectively, could be attributed to the decomposition of organic bonds. These variable thermal gravimetric peaks for PANE decomposition might be because of its chemical structure having alkyl chains and various O-functional groups [43]. Therefore, thermal analysis indicates the existence of thermal stable content (oxide content) and decomposed one at high temperature (polymer content).

Spectroscopic Analyses
The UV-Vis spectrum was studied for the synthesized ZnNiO@PANE composite, to evaluate the optical characteristics in the corrosive medium ( Figure 5A). The ZnNiO@PANE composite spectrum has an absorption peak at 225 nm that could be attributed to π-π* transition of the benzenoid ring in the organic/polymeric part. Additionally, another absorption peak was seen at around 274 nm, which could be due to the interaction between Zn/Ni oxide and PANE [9] and the absorption curve declined from 321 nm. The functional groups and chemical bonds were studied via FT-IR spectroscopy of the prepared ZnNiO@PANE composite ( Figure 5B). The FT-IR spectrum has remarkable bands of the polymer contents at 1595 cm −1 and 1490.9 cm −1 that could be assigned to the stretching vibration of C=N and bending C=C, respectively of quinonoid and benzenoid units of PANE polymer. Moreover, the FT-IR peak at 693 cm −1 is possibly related to the anti-symmetric stretching for M-O bonds (M may be Zn or Ni). In addition, a prominent peak can be seen around 350 cm −1 feasibly attributed to the out-of-plane C-H bending mode of the PANE aromatic ring [44,45]. Thus, spectroscopic analyses including UV-Vis and FT-IR analyses do confirm the interaction between Zn/Ni oxide from the first side and polymer content on the second side to finally synthesize the ZnNiO@PANE composite. The functional groups and chemical bonds were studied via FT-IR spectroscopy of the prepared ZnNiO@PANE composite ( Figure 5B). The FT-IR spectrum has remarkable bands of the polymer contents at 1595 cm −1 and 1490.9 cm −1 that could be assigned to the stretching vibration of C=N and bending C=C, respectively of quinonoid and benzenoid units of PANE polymer. Moreover, the FT-IR peak at 693 cm −1 is possibly related to the anti-symmetric stretching for M-O bonds (M may be Zn or Ni). In addition, a prominent peak can be seen around 350 cm −1 feasibly attributed to the out-of-plane C-H bending mode of the PANE aromatic ring [44,45]. Thus, spectroscopic analyses including UV-Vis and FT-IR analyses do confirm the interaction between Zn/Ni oxide from the first side and polymer content on the second side to finally synthesize the ZnNiO@PANE composite.

Open Circuit Potential and Polarization Curve Analysis
The open circuit potential variation with time of MS electrode in blank HCl containing brine without and with six ZnNiO@PANE concentrations, namely, 25 mg/L, 50 mg/L, 75 mg/L, 100 mg/L, 150 mg/L, and 200 mg/L, at 298 K is depicted in Figure 6A. The data in this figure showed that the OCP inclination of the MS sample in the studied HCl saturated brine as a corrosive medium is preliminary moderately in the positive direction, demonstrating an upsurge to a slight period. In the inhibited medium containing the Zn-NiO@PANE composite, the values of open circuit potential shifted towards a more positive direction throughout the soaking period compared with the blank solution. Such a behaviour can be identified by ZnNiO@PANE molecules adsorption on the MS alloy/solution interface. Subsequently, the open circuit potential values tended to be steady, indicating that the ZnNiO@PANE composite's adsorption and desorption had attained stable operation [46]. This suggests that the system containing the ZnNiO@PANE composite had a stronger impact on the steel anodic reaction in the examined aggressive solution. The mixed metal oxide ZnO/NiO nanoparticle functionalized by PANE appeared to have high adsorption ability on the steel surface, according to the open circuit potential data.
ZnNiO@PANE composite, the values of open circuit potential shifted towards a more positive direction throughout the soaking period compared with the blank solution. Such a behaviour can be identified by ZnNiO@PANE molecules adsorption on the MS alloy/solution interface. Subsequently, the open circuit potential values tended to be steady, indicating that the ZnNiO@PANE composite's adsorption and desorption had attained stable operation [46]. This suggests that the system containing the ZnNiO@PANE composite had a stronger impact on the steel anodic reaction in the examined aggressive solution. The mixed metal oxide ZnO/NiO nanoparticle functionalized by PANE appeared to have high adsorption ability on the steel surface, according to the open circuit potential data.  Figure 6B illustrates the MS alloy polarization plots in HCl/NaCl solution with and deprived of ZnNiO@PANE composite. With the addition of corrosion inhibitors, it is evident that the cathodic and anodic polarization curves are modified. Among them, the current density also dropped in comparison to the blank solution. It is important to note that all the polarization curves have comparable shapes, proving that the ZnNiO@PANE composite has no impact on the corrosion process or outcomes.
The corrosion current density (icor), corrosion potential (Ecor), anodic Tafel slope ( ), and cathodic Tafel slope ( ) were all computed after the polarization data were quantitatively measured using the Tafel extrapolation method. The inhibition efficiency ( ) and the part of surface coverage (θ) were also calculated as follows [47]:  Figure 6B illustrates the MS alloy polarization plots in HCl/NaCl solution with and deprived of ZnNiO@PANE composite. With the addition of corrosion inhibitors, it is evident that the cathodic and anodic polarization curves are modified. Among them, the current density also dropped in comparison to the blank solution. It is important to note that all the polarization curves have comparable shapes, proving that the ZnNiO@PANE composite has no impact on the corrosion process or outcomes.
The corrosion current density (i cor ), corrosion potential (E cor ), anodic Tafel slope (β a ), and cathodic Tafel slope (β c ) were all computed after the polarization data were quantitatively measured using the Tafel extrapolation method. The inhibition efficiency (η) and the part of surface coverage (θ) were also calculated as follows [47]: where i 0 cor and i i cor stand for the MS alloy current densities in HCl/NaCl solution without and with ZnNiO@PANE composite, respectively.
The Tafel parameters for the corrosion of carbon steel in HCl/NaCl solution are shown in Table 1 for various ZnNiO@PANE composite concentrations. It is evident that i cor of the inhibited system is significantly lower than that of the blank solution. When our inhibitor is present at a dose of 200 mg/L, the i cor achieves 192.66 µA/cm 2 for individual PANE and 26.46 µA/cm 2 for ZnNiO@PANE composite, which is appropriately lower than it would be in the blank medium (1254.34 µA/cm 2 ). This indicates that ZnNiO@PANE composite can prevent electrochemical corrosion by forming an adsorbed layer on the surface of MS alloy. It is important to note that as the composite inhibitor dose is increased, the inhibition efficiency increases, suggesting that the corrosion inhibitor contributes to corrosion protection earlier on. According to Table 1, the corrosion inhibition efficiencies for individual PANE and ZnNiO@PANE are 84.64% and 97.89%, respectively, when the corrosion inhibitor concentration reaches 200 mg/L. Therefore, the optimized concentration of ZnNiO@PANE is 200 mg/L. The ZnNiO@PANE composite is adsorbed on the metal surface decreasing the number of active centres on the substrate surface, rather than changing the mechanism of anode and cathode to prevent corrosion, as can be seen in Table 1 where the modifications of cathodic (β c ) and anodic (β a ) Tafel slopes are not clear when compared to the blank solution data [48]. Additionally, it can be seen from Table 1 that the varied value of E cor is 16 mV, which is significantly less than 85 mV. Consequently, ZnNiO@PANE serves as a mixed inhibitor type and affects both cathodic and anodic reactions.

EIS Measurement
To confirm the experimental results of the polarization curves, EIS was performed under the same conditions. The corrosion inhibition behaviour of ZnNiO@PANE in HClcontaining brine solution has been explored with EIS. Figure 7 shows MS alloy Nyquist plots (A) and Bode plots (B, C) in blank HCl containing brine without and with six ZnNiO@PANE concentrations (25 mg/L, 50 mg/L, 75 mg/L, 100 mg/L, 150 mg/L, and 200 mg/L), at 298 K. All Nyquist plots ( Figure 7A) only display one capacitive loop, demonstrating that charge transfer mechanisms are solely responsible for MS-alloy corrosion. Additionally, all impedance spectra exhibited comparable forms, proving that the initial corrosion system had not been impacted by the addition of ZnNiO@PANE. The diameter of a capacitance ring expanded quickly as the concentration of ZnNiO@PANE was increased in comparison to the blank solution. Furthermore, it indicates the development of a barrier on the MS alloy surface, enhancing corrosion resistance. Typically, an MS alloy develops a passivated oxide film on its own in an alkaline environment. However, the passivation layer may deteriorate due to contamination with chlorides or carbonation, which results in pitting. The charge transfer resistance of the blank solution curve is small, as shown in Figure 7B, indicating that the passivation film is evaporating rapidly. The fact that the charge transfer resistance increased when corrosion inhibitors were present reveals that the alloy surface is protected. This occurs as a result of the active core of the organic polymeric framework adhering to the metal substrate, such as N and O, improving its ability to resist the Cl − ion assault [48]. In addition, the ZnNiO@PANE protective effectiveness increases steadily with its dose in the medium. It improves MS alloy's ability to resist corrosion. as shown in Figure 7B, indicating that the passivation film is evaporating rapidly. The fact that the charge transfer resistance increased when corrosion inhibitors were present reveals that the alloy surface is protected. This occurs as a result of the active core of the organic polymeric framework adhering to the metal substrate, such as N and O, improving its ability to resist the Clion assault [48]. In addition, the ZnNiO@PANE protective effectiveness increases steadily with its dose in the medium. It improves MS alloy's ability to resist corrosion.  Figure 7C displays the Bode diagrams for MS alloy immersed in HCl-containing brine without and with various ZnNiO@PANE concentrations. It is easy to see that every Bode plot has two peaks, which shows that two relaxation processes take place when the ZnNiO@PANE composite is adsorbed on the MS alloy surface. It is due to the metal's   Figure 7C displays the Bode diagrams for MS alloy immersed in HCl-containing brine without and with various ZnNiO@PANE concentrations. It is easy to see that every Bode plot has two peaks, which shows that two relaxation processes take place when the Zn-NiO@PANE composite is adsorbed on the MS alloy surface. It is due to the metal's surface adsorption of ZnNiO@PANE molecules and the resistance to charge transfer, respectively. As ZnNiO@PANE concentration was increased, the interfacial impedance value increased, indicating that the corrosion inhibitor was successful in preventing MS-alloy corrosion. It is noteworthy that the slope of the impedance modulus (|Z|) is −1 in the middle range of frequency, indicating the capacitive property of the adsorption of ZnNiO@PANE molecules on the steel surfaces. ZsimpWin software was used to fit the experimental data with an appropriate equivalent circuit (EC) model to quantitatively examine the inhibition efficiency of the corrosion protection [49]. In this study, Figure 7D displays the EC model in use. An element with a constant phase (CPE) is used in the equivalent circuit. The CPE is often used simply as a way to improve the fit of a model to impedance data. In this model, R e represents the resistance of the HCl/NaCl electrolyte between the MS alloy and the reference electrodes, the polarization resistance of MS alloy is R P , R ads denotes the adsorbed film resistance, and C ads denotes the capacitance of the MS alloy/film interface. Q CPE represents the double-layer capacitance associated with the MS alloy/solution interface. The impedance of CPE is defined as follows [50,51]: where Y 0 expresses the CPE admittance, n is a deviation index, j ( √ −1) is the imaginary number, and ω stands for the angular frequency (ω = 2π f ). The CPE is equivalent to the real capacitance for n = 1 and the resistance for n = 0. Warburg impedance is not seen in this study, which also demonstrates that the ZnNiO@PANE molecules are more tightly adsorbed onto the MS alloy surface [52]. To obtain the double layer capacitance C dl , the frequency at which the imaginary component of the impedance is maximum (−Z img ), is found and C dl values are calculated from the following Equation [44]: The impedance parameters of the MS-alloy in HCl/NaCl solution at different concentrations of ZnNiO@PANE are shown in Table 2, where η E /% is computed as follows [48]: The polarization resistance in an HCl/NaCl solution without and with ZnNiO@PANE is shown by the letters R i p and R 0 p , respectively. The corrosion inhibition efficacy of Zn-NiO@PANE increases gradually with concentration, reaching a maximum efficiency of 93.03% at the ZnNiO@PANE concentration of 200 mg/L, according to Table 2. Therefore, it has been demonstrated that ZnNiO@PANE prevents MS alloy corrosion in HCl/NaCl medium.

Effect of Bi-Mixed Oxide ZnNiO NPs on the Inhibition Ability of the PANE
PDP tests with 200 ppm PANE and the corresponding ZnNiO@PANE nanocomposite were conducted to examine the impact of the ZnNiO NPs on the inhibitive capabilities of the PANE in the HCl/NaCl solution. The i cor of the ZnNiO@PANE nanocomposite is lower than that of the consistent PANE, as shown in Table 1. This clearly demonstrates the improved protective capabilities of the examined PANE nanocomposite, which may be related to the presence of ZnNiO NPs. Table 1 shows that the presence of ZnNiO NPs caused the i cor value for PANE to drop from 192.66 to 26.46 A cm −2 . The protective capability is raised for the corresponding ZnNiO@PANE nanocomposite from 84.64% for PANE to 97.89%. This seems to suggest that the ZnNiO NPs either directly interact with the MS alloy/solution interface or promote the contribution of additional PANE active sites in the adsorption process. According to previous studies [44,45] the metal NPs have a tendency to chemisorb immediately on an MS alloy surface. At first adsorbed at the MS alloy/medium interface, ZnNiO NPs exhibit corrosion inhibition by preventing aggressive ions from reaching the metal substrate. On the layer of ZnNiO NPs, the active PANE fundamentals are adsorbed. As a result of these films' hydrophobic character, water molecules cannot reach the MS-alloy surface.

Adsorption Isotherm Analysis
The adsorption isotherm model was used to examine the mechanism of ZnNiO@PANE adsorption on MS-alloy surfaces. The Langmuir, Temkin, Frumkin, and Freundlich adsorption isotherm models were used to fit the experimental data of the PDP as shown in Figure 8. Where, the adsorption isotherm models are expressed in the following [53,54]: Temkin; ⇒ exp (2αθ) = K ads C Inr.
Freundlich; ⇒ log θ = n log C Inr. + log K ads (12) Frumkim; ⇒ ln θ (1 − θ)C inh = 2αθ + ln K ads (13) where C inr describes the concentration [ZnNiO@PANE] in g/L, K ads signifies the equilibriumadsorption constant and θ is the surface coverage. The R 2 values for the four adsorption isotherm models are shown in Figure 8, and the R 2 value for the Langmuir isotherm model is 0.996, indicating that Langmuir adsorption offers the best fit. In general, the value of free energy of adsorption (G 0 ads ) can be used to evaluate the type of corrosion inhibitor adsorption. The adsorption is chemisorbed when G 0 ads < −40 kJ/mol. While G 0 ads > −20 kJ/mol the adsorption is physisorption. The adsorption is physicochemical in case the value of G 0 ads is in the range of −20 kJ/mol and −40 kJ/mol. G 0 ads is calculated as follows [55]: where 1000 is the water concentration (in g L −1 ), the R is the gas constant, and T is the absolute temperature (298.15 K) [4,23]. With the above equation, it is calculated that the G 0 ads of the ZnNiO@PANE molecule is -24.21 kJ/mol. It suggests that the adsorption of ZnNiO@PANE is physicochemical [56,57]. Accordingly, the protonated ZnNiO@PANE+ molecule and the Cl − ions that had previously been adsorbed on the electrode substrate (FeCl − species) may interact electrostatically to cause the physisorption. Additionally, donor-acceptor interactions between the vacant d-orbitals of Fe atoms and the unshared lone pairs of electrons from nitrogen atoms and the π-electrons of aromatic rings may result in the chemical adsorption of the C-H polymer and ZnNiO@PANE composite chains on the metallic interface [58]. Long-polymer chains, therefore, have a key influence on the inhibitory and adsorption capabilities in addition to the attractions of the polymer chain with the metal interface.
nor-acceptor interactions between the vacant d-orbitals of Fe atoms and the unshared lone pairs of electrons from nitrogen atoms and the π-electrons of aromatic rings may result in the chemical adsorption of the C-H polymer and ZnNiO@PANE composite chains on the metallic interface [58]. Long-polymer chains, therefore, have a key influence on the inhibitory and adsorption capabilities in addition to the attractions of the polymer chain with the metal interface.

DFT Calculations
The DFT optimized structural parameters and correlated theoretical parameters for the PANE, ZnO@PANE, and ZnNiO@PANE compounds are depicted in Figure 9 and listed in Table 3. As per the FMO theory, LUMO and HOMO energies serve to identify the competence of donor or acceptor interactions performed at the surface of nanocomposite/metal [32]. Therefore, for an inhibitor molecule with low ELUMO and high EHOMO values, the corrosion inhibition proficiency is augmented. In comparison to PANE and ZnO@PANE compounds (−4.930, and −4.510 eV), the ZnNiO@PANE molecule has the highest EHOMO value of −4.38 eV, as shown in Table 3. As presented in Figure 9, the level of HOMO was clearly assigned to the phenyl-amino moieties in the additive molecules, indicating that these sites are more likely to be targeted by electrophilic assaults on the CS alloy surface. These parameters support the capacity of the inhibitor additive to adsorb on the metal surface, leading to an increase in protection effectiveness that was well in line with the empirical results. On the other hand, the ELUMO value is −2.51 eV for the ZnNiO@PANE composite (Table 3) lesser than PANE and ZnO@PANE compounds (−1.87, −2.03 eV). The greater protective power of the ZnNiO@PANE molecule is indicated by its lower ELUMO value, which is consistent with earlier studies. Correspondingly, the energy gap (ΔE) is a significant stricture to improve the corrosion protection effect of the additive molecule, i.e., which upsurges as the ΔE value is decreased [33,59]. According to Table 3, the ZnNiO@PANE molecule has a stronger propensity to be adsorbed on the steel contact due to its slightly lower energy gap value (1.87 eV) than the PANE and ZnO@PANE molecules (3.06 and 2.46 eV).

DFT Calculations
The DFT optimized structural parameters and correlated theoretical parameters for the PANE, ZnO@PANE, and ZnNiO@PANE compounds are depicted in Figure 9 and listed in Table 3. As per the FMO theory, LUMO and HOMO energies serve to identify the competence of donor or acceptor interactions performed at the surface of nanocomposite/metal [32]. Therefore, for an inhibitor molecule with low E LUMO and high E HOMO values, the corrosion inhibition proficiency is augmented. In comparison to PANE and ZnO@PANE compounds (−4.930, and −4.510 eV), the ZnNiO@PANE molecule has the highest E HOMO value of −4.38 eV, as shown in Table 3. As presented in Figure 9, the level of HOMO was clearly assigned to the phenyl-amino moieties in the additive molecules, indicating that these sites are more likely to be targeted by electrophilic assaults on the CS alloy surface. These parameters support the capacity of the inhibitor additive to adsorb on the metal surface, leading to an increase in protection effectiveness that was well in line with the empirical results. On the other hand, the E LUMO value is −2.51 eV for the ZnNiO@PANE composite (Table 3) lesser than PANE and ZnO@PANE compounds (−1.87, −2.03 eV). The greater protective power of the ZnNiO@PANE molecule is indicated by its lower E LUMO value, which is consistent with earlier studies. Correspondingly, the energy gap (∆E) is a significant stricture to improve the corrosion protection effect of the additive molecule, i.e., which upsurges as the ∆E value is decreased [33,59]. According to Table 3, the ZnNiO@PANE molecule has a stronger propensity to be adsorbed on the steel contact due to its slightly lower energy gap value (1.87 eV) than the PANE and ZnO@PANE molecules (3.06 and 2.46 eV).  Typically, most inhibitors have moderately low values for electronegativity (χ), which represents the inhibitor's ability to contribute electrons to the surface of the CS alloy [60]. Contrarily, high values of χ also present a great possibility for inhibitor molecules to acquire electrons from iron surface atoms (i.e., back-donation) and form a more durable bond with the CS-alloy surface [61]. As shown in Table 3, it seems that the electronegativity for PANE, ZnO@PANE, and ZnNiO@PANE compounds is rather higher, suggesting that the compounds under consideration have the potential to donate electrons back to one another and form a more stable bond with a CS alloy interface.
Additionally, the hardness (η) and softness (σ) of an inhibitor could be utilized to gauge its reactivity and stability. Soft inhibitors, for example, have a greater shield capacity than hard compounds due to the smooth transfer of electrons to the CS alloy interface through the adsorption process, which makes them efficient corrosion inhibitors [62]. Table 3 shows that ZnNiO@PANE molecules have inferior η and greater σ values than PANE and ZnO@PANE molecules, which describes smoothly devoting electrons to the CS alloy substrate and excellent inhibitory properties. Likewise, the fraction of electron transfer and ΔEback-donation are essential factors for the inhibitor's proficiency in electron-offering or  Typically, most inhibitors have moderately low values for electronegativity (χ), which represents the inhibitor's ability to contribute electrons to the surface of the CS alloy [60]. Contrarily, high values of χ also present a great possibility for inhibitor molecules to acquire electrons from iron surface atoms (i.e., back-donation) and form a more durable bond with the CS-alloy surface [61]. As shown in Table 3, it seems that the electronegativity for PANE, ZnO@PANE, and ZnNiO@PANE compounds is rather higher, suggesting that the compounds under consideration have the potential to donate electrons back to one another and form a more stable bond with a CS alloy interface.
Additionally, the hardness (η) and softness (σ) of an inhibitor could be utilized to gauge its reactivity and stability. Soft inhibitors, for example, have a greater shield capacity than hard compounds due to the smooth transfer of electrons to the CS alloy interface through the adsorption process, which makes them efficient corrosion inhibitors [62]. Table 3 shows that ZnNiO@PANE molecules have inferior η and greater σ values than PANE and ZnO@PANE molecules, which describes smoothly devoting electrons to the CS alloy substrate and excellent inhibitory properties. Likewise, the fraction of electron transfer and ∆E back-donation are essential factors for the inhibitor's proficiency in electron-offering or admitting. Consequently, if the ∆N values are more than zero, the electron relocation from the inhibitor to the steel surface atoms is likely to occur, but the electron relocation from the metal atoms to the inhibitor molecule is feasible if the ∆N values are less than zero (i.e., back-donation) [63]. The fact that the studied molecules had ∆N values greater than zero, as listed in Table 3, indicates that the PANE, ZnO@PANE, and ZnNiO@PANE molecules are sufficiently able to contribute electrons to the CS-alloy surface. Moreover, the ∆E back-donation will be less than zero when η is more than zero, and the electron is removed to a compound, tracked by a back-donation from the molecule, and this is energetically desired [64]. Table 3 shows that the values of E back-donation for PANE, ZnO@PANE, and ZnNiO@PANE are negative, indicating that back-donation is desirable for these materials and will result in a strong connection [56].
Additionally, the Dmol 3 module evaluates molecular electrostatic potential mapping (MEP), which may reveal the active sites of the additive molecule. The MEP mapping is a 3D visual indicator used to recognize the total charge distribution's overall electrostatic impact on a molecule [70]. The great electron density region, where the MEP is particularly negative, is depicted by the red colours in the MEP maps shown in Figure 11 (nucleophilic reaction). Inversely, the shades of blue represent the area with the greatest positivity (electrophilic interaction) [71]. Figure 11 s optical analysis confirms that the highest negative regions are primarily above oxygen and nitrogen atoms, while the benzene rings have a lower electron density. These areas of increased electron density (i.e., the red area) in inhibitor molecules may be the utmost suitable for CS alloy surface attractions that produce strong adsorbed protective layers.
, and k k k f σ ω Δ Δ Δ < 0 have the propensity to move electrons to the steel surface.
Conversely, those sites with , and k k k f σ ω Δ Δ Δ > 0 have the capability to receive an electron from the CS alloy. As can be seen in Figure 10,  Additionally, the Dmol 3 module evaluates molecular electrostatic potential mapping (MEP), which may reveal the active sites of the additive molecule. The MEP mapping is a 3D visual indicator used to recognize the total charge distribution's overall electrostatic impact on a molecule [70]. The great electron density region, where the MEP is particularly negative, is depicted by the red colours in the MEP maps shown in Figure 11 (nucleophilic reaction). Inversely, the shades of blue represent the area with the greatest positivity (electrophilic interaction) [71]. Figure 11′s optical analysis confirms that the highest negative regions are primarily above oxygen and nitrogen atoms, while the benzene rings have a lower electron density. These areas of increased electron density (i.e., the red area) in inhibitor molecules may be the utmost suitable for CS alloy surface attractions that produce strong adsorbed protective layers.

MC Simulations
In addition to providing a clear notion of the adsorption mechanism, MC simulations were used to identify the attractions of the inhibitor compounds with the metal interface Additionally, the Dmol 3 module evaluates molecular electrostatic potential mapping (MEP), which may reveal the active sites of the additive molecule. The MEP mapping is a 3D visual indicator used to recognize the total charge distribution's overall electrostatic impact on a molecule [70]. The great electron density region, where the MEP is particularly negative, is depicted by the red colours in the MEP maps shown in Figure 11 (nucleophilic reaction). Inversely, the shades of blue represent the area with the greatest positivity (electrophilic interaction) [71]. Figure 11′s optical analysis confirms that the highest negative regions are primarily above oxygen and nitrogen atoms, while the benzene rings have a lower electron density. These areas of increased electron density (i.e., the red area) in inhibitor molecules may be the utmost suitable for CS alloy surface attractions that produce strong adsorbed protective layers. Figure 11. Molecular Electrostatic Potential (MEP) of the studied ZnNiO@PANE molecule.

MC Simulations
In addition to providing a clear notion of the adsorption mechanism, MC simulations were used to identify the attractions of the inhibitor compounds with the metal interface

MC Simulations
In addition to providing a clear notion of the adsorption mechanism, MC simulations were used to identify the attractions of the inhibitor compounds with the metal interface via the adsorption locator module. Figure 12 demonstrates that the inhibitor molecules are existing in an approximately flat disposition and achieve the greatest appropriate adsorption measures for the prepared compounds on the CS alloy surface in acidic solution. This suggests an enhancement in the adsorption and extreme covered surface [72]. Additionally, Table 4 reveals the calculated results based on MC simulations for the adsorption energies. It was discovered that the ZnNiO@PANE molecule (−2002.0 kcal mol −1 ) has a higher negative value of adsorption energy than the PANE (−1831.61 kcal mol −1 ) and ZnO@PANE (−1938.63 kcal mol −1 ), which assumes energetic adsorption of ZnNiO@PANE on the metal substrate, constructing a stable adsorbed layer, and shielding the CS alloy interface from corrosion. These outcomes assent with the results of the experiment [73]. In addition, Table 4 exhibits that the value of adsorption energy for the ZnNiO@PANE compound for the pre-geometry optimization stage, i.e., unrelaxed (−1642.67 kcal mol −1 ) is more-negative than individual polymer and ZnO@PANE compounds (−1533.32 and −1589.97 kcal mol −1 ), as well as for post-geometry optimization stage, i.e., relaxed (−359.38 kcal mol −1 ), which is also more negative adsorption energy than the corresponding values for PANE and ZnO@PANE compounds (−298.41 and −273.63 kcal mol −1 ), confirming a higher inhibition capability for ZnNiO@PANE composite compared with the other two compounds.
energies. It was discovered that the ZnNiO@PANE molecule (−2002.0 kcal mol −1 ) has a higher negative value of adsorption energy than the PANE (−1831.61 kcal mol −1 ) and ZnO@PANE (−1938.63 kcal mol −1 ), which assumes energetic adsorption of ZnNiO@PANE on the metal substrate, constructing a stable adsorbed layer, and shielding the CS alloy interface from corrosion. These outcomes assent with the results of the experiment [73]. In addition, Table 4 exhibits that the value of adsorption energy for the ZnNiO@PANE compound for the pre-geometry optimization stage, i.e., unrelaxed (−1642.67 kcal mol −1 ) is more-negative than individual polymer and ZnO@PANE compounds (−1533.32 and −1589.97 kcal mol −1 ), as well as for post-geometry optimization stage, i.e., relaxed (−359.38 kcal mol −1 ), which is also more negative adsorption energy than the corresponding values for PANE and ZnO@PANE compounds (−298.41 and −273.63 kcal mol −1 ), confirming a higher inhibition capability for ZnNiO@PANE composite compared with the other two compounds.

Final Equilibrium Configurations
Side View Top View ZnNiO@PANE Figure 12. The highest suitable adsorption configuration based on the adsorption Locator module for the ZnNiO@PANE molecule on iron (110) Substrate.  If adsorbed H 2 O or an inhibitor molecule has not been included, the dE ads /dN i values help to clarify the steel/adsorbates conformation energy [73]. According to Table 4, the ZnNiO@PANE molecule exhibits superior adsorption over PANE and ZnO@PANE molecules because its dE ads /dN i value (−298.32 kcal mol −1 ) surpasses those of PANE and ZO@PANE molecules (−219.81 and −273.21 kcal mol −1 ). Additionally, for water molecules, hydronium ions, and chloride ions, the dE ads /dN i values are approximately −17.50, −54.43, and −96.03 kcal mol −1 , respectively. These values are low when compared with the values of PANE molecules, ZnO@PANE and ZnNiO@PANE composites, revealing that inhibitor molecules adsorb strongly relative to H 2 O molecules, chloride ions, and hydronium ions, thereby promoting the inhibitor compound's superiority over those ions. According to both experimental and theoretical investigations, the PANE, ZnO@PANE, and ZnNiO@PANE compounds are therefore stubbornly adsorbed on the CS alloy surface and create a potent adsorbed defensive film that leads to corrosion protection for CS alloy sample in the corrosive medium.

Comparative Studies with Previous Reports
This study is the first of its kind to use a nanocomposite based on ZnNiO NPs @PANE as a protective film for MS alloy in a corrosive media of HCl/NaCl. Table 5 compares investigations of the steel protection capabilities of ZnNiO@PANE nanocomposites with those of other polymeric nanocomposites utilized in an acidic chloride medium [74][75][76][77]. When compared to other materials, the ZnNiO@PANE nanocomposite has the best protective efficacy against acidic MS alloy corrosion.

Conclusions
In this work, novel protective films based on binary ZnO/NiO@polyaniline (Zn-NiO@PANE) nanocomposite were successfully synthesized and confirmed. In line with the experiential and theoretical examinations, the following conclusions were made as a result: