1 Introduction

Alloy steel 4340 is heat treatable steel. When it undergoes a heat treatment it gets a strong robustness, strong toughness, good ductility and immunity against embrittlement [1]. These many qualities allow it to be chosen as a premium alloy in the aviation, marine and automotive industries [2]. It is found in crankshafts of the automotive sector and in the marine environment, in the piston rods, the wheel shafts, aircraft parts, the gears, mechanical parts of boreholes, as well as in several other applications. When heated to a temperature above the Ac3 austenitization temperature, it changes from a solid phase to another solid with notable mechanical properties [3, 4]. This eutectic reaction plays a very important role in its heat treatment with a maintenance of the shape of its structure, during heating and cooling. Oven heat treatment controls heating and cooling, by acting at the microstructure level of the material, by modifying the mechanical properties, modifying physical properties such as thermal and electrical conductivity and also change the chemical properties like corrosion resistance [5]. This type of heat treatment consists in varying the temperature of the material by keeping it in the solid state. This time-dependent variation of temperature is called a thermal cycle and consists of a heating at a certain temperature above the Ac3 temperature, followed by a maintenance of the temperature at a certain time, and finally a cooling at a certain speed of well-defined cooling. Cooling is generally done in water, oil or air [6].

Each cooling medium is characterized by a convective heat transfer coefficient, which can be evaluated by empirical correlations. For alloy steel 4340, the rapid cooling of the austenite to a temperature below the critical value Ms causes a fixation of the carbon atoms inserted in the gamma (γ) region. At the atomic scale, the structure becomes quadratically centered instantly. This new solid insertion solution is called martensite and its formation is related to the rate of cooling of the heat-treated material in the oven. The cooling rate must be greater than the critical speed of the martensitic quench which is of the order of 8 °C s−1 for the alloy steel 4340. It is obvious that this condition depends on the thermal conductivity of the metal, the shape and dimensions of the material, and also the cooling capacity of the quenching medium [7]. In practice, after quenching, samples are returned to the oven in order to eliminate the intermolecular tensions of the rapid cooling which weakens the material. And also to obtain a change in mechanical properties by a change in the microstructure of the material. At the scale of the microstructure, after cooling, a mixture of martensite, residual austenite, bainite and carbides is obtained. While during the tempering this martensite turns into ferrite and the carbides and residual austenite turns into martensite and bainite.

A standard test specimen of a diameter of 6-mm in alloy steel 4340 can be considered as a thin body because it has a Biot number of less than 0.1 (number that compares heat transfer resistances inside and on the surface of the sample). This makes it possible to evaluate the cooling power of the quenching medium by using the approximation of the uniform temperature at any point of the sample. To determine the elastic behavior of a material and to measure its degree of tensile strength one can perform a tensile test which is a physics experiment in a uniaxial stress state. For metallic materials such as 4340 steel, the reference standard for a tensile test is ASTM E8 (Standard test methods for tension testing of metallic materials) which generally defines the shape and dimensions of the specimen, the loading speed and the calibration of the machine [8,9,10]. This test provides the values of the mechanical properties of a material such as the longitudinal modulus of elasticity, the Poisson’s ratio, the yield strength, tensile strength and elongation at break. An empirical correlation between Brinell hardness and Su tensile strength for low-work hardening alloys such as steels, aluminum alloys and titanium alloys was formulated by Datsko et al. in 2001. To estimate the accuracy of the results, Datsko et al. compared the experimental values and the estimated values of Su. The error obtained was weak and did not exceed 10% in most of the prediction cases. It has been shown that this method of predicting the value of Su from the value of hardness is easy to use and can be applied to a wide range of materials [11]. In the field of martensitic quenching, an interesting but untapped prediction using experimental analysis of the mechanical properties of AISI-4340 steel was developed in this study. The proposed approach allows for prediction and control based on oven heat treatment parameters: the variation in mechanical properties (hardness, yield strength, tensile strength and elongation at break) for a 4340-alloy steel specimen with a cylindrical geometry and a diameter of 6-mm. The approach is built progressively by a presentation of the experimental setup, a presentation of the experimental design and mechanical test results, an Anova variance analysis and a representation of the output responses using the response surface method. RSM, and an analysis of the results and discussion.

