1 Introduction

Stainless steels, due to its high strength, workability and high corrosion resistance, are used in various scientific and engineering applications like chemical and pharmaceutical industry [1, 2], food and beverage industry [3], petrochemical industry [4,5,6], oil and water pipe lines [7], ship and naval structures [8, 9], architectural applications, water supply and desalination plants [10]. However, their weak point is the susceptibility to localized corrosion in the presence of aggressive ions such as chloride ions. HCl is used frequently for acid pickling, industrial acid cleaning, acid descaling and oil well acidizing. The application of acid corrosion inhibitors in the industry is widely used to prevent or minimize material loss during the contact with acid. It has been shown that organic compounds contain heteroatoms with high charge density, such as nitrogen, sulfur and oxygen or those containing multiple bonds, are effective acid corrosion inhibitors [11,12,13,14,15,16,17,18,19,20,21]. The efficiency of the heteroatoms in the decreasing order is as follows: Se < S < N < O. Morpholinium caprylate, morpholinium sebacate and laurate [22, 23], morpholinium oleate [24] and morpholinium stearate [25] have been investigated as inhibitors for steel. Azoles and its derivatives were used as corrosion inhibitors for SS in acid medium [26]. The inhibiting action of these compounds is related to the presence of more than one atom with unshared electron pairs. The relation between the inhibition mechanism and variation in the electronic structure of the inhibitor has been studied [27,28,29]. The corrosion inhibition of these synthesized organic compounds is mainly because of physical or chemical adsorption resulting from the interaction of polar centers of the inhibitor’s molecule with active sites on the metal surface [30, 31]. As a fact, the investigated heterocyclic compounds are the potential inhibitors for their structure containing oxygen and nitrogen atoms.

These investigated compounds have relatively high molecular size, contain more than one benzene ring, more than one active center, and are synthesized easily from cheap raw material. In order to develop the new effective corrosion inhibitors, the aim of the present work is to investigate the highest inhibition performance of these investigated compounds as suitable inhibitors for control of corrosion of 304 SS in 1 M HCl solution.

2 Experimental

2.1 Materials and Solutions

The experiments were performed with type SS 304 having the following chemical composition (wt %): 0.03 C, 0.04 P, 0.08 C, 0.75 Si, 2 Mn, 8–11 Ni, 18–20 Cr and the rest is iron. 304 SS specimens were abraded with different grades of emery papers, ultrasonically degreased in acetone [32], rinsed in doubly distilled water and finally dried between two filter papers at room temperature. Double distilled water and analytical reagent grade HCl were used for preparing solutions. The molecular structures, names, molecular weights and molecular formulas of the investigated compounds are shown:

Inh.

Names

Structures

Mol formulas

Mol. weights

A

(E)-2-(4-(dimethylamino) styryl)quinazolin-4(3H)-one

C18H17N3O

291.35

B

(E)-2-methoxy-4-(2-(4-oxo-4H-benzo[d] [1, 3] oxazin-2-yl) vinyl) phenyl acetate

C19H15NO5

337.33

C

(E)-4-(2-(4-oxo-3,4-dihydroquinazolin-2-yl)vinyl) phenyl acetate

C18H14N2O3

306.32

2.2 Methods

2.2.1 Weight Loss (WL) Technique

The reaction container used in this method was a graduated glass vessel 8 cm inner diameter and having a total volume of 150 ml. Hundred milliliters of the test solution was employed in each experiment. The test pieces were cut nearly 20 × 20 × 0.2 mm. The specimens were prepared as before and then weighed. The test pieces were suspended by suitable glass hooks at the edge of the beaker and under the surface of the test solution by about 1 cm. After specified periods of time, the test pieces were taken out from the test solution, rinsed in doubly distilled water, dried and weighed again and the value of WL in mg has been reported. Each reading reported is an average of three experimental readings recorded to the nearest 0.001 g on a mettler AE166 analytical balance.

2.2.2 Electrochemical Techniques

Three electrochemical techniques (PP and EIS) have been employed for studying the corrosion inhibition of 304 SS with and without different doses from investigated compounds. Measurements were taken in a standard glass three-electrode cell with a capacity of 150 ml. The counter and the reference electrodes are platinum and saturated calomel (SCE), respectively. 304 SS strips with an exposed area of 1 cm2 were used as working electrode. These measurements were taken using Potentiostat/Galvanostat (Gamry PCI 300/4) and a personal computer with EIS 300 software for calculations.

2.2.2.1 Potentiodynamic Polarization (PP) Technique

A constant quantity of the test solution (100 ml) was taken in the polarization cell. A time interval of about 1800 s was given for the system to attain a steady state, and the open-circuit potential (OCP) was noted. Current–potential curves were recorded by changing the electrode potential automatically from − 150 to + 150 mV with scanning rate 0.5 mVs−1. Solutions were not deaerated to make the conditions identical to WL measurements. All the experiments were carried out at 25 °C. The procedure adopted for the PP and EIS measurements was the same as described elsewhere [33]. All experiments were repeated at least three times for check their reproducibility.

2.2.2.2 EIS Method

The EIS spectra were recorded at open-circuit potential, OCP after immersion of the electrode for 1800 s. The AC signal was 5 mV peak to peak, and the frequency range studied was between 100 kHz and 0.1 Hz. In each measurement in electrochemical techniques, at least three closer results were considered, and their average values have been reported.

3 Results and Discussion

3.1 Corrosion Behavior of 304 SS by WL Method

The corrosion behavior of 304 SS in 1 M HCl in the presence and absence of compound (A) at 25 °C was studied and is represented in Fig. 1. As shown in this figure, by increasing the dose of this compound, the WL of 304 SS samples was decreased. This means that the presence of this compound retards the corrosion of 304 SS in 1 M HCl or in other words, and this derivative (A) acts as inhibitor. The values of % IE of investigated compounds are given in Table 1. From this table, the order of the IE of the investigated compounds is as follows: A > B > C. It is obvious that the IE increases with increasing the doses of the investigated compounds.

Fig. 1
figure 1

WL–time curves for the corrosion of 304 SS in 1 M HCl with and without different doses of inhibitor (A) at 25 °C

Table 1 % IE of the investigated compounds at different doses as determined from WL method at 25 °C; duration of immersion is 240 min

3.2 Adsorption Isotherms

The adsorption of an organic compound on the surface of a metal is regarded as a substitutional adsorption processes between the organic compound in aqueous phase, org(aq), and the water molecule adsorbed on the electrode surface [34, 35]:

$${\text{Org}}_{{({\text{aq}} .)}} + n{\text{H}}_{2} {\text{O}}_{{({\text{S}})}} \to {\text{Org}}_{{({\text{S}})}} + n{\text{H}}_{2} {\text{O}}_{{({\text{aq}})}}$$
(1)

where n is the number of water molecules removed from the metal surface for each molecule of inhibitor adsorbed. According to Bockris and Swinkless [36], n is assumed to be independent of coverage or charge of electrode. Clearly, the value of n depends on the cross-sectional area of organic molecule with respect to that of water molecule. At equilibrium, the chemical potential (µ) on both sides is equal. Now depending on the expression of (Θ), as related to the physical model adopted to describe adsorption of, a number of mathematical relations have been suggested to fit the various experimental data available. The simplest theoretical equation is that due to Langmuir and given by the equation [37]

$$f\left( {\varTheta , \, x} \right) \exp \left( { - a, \, \varTheta } \right) = KC$$
(2)

where f (Θ, x) is the configurationally factor that depends essentially on the physical model and assumptions underlying the derivation of the isotherm, and (a) is a molecular interaction parameter depending upon molecular interactions in the adsorption layer and the degree of heterogeneity of the surface. All adsorption expressions include the K, which is related to the standard free energy of adsorption (ΔG oads ) by:

$$K = 1/55.5\left[ {\exp - \, \Delta G^{o}_{\text{ads}} /RT} \right]$$
(3)

where R is the universal gas constant and T is the absolute temperature. Plots of C/Θ versus C (Langmuir’s isotherm) for adsorption of the investigated compounds on the surface of 304 SS in 1 M HCl at 25 °C are shown in Fig. 2. The data gave straight lines with slopes nearly unity indicating that Langmuir’s isotherm is valid for these systems, and also, the values of R 2 are near to unity. On the other hand, it is found that the kinetic–thermodynamic model of El-Awady et al. [38] is valid to operate the present adsorption data:

$${\text{Log }}\left[ {\varTheta /\left( {1 - \varTheta } \right)} \right] = \log K^{\prime } + y\log C$$
(4)
Fig. 2
figure 2

Langmuir adsorption isotherm plotted for the corrosion of 304 SS in 1 M HCl at 25 °C as obtained from WL method

The equilibrium constant of adsorption is K = K(1/y), where 1/y is the number of the surface active sites occupied by one inhibitor molecule and C is the bulk concentration of the inhibitor. By plotting log [Θ/(1 − Θ)] against log C at 25 °C, a straight line relationships were obtained (Fig. 3) suggesting the validity of this model for all cases studied. The calculated values of 1/y, K and ΔG oads are given in Table 2. Inspection of the data recorded in Table 2 shows that the large values of ΔG oads and its negative sign indicate that the adsorption of the investigated compounds on 304 SS surface is proceeding spontaneously and is accompanied by a highly efficient adsorption. It is worth noting that the value of 1/y is more than unity. This means that the given inhibitor molecules will occupy more than one active site. In general, the values of ΔG oads obtained from El-Awady et al. model are comparable with those obtained from Langmuir’s adsorption isotherm. From these results, it may be generalized that the more efficient inhibitor has more negative ΔG oads , so the order of IE is as follows: A > B > C.

Fig. 3
figure 3

El-Awady kinetic model plotted for the corrosion of 304 SS in 1 M HCl at 25 °C as obtained from WL method

Table 2 Number of active sites (1/y), slopes of Langmuir isotherm lines, equilibrium constants (K), and free energy of adsorption (ΔG oads ) for all investigated compounds obtained from WL measurements at 25 °C

3.3 The Study of the Corrosion Behavior of SS 304 by PP Method

Polarization curves of 304 SS corrosion in 1 M HCl with and without different doses of compound (A) at 25 °C are illustrated in Fig. 4. The numerical values of the variation of corrosion current density (i corr.), corrosion potential (E corr.), Tafel slopes (β a and β c), corrosion rate, (Θ) and % IE with the doses of compound (A) are given in Table 3. The results of this table indicated that by increasing the dose of the inhibitor, i corr decreases and hence, % IE increases. Table 4 represents the % IE of the investigated compounds as determined from PP technique. The results of this table follow the following order: A > B > C. The results of Table 4 indicate that the presence of inhibitors affects both the anodic metal dissolution and cathodic hydrogen evolution; this is indicates that these inhibitors act as mixed-type inhibitors and also E corr values was enhanced with no definite trend.

Fig. 4
figure 4

PP curves of 304 SS in 1 M HCl with and without different doses of compound (A) at 25 °C

Table 3 Effect of doses of compound (A) on the electrochemical parameters of 304 SS in 1 M HCl at 25 °C
Table 4 IE at different doses of the investigated compounds as determined from PP method at 25 °C

3.4 Synergistic Effect

Iodide ion is found to enhance the inhibitive effect of several inhibitors in acid solutions. In the present study, the influence of iodide ion on the inhibitive performance of the investigated compounds has been studied. Similar results have been documented [39]. Table 5 shows the influence of 0.01 M KI on IE of various doses of the investigated compounds for 304 SS using PP technique. It can be seen from this table that the addition of KI increases the IE of the investigated compounds for 304 SS. Figure 5 represents the PP curves of 304 SS in 1 M HCl in the absence and presence of 1 × 10−2 M KI and different doses of inhibitor (A) at 25 °C. The synergistic effect between iodide ions and inhibitor molecules can be explained by the fact that the addition of KI solution stabilizes the adsorption of the investigated compounds on the SS surface. This stabilization may be caused by the interaction between inhibitor molecule and iodide ions. Thus, the interaction enhances the IE to a considerable extent due to the increase in the surface coverage in the presence of iodide ions. Figure 6 represents the plots of synergism parameters Sθ of KI versus the doses of the investigated compounds at 25 °C. The values of S θ are almost > 1; this means that there is a synergistic effect between the inhibitor molecules and KI.

Table 5 % IE at different doses of inhibitors in the presence of 1 × 10−2 M KI as determined from PP method at 25 °C
Fig. 5
figure 5

PP curves of 304 SS in 1 M HCl in the absence and presence of 1 × 10−2 M KI and different doses of compound (A) at 25 °C

Fig. 6
figure 6

Plots of synergism parameters S θ of KI versus the doses of the investigated compounds at 25 °C

Aramaki and Hackerman [40] calculated the synergism parameter S θ using the following equation:

$$S_{\theta } = \, \left( {1 - \theta_{1 + 2} } \right)/\left( {1 - \theta_{1 + 2}^{\prime } } \right)$$
(5)

where θ 1+2 = (θ 1 + θ 2) − (θ 1 θ 2), θ 1 surface coverage by anion; θ 2 surface coverage by cation; θ1+2 measured surface coverage by both anion and cation. S θ approaches unity when there are no interactions between the inhibitor compounds, while S θ  > 1 points to a synergistic effect; in the case of S θ  < 1, the antagonistic interaction prevails.

3.5 Effect of Temperature on the Activation Parameters of Corrosion Process

The effect of temperature on the corrosion rate in the temperature range 25–55 °C in the presence and absence of the investigated compounds was studied. From the results obtained in Table 6, the % IE was decreased by increasing the temperature. This indicates that these derivatives are adsorbed on 304 SS surface physically, also the order of IE decreased as follows: A > B > C. The rate of corrosion increases by raising the temperature, due to desorption of adsorbed molecules and leave the metal surface to face the corrosive solution. Figure 7 represents plots of the log rate versus 1/T, and Fig. 8 shows the relation between log (rate/T) versus 1/T data. The calculated values of the apparent activation energy, E a*, activation entropies, ΔS*, and activation enthalpies, ΔH*, are given in Table 7. Generally, one can say that the nature and the dose of electrolyte affect greatly the activation energy of the corrosion process. The results which are presented in Table 7 showed that the ΔH* of all compounds is positive. The positive sign of the enthalpy reflects the endothermic nature of the SS dissolution process [41]. Also, all the entropies of activation were negative. The negative values of entropies imply that the activated complex in the rate-determining step represents an association rather than a dissociation step, meaning that a decrease in disordering takes place ongoing from reactants to the activated complex [42].

Table 6 Inhibition efficiency of 1 × 10−6 M investigated compounds at different temperatures as determined from WL method; duration of immersion is 240 min
Fig. 7
figure 7

Plots of log corrosion rate versus (1000/T) for 304 SS dissolution in 1 M HCl in the absence and presence of 1.1 × 10−5 M of investigated compounds

Fig. 8
figure 8

Plots of log (corrosion rate/T) versus (1000/T) for 304 SS dissolution in 1 M HCl in the absence and presence of 1.1 × 10−5 M of investigated compounds

Table 7 Thermodynamic activation parameters for the dissolution of 304 SS in 1 M HCl in the absence and presence of 1.1 × 10−5 M of investigated compounds

3.6 EIS Method

The corrosion behavior of 304 SS in 1 M HCl solution in the absence and presence of different doses of the investigated compounds was examined by the EIS technique at 25 °C. Figure 9 shows the Nyquist plots for 304 SS in 1 M HCl solution in the absence and presence of different doses of compound (A). The main parameters deduced from the analysis of Nyquist diagram are: the resistance of charge transfer R ct (diameter of high-frequency loop) and the capacity of double layer C dl which is defined as:

$$C_{\text{dl}} = 1/2\pi f_{\hbox{max} } R_{\text{ct}}$$
(6)
Fig. 9
figure 9

The Nyquist plots for the corrosion of 304 SS in 1 M HCl with and without different doses of inhibitor (A) at 25 °C

The θ and the IE obtained from the EIS measurements are defined by the following relation:

$$\% \, IE \, = \, \theta \, x \, 100 \, = \, \left[ {1 - \left( {R^{o}_{ct} /R_{ct} } \right)} \right]x100$$
(7)

where R oct and R ct are the charge transfer resistance in the absence and presence of different doses of inhibitor, respectively. The data associated with the impedance diagrams are given in Table 8. Table 9 shows the IE of different doses of the investigated compounds for the corrosion of 304 SS in 1 M HCl at 25 °C as obtained from EIS. From the impedance data given in Tables 8 and 9, one concludes that: (a) the value of R ct increases with the increasing the doses of the inhibitors and hence the increase in the IE in acidic solution, (b) as the impedance diagram obtained has a semicircle appearance, it shows that the corrosion of 304 SS is mainly controlled by a charge transfer process, (c) the value of double-layer capacitance decreases by increasing the inhibitor concentration; this is due to the adsorption of these compounds on the electrode surface leading to a film formation on the 304 SS surface, (d) the % IE obtained from EIS measurements is nearly close to those obtained from PP and WL methods. The order of IE obtained from EIS measurements is: A > B > C.

Table 8 Electrochemical kinetic parameters obtained by EIS method for the dissolution of 304 SS in 1 M HCl with and without different doses of the investigated compounds at 25 °C
Table 9 % IE of different doses of the investigated compounds for the corrosion of 304 SS in 1 M HCl at 25 °C as obtained from EIS method

3.7 Chemical Structure of the Investigated Compounds and Corrosion Inhibition

It is generally assumed that adsorption of the inhibitor at the metal/solution interface is the first step in the action mechanism of the inhibitors in aggressive acid media. Four types of adsorption may take place during inhibition involving organic molecules at the metal/solution interface: (a) electrostatic attraction between charged molecules and charged metal, (b) interaction of unshared electrons pairs in the molecule with the metal, (c) interaction of π electrons with the metal and (d) a combination of the above [43]. Concerning inhibitors, the IE depends on several factors: such as (1) the number of adsorption sites and their charge density, (2) molecular size, heat of hydrogenation, (3) mode of interaction with the metal surface and (4) the formation metallic complexes [44]. Most organic inhibitors contain at least one polar group with an atom of nitrogen, sulfur or oxygen, each of them in principle representing a chemisorption center. The inhibitive properties of such compounds depend on the electron densities surrounding the chemisorptions center: the higher the electron density at the center, the more the effective the inhibitor. The order of the IE of the investigated compounds is: A > B > C. The surface coordination is through the oxygen and the nitrogen atoms attached to the hetero ring, and these compounds can be adsorbed in a flat orientation through a bidentate form. It was concluded that the mode of adsorption depends on the affinity of the metal toward the π–electron clouds of the ring system [45]. This behavior can be rationalized on the basis of the structure–corrosion inhibition relationship of organic compounds. Linear free energy relationships (LFER) has previously been used to correlate the IE of organic compounds with their Hammett constituent constants [46]. The LFER or Hammett relation is given by [47, 48]

$${\text{Log}}\,R\,\left( {\text{rate of corrosion}} \right)\quad {\text{or}}\quad \log \,{\text{IE}} = - \,\rho \,\sigma$$
(8)

where ρ is the reaction constant and σ (Hammett constant) is a relative measure of the electron density at the reaction center. Those constituents which attract electrons from the reaction center are assigned positive σ values, and those which are electron donating have negative σ values. The slope of the plot of log R or % IE versus σ is ρ, and its sign indicates whether the process is inhibited by an increase or decrease in the electron density at the reaction center. The magnitude of ρ indicates the relative sensitivity of the inhibition process to electronic effects.

Compound (A) contains dimethyl amine group in the para position (σ p = − 0.205). This group acts as electron-donating group which increases the electron density of the ring and increases the ability of the inhibitor to be adsorbed on the metal surface. Also this compound contains two nitrogen atoms in the hetero ring. So, compound (A) is the highest effective one. Compounds (B) comes after compound (A) in IE because it contains an acetyl group (–COOCH3) in the para position (σ p = + 0.39) which is electron-withdrawing group; on the other hand, this molecule contains a methoxy group in the meta-position which may add electrons to the molecule. Also compound (B) contains N and O atoms in the hetero ring (N > O in basicity). All of the above will decrease the electron density on the molecule and hence decrease the adsorption power on the metal surface. Compound (C) is the least effective one due to the presence of acetyl group in the para position in the molecule (σ p = + 0.39) which is electron-withdrawing group and contains two nitrogen hetero atoms. On the other hand, compound (B) has larger molecular size than compound (C).

4 Conclusions

The investigated compounds were found to be inhibitors for 304 SS corrosion in HCl solution. The IE decreases with increasing temperature at all temperatures studied (25–55 °C). The inhibition is probably due to the adsorption of these compounds on the metal surface and blocking its active sites by the phenomenon of physical adsorption. The data obtained from this study fit well into the Langmuir’s adsorption isotherm and also obey the thermodynamic–kinetic model. Synergistic effect occurs on the addition of KI to acid containing the investigated compounds which inhibits SS corrosion. The phenomenon of synergism takes place at very low doses for the systems studied. Polarization curves proved that the three investigated compounds were mixed-type inhibitors, which can suppress the anodic and cathodic reactions at the same time. EIS plots indicated that these compounds were adsorbed on the electrode surface to form a compact film to inhibit the corrosion process.