Introduction

Study of organic corrosion inhibitor is an attractive field of research due to its usefulness in various industries. Acid is widely used in various industries for the pickling of ferrous alloys and steels. Because of the aggressive nature of the acid medium, the inhibitors are commonly used to reduce acid attack on the substrate metal. Most of the reported corrosion inhibitors are organic compounds containing O, N, S, and P [1,2,3,4,5,6,7,8,9,10,11,12,13,14] in their structures. The phosphoric functions are considered to be the most effective chemical group against corrosion process [15]. The use of organic phosphonic acids to protect carbon steel against corrosion has been the subject of various works [16,17,18,19,20,21,22,23,24,25,26]. Aminomethyl-phosphonic acids are excellent sequestering agents for electroplating, chemical plating, degreasing, and cleaning. It was shown that piperidin-1-yl-phosphonic acids (PPA) and (4-phosphono-piperazin-1-yl) phosphonic acid (PPPA) are used to reduce the corrosion of iron in a NaCl medium, even if PPPA is more efficient than PPA [27]. In the present investigation, the influence of polyethyleneiminemethylene phosphonic acid (PEIMPA) as a corrosion inhibitor of carbon steel in 1 M HCl has been systematically studied by weight loss measurements, potentiodynamic polarization studies, and surface analysis (SEM, EDX). Results are reported and discussed.

Experimental

Polyethyleneiminemethylene phosphonic acid polymer was synthesized (see Scheme 1) from commercially available Lupasol P (polyethylenimine) according to the Moedrizer–Irani reaction [28]. The synthesis was performed in distilled water under microwave irradiation. In a quartz reactor, a mixture of polyethylenimine (Lupasol P, 80 mmol, 3.44 g), phosphorous acid (80 mmol, 6.68 g), and hydrochloric acid–water (1:1) solution (12 mL) was vigorously stirred and then irradiated (150 W) in a glass cylinder reactor for 1 min. A formaldehyde aqueous solution (160 mmol) was added and irradiated for 8 min.

Scheme 1
scheme 1

Synthesis of polyethyleneiminemethylene phosphonic acid from Lupasol P

Then, the precipitation was washed with distilled water to remove unreacted reagents. Finally, phosphonic-modified Lupasol P was washed three times with distilled water and ethanol. After drying, the solid was further pulverized to give a brown powder.

The structure and purity were identified and characterized by elemental microanalysis (Table 1) and 1H, 13C, and 31P NMR spectroscopy. The spectra showed the expected signals due to the polyethylenimine skeleton and methylene phosphonic units as matched to the proposed structure (Scheme 1).

Table 1 Elemental microanalysis of polyethyleneiminemethylene phosphonic acid

NMR spectral data: 1H NMR d (ppm): 4.92 (N–CH2); 2.33 (CH2–P); 1.6 NH. 13C NMR d (ppm): 82.16 (N–CH2), 52.1 (CH2–P). 31P NMR d (ppm): 3.91. The presence of phosphonic acid was confirmed by FTIR measurement: the polymer displays characteristic bonds for P–O–C at 1050 cm−1, P–OH at 2372, and 2338 cm−1 189 and P = O at 1172 cm−1.

Elemental microanalysis suggests the structure made of fragment of the phosphonic acid polymer, corresponding after calculation to x = 5 and y = 9 (Scheme 1).

A 1 M HCl solution was prepared from an analytical reagent grade of HCl 37% and double-distilled water and was used as corrosion media in the studies. Note that the solubility of polyethyleneiminemethylene phosphonic acid is very high in this medium.

For the weight loss measurements, the experiments were carried out in the solution of 1 M HCl (uninhibited and inhibited) on carbon steel containing 0.30–0.35% C, 0.15–0.35% Si, 0.035% S, 0.5–1.0% Mn, and 0.035% P. Sheets with dimensions 20 mm × 10 mm × 2 mm were used. They were polished successively with different grades of emery paper up 1200 grade. Each run was carried out in a glass vessel containing 100 ml test solution. A clean weight mild steel sample was completely immersed at an inclined position in the vessel. After 4 h of immersion in 1 M HCl with and without the addition of inhibitor at different concentrations, the specimen was withdrawn, rinsed with double-distilled water, washed with acetone, dried, and weighed. The weight loss was used to calculate the corrosion rate in milligrams per square centimeter per hour.

