1 Introduction

Metallic corrosion is the cause of several expenses that directly impact the economy, besides being the cause of accidents and environmental impacts [1]. Mild steel is one of the most widely used metallic materials in industries due to properties such as hardness and ductility, along with having low economic cost. However, this material does not have a good corrosion resistance and several industry operations occur in corrosive media. An example of those is the usage of hydrochloric acid in acid pickling processes [2,3,4]. In this kind of operation, there is a need for surface protection to increase the useful life of the metallic material [5].

One of the most usual protection methods for different types of alloys is the application of inorganic or organic compounds as corrosion inhibitors. These compounds can be classified according to their operation, where the most common are anodic, cathodic, and adsorption inhibitors [6, 7]. In the past, chromates were widely used as inorganic inhibitors, but these compounds are highly toxic, motivating their prohibition [8, 9].

Organic inhibitors generally act by adsorption on the metallic surface [10, 11]. Corrosion inhibitors are heteroatom-containing compounds such as N, S, and O and compounds containing π bonds. The presence of these elements increases the adsorptive properties of the compounds as the electron pairs can be donated to vacant d orbitals from atoms on the material surface [12,13,14,15,16,17]. Organic inhibitors are generally less toxic than inorganic inhibitors, however, these compounds may still be harmful to the environment [10, 18].

The improvement of environmental issues and the application of green chemistry principles induce the search for less toxic and environmentally friendly inhibitors. This type of inhibitor can be an organic compound that has been synthesized using the principles of green chemistry or obtained from the extraction of some natural products [19]. The natural extracts usually do not contain toxic elements, are biodegradable, come from a renewable source and act as a great corrosion inhibitor for metals. These extracts include products from animal [20, 21] or plant origin [22,23,24,25,26,27,28,29,30,31,32,33,34,35,36], and recently, tests with algae extract were reported [37,38,39]. The inhibitory properties were related to the presence of compounds such as alkaloids, flavonoids, or condensed tannins [40,41,42]. All common compounds found in natural extracts have characteristics such as heteroatoms presence and π electrons, as already aforementioned, important for acting as a corrosion inhibitor.

The Mandevilla fragrans belongs to Apocynaceae family which is one of the most studied families with respect to pharmacological products [43, 44]. The Mandevilla genus has several pharmacological applications as snake venom inhibition [45], anti-edematogenic activity [46], and anti-inflammatory activity [47].

Some species in this family have even been reported as possible corrosion inhibitors. The alkaloids extract of Geissospermum leave [48] was tested in HCl 1.0 mol L−1 solution. Using a concentration of 100 mg L−1, a maximum efficiency of 92% was obtained. The extract of Ervatamia coronaria [49] was evaluated in 1.0 mol L−1 HCl and H2SO4 solutions and presented a maximum efficiency of 86.8% and 89.9%, respectively, in a concentration of 50% w/v. Cryptostegia grandiflora [50] leaves methanolic extract was studied as a corrosion inhibitor in H2SO4 1.0 mol L−1 medium and obtained a 87.5% efficiency at a concentration of 500 mg L−1. The analysis of the extract showed the presence of flavonoids and phenolic compounds, and the main components were Myricetin and Rutin. Tabernaemontana divaricate [51] ethanolic extract was tested in HCl 1.0 mol L−1 solution and reached maximum efficiency of 95.2% at 0.500 g L−1.

In this work, we show a new application for Mandevilla fragrans extract. Despite its extract has not yet been reported with any pharmacological or corrosion inhibiting action, the analyses of species of same genus showed the presence of several compounds that can act as corrosion inhibitors. This is a species of easy farming and growth. The extraction method was performed as simply as possible and using an environmental-friendly solvent, in agreement with the green chemistry principles. To analyze the phenolic contents in aqueous extract, thin-layer chromatography was used and quantification of flavonoids and condensed tannins was performed with UV–Vis Spectrophotometric. To evaluate the efficiency of the aqueous extract of Mandevilla fragrans leaves as corrosion inhibitor, gravimetric measurement, potentiodynamic polarization, linear polarization resistance, and electrochemical impedance spectrometry were performed and the metallic surface was analyzed using atomic force microscopy.