2 Experimental Procedure

2.1 Experimental Setup

The experimental tests were carried out on standard test specimens in 4340 steel and cylindrical geometry, with a diameter of the calibrated portion of 6-mm. Figure 1 shows the dimensions of the specimen studied according to ASTM E8.

Fig. 1
figure 1

3D visualization of the geometry of the specimen

The samples were prepared, and heat treated in oven. The oven was set at a temperature of 900 °C, who is the eutectoid temperature of 4340 alloy steel, before receiving the samples. Once in the oven, the samples remained there for 20-min to reach the austenitic phase, then cooled in groups of three in air, oil and water. After quenching, the samples received a tempering at three different heating temperatures (300, 500 and 650 °C) and three different residence time in the oven (30, 60 and 90-min). After the heat treatment in the oven, the samples are carefully prepared, polished and etched using a Nital chemical solution (95% ethanol and 5% nitric acid). The hardness profiles were characterized by microhardness measurements programmed using the Clemex machine, and by macrohardness measurements using the Wilson-Rockwell-574 machine, with the Rockwell-C as a unit of measure for hardness.

Subsequently, they were subjected to tensile tests to evaluate their mechanical properties after quenching and tempering. Tensile tests were carried out using the MTS-810 tensile testing machine, which is an automated machine used to develop and qualify the use of materials. With a total load in tension, up to 100-kN. The flexibility of the configuration of this automatic tensile testing machine allows a variety of applications and centralized management of test results using the MTS TestWorks program. Once the specimen is in place, a displacement of the span is carried out which has the effect of stretching the specimen, and the force generated by this displacement is measured. The movement is done by a hydraulic piston system and the effort is measured by a force sensor inserted into the load line. The tensile load applied in our experiments was between 28- and 50-kN, with a strain rate of 0.015-min−1 [8]. At each increment of load, a measurement is taken by a displacement measuring sensor which makes it possible to accurately evaluate displacements. The test stops at the rupture of the specimen. Figure 2 shows the flow chart of the experimental tests.

Fig. 2
figure 2

Description of the experimental device

2.2 Experimental Design

To predict the mechanical properties of a material, using experimental modeling, it is essential to have relevant tests to adequately represent these characteristics according to the parameters of the test. To obtain results validating a model with as few tests as possible, it is essential to define an ordered sequence of experimental tests using an experimental design. This will collect new information by controlling one or more input parameters. Because of its efficiency and simplicity, factorial design is generally the most commonly used model for selecting values for each factor by simultaneously varying all factors. This type of experiment makes it possible to study the effect of each variable on the process, but with many tests that can then become very large. To avoid having to end up with a considerable number of tests to be carried out, it is essential to determine through a Taguchi experience plan the parameters of the optimal control factors that make the process more robust, more resistant, with a more efficient performance, consistent and statistically significant data in a minimum number of tests [12, 13]. In the case of furnace heat treatment, it is important to avoid the non-transformation of the steel and the melting of the surface layer of the material.

The experimental tests begin by defining the low and combined levels of the three factors used (oven temperature, oven residence time, and cooling medium) to ensure that these conditions are met. Table 1 shows the factors and levels used in the planning of experiments. As a result, three factors with three levels are considered. They are continuous and linked to oven tempering temperature (T), residence time (ORT) and convection heat transfer coefficient (HTC). The oven temperature in °C, the residence time in minutes and the coefficient of heat transfer by convection in W m−2 K−1 are considered as input parameters. The design that answers this problem is an L9 matrix corresponding to nine tests. Each test consists of following the experience methodology detailed in Fig. 2. The mechanical properties are determined by examining the tensile test results on the MTS machine (modulus of elasticity, yield strength, tensile strength, and ultimate strain) and examining the cross-sectional area of the samples to determine the average value of the hardness by measuring the microhardness.