Electrochemical experiments were carried out in a glass cell (CEC/TH Radiometer) with a capacity of 500 ml. A platinum electrode and a saturated calomel electrode (SCE) were used as a counter electrode and a reference electrode. The working electrode was in the form of a disc cut from mild steel under investigation and was embedded in a Teflon rod with an exposed area of 0.5 cm2. Potentiodynamic polarizations were conducted in an electrochemical measurement system (VoltaLab 21) which comprises a PGP201 potentiostat, a personal computer, and VoltaMaster4 software. The polarization resistance measurements were performed by applying a controlled potential scan over a small range typically ±15 mV with respect to Ecorr with a scanning rate of 0.5 mV s−1. The resulting current is linearly plotted vs. potential, the slope of this plot at Ecorr being the polarization resistance (Rp). Corrosion current densities were determined by extrapolating the cathodic Tafel regions from the potentiodynamic polarization curves to the corrosion potential. The potentiodynamic current–potential curves were recorded by changing the electrode potential automatically from −700 to −300 mV with the same scanning rate (0.5 mV s−1) under static on the same electrode without any surface treatment. All experiments were carried out in freshly prepared solution at constant temperatures.

Inhibition efficiencies P % were calculated as follows:

Weight loss measurement:

$$ P\% = \frac{{w - w^{{\prime }} }}{w}\; \times \;100 $$
(1)

where \( w \) and \( w^{{\prime }} \) are the corrosion rate of steel due to the dissolution in 1 M HCl in the absence and the presence of definite concentrations of inhibitor, respectively.

Linear polarization measurement:

$$ P\% = \frac{{R_{p - }^{'} R_{p} }}{{R_{p}^{'} }} \times 100 $$
(2)

where \( R_{p} \) and \( R_{\text{p}}^{{\prime }} \) are the values of linear polarization in the absence and presence of the inhibitor, respectively.

Polarization measurement:

$$ P\% = \frac{{I_{\text{corr}} - I_{\text{corr}}^{{\prime }} }}{{I_{\text{corr}} }} \times 100 $$
(3)

where \( i_{\text{corr}} \) and \( i_{\text{corr}}^{{\prime }} \) are the corrosion current densities in the absence and the presence of the inhibitor, respectively.

For all methods, the tests were performed in non-de-aerated solutions under unstirred conditions.

The surface morphology of the samples before and after adding PEIMPA inhibitor in the medium 1 M HCl after 1 day of immersion was observed by scanning electron microscope (SEM) Quanta 200 FEG coupled with EDX analysis.

Results and discussion

Weight loss measurements

The gravimetric measurements of mild steel in 1 M HCl in the absence and presence of various concentrations of PEIMPA investigated were determined after 4 h of immersion at 30 °C.

Table 2 gives values of the corrosion rates and percentage inhibition efficiency calculated from the weight loss measurements for different concentrations of PEIMPA.

Table 2 Corrosion rates and inhibition efficiencies of PEIMPA at different concentrations in 1 M HCl

Inspection of this table shows that the inhibition efficiency increases with increasing inhibitor concentration. The optimum concentration required to achieve this efficiency is found to be 500 ppm. The inhibition of corrosion of carbon steel by the investigated inhibitor can be explained in terms of adsorption on the metal surface. It is generally assumed that the adsorption of the inhibitor at the metal/solution interface is the first step in the mechanism of inhibition in aggressive media.

This compound can be adsorbed on the metal surface by the interaction between lone pair of electrons of hetero atoms and the metal surface. This process is facilitated by the presence of vacant orbitals d of low energy in iron atom, as observed in the transition group metals. Moreover, the formation of positively charged protonated species in acidic solutions facilitates the adsorption of the compound on the metal surface through electrostatic interactions between the organic molecules and the metal surface [29].

Polarization measurements