2 Experimental

2.1 Materials

The corrosive medium was a HCl 1 mol L−1 solution prepared with analytical grade HCl (37%, Vetec S/A) diluted with ultrapure water.

Samples of A36 mild steel were the materials used in this study. The chemical composition of the steel is presented in Table 1.

Table 1 Chemical Composition of ASTM A36 mild Steel

The solvents used for the extraction and chromatography were of analytical grade from Vetec S/A. Chromatographic analyses were performed on Merck S/A silica gel 60 F254 plates. Spectrophotometric quantification analysis of tannins and flavonoids was performed on a BIOCHROM LIBRA S50 spectrophotometer.

2.2 Preparation and Characterization of the Mandevilla fragrans Leaves Extract

Mandevilla fragrans samples were collected at the Restinga of Jurubatiba, located in Carapebus, in the northern state of Rio de Janeiro in December 2010. This material was separated into leaves, stems, and flowers and dried at room temperature.

The aqueous extract was obtained from 100 g of Mandevilla fragrans leaves by turbolysis method, using a semi-industrial blender (MetVisa brand—Light Line) at room temperature for five minutes of stirring with 1000 mL of pure water. The procedure was performed twice. After freeze drying of the combined extracts, 4.77 g of a light brown-colored solid was obtained.

Thin-layer chromatography (TLC) was performed for the following classes of metabolites: phenolic acids, flavonoids, tannins, anthraquinones, cardiotonics, coumarins, saponins, and alkaloids. The conditions for the analyses were according to Wagner and Bladt [52] for phytochemical screening. Chemical patterns and markers were used and revealing for each class of metabolite researched.

Tannin levels were determined by the vanillin method, according to Morrison [53]. A calibration curve was obtained with epicatechin at concentrations of 25—250 µg mL−1. The experiments were performed in triplicate.

The quantification of the flavonoid concentration of the sample was performed based on the Brazilian Pharmacopoeia 5th edition [54] with adaptations, by colorimetric method, based on a calibration curve constructed by diluting a standard solution of rutin in the range 1.5—30 μg mL−1. Quantification was performed in triplicate.

2.3 Gravimetric Study

Gravimetric study was performed following ASTM G1-03. The ASTM A36 mild steel samples were grounded sequentially with 400 and 600 grit emery paper followed by water, surfactant, ethanol, and acetone washing. The samples then were dried, weighed, and immersed in solutions containing 1.0 mol L−1 HCl. The samples were in contact with the corrosive medium for 5 h. The tests were repeated in the presence of 0.05, 0.100, 0.300, 0.500, and 0.800 g L−1 of the aqueous extract of Mandevilla fragrans leaves (AEMF) at room temperature. After 5 h, the samples were removed from the corrosive medium and subjected to a chemical pickling with Clark's solution (HCl p.a.; SbCl3; SnCl2), washed with water, surfactant, ethanol, and acetone and dried. Finally, the mild steel mass was measured again. With the initial and final mass values, it was possible to calculate the corrosion rate (CR) values from Eq. 1, where A is the total exposed area (cm2), Δm is the mass variation (g), t is the immersion time (h), d is the steel density (g cm−3), and 8.76 × 104 is the proportionality constant. The efficiency (ɳ) of the inhibitor was obtained from Eq. 2, where CR and CRinh are the corrosion rates in the absence and presence of inhibitor, respectively.

$${\text{CR}}\;{ = }\;\frac{{876\; \times \;10^{4} \cdot \Delta {\text{m}}}}{{{\text{A}} \cdot {\text{d}} \cdot {\text{t}}}}$$
(1)
$$\eta (\% )\; = \;\frac{{{\text{CR}}\; - \;{\text{CR}}_{{{\text{inh}}}} }}{{{\text{CR}}}} . 100$$
(2)