Table 1 Factors and levels of experience planning

The results obtained from the Taguchi L9 matrix were exploited using the contributions and the average effects of each factor on the final response. The percentage contribution of a single factor reflects the total variation observed in the experience attributed to this factor, and from the interactions between the factors.

2.3 Cooling Rate According to the Quenching Medium

In this study, the coefficient of heat transfer by convection was estimated according to the quench medium and using the empirical correlation formulated by Churchill et al. [14]. This correlation, which is adapted to scientific computing, involves the adimensional number of Nusselt (Eq. 1), Prandtl (Eq. 2) and Rayleigh (Eq. 3). And it is valid only for a Rayleigh number less than 1012.

$$\bar{N}_{{u_{D} }} = {\raise0.7ex\hbox{${h \cdot D}$} \!\mathord{\left/ {\vphantom {{h \cdot D} k}}\right.\kern-0pt} \!\lower0.7ex\hbox{$k$}} = \left( {0.6 + \left( {0.387\,{\text{Ra}}_{D}^{1/6} /\left( {1 + \left( {{\raise0.7ex\hbox{${0.559}$} \!\mathord{\left/ {\vphantom {{0.559} {\Pr }}}\right.\kern-0pt} \!\lower0.7ex\hbox{${\Pr }$}}} \right)^{9/16} } \right)^{8/27} } \right)} \right)^{2}$$
(1)

The number of Prandtl which characterizes the ratio between the kinematic viscosity ϑ and thermal diffusivity α is given by Eq. (2). And the Rayleigh number that characterizes the heat transfer within a fluid, is given by Eq. (3). With Tf the average between the surface temperature of the solid Ts and the initial temperature of the cooling bath T, and D the diameter of the calibrated portion of the sample.

$$\Pr = {\raise0.7ex\hbox{$\vartheta $} \!\mathord{\left/ {\vphantom {\vartheta \alpha }}\right.\kern-0pt} \!\lower0.7ex\hbox{$\alpha $}}$$
(2)
$${\text{Ra}}_{D} = {\raise0.7ex\hbox{$g$} \!\mathord{\left/ {\vphantom {g {T_{\text{f}} \cdot \vartheta \cdot \alpha }}}\right.\kern-0pt} \!\lower0.7ex\hbox{${T_{\text{f}} \cdot \vartheta \cdot \alpha }$}}\left( {T_{s} - T_{\infty } } \right) \cdot D^{3}$$
(3)

Equation (4) presents the adimensional number of Biot. For a specimen of diameter 6-mm and steel AISI-4340, the number Bi < 0.1 therefore we can consider that the body is thermally thin and we can then use the approximation of the uniform temperature to study the evolution over time of temperature.

$${\text{Bi}} = {\raise0.7ex\hbox{${h \cdot r}$} \!\mathord{\left/ {\vphantom {{h \cdot r} k}}\right.\kern-0pt} \!\lower0.7ex\hbox{$k$}}$$
(4)

Equation (5) presents the thermal balance and Eq. (6) presents the evolution of the sample temperature according to the convective heat transfer coefficient (Eq. 1), the geometric and thermal parameters of the material.

$$h \cdot S \cdot \left( {T_{\text{s}} - T_{\infty } } \right) = - \rho \cdot C_{\text{p}} \cdot V \cdot {\raise0.7ex\hbox{${dT_{s} }$} \!\mathord{\left/ {\vphantom {{dT_{s} } {dt}}}\right.\kern-0pt} \!\lower0.7ex\hbox{${dt}$}}$$
(5)
$$T_{\text{s}} \left( t \right) = \left( {T_{i} - T_{\infty } } \right) \cdot \exp \left( { - {\raise0.7ex\hbox{${h \cdot S \cdot t}$} \!\mathord{\left/ {\vphantom {{h \cdot S \cdot t} {\rho \cdot C_{\text{p}} \cdot V}}}\right.\kern-0pt} \!\lower0.7ex\hbox{${\rho \cdot C_{\text{p}} \cdot V}$}}} \right) + T_{\infty }$$
(6)

Figure 3a shows the evolution of sample temperature according to time and cooling medium. For 4340 steel, there is a critical fast cooling rate, which gives rise to the formation of a completely martensitic structure, and which is of the order of 8.3 °C s−1. We see in Fig. 3, by superposition with the 4340-steel cooling curve, that cooling in cold water (160 °C s−1), in oil (70 °C s−1) and in the air blown (20 °C s−1) will provide a fully martensitic structure. While cooling in the open air (2 °C s−1) will provide a mix between martensite and bainite. Figure 3b shows the value of the average hardness of the samples according to the quenching medium. These values were obtained by measurements of the micro-hardness of the surface at the center of the radial section of the cylinder, by cooling batch, and by repetition (×3) of the tests for a good statistical significance. Austenitization was performed at a temperature of 900 °C for a period of 20-min followed by cooling in three different fluids (water, oil and air).

Fig. 3
figure 3

Quenching medium. a Cooling speed. b Average variation in hardness

Figure 4 shows a microscopic visualization with magnification (×2000) of the observed microstructure. Figure 4a shows a completely martensitic structure with a low percentage of residual austenite observed for the majority of samples that received cooling in water and in oil. And Fig. 4b shows a structure composed of martensite, bainite and a small percentage of residual austenite observed for the majority of samples that received cooling in air.

Fig. 4
figure 4

Microscopic visualization. a Cooling in water and in oil. b Cooling in air

2.4 Measurements of Mechanical Properties

Table 2 presents the test grid with the results of the measurements of the yield strength, the ultimate tensile strength, the elongation at break, and the average hardness after tempering. The average hardness was determined by examining the cross-sectional area of the samples by microhardness testing.

Table 2 L9 orthogonal matrix and experimental results

Figure 5a–c shows the stress–strain curves of the tensile tests of the experiment planning tests in Table 2, according to the tempering temperature, the residence time in the oven and quenching medium. Figure 5d shows the values of hardness measurements, by test, before and after oven tempering.

Fig. 5
figure 5

a Strain versus tensile stress for test 1, 4 and 7. b Strain versus tensile stress for test 2, 5 and 8. c Strain versus tensile stress for test 3, 6 and 9. d Hardness before and after tempering

We notice that, the higher the temperature of the oven is high, and the longer the residence time in the oven is high, more the load corresponding to ultimate tensile strength is lower. So for an oven temperature of 300 °C and a residence time in the oven of 30-min, the maximum breaking load of our samples is 50-kN. And for an oven temperature of 650 °C and a residence time in the oven of 90-min, the minimum breaking load observed is 28-kN.

It is also noted that the power of the quenching medium after austenitization has an influence on the ultimate tensile strength. This influence on the load corresponding to the tensile strength is proportional to the coefficient of heat transfer by convection of the quenching medium.

Regarding the hardness, it is noted that it is inversely proportional to the temperature of the oven and the residence time in the oven. Its value changes from 45-HRC (Rockwell C) for an oven temperature of 300 °C and a residence time in the oven of 30-min, to 30-HRC for an oven temperature of 650 °C and a residence time in the oven of 90-min. It should also be noted that the value of the hardness is proportional to the coefficient of heat transfer by convection of the quenching medium.

2.5 Analysis of Variance (ANOVA)

To determine the influence of model input parameters (T, ORT, and HTC) on output responses (Sy, Su, Er and \({\mathcal{H}}\)), and thus quantify the decisions using hypothesis tests to know if the variation is influenced by a single parameter, different parameters or by a combination of parameters. An analysis of variance (ANOVA) [15, 16] was performed which is a widely used calculation technique to determine which design parameter affects the variation of mechanical properties. The parameter with the lowest contribution ratio is set to error factor to capture only the main factor affecting the final response. Generally, the ANOVA table contains the degrees of freedom, the sum of the squares, the average square, the value of P and the value of F. For each parameter studied, the value of the variance ratio F was compared with the values of the tables F standard.

Tables 3, 4, 5 and 6 present a variance analysis of the respective responses for Sy, Su, Er and \({\mathcal{H}}\) using the general stepwise method under the terms of order 1 for Sy, and the term order 2 for Su, Er and \({\mathcal{H}}\). A value of P less than 5% indicates that the corresponding factor (characteristic) has a significant effect on the model response. It is noted that the conventional elastic limit Sy is influenced mainly by the temperature of the oven (T), with a percentage of about 91.1%, and by the coefficient of heat transfer by convection (HTC) with a percentage of contribution of approximately 3.7%. The tensile strength Su, in turn, is influenced mainly by the temperature of the oven (T) with a percentage of 94%, as well as by the other parameters with a contribution percentage of about 5%.

Table 3 ANOVA for Sy
Table 4 ANOVA for Su
Table 5 ANOVA for Er
Table 6 ANOVA for \({\mathcal{H}}\)

Analysis of variance showed that the total elongation at break Er is influenced mainly by oven temperature (T) and oven residence time (ORT) and a combination of temperature and residence time, with a total contribution percentage of about 87.7%. Regarding the hardness after tempering, we note that it is influenced mainly by the oven temperature with a percentage of 81.3% and a combination of the other parameters (HTC and ORT), including their iteration, with a total percentage about 18.5%. It was concluded, within the range of parameter variation ranges that oven temperature, oven residence time, and convective coefficient of cooling medium are significant for the 94% response value of the model. Figure 6 shows the effect of all parameters on the average response value. The results obtained confirm that the value of the hardness, the Offset yield strength and the ultimate tensile strength decrease with increasing oven temperature, and that the elongation at break increases with the temperature and the residence time in the oven. And that the cooling medium has a significant effect on elongation at break.

Fig. 6
figure 6

Main effects plot: a Offset yield strength. b Ultimate tensile strength. c Elongation at break. d Hardness

Equation (7) presents the formulation of the multiple linear regression model, ANOVA analysis of variance, between the parameters used in the sensitivity study (T, ORT and HTC) and the output results (Sy, Su, Er and \({\mathcal{H}}\)). The regression model was obtained using the Minitab statistical analysis software (version 18). Table 7 shows the coefficients of the multiple linear regression polynomial P of the four output responses. The residual value squared (R2) of the regression polynomial is about 0.94, which is a value close to 1 (exact solution). Therefore, the responses of the prediction polynomial to the experimental tests are quite correct.

$$\begin{aligned} P & = a_{0} + a_{1} \cdot T + a_{2} \cdot {\text{ORT}} + a_{3} \cdot {\text{HTC}} + a_{4} \cdot T^{2} + a_{5} \cdot {\text{ORT}}^{2} \\ & \quad + a_{6} \cdot {\text{HTC}}^{2} + a_{7} \cdot T \cdot {\text{ORT}} + a_{8} \cdot T \cdot {\text{HTC}} + a_{9} \cdot {\text{ORT}} \cdot {\text{HTC}} \\ \end{aligned}$$
(7)

Figure 7 shows the measured and predicted curves of the regression model responses. The results are displayed for the nine tests of experience planning. In the range of the parameters defined in Table 1, it is possible to predict the mechanical properties with an error not exceeding 6%. The predicted curves align very well with the measured curves, which explains the good agreement between the predicted values and the measured values.

Table 7 Coefficients of the polynomial of prediction of the mechanical properties
Fig. 7
figure 7

Measured versus predicted: a Offset yield strength. b Ultimate tensile strength. c Elongation at break. d Hardness

2.6 Analysis of RSM Model

To produce contour lines with variable response intervals according to the furnace heat treatment parameters of 6-mm diameter cylindrical specimens. And in order to analyze the relationships between the parameters (T, ORT and HTC) and the mechanical properties (Sy, Su, Er and \({\mathcal{H}}\)), the RSM experimental analysis was used, which is a technique of statistical analysis and, which has the advantage of being easy to apply [17, 18]. We chose to use the interpolation method Thin-plate-spline which gave a coefficient of determination of the order of 0.93, which is close to the value of the exact solution 1. Figure 8a shows the estimated response area for the change in the yield strength, according to the oven temperature and the convection heat transfer coefficient. The residence time in the oven was not considered in the graphical representation because it has a small percentage contribution (about 5%) on the variation of the value of Sy. Figure 8b shows the estimated response surface for the variation of tensile strength, according to the oven temperature and convection heat transfer coefficient. The residence time in the oven was not considered in the graphical representation because it has a small percentage contribution (about 1%) on the variation of the value of Su. Figure 8c shows the estimated response area for the change in ultimate elongation at break, according to oven temperature and oven residence time. The coefficient of heat transfer by convection was not considered in the graphical representation because it has a small percentage contribution (about 12%) on the variation of the Er value. Figure 8d, in turn, shows the estimated response area for the change in average hardness value according to oven temperature and oven residence time. The coefficient of heat transfer by convection was not considered in the graphical representation because it has a small percentage contribution (about 3%) on the variation of the total value of \({\mathcal{H}}\).

Fig. 8
figure 8

Contour plot. a Offset yield strength. b Ultimate tensile strength. c Elongation at break. d Hardness

The heat treatment process engineer may use multiple linear regression polynomials to predict mechanical properties as a function of parameters (T, ORT and HTC). As it can rely on response surfaces to evaluate mechanical properties, by perpendicular intersection of the chosen value in the abscissa axis (T) and the value chosen in the ordinate axis (ORT or HTC).

3 Discussion

From the contour lines and the analysis of variance, as shown in Figs. 6 and 8, it can easily be seen that the yield strength and the ultimate tensile strength are affected mainly by the cooling power of the quenching medium, and also the tempering temperature. And the elongation at rupture and the average hardness is influenced mainly by the residence time in the oven and the tempering temperature. The variation of the value of the average hardness before and after tempering as shown in Fig. 5d, can be explained by dependence on tempering temperature and cooling medium after austenitization of the material. According to stress–strain curves of tensile tests, as shown in Fig. 5a–c, we note that the groups of samples 1, 6 and 7, which were treated by tempering at a high temperature, have a limited resistance to traction greater compared with other samples groups that received a tempering at a higher temperature. From the point of view of ultimate elongation at break, it can be seen that a high temperature considerably increases its value to the detriment of the conventional limit of elasticity and the tensile strength limit. Which is quite normal as mechanical behavior of this type of material [1, 19]. At the level of the microstructure, it is noted that a cooling in the air, after austenitization, will provide a mixture between martensite and bainite. And that cooling in oil or water will provide a completely martensitic structure, because the cooling rate of our samples, as shown in Fig. 3a, is greater than the critical cooling rate which causes the formation of a completely martensitic structure.

4 Conclusions

In this study, we analyzed the variation of the mechanical properties of AISI-4340 steel according to three tempering temperature (300, 500 and 650 °C), three residence times in the oven (30, 60 and 90 min) and three cooling media (air, oil and water). The coefficient of heat transfer by convection of the quenching medium was evaluated for a 6-mm cylinder using empirical correlations adapted to scientific computation. The experimental approach developed using Taguchi experience planning and analysis of variance, allowed to highlight the influence of oven temperature on the set of mechanical properties, the influence of the cooling medium on the yield strength and the ultimate tensile strength, and finally the influence of the residence time in the oven on the elongation at break and the value of the final hardness after tempering. Prediction equations for mechanical properties have been proposed according to oven heat treatment parameters of the AISI-4340. The microstructure as showed a completely martensitic structure for the samples that received cooling in the oil or in the water, and a structure composed of martensite and bainite for samples cooled in air. The main findings found in this study can be used in practice for the steel industry. It would be interesting to consider completing this study by including other quenching fluids, and a thorough investigation to see the behavior of this approach in fatigue tests. We believe that the type of approach proposed in this study is the most appropriate way to develop mechanical properties control models for simple cylindrical geometries.