Evaluation of Tannins as Potential Green Corrosion Inhibitors of Aluminium Alloy Used in Aeronautical Industry

: In this work some organic natural products were studied, namely tannic acid, gallic acid, mimosa tannin and chestnut tannin, as potential green corrosion inhibitors of the aluminium alloy AA2024-T3. The anodizing treatment was performed in a solution of the referred organic compounds in diluted sulfuric acid. The electrochemical impedance spectroscopy and the potentiody-namic polarization were performed to assess sealing quality and corrosion protection granted by the anodic films. To understand the green inhibitors; interaction with the metal surface, FTIR spectra of anodizing and anodizing and sealed samples of AA2023-T3 were recorded, and the shifts in the position of the major bands confirmed that the green inhibitor interacts with the metal surface. Images of the morphology of the coatings were provided by Scanning Electron Microscopy. From the results obtained through the various techniques that were used to carry out this study it is possible to conclude that the formed anodic films can be a good contribution for the prevention of corrosion in the aluminium alloy AA2024-T3.

The anodising process in acidic media, mainly in sulfuric, chromic, boric or phosphoric acids, is widely used in the aeronautical industry to protect the aluminium alloys.On the other hand, former conversion treatments based on hexavalent chromium compounds have been restricted because these compounds are carcinogenic and have high environmental toxicity [12,13,20,21].
Anodic films obtained by anodizing in acid media usually consist of two layers, the inner one being a thin compact layer (100-150 Å) located next to the metal (barrier layer) [22], the thickness of which is directly proportional to the applied potential.The porous outer layer material, resulting from the etching of the acid to the oxide formed during anodizing process, consists of hexagonal columnar cells with a cylindrical pore at the center of each cell.These cells may reach up to about 100 μm thick under certain experimental conditions.To increase the corrosion resistance of these films, the pores of the oxide film must be blocked, which is achieved via immersion of the alloy in boiling water (sealing process).A hydrated oxide layer (bohemite, Al2O3.H2O) is thus formed, closing the pores [22].
The pores of the anodic film formed in sulfuric acid solution without any other chemical added are not well defined and the distribution is irregular [19].In the literature several alternatives are described for better organizing the porous layer thus formed based on the use of anodising baths composed of mixtures of inorganic acids such as boric/sulfuric acid or by mixtures of organic/inorganic acids, such as the tartaric acid-sulfuric acid anodising bath (TSA) used by AIRBUS company [15].The pores of the anodic films formed in TSA are well distributed and appear to be well organized [19].
The oxide film formed by anodization in the TSA bath does not dissolve in this medium but tartaric acid can combine with aluminium cations to produce aluminium tartrate.If the conversion coating is exposed to a corrosive environment, aluminium tartrate, despite its low solubility in water, may re-dissolve in some extension, producing a local buffer and thereby limiting the susceptibility to localized corrosion [15,22].
The inhibition of metal corrosion using green inhibitors in acidic media is a subject under development and a great number of studies are available.Usually, these inhibitors are organic compounds that contain heteroatoms such as O, N or S and sometimes multiple bonds, which may allow their chemical adsorption on the metal surface [23][24][25][26][27][28][29][30][31][32].These studies are focused on the use of naturally occurring substances in order to find low-cost and non-hazardous inhibitors [27].Examples of organic inhibitors include carboxylic acids, alkaloids, polyphenols and various plant extracts [33][34][35].
Tannins comprise a wide range of natural biodegradable polyphenols [31,[32][33][34][35][36][37][38][39].They have been used since antiquity to tan animal skins to form leather [29].They are macromolecules with a molecular weight between 500 and 30,000 Da.Tannins are divided into two major groups, the hydrolysable tannins and the condensed tannins [30,37,40,41], and two less important ones, the phlorotannins and the complex tannins (Figure 1).The hydrolysable tannins are esters of a monosaccharide, usually glucose, and phenolcarboxylic acids, and can be divided into two sub classes: gallotannins and ellagitannins.The condensed tannins are polymeric derivatives of flavonoids [34].From acidic hydrolysis, gallotannins produce gallic acid and ellagitannins produce ellagic acid.Hydrolysable tannins such as chestnut bark and sumac leaves, the last one being a source of tannic acid, are used in the tanning industry.In gallotannins, the hydroxyl functions (OH) of the monosaccharide core can be partly or completely esterified with galloyl units.This class of compounds is present in many plants with important biological properties.Tannic acid, the most representative compound of this class, is constituted by a glucose central unit whose hydroxyl groups are esterified with digalloyl units linked by a meta-depside bond [40,41], Figure 2. Ellagitannins also contain a monosaccharide esterified with gallic acid and at least one hexahydroxydiphenoyl residue formed by oxidative coupling between two galloyl units.Investigation of the constitution of chestnut tannin, an ellagitannin, indicated that the main components are monomeric vescalagin and castalagin, which represent 40-60% of this ellagitannin, Figure 3 [41].Complex tannins are formed from an ellagic acid unit and a flavan-3-ol unit linked to a monosaccharide unit and are rare.Phlorotannins are present in brown seaweeds and are polyphenolic compounds formed by polymerization of phloroglucinol units.
The literature describes the corrosion inhibition effect of tannins for steel alloys and carbon steel [30,36,39] resulting from the adsorption of these compounds on a metal surface and the blocking of active surface sites, thus reducing the corrosion rate [27].The same authors describe the four types of adsorptions that may take place by these organic molecules at the metal/solution interface: (a) electrostatic attraction between the organic molecules and the metal; (b) interaction of oxygen lone electron pairs with the metal; (c) interaction of tannin molecule π-electrons with the metal; (d) combination of (a) and (c).
The stability of the corrosion inhibitor film on the metal surface depends on some physicochemical characteristics of the organic molecule, such as its functional groups, aromaticity, possible steric effects and electronic density of heteroatoms, which may act as electron donors.The type of corrosive medium, the structure and the charge of the metal surface and the nature of the interaction between the π-orbital of inhibitors with the dorbital of metal are also very important to the stability of the inhibitor film [27].
The efficiency of corrosion inhibition by organic compounds can be related to the amount of adsorbed organic inhibitor on the metal surface.The adsorption of a corrosion inhibitor is possible due to the residual charge on the surface of the metal and the nature and chemical structure of the organic compound.On a metal surface, the inhibitor is bonded by physical or electrostatic forces and chemisorption [28,30].When adsorption occurs due to electrostatic forces, since these forces are weak, the reverse process will also occur easily.Indeed, organic charged species do not make direct contact with the metal due to the presence of a layer of water molecules that separates them [30].
Interaction between polar organic species and metal surfaces can occur by another process, chemisorption.This process is slower than electrostatic sorption and is temperature-dependent.It shows higher inhibition efficiencies at higher temperatures.Chemisorption of the organic compounds can be performed through the existence of polar functional groups or groups that can dissociate [30].
Tannins have been used as corrosion inhibitors for iron and steel, as mentioned previously.They can form chelates with metallic cations due to the presence of vicinal hydroxyl groups on aromatic rings.Tannins also have been referred to as rust converters since their presence converts active rust into non-reactive protecting oxides.Protection properties result from the reactions of polyphenolic sub-unit of the tannin molecule with ferric ions, thereby forming highly cross-linked network metallic-tannates [27][28][29][30][31][32][33][34][35][36][37][38][39].Other studies [42] have elucidated the inhibitory actions of chestnut tannin on metal corrosion by means of the frontier orbital theory.These authors using the results of the molecular modelling and corrosion rate measurements found that tannin constituents probably adsorb as neutral species by means of electrostatic forces that act between the molecular dipoles and the charged metal surface.
Martinez et al. [43][44][45] studied the corrosion of steel in the presence of mimosa tannin or gallic acid and, using molecular modelling, showed that adsorption of tannin molecules could proceed via sharing of the non-bonding electrons of the -OH group of the polyphenol aromatic subunit, with the partially filled d-orbitals of a metal, e.g., iron.
The literature describes how mimosa tannin reacts with Fe 3+ produced at anodic sites to form ferric tannate species [46,47].Ross et al. [48] suggested that the structure of the ferric tannate chelate obtained with mimosa tannin contains three tannate ions, each tannin ion coordinating two vicinal hydroxyl group to the metallic ion, thus forming a stable octahedral coordination compound.
Due to the large number of vicinal phenolic hydroxyls, each molecule could react with a few metallic ions to form a network structure [30,36,46], Figure 5. Since there are a limited number of papers reporting the prevention of the corrosion of aluminium alloys by natural corrosion inhibitors, the purpose of this study was to clarify the interaction of some commercial tannins with the AA2024-T3 aluminium alloy.Tannic acid, chestnut bark and mimosa tannin were selected.The first two are hydrolysable tannins, the former a gallotannin and the second one an ellagitannin.Mimosa tannin is a condensed one.Gallic acid present in all of those tannins as a galloyl residue was also investigated.To achieve this goal, the surface of the treated alloy was tested by polarization assays and electrochemical impedance spectroscopy, and FTIR spectra of the metallic samples were recorded to investigate the presence of the organic inhibitor at the metal surface.The long-term stability of the baths used in the anodizing of AA2024-T3 was also investigated by UV-Vis spectroscopy.
AA2024-T3 aluminium alloy was cut into specimens with dimensions of 50 × 15 × 0.6 mm.The samples were degreased by washing first in acetone and then in deionized water, mechanically sanded using successively finer grades of SiC papers (Nº 400, Nº 800, Nº 1200 and Nº 1500) and finally rinsed with deionized water.
Before anodising, the samples were dished in a commercial chromate-free alkaline cleaner (Turco 4215 NCLT-HENKEL) at 65 °C for 15 min.Finally, they were dipped in a chromate-free commercial acid etching bath (SOCOSURF 1858) at room temperature for 5 min.After each step they were rinsed in distilled water.Then, an anodizing area of 6 cm 2 was delimited using Teflon tape.The anodization was performed using a Peak Tech DC Dual Power Supply 6010D, using a lead sheet with an area of 32 cm 2 as cathode, by applying a potential difference of 14V for 25 min at a temperature of 35 °C.After the anodization procedure, the specimens were washed in distilled water at room temperature and then the specimens were subjected to the sealing process that consisted in immersion in a distilled water bath at 96 °C for 20 min.Next, they were dried and kept in a desiccator.

UV-Vis Spectra
UV-Vis spectra of anodizing baths were acquired on Shimadzu 1603 double beam spectrophotometer (Izasa Scientific, Lisboa, Portugal) using 1 cm quartz cells.Spectra of the solution containing the organic inhibitor (0.01 g.dm −3 ) in H2SO4 (0.46M) was recorded over 12 months after its preparation.
To determine the stability of the anodizing bath over time, the initial UV-VIS spectra of each bath was recorded before any experiment.The samples were diluted with H2SO4 (0.46M) until the inhibitor reached a concentration of 0.007 g.dm −3 .

Electrochemical Measurements
The EIS measurements were carried out using a CH Instruments electrochemical analyser CHI604D and all the measurements were performed at room temperature in a Faraday cage.A three-electrode arrangement was used in a conventional electrochemical glass cell.A saturated calomel electrode (SCE, 0.241 V vs. NHE) was used as reference and a large area platinum coil employed as counter electrode, the probed area of the working electrode (6 cm 2 ) being restricted using a teflon tape.
The electrolytic medium consisted of a 0.5M NaCl aqueous solution naturally aerated.MILLI-Q water (18.2MΩ•cm at 25 °C) was used to prepare the test solutions.Prior to any electrochemical experiment, the open-circuit potential of the specimen was continuously monitored for 50 min.It was found that this period of the time was enough to reach a stable potential plateau with an oscillation of less than 1mV in the last 5 min of OCP monitoring.
The potentiodynamic polarization experiments were carried out at a scan rate of 0.2 mV/s, starting from −200 mV below the open circuit potential (OCP) and finished not prior to the pitting potential having been reached, the measurements being repeated in duplicate.The corrosion current (Icorr) was obtained from the intercept of extrapolated cathodic and anodic Tafel lines at the corrosion potential (Ecorr).

FTIR Spectroscopy
FTIR analyses were carried out using a Nicolet 6700 spectrometer (ThermoUnicam, Miraflores, Portugal) equipped with a Smart SAGA™ (Specular Apertured Grazing Angle) Accessory.Spectra were recorded in the 4000-400 cm −1 range with a resolution of 4 cm −1 , averaging 128 scans per sample.The data were collected with Omnic 3.1 software.

Scanning Electron Microscopy (SEM)
The surface morphology of the samples anodized and anodized and sealed was evaluated by Scanning Electron Microscopy (SEM) using a Hitachi S2400 equipment.The samples were deposited with Au/Pd before the SEM analysis.

Morphology Analysis
Changes in the surface of aluminium samples anodized in sulfuric acid baths containing the organic compounds under study, namely gallic acid (GSA), chestnut tannin (CSA), mimosa tannin (MSA) and tannic acid (TNSA), and sealed after anodization were investigated by SEM (Figure 6).The above figures show that the anodized and sealed samples are more homogeneous when compared to the samples only anodized.After sealing, the samples show some areas with a crystalline appearance and the extension of these areas are greater in the sample treated in the TNSA bath.This type of morphology has already been reported by other authors in similar studies [24].The sample anodized and sealed in the CSA bath is the one that exhibits a compact and homogeneous surface, which results in a better anticorrosive performance, as described below.According to literature [19,24,26,49], when samples are treated in a bath composed only with sulfuric acid (SA bath), they present pores not well defined and with an irregular distribution, which points to the better performance of the CSA bath when comparing it to the SA bath.

Coating Characterization
FTIR spectra of all samples were recorded and are depicted in Figure 7 and Tables 1  and 2. The interpretation of these results led to the conclusion that, after the anodizing process, all samples present a similar spectrum in the region of 1400 to 400 cm −1 (Figure 7A), thus leading to the further conclusion that the appearance of bands in this region of the spectrum is due to the anodization process and consequently are not related to the presence of the organic corrosion inhibitors on the surface.A similar record was obtained from samples subjected to anodizing, followed by the sealing processes (Figure 7B).The spectra of anodized samples show different bands in the region 4000-1400 cm −1 , which can be explained by the presence of different organic inhibitor molecules inside the pore.After the sealing process, FTIR of samples treated in baths containing the organic corrosion inhibitor present new bands in this range when compared to the FTIR spectra of the sample treated with a bath containing only sulfuric acid (SA).These new bands are probably related to the formation of complexes with the metallic ions Al 3+ and Cu 2+ formed during the anodization process.After the sealing process it is possible to observe the decrease of the band at 980 cm −1 and the appearance of a new band at approximately 500 cm −1 in all spectra.
(A) (B) From the data presented in the above spectra and tables it is possible to conclude that the anodizing process was effective in all samples, since the band of adsorbed H2O corresponding to the hydrated oxide layer appears at 4000-3000 cm −1 in all spectra [50,51].
In the FTIR spectra of the anodized sample in the SA bath, the two bands at 3419 cm −1 and 3037 cm −1 are attributed to -OH bands and the band at 1635 cm −1 may be attributed to H-O-H bands of hydration water of aluminium oxides.The band at 1151 cm −1 corresponds to the Al-O-H bending, which is evidence of the presence of boehmite.The band at 980 cm −1 is attributed to the stretching vibration of Al = O of alumina and confirms the presence of aluminium oxides and the band at 651 cm −1 is attributed to νasAl-O in the octahedral oxide AlO6.The difference observed in the spectra of anodized and anodized and sealed samples is related to the formation of boehmite in the sealing process, the appearance of a band at 501 cm −1 being assigned in the literature to the Al-O bonds of boehmite [42,[51][52][53][54].In the anodizing baths, tannin molecules can coordinate two or more OH groups with aluminium and/or copper cations.The presence of aluminium and/or copper produces a difference in the νCOO-vibrations of this tannin functional group.For the anodized sample in GSA bath, a band at 1637 cm −1 is attributed to νsCOO −.After the sealing process, a new band appears at 1402 cm −1 and an increase of the band at 1637 cm −1 is observed.This is probable due to the formation of complexes between gallic acid and Al cations.After the sealing process, the spectra present a strong band at 3062 cm −1 corresponding to the νOH.The bands at 3485 cm −1 correspond to the νOH of adsorbed H2O [55].
In the spectra of the sample treated in TNSA it is possible to identify the νCOO − at 1552 and 1464 cm −1 .The bands at 2540, 2854, 2924 and 2947 cm −1 correspond to the νC-H vibration and at the band 3500 cm −1 can be attributed to the νO-H.After the sealing process, it is possible to observe the displacement of the bands corresponding to νCOO − .These significant changes in spectra profile of TNSA treated sample at the range 1700-1400 cm −1 are due to the chelation products formed between the tannin and the cations during the electrochemical process [54,55].In addition, FTIR spectra of samples treated with TNSA inhibitor present distinguished bands in 3089 cm −1 and 3537 cm −1 , attributed to νOH of adsorbed H2O and, at 3695 cm −1 , to νOH belonging to the Al-OH bond.
The spectrum of the anodized sample in MSA shows a band at 2675 cm −1 due to the νC-H vibrations and two strong bands at 3427 cm −1 and 3963 cm −1 , corresponding to the νOH vibration in the Al-OH group.After the sealing process, the band at 1543 cm −1 disappears and the band at 1624 cm −1 decreases.Mimosa tannin is formed by catechin units linked together.Of the various compounds studied, it is the only one that has a 1,2-dihydroxybenzene catechol ring in its constitution, which is easily oxidized to an o-quinone so that it can be hypothesized that the appearance of a new band at 1867cm −1 in the FTIR spectrum may correspond to vibrations νC=O of a complex that will form between the aluminum and/or copper ions and the carbonyl groups of the o-quinone residue.
The spectra of anodized samples in the CSA bath present two strong bands at 1475 cm −1 and 1577 cm −1 .These bands correspond to strong and asymmetric vibration of aromatic C=C and a complex carboxylic group, respectively.These bands disappear after the sealing process.In the spectra of anodized and anodized and sealed samples in the CSA bath, the bands corresponding to νOH are present at 3485 cm −1 and 3826 cm −1 .
In the spectra of anodized samples prepared with the TNSA, MSA and CSA baths, it is possible to observe a weak band around 2800 cm −1 that, according to the literature [49], can be attributed to strong intramolecular hydrogen bonds in organic compounds.

Stability of the Bath Solution
The stability of the bath solution to be used in the anodizing process was monitored over 12 months using UV spectroscopy.To study the bath stability over time the UV spectra of the bath solutions were recorded between 200 and 400 nm. Figure 8 shows the overlapped spectra for all studied baths.Regarding the GSA bath, it can be seen that all spectra present two bands with λmax1 = 214 nm and λmax2 = 272 nm and two inflection points at 202 nm and 239 nm.The results obtained led us to affirm that the solution is stable during this period of time.The TNSA bath spectra profile is similar to the GSA bath spectra.These spectra also show two intense bands with λmax1 = 213 nm and λmax2 = 274 nm and two inflection points at 202 nm and 241 nm.The slight increase in the intensity of the bands can be due to a small evaporation of the solvent during a year which resulted in a higher concentration of the tannin.MSA bath spectra show that this tannin solution is also stable over time, with λmax = 280 m and an inflection point at 258 nm.The CSA bath spectra show a flattening in the region 240-260 nm after 2 months, indicating some instability over time probably due to decomposition/hydrolysis of some constituents.Spectra presented in Figure 9 were obtained with freshly prepared solutions and after these solutions were used in more than twenty anodization experiments.From this figure it is possible to verify that only the MSA solution presents a strong alteration, which may be due to the consumption or, more likely, to the electrochemically oxidation of tannin molecules promoted during the anodizing process.TNSA solution spectra, before and after the twenty anodizing experiments, also present a slight difference, which can be due to the hydrolysis of tannic acid and the formation of free gallic acid in the bath, in accordance with the small wavelength shift observed in bands.Spectra of the other two solutions involved in the study only reveal a minor decrease of the signal amplitude resulting from the consumption of the organic compounds.For the GSA bath the two spectra have λmax at the same value, 214 and 272 nm, and for the CSA bath the wavelength values of maximum absorbance and shoulder have almost the same value, which is an indication that these baths are not degraded by the anodizing process.

Electrochemical Measurements
The behavior of the anodizing and sealed samples regarding corrosion was also studied by EIS.The spectra are presented in Figures 10-14.The physical transformations that occur in the porous layer formed during the anodizing process on the surface of the samples are reflected in the variations of impedance that occur at high and medium frequencies [15][16][17][18][19]. Analyzing the results, it is possible to conclude that the anodized specimen in TNSA solution presents a smaller variation in impedance value (│Z│) with immersion time, when compared to the samples anodized in other corrosion inhibition media involved in this study.From the analysis of the spectra, it is also possible to conclude that the anodized specimen in the GSA solution presents the more susceptible barrier layer to corrosion when compared to the other samples, which can be confirmed by the decrease of the impedance value (│Z│).At the same time, slight shifts of phase-angle were observed during the immersion time.This behavior may be due to the increase in the corrosion phenomenon promoted by the contact with the corrosive agents.The analysis of these spectra also allows us to conclude that the samples anodized in the TNSA, CSA and MSA baths have better barrier properties than the GSA and SA baths.Different equivalent circuits have been proposed to fit the behavior of porous anodic films.Figure 15A illustrate the physical description of the electric circuit used to describe the physical meaning of various electrochemical fit parameters.This model was successfully applied to explain the properties of the barrier and porous layer by Suay et al. [53].The Rsol represents the resistance of the electrolyte, RH and CH correspond, respectively, to the resistance and capacitance of the surface layer of hydrated oxide, Rp is the pore resistance and explains the limitation of electrolytic charge transfer through pores and coating defects, Cp represents the capacitance of the formed pores and Rb and Cb parameters represent, respectively, the resistance and the capacitance of the barrier layer.The barrier effect of the hydrated oxide layer formed is very important in the corrosion protection of aluminium alloys, since it is the last layer that separates the electrolyte from the alloy.The entrance of the electrolyte into this barrier layer can cause its degradation, thus causing the corrosion of the alloy.The resistance and capacitance of the pore wall are represented by Rpw and Cpw, respectively.Figure 15B shows the physical model used by several authors [56][57][58][59][60] for fitting sealed anodic film.In this model, the Rpw and Cpw are both generally omitted since they are, respectively, extremely high and extremely low [57][58][59][60].This model barely permits the conduction of ions through taking into consideration the infinitesimal current across the very large resistance [60][61][62][63].However, from Bode plots, it can be said that the porous layer and barrier layer have heterogeneities, making their capacitive behavior better simulated by a constant phase element [56][57][58][59][60]. Therefore, the Cp and Cb represent the constant phase elements (CPE) corresponding to the non-ideal capacitance at the porous layer and the barrier layer.CPE is defined: CPE = 1/(j2πfC) n [57][58][59][60].
The parameters np and nb are influenced by CPEp and CPEb, respectively, due to the non-ideal capacitive behaviors.Parameter n is the frequency dispersion factor and varies from 1 to 0. When n = 1, CPE can be considered as real capacitances, whereas n = 0 represents a real resistance [58].
The results obtained from the fitting experiments are present in Figure 16.A representative example of fitting for the equivalent circuit indicated in the Figure 15B is included in Figures 10 and 11  From the analysis of the results obtained for the Rp parameter presented in Figure 16A it is possible to verify that, at the beginning of immersion, the samples treated with baths containing the organic inhibitors present a higher pore resistance value when compared with samples treated in the SA bath.The sample treated in the TNSA bath is the one that presents a lower value when compared with the samples treated in baths with the other organic inhibitors.After a day of immersion in NaCl 0.5M solution, it was found that virtually all samples treated in CSA and MSA baths have a very sharp decrease, which means that the films begin to degrade.Opposite behavior was showed for samples treated in the TNSA, GSA and SA baths where this parameter increased.This behavior may be due to the fact that the corrosion phenomenon is still very localized, since the corrosive solution can only reach the substrate through some paths that are formed as a consequence of the defects of the anodic film.Precipitation of corrosion products may then occur in these areas blocking the conductive pores [61].Therefore, these paths are prevented and the resistance of the coating increases.It can also be speculated that, inside the pores, the green corrosion inhibitor can re-dissolve, producing a buffer solution which prevents local change in pH, thus limiting the localized corrosion.Such a phenomenon would be similar to what was reported for tartaric acid in a sulfuric acid bath: the residual tartaric acid can combine with aluminium cations during the conversion process to produce aluminium tartrate due to re-dissolution during the immersion in corrosive media, limiting the susceptibility to localized corrosion [15].After 28 days, it was found that the samples present a close value for Rp parameter.
Regarding the results obtained for the CPEp parameter, Figure 16B, initially this value was very low for all samples; however, a slight increase was observed over the immersion time for the samples treated in the GSA and SA baths.The samples treated in the MSA, TNSA and CSA baths have a practically constant value over immersion time, which means that these samples are less permeable to an electrolyte rich in chloride.
From the results obtained for the parameters that allow evaluation of the properties of the barrier layer, the parameters Rb and CPEb, we can conclude that the presence of the organic inhibitors in the baths promote better barrier properties.
In relation to the parameter Rb, it was possible to verify that, after 28 days, the sample treated in the GSA bath showed a Rb value close to the one of the sample treated with the SA bath, but lower when compared to the samples treated in baths containing the other organic inhibitors, which means that this sample exhibited a worse barrier resistance when compared to the others samples.
Concerning the CPEb parameter, it was observed that, initially, this parameter presented very low values for all samples.After 28 days, the sample treated in the SA bath showed a higher CPEb in relation to the other samples treated in the other baths.From the results obtained it is possible to conclude that the GSA bath exhibited the worst performance, which probably is related to the fact that gallic acid molecules contain an inferior number of oxygen atoms than others organic inhibitors able establish the interaction with the metal surface.This explanation also was mentioned in literature studies which evaluated the performance of corrosion inhibition on mild steel in HCl acid solution by tannic acid and gallic acid [62].
The values of np and nb are presented in Table 3.The np behavior indicates that the porous layer is more resistant in the initial stage.In the beginning, the np value is close to 1, indicating that the barrier layer is relatively homogeneous and few defects are present.During the immersion time the number of defects increase and consequently the np and nb decrease [58].From the EIS results obtained it is possible to conclude that the presence of tannins in baths' conversion increases corrosion resistance and can therefore be a viable and sustainable alternative The potentiodynamic polarisation plots for specimens in 0.5 M NaCl are shown in Figure 17 and the corrosion potential (Ecorr) and corrosion current (Icorr) obtained for the bare and treated AA2024-T3 samples are summarized in Table 4.The results allow for the conclusion that the protection is effective for all samples treated, leading to a corrosion current (Icorr) decrease.Anodization followed by sealing in the SA, MSA and CSA baths produce anodic films that present Icorr values of the same order of magnitude.When anodization followed by sealing is performed in the TNSA and GSA baths, the same Icorr value of ≈5.0 × 10 −8 A/cm 2 is observed.It is also verified that aluminium samples AA2024-T3 treated in the CSA bath have a more negative corrosion potential (Ecorr ≈ −0.706 V vs. SCE) than the samples treated with the other organic inhibitor solutions.As is well known, chloride can cause severe pitting in aluminium alloys.The difference between Ecorr and Epit, (ΔE) suggests a susceptibility to localized pitting corrosion.Furthermore, the more positive Epit is relative to Ecorr, the more resilient the sample is to pitting [63].From the results obtained, it is possible to conclude that the CSA present a higher difference between Ecorr (−0.706V vs. SCE) and Epit (≈ −0.691 V vs. SCE).For the others samples a significant perturbation was observed in the anodic branch of the log i vs. E plot, and the values of Ecorr and Epit presented the same value.
The TNSA sample showed a pitting potential (Epit), (Epit ≈ −0.552 V vs. SCE), higher when compared with the other samples involved in the study.The CSA sample present a lower Epit.
The results obtained permit us to conclude that the sample treated in the CSA bath show the lowest susceptibility to corrosion.

Conclusions
The tannin compounds involved in this study present the general requirements to be employed as inhibitors of aluminium corrosion since they have the capacity to promote a passive/protective layer on its surface.Tannin molecules have several hydroxyl and carbonyl groups that contain oxygen atom with the ability to donate their lone pair of electrons in an interaction with the metal.Tannin molecules also have several aromatic πbonds that provide the electrons needed to interact with the metal surface.Since they are large molecules, they also have the abilit to cover a large area of the metal surface with a firmly attached compact film, which is nontoxic to humans and the environment.
The use of FTIR spectroscopy showed two new bands at 1543-1577 cm −1 and 1132-1134 cm −1 corresponding to the stretching of carboxilate and cyclic ether bonds, respectively, indicating that tannins were absorbed on the surface of the metal, thereby protecting it from further corrosion attack.The difference in FTIR spectra of aluminium samples treated in baths that contain these tannins when compared to samples treated in only sulfuric acid bath confirms the complexing of tannins with metal ions and allow the conclusion to be reached that the interaction between the metal and the inhibitors occurs by hydroxyl and carboxyl groups present in the organic molecule.
From the above electrochemical results, it is possible to conclude that the CSA bath is a better corrosion inhibitor regarding the aluminium alloy AA2024-T3 compared to the other tannin baths and SA bath.This fact can be confirmed because the sample treated in the CSA bath showed a lower Icorr value (1.3 ± 0.6 × 10 −9 A/cm 2 ).The EIS results suggest that tannin baths, when compared to the SA bath, present the capacity to promote a more compact oxide barrier layer, which is a very important event in corrosion protection of aluminium alloys, since it is this last layer that separates the electrolyte from the metal alloy.
Since tannic acid, chestnut and mimosa tannin are obtained from renewable vegetable sources, these tannins can be considered as green inhibitors of the corrosion of aluminium alloy.Funding: Financed by Fundação para a Ciência e a Tecnologia, I.P./MCTES through national funds (PIDDAC).The authors acknowledge Fundação para a Ciência e a Tecnologia, I.P for funding the project UIDB/00100/2020.

Figure 2 .
Figure 2. Chemical structure of tannic acid with the digalloyl ester sub-unit marked.

Figure 5 .
Figure 5. Structure for the (A) mono-complex, (B) bis-complex and (C) metallic tannate chelate where R represents the remainder of the tannin molecule

Figure 7 .
Figure 7. FTIR spectra of the samples (A) anodized and (B) anodized and sealed.

Figure 9 .
Figure 9. UV spectrum of the (A) GSA, (B) TNSA, (C) CSA and (D) MSA solutions before and after anodized process.

Figure 15 .
Figure 15.Physical representation of the equivalent circuit used for interpretation of impedance data: (A) general model; (B) simplified model for sealed anodic used for fitting impedance data.
Figure15Bshows the physical model used by several authors[56][57][58][59][60] for fitting sealed anodic film.In this model, the Rpw and Cpw are both generally omitted since they are, respectively, extremely high and extremely low[57][58][59][60].This model barely permits the conduction of ions through taking into consideration the infinitesimal current across the very large resistance[60][61][62][63].However, from Bode plots, it can be said that the porous layer and barrier layer have heterogeneities, making their capacitive behavior better simulated by a constant phase element[56][57][58][59][60].Therefore, the Cp and Cb represent the constant phase elements (CPE) corresponding to the non-ideal capacitance at the porous layer and the barrier layer.CPE is defined: CPE = 1/(j2πfC) n[57][58][59][60].The parameters np and nb are influenced by CPEp and CPEb, respectively, due to the non-ideal capacitive behaviors.Parameter n is the frequency dispersion factor and varies from 1 to 0. When n = 1, CPE can be considered as real capacitances, whereas n = 0 represents a real resistance[58].The results obtained from the fitting experiments are present in Figure16.A representative example of fitting for the equivalent circuit indicated in the Figure15Bis included in Figures10 and 11.

Figure 17 .
Figure 17.Polarization curves in 0.5M NaCl recorded at a scanning rate of 0.2 mV/s, starting from −200 mV below the open circuit potential, sweeping in the positive direction and finished not prior to the pitting potential being reached.

Table 4 .
Summary of the electrochemical parameters measured for different specimens.
Author Contributions: Conceptualization, J.C. and M.E.M.A.; methodology, J.C. and M.E.M.A.; experimental execution, C.S.P.; writing-original draft preparation, C.S.P.; writing-review and editing, B.S., J.C. and M.E.M.A.; supervision, J.C. and M.E.M.A.All authors have read and agreed to the published version of the manuscript.

Table 1 .
FTIR absorption maxima observed in spectra of porous aluminium oxide produced in a 0.46 M H2SO4 solution containing the green inhibitor.

Table 2 .
FTIR absorption maxima observed in spectra of porous aluminium oxide produced in a 0.46M H2SO4 solution containing the green inhibitor, after the sealing process.

Table 3 .
Fitting results for EIS data for parameter np and nb acquired in 0.5 M NaCl solution on different anodized and sealed samples.