2.4 Electrochemical Tests

The electrochemical measurements were performed using an Autolab PGSTAT128N potentiostat/galvanostat powered by NOVA 2.1 software. An electrochemical cell with three electrodes was employed: mild steel (0.25 cm2) was used as the working electrode, platinum foil as the counter electrode, and an Ag|AgCl (3.0 mol L−1) electrode as the reference electrode. The Open Circuit Potential (OCP) was determined by the immersion of the electrodes in the HCl 3.0 mol L−1 for 3600 s. The electrochemical impedance spectroscopy was carried out in the range of 100 kHz to 10 MHz at the OCP with an amplitude of ± 10 mV. The efficiency (ɳ) of the inhibitor was calculated using Eq. 3, where Rct is the charge transfer resistance.

$$\eta (\% )\; = \;\frac{{{\text{R}}_{{\text{ct,inh }}} \; - \;{\text{R}}_{{{\text{ct}}}} }}{{{\text{R}}_{{\text{ct,inh}}} }}\; \times \;100$$
(3)

Linear polarization resistance (Rp) was measured after the variation of ± 10 mV at the OCP. The efficiency (ɳ) of the inhibitor was calculated using Eq. 4, where Rp is the polarization resistance.

$$\eta (\% ) \; = \;\frac{{{\text{R}}_{{{\text{p}},{\text{inh}} }} \; - \; {\text{R}}_{{\text{p}}} }}{{R_{{{\text{p}},{\text{inh}}}} }} \cdot 100$$
(4)

Potentiodynamic polarization was performed with a scan rate of 1.0 mV s−1 in the range of ± 300 mV (vs. OCP).

2.5 Surface Analysis

The effect of AEMF on surface of the ASTM A36 mild steel was analyzed by Atomic Force Microscopy (AFM). The images were acquired in three different situations: after grounded with 600 grit emery paper, following an immersion in 1.0 mol L−1 HCl without inhibitor and after been immersed in 1.0 mol L−1 HCl with 0.800 g L−1 of AEMF.

3 Results and Discussion

3.1 Extract Characterization

The classes of metabolites found in the TLC phytochemical analysis of Mandevilla fragrans aqueous extract obtained by the method described in this paper were phenolic acids, flavonoids, hydrolyzable and condensed tannins, anthraquinones, cardiotonics, and saponins (Table 2).

Table 2 Results and test conditions of the Thin-Layer Chromatographic Analysis of Mandevilla fragrans aqueous extract

The classes of substances identified in this study are in agreement with those found in the literature for the Apocynaceae family [55, 56].

Plant tannins have been quantified by several types of technics, such as precipitation of metals or proteins and colorimetric methods, the latter being more common. The vanillin test is widely used to quantify proanthocyanidins (condensed tannins) in vegetables, particularly grain [53]. It is based on the reaction of 1% vanillin with phenolic in strongly acidic medium, a colored compound with maximum absorption at 500 nm. Catechin and epicatechin have been widely used as standard due the satisfactory response to this reaction.

The content of condensed tannins for the aqueous extract (0.25 mg mL−1), expressed in milligrams of epicatechin per milliliter of extract, was 0.0229 (± 0.00196, R2 = 0.099026).

The flavonoid content for the aqueous extract (3.0 mg mL−1), expressed in milligram equivalent of rutin, was 0.020399 (± 0.000198, R2 = 0.999439).

It is noteworthy that the metabolite content of plant extracts depends on some factors such as the method and conditions of extraction, extraction solvents, and yield of the plant part. The aqueous extraction at room temperature was performed in order to obtain an extract that solubilizes in the various types of measurements such as the anti-corrosion tests performed in this work. On the other hand, aqueous extraction avoids the high toxicity of organic solvents and waste generated that is one of the biggest challenges of natural bioactive substances extraction.