Figure 1 shows the polarization curves of mild steel in 1 M HCl, blank solution, and in the presence of different concentrations (100–500 ppm) of PEIMPA. With the increase of PEIMPA concentrations, both anodic and cathodic currents were inhibited. This result shows that the addition of PEIMPA inhibitor reduces anodic dissolution and also retards the hydrogen evolution reaction. We note that the corrosion potential varies slightly after the addition of the inhibitor at different concentrations.

Fig. 1
figure 1

Polarization curves of carbon steel in 1 M HCl in the presence of different concentrations of PEIMPA at 30 °C

Table 3 shows that an increase in inhibitor concentration is resulted in increased inhibition efficiency. It is evident from the results that the I corr values decrease considerably in the presence of inhibitor and that the maximum decrease in I corr coincides with the optimum concentration of inhibitor. Linear polarization technique was performed in 1 M HCl with various concentrations of PEIMPA. The corresponding polarization resistance (R p) values of carbon steel in the absence and in the presence of different inhibitor concentrations are also given in Table 3. It is apparent that R p increases with increasing inhibitor concentration. The inhibition percentage (P %) calculated from R p values is also presented in Table 3. We remark that P % increases with increasing concentration of inhibitor and attains 87% at 500 ppm. The inhibition efficiencies of PEIMPA obtained by potentiodynamic polarization and by polarization resistance methods are in good agreement, particularly, at high concentrations.

Table 3 Potentiodynamic polarization parameters for corrosion of carbon steel in 1 M HCl with various concentrations of PEIMPA at 30 °C

For anodic polarization, it can be seen from Fig. 1 that, in the presence of PEIMPA at all concentrations, two linear portions were observed. When the anodic potentials increases, the anodic current increases at a slope of b a1 in the low polarization potential region. After passing a certain potential E u, the anodic current increases rapidly and dissolves at a slope of b a2 in the high polarization region. This behavior was already documented for iron in acid solutions [30,31,32,33]. The rapid increase of anodic current after E u may be due to the desorption of PEIMPA molecules adsorbed on the electrode. This means that the inhibition mode of PEIMPA depends on electrode potential. In this case, the observed inhibition phenomenon is generally described as corrosion inhibition of the interface associated with the formation of a bidimensional layer of adsorbed inhibitor species at the electrode surface [34]. Note that the potential E u is also denoted E 1 in Bartos and Hackerman’s paper [30]. Figure 1 shows also that, at potentials higher than E corr, PEIMPA affects the anodic reaction. This result indicates that PEIMPA exhibits both anodic and cathodic inhibition effects.

Adsorption isotherm

The adsorption of the organic compounds can be described by two main types of interaction: physical adsorption and chemisorption that are influenced by the charge nature of the metal, the type of the electrolyte, and the chemical structure of the inhibitor.

The adsorption isotherm can give information on the metal–inhibitor interaction. The adsorption isotherm can be derived from the curve surface coverage against inhibitor concentration. Surface coverage \( \theta \) was estimated as in Eq. 5. The \( \theta \) values for different inhibitor concentrations are tested by fitting to various isotherms. So far, the best fit was obtained with the Langmuir isotherm. According to this isotherm, \( \theta \) is related to concentration inhibitor C via

$$ \frac{C}{\theta } = \frac{1}{K} + C $$
(4)

where C is the concentration of inhibitor, K is the adsorptive equilibrium constant, and θ is the surface coverage and calculated by the following equation [6, 35, 36]:

$$ \theta = 1 - \frac{{I_{\text{corr}} }}{{I_{\text{corr}}^{ '} }} $$
(5)

where \( I_{\text{corr}}^{'} \) is the corrosion current density in uninhibited acid and \( I_{\text{corr}} \) is the corrosion current density in inhibited acid.

Plotting C vs. C yields a straight line, as shown in Fig. 2. The linear correlation coefficient (r) is almost equal to 1 (r = 0.9999) and the slight deviation of the slope (1.14) from the unity is attributable to molecular interactions in the adsorbed layer which corresponds to the observed physical adsorption mechanism [37]. The adsorptive equilibrium constant (K) value is 6.22 × 105 L mol−1. The free energy of adsorption ΔG°ads of the inhibitor on mild steel surface can be determined using the following relation:

Fig. 2
figure 2

Langmuir adsorption isotherm of PEIMPA on the carbon steel surface in 1 M HCl from potentiodynamic measurements

$$ K = \frac{1}{55.5}\exp \left( {\frac{{\Delta G_{\text{ads}}^{^\circ } }}{RT}} \right) $$
(6)

where R is the gas constant (8.314 J K−1 mol−1), T is the absolute temperature (K), and the value 55.5 is the concentration of water in solution expressed in M. The ∆G° ads value calculated is −37.90 kJ mol−1. The negative values of ∆G° ads indicate that the adsorption of inhibitor molecule onto steel surface is a spontaneous process. In general, it is well known that the values of −ΔG°ads of the order of −20 kJ mol−1 or lower indicate a physisorption; those of order of −40 kJ mol−1 or higher involve charge sharing or a transfer from the inhibitor molecules to the metal surface to form a coordinate type of bond (chemisorption). In the present study, the value of ΔG°ads is about between −20 and −40 kJ mol−1, probably mean that the adsorption mechanism of the PEIMPA on steel in 1 M HCl solution is both physisorption and chemisorption.

Noticeably, it is generally accepted that physical adsorption is the preceding stage of chemisorption of inhibitors on metal surface [38]. It was reported that in this domaine, the surface charge of steel at E corr in HCl solution is expected to be positive. Thus, the anions are first adsorbed on the steel surface creating an excess negative charge, which, in turn, facilitates physical adsorption of the inhibitor cations [39]. Accordingly, the Cl and phosphonate ions adsorb and the surface becomes negatively charged. Due to the electrostatic attraction, the protonated PEIMPA molecules are adsorbed on carbon steel surface (physisorption).

Along with electrostatic force of attraction, inhibitor also adsorbs on the carbon steel surface through chemical adsorption. The adsorption of free molecules could take place via interaction of the unshared pairs of electrons of nitrogen and oxygen atoms of the –PO(OH)2 group and the vacant d-orbitals of iron atoms.

Therefore, inhibition takes place through both physisorption and chemisorption. However, chemisorption has no substantial contribution [12]. Indeed, the PEIMPA molecules are easily protonated to form ionic forms in acid solution. It is logical to assume that in this case, the electrostatic cation adsorption is mainly responsible for the protective properties of this compound.

Effect of temperature

To investigate the mechanism of inhibition and to determine the activation energy of the corrosion process, polarization curves of steel in 1 M HCl were determined at various temperatures (303–333 K) in the absence and presence of 500 ppm of PEIMPA. Representative Tafel polarization curves for C38 steel electrode in 1 M HCl without and with 500 ppm at different temperatures are shown in Fig. 3a, b. Similar polarization curves were obtained in the case of the other concentrations of PEIMPA (not given). The analysis of these figures reveals that raising the temperature increases both anodic and cathodic current densities, and consequently, the corrosion rate of C38 steel increases. The corresponding data are given in Table 4. In the studied temperature range (303–333 K), the corrosion current density increases with increasing temperature both in uninhibited and inhibited solutions and the values of the inhibition efficiency of PEIMPA decrease with the increase of temperature.

Fig. 3
figure 3

Polarization curves for C38 steel electrode in 1 M HCl (a) and in HCl+ 500 ppm of PEIMPA (b) at different temperatures

Table 4 Electrochemical parameters and the corresponding inhibition efficiencies for the corrosion of C38 in 1 M HCl and 500 ppm PEIMPA at various temperatures

Figure 4 and 5 present the Arrhenius plots of the natural logarithm of the current density vs. 1/T, for 1 M solution of hydrochloride acid, without and with the addition of PEIMPA and ln(i corr/T) with reciprocal of the absolute temperature, respectively. Straight lines with coefficients of correlation (c.c.) high to 0.99 are obtained for the supporting electrolyte and PEIMPA.

Fig. 4
figure 4

Arrhenius plots of log icorr vs. 1/T without and with 500 ppm of PEIMPA

Fig. 5
figure 5

ln(i corr/T) vs. 1/T for C38 steel dissolution in 1 M HCl in the presence of PEIMPA at 500 ppm

The values of the slopes of these straight lines permit the calculation of the Arrhenius activation energy, E a, according to

$$ { \ln }I_{\text{corr}} = - \frac{{E_{\text{a}} }}{RT} + {\text{lnA}} $$
(7)

where R is the universal gas constant and A is the Arrhenius factor.

In addition, from transition-state plot according to the following equation:

$$ \ln \left( {\frac{{I_{\text{corr}} }}{T}} \right) = \frac{{ - \Delta H_{\text{a}}^{^\circ } }}{RT} + B $$
(8)

where ∆H°a is the enthalpy of activation and B is a constant.

The E a and Δa values were determined from the slopes of these plots. The calculated values of E a and ΔH a in the absence and the presence of PEIMPA at 500 ppm are given in Table 5. Inspection of these data reveals that the increase in E a in the presence of the inhibitor may be interpreted as physical adsorption. Indeed, a higher energy barrier for the corrosion process in the inhibited solution is associated with physical adsorption or weak chemical bonding between the inhibitor species and the steel surface [22, 40]. Szauer and Brand explained that the increase in activation energy can be attributed to an appreciable decrease in the adsorption of the inhibitor on the carbon steel surface with the increase in temperature. A corresponding increase in the corrosion rate occurs because of the greater area of metal that is consequently exposed to the acid environment [41].

Table 5 Apparent activation energy E a and activation enthalpy ΔH°a of dissolution of C38 steel in 1 M HCl in the absence and presence of 500 ppm PEIMPA

The enthalpy of activation values is found to be positive in the absence and presence of inhibitor and reflects the endothermic mild steel dissolution process. It is evident from Table 5 that the value of Δ a increased in the presence of PEIMPA than the uninhibited solution indicating protection efficiency. This suggested the slow dissolution and hence lower corrosion rate of mild steel [2, 7]. This result permits verifying the known thermodynamic equation between E a and Δ a [42]:

$$ E_{\text{a}} - \Delta H \circ {\text{a}} = RT. $$
(9)

Surface examination by SEM/EDX

Figure 6 shows the scanning electron micrographs of C38 after immersion for 24 h in 1 M HCl solution. The specimen surface in Fig. 6 appears to be roughened extensively by the corrosive environment and the porous layer of corrosion product is present. The EDX spectra show the characteristics peaks of some of the elements constituting of the steel sample after 24 h immersion in 1 M HCl without inhibitor, which reveals the presence of oxygen and iron, suggesting, therefore, the presence of iron oxide/hydroxide.

Fig. 6
figure 6

SEM and EDX data of C38 steel immersed in 1 M HCl solution for 24 h

When PEIMPA was added into the corrosion test solution (Fig. 7), a smooth surface was noticed traducing a good protection effect of the corrosion inhibitor by a formation of a thick and compact film. This may be intercepted by the adsorption of these inhibitors on the electrode surface.

Fig. 7
figure 7

SEM and EDX data of C38 steel immersed in 1 M HCl+ 500 ppm PEIMPA for 24 h

In the presence of PEIMPA inhibitor, the EDX spectra show additional lines of nitrogen and phosphorus, due to the adsorbed layer of inhibitor that covered the electrode surface. In addition, the Fe peaks are decreasing in relation to the uninhibited steel surface sample. This diminution of the Fe lines occurs because of the overlying inhibitor film.

These results confirm those from weight loss and polarization measurements, which suggest that a protective film was formed over the metal surface and hence retarded both anodic and cathodic reactions.

Conclusion

On the basis of this study, the following conclusions can be drawn:

  • PEIMPA shows a very good activity of preventing corrosion of carbon steel in 1 M HCl.

  • Inhibition efficiency of PEIMPA varies directly with the concentration and inversely with the temperature.

  • Potentiodynamic polarization experiments reveal that PEIMPA acts as mixed-type inhibitor.

  • The adsorption of PEIMPA on the metal surface follows Langmuir isotherm.

  • The corrosion inhibition is probably due to the adsorption of PEIMPA on the metal surface and blocking its active sites by the phenomenon of physical and chemical adsorptions.

  • The weight loss, linear polarization, and polarization curves are in good agreement.

  • SEM and EDX techniques reveal that the inhibitor molecules form a good protective film on the steel surface and confirm the result obtained by gravimetric and polarization methods.