3.2 Inhibitor Action

The electrochemical measurement known as potentiodynamic polarization (PP) allows to evaluate the drop in the cathodic and the anodic currents in the presence of the corrosion inhibitor as well as the change in the corrosion potential. Figure 1 shows AEMF concentration dependence of cathodic and anodic currents in the polarization curves.

Fig. 1
figure 1

AEMF concentration dependence on polarization curves

A considerable drop in both currents (cathodic and anodic) which is more pronounced as AEMF concentration increases can be seen in the polarization plots, indicating that those reactions are suppressed by the corrosion inhibitor [57, 58]. The corrosion potential (Ecorr) varies less than ± 35 mV in the presence of AEMF related to blank solution (Table 3). Variations of the corrosion potential (Ecorr) less than ± 85 mV are associated to mixed-type corrosion inhibitors [59,60,61,62].

Table 3 Corrosion potential data

3.3 Weight Loss Study

In agreement with the rules from the American Society for Testing Materials (ASTM G1-03), gravimetric measurements were performed on mild steel specimens to evaluate the anticorrosive activity from the aqueous extract of Mandevilla fragrans leaves (AEMF) at 303 K. The results are displayed in Table 4.

Table 4 Weight loss study data

The results revealed that the presence of the organic molecules reduces significantly the corrosion rate, even at lower concentrations (0.050 g L−1 – 64.0%), reaching a maximum anticorrosive efficiency of 94.8% at 0.800 g L−1. It is well discussed and reported that organic molecules act as corrosion inhibitor by adsorbing on the metal surface and forming a protective film that prevents the contact with the electrolyte [12,13,14]. Hence, the inhibitor efficiency (η) can be associated with the metallic surface coverage (θ). It can be observed in Table 4 that the raise in AEMF concentration increases the value of θ, meaning more molecules are adsorbed on the mild steel surface, protecting it against corrosion [63, 64].

To corroborate this hypothesis, the surface of the mild steel was analyzed by Atomic Force Microscopy (AFM) and various isotherms were simulated to understand how the organic molecules present in the AEMF interact with mild steel surface.

3.4 Atomic Force Microscopy (AFM)

Atomic Force Microscopy (AFM) was performed to evaluate the mild steel surface and the average surface roughness in three different scenarios (after polishing, after an immersion in 1.0 mol L−1 HCl without inhibitor and with 0.800 g L−1 of AEMF). Figure 2 shows the 2D and 3D images of the steel surface and Table 5 presents the average roughness of the steel surface in the three different scenarios.

Fig. 2
figure 2

Atomic Force Microscopy images for mild steel after a) polishing; b) exposure to acid medium without corrosion inhibitor; c) exposure to acid medium with 0.800 g L−1 of AEMF

Table 5 AFM average roughness

In Fig. 2a, the metal surface after polishing presents the marks from the SiC paper and the lowest average roughness. Different from Fig. 2a, Fig. 2b displays a very damaged surface after the corrosive attack in the absence of the organic molecules and a large increase in average roughness was observed. When exposure to the corrosive medium occurs in the presence of the inhibitor (Fig. 2c), the surface of mild steel has a smoother appearance, clearly less attacked by the corrosive medium and with reduced average roughness, being much closer to the polished surface. This result points to AEMF components acting by forming a compact film that protects the mild steel surface from corrosion [21, 50, 65, 66].

3.5 Adsorption Isotherm

The adsorption of the AEMF organic molecules on the metal surface was fitted using ten different isotherms (Kiselev, Langmuir, Frumkin, Elovich, Hill-de Boer, Temkin, Dubinin–Radushkevich, Freundlich, Flory–Huggins, and Fowler–Guggenheim). As shown in Fig. 3, our data fitted best the Langmuir theory (mathematically defined by Eq. 5; R2 = 0.9994), so AEMF adsorbs as a monolayer and the organic molecules do not interact with neighboring molecules [67, 68].

$$\frac{{{\text{C}}_{{{\text{inh}}}} }}{\theta }\; = \; \frac{1}{{{\text{K}}_{{{\text{ads}}}} }}\; + \;{\text{C}}_{{{\text{inh}}}},$$
(5)
Fig. 3
figure 3

Langmuir plot for AEMF

where Kads is the adsorption constant, Cinh is the inhibitor concentration.

The inverse of the y-intercept provides the value of Kads. For the aqueous extract of Mandevilla fragrans, the adsorption constant is 31.35 L g−1, a high value for natural extracts, showing that the equilibrium is dislocated towards the adsorption of the inhibitor on the mild steel surface [69].

There are two possible mechanisms for the adsorption of the inhibitor compounds on the mild steel surface. The first one is the chemisorption and this type of adsorption occurs when a lone electron pair of heteroatoms such as N, O, and S and π electrons present in the phytochemicals of the AEMF interact with vacant d orbitals from iron atoms in the mild steel surface. The second is the physisorption. In acid media, some AEMF molecules can be protonated and interact electrostatically with chloride ions on mild steel surface. Physisorption is a weaker form of adsorption than chemisorption, thus the nature of adsorption can be analyzed with ΔGads values [19, 20].

Our system is formed by several organic molecules as seen in Table 2. Due to this complex system it is not possible to calculate the molecular mass. So, as shown in many studies, when discussing a natural extract, it is not possible to obtain thermodynamic adsorption parameters (ΔGads, ΔHads, ΔSads) because the molecular mass is unknown.[20, 70, 71]. However, precisely because the AEMF is formed of several organic molecules, is plausible admit that both mechanisms of inhibition, chemisorption and physisorption, are occurring on mild steel surface in our system, where some molecules will donate their lone electron pair and other protonated molecules will interact electrostatically with the chloride ions on the steel surface.

3.6 Linear Polarization Resistance (LPR)

Varying the potential (E) ± 10 mV (at OCP) and recording the respective response in current density (j) allow to calculate the polarization resistance (Rp), according to Eq. 6.

$${\text{dj}}\; = \; \frac{1}{{{\text{R}}_{{\text{p}}} }} \cdot {\text{dE}}$$
(6)

From the data displayed in Table 6, it can be observed a higher value of Rp as more concentration of AEMF is added to the acid medium, indicating a better protection of the metallic surface. The corrosion inhibition efficiency values corroborated the obtained via gravimetric experiments, reaching a maximum of 93.0% at 0.800 g L−1 [19, 72].

Table 6 LPR data for mild steel in acid medium in the absence and presence of different concentrations of AEMF

3.7 Electrochemical Impedance Spectroscopy (EIS)

To understand more about the mechanism of protection and the anticorrosive efficiency of AEMF, Electrochemical Impedance Spectroscopy was performed. Figure 4 shows the Nyquist plot of different concentrations of the organic extract.

Fig. 4
figure 4

Nyquist plots for AEMF

The depressed semi-circles observed in the graph occurs due to the inhomogeneity of the mild steel surface [19, 73, 74]. It is well reported that the diameters of the semi-circles in the Nyquist plots are associated with the charge transfer resistance of the material tested [75, 76]. It can be seen in Fig. 4 that the increase in AEMF concentration leads to an enlargement of the diameters, pointing to a better protection of the metallic surface. The single loop format indicates that the corrosion process is mainly associated with charge transfer [77,78,79].

To simulate the phenomena occurring in the interface metal/solution, an equivalent electric circuit (Fig. 5) was used composed of a solution resistance (Rs) in series with a constant phase element (CPE, defined by Y0 and n) in parallel with a charge transfer resistance (Rct) [30, 80, 81]. A pure capacitor was not used due to surface roughness and inhomogeneity [81]. Table 7 displays the Impedance data.

Fig. 5
figure 5

Equivalent circuit used to simulate EIS data

Table 7 AEMF concentration dependence on EIS data

To calculate the double-layer capacitance (Cdl) values from CPE, the formulas listed below (Eq. 7) were used [28]. Associating these values (Table 7) to the Helmholtz equation (Eq. 8), it is possible to explain the drop on Cdl values as the concentration of AEMF increases due the adsorption of more organic molecules on the mild steel surface substituting water molecules. This fact leads to a lower value of local dielectric constant and surface exposed to the aggressive medium, at the same time that generates a higher thickness value of the protective film formed, all contributing to a lower value of double-layer capacitance [82, 83].

$${\text{C}}_{{{\text{dl}}}} \; = \;{\text{Y}}_{0} \left( {2\pi {\text{f}}_{\max } } \right)^{{{\text{n}} - 1}}$$
(7)
$${\text{C}}_{{{\text{dl}}}} \; = \;\frac{{\varepsilon^{0} \varepsilon {\text{S}}}}{{\text{d}}}$$
(8)

As shown in the aforementioned experimental results, the aqueous extract of Mandevilla fragrans leaves achieves a good corrosion inhibition efficiency at low concentration (0.050 g L−1 – 70.3%) and reaches a maximum of 94.0% at 0.800 g L−1, an excellent result.

3.8 Comparison of Techniques and with Other Extracts

In this study, many techniques were applied to analyze the corrosion inhibitory capacity of the AEMF. With the first one, Weight Loss Study, the corrosion rate was calculated, and consequently the anticorrosive efficiency, with high accuracy due to the long duration of the experiment. However, is not possible to obtain information about how the inhibitor acts [84, 85].

Different from that, in the electrochemical experiments, a lot of information from the interface mild steel/solution can be accessed as well as the mechanism of action of the corrosion inhibitor. But the electrochemical analyses are more susceptible to experimental conditions and have to be performed carefully.

Therefore, come the importance of the comparison between all those measurements to see a corroboration between them.

Figure 6 shows the correlation among all the techniques used to evaluate AEMF as a corrosion inhibitor for mild steel in acid medium. It can be observed an excellent concordance between Weight Loss Study and the electrochemical techniques, Linear Polarization Resistance and Electrochemical Impedance Spectroscopy. This result validates the entire discussion in this study on the behavior of the AEMF as a corrosion inhibitor for mild steel.

Fig. 6
figure 6

Comparison between the efficiencies of the techniques applied to evaluate the AEMF. WL, Weight Loss; LPR, Linear Polarization Resistance; EIS, Electrochemical Impedance Spectroscopy

Another important comparison to be made is with other extracts already reported in the literature as corrosion inhibitor for mild steel in 1.0 mol L−1 HCl, both from the point of view of anti-corrosion efficiency and also in the form of extraction procedure (easier and environmentally friendly). Table 8 presents these data.

Table 8 Natural extracts reported in literature as corrosion inhibitors

In this scenario, the AEMF presented an excellent efficiency with a reasonable concentration, having the characteristics necessary for a great corrosion inhibitor.

When AEMF is compared to other crude extracts from the same family, Cryptostegia grandiflora and Tabernaemontana divaricate [50, 51], a similar performance is observed regarding the anticorrosive efficiency. However, from an environmental point of view, the AEMF has the advantage to be an aqueous extract which makes it even more sustainable and environmentally friendly, hence, a better option as a green corrosion inhibitor.

4 Conclusions

The aqueous extract of Mandevilla fragrans acts as a great corrosion inhibitor for mild steel in acid medium (1.0 mol L−1 HCl). Weight Loss Study, Electrochemical Impedance Spectroscopy, and Linear Polarization Resistance show an average corrosion inhibition efficiency of 94.1% at 0.800 g L−1 of AEMF. The adsorption process obeys the Langmuir theory of a protective monolayer. Potentiodynamic Polarization reveals that the inhibitor acts as mixed-type and Atomic Force Microscopy images suggest the formation of a protective film by the organic molecules.