1 Introduction

30Cr2Ni4MoV steel exhibits good hardenability, superior and balanced strength, high toughness and wear resistance, and good hot workability. It is often used in low-pressure rotors in large nuclear power plants [1,2,3]. However, this material is intrinsically coarse-grained steel, and its strong grain inheritance can easily lead to coarse grains and reduce mechanical properties [4, 5]. In recent years, the multi-directional forging process has developed rapidly. This process promotes the recrystallization of materials by applying multi-directional deformation to forging. This application helps achieve a strong grain refinement effect and greatly improves the mechanical properties of materials. The process has low requirements for production equipment and cost. It has become an important approach to the production and performance optimization of large-scale forgings [6,7,8,9].

The plastic deformation of materials at high temperatures is a process involving multiple factors. In traditional production, the formulation of production plans and the control of the deformation process must be carried out in accordance with the results of trial production or experience. However, this requirement consumes considerable amounts of manpower and material resources. With the rapid development of computer technology, simulation has been inevitably introduced into traditional materials research [10,11,12]. With the aid of simulation technology, the mechanical behavior and microstructure evolution behavior of materials during and after deformation can be predicted so as to provide a reference for the formulation and optimization of production plans. By using simulation software, Qian and Pan [13] established a three-dimensional macro–micro coupled finite element model for the forging and rolling of a large AISI 4140 steel ring blank. Previous studies only focused on the geometry and thermodynamics of the ring blank. On this basis, they achieved the prediction of the evolution and distribution of the microstructure of the blank during the deformation process, which provided a reliable platform and guidance for the study of deformation mechanism and optimization of the process. To optimize the hot forging of 316LN stainless steel pipes, He et al. [14] used a modified Arrhenius-type constitutive model and an artificial neural network model in their study of the flow stress of the thermal deformation of a material. Under the condition in which both models have high reliability, the neural network has a wider prediction range than the constitutive model and is thus convenient to use with finite element analysis software.

At present, the simulation studies on the multi-directional forging process of 30Cr2Ni4MoV steel are few and thus out of proportion to the current demand for this type of material. Therefore, the current study uses the finite element simulation software called Deform to simulate the isothermal multi-directional forging of 30Cr2Ni4MoV steel, and the corresponding back propagation (BP) neural network prediction model is established. The prediction results of the two methods are then compared. The results are expected to facilitate the high-precision prediction of the multi-directional forging microstructure of 30Cr2Ni4MoV steel and guide actual production processes.

2 Hot compression experiment

2.1 Experimental material and scheme

The research object of this experiment is a type of 30Cr2Ni4MoV steel, which has been annealed after forging. Table 1 shows its main chemical composition, and Fig. 1 shows its microstructure. The structure in this state is mainly equiaxed grain, with an average grain size of about 200 μm.

Table 1 Chemical composition of experimental material
Fig. 1
figure 1

Microstructure of experimental material

The hot compression experiment is carried out on a Gleeble 3800 thermal simulator. The sample used is cylindrically shaped and measured φ8 × 12 mm. The selected deformation temperatures are 900 °C, 1000 °C, 1100 °C, and 1200 °C; and the hot compression strain rates are 0.001, 0.01, and 0.1 s−1, respectively. In an actual operation, the heating rate is 20 °C per second, and the sample is heated to a predetermined temperature and then kept warm. The compression rate of deformation is 70%. After compression, the sample is immediately cooled to retain the deformed structure.

2.2 Experimental results

The true stress–strain curve of the thermal deformation of the material is established on the basis of the experimental data of hot compression. Figure 2 shows the comparison between the curves of different strain rates at the same deformation temperature. Observation and analysis reveal that these curves present obvious three-stage changes. At the initial stage of deformation, the stress increases sharply due to work hardening. However, this increasing trend gradually slows down due to the subsequent dynamic recovery. The stress begins to decrease after reaching the peak value because the softening ability of dynamic recrystallization and recovery exceeds the effect of work hardening. At the end of the deformation, the stress tends to be stable, thereby reflecting the dynamic balance of softening and work hardening. The peak stress statistics under various deformation conditions are shown in Table 2. The joint analysis of the data in Table 2 and the curve in Fig. 2 shows that the strain rate is proportional to the peak stress and that the deformation temperature is inversely proportional to the peak stress. These data serve as the basis for the construction of the constitutive equation of the thermal deformation of 30Cr2Ni4MoV steel.

Fig. 2
figure 2

True stress–strain curves at different strain rates. a) T = 900 °C. b) T = 1000 °C. c) T = 1100 °C. d) T = 1200 °C

Table 2 Peak stress under various deformation conditions

The change state of the true stress–strain curve shows that 30Cr2Ni4MoV steel undergoes obvious dynamic recrystallization during thermal deformation. Figure 3 shows the microstructure of samples under deformation conditions of 900 °C–0.01 s−1 and 1000 °C–0.01 s−1 in the hot compression experiment. It can be seen that the microstructure has obvious dynamic recrystallization characteristics. The metallographic microstructure of samples under different hot compression deformation conditions is observed and analyzed, and the dynamic recrystallization volume fraction (Xdrex) is obtained by calculating the proportion of area, and the dynamic recrystallization grain size (Ddrex) is measured by using the transection method. The above data are counted in Table 3, which will be used as the basis for establishing the microstructure evolution model.

Fig. 3
figure 3

Microstructure of hot compression sample. a) 900 °C–0.01 s−1. b) 1000 °C–0.01 s−1

Table 3 Statistics related to dynamic recrystallization

3 Deform simulation of multi-directional forging of 30Cr2Ni4MoV steel

3.1 Related mathematical models and secondary development of Deform

The constitutive equation of the thermal deformation of materials and various microstructure evolution models are important foundations for the finite element simulation of the plastic deformation process. Based on the true stress–strain curve obtained from the experiment, the constitutive equation of the material is constructed in the form of a hyperbolic sinusoidal function in the Arrhenius model [15, 16]. Based on the statistics and analysis of the hot compression microstructure, various thermal deformation microstructure evolution models of the material are constructed by using the Sellers model and Avrami dynamic recrystallization theory [17, 18].

The constitutive equation of the thermal deformation of 30Cr2Ni4MoV steel is as follows:

$$\dot{\varepsilon } = 3.34 \times 10^{11} \times \left[ {\sinh \left( {0.018\sigma_{p} } \right)} \right]^{3.6} \times \exp \left( { - \frac{347,000}{{RT}}} \right)$$
(1)

\(\dot{\varepsilon }\) is the strain rate, σp is the peak stress, R is the gas constant (8.314 J(mol K)−1), and T is the deformation temperature.

The microstructure evolution model of the thermal deformation of 30Cr2Ni4MoV steel is shown below. The model includes the expression of the dynamic recrystallization critical condition, dynamic recrystallization volume fraction, and dynamic recrystallization grain size.

$$\begin{cases} \varepsilon_{p} = 0.008Z^{0.11} \hfill \\ \varepsilon_{c} = \left( {0.6{\sim }0.85} \right)\varepsilon_{p} \hfill \\ X_{drex} = 1 - \exp \left[ { - 1.08\left( {\frac{{\varepsilon - \varepsilon_{c} }}{{\varepsilon_{p} }}} \right)^{1.89} } \right] \hfill \\ D_{drex} = 5.9 \times 10^{4} Z^{ - 0.243} \hfill \\ \end{cases}$$
(2)

Xdrex is the dynamic recrystallization volume fraction, Ddrex is the dynamic recrystallization grain size, εp is the peak strain, ε is the strain, εc is the critical strain, and Z is the compensation factor of the deformation temperature to the strain rate obtained by the following formula:

$$Z = \dot{\varepsilon }\exp \left( {\frac{347,000}{{RT}}} \right)$$
(3)

The average grain size of the structure after dynamic recrystallization is called the average grain size of dynamic recrystallization (Davg), which is calculated according to the following formula:

$$D_{avg} = D_{drex} X_{drex} + D_{0} \left( {1 - X_{drex} } \right)$$
(4)

The Deform software provides two secondary development methods, namely pre-processing and post-processing secondary development. In this work, the custom subroutine is compiled in the pre-processing stage, and the constitutive equation of the thermal deformation of 30Cr2Ni4MoV steel is written into the flow stress script (USRMTR). Figure 4 presents the schematic of the pre-processing secondary development. In the post-processing stage, the microstructure evolution model, including the dynamic recrystallization critical conditions, dynamic recrystallization volume fraction, and dynamic recrystallization grain size, is compiled into the script file (pstusr.f) and linked to the dynamic link library file (USR_DEF_PST3.dll). The display of custom variables is realized by calling the library on the post-processing interface. Figure 5 shows the schematic of the post-processing secondary development.

Fig. 4
figure 4

Schematic of pre-processing secondary development

Fig. 5
figure 5

Schematic diagram of post-processing secondary development

3.2 Establishment of finite element model

The multi-directional forging process mainly includes multi-directional free forging, multi-directional die forging, and multi-directional extrusion. Their basic principle is to apply multi-directional plastic deformation to a blank to promote the dynamic recrystallization of the material, and refine the microstructure, and improve the macroscopic strength [19,20,21]. In this work, the isothermal multi-directional die forging of 30Cr2Ni4MoV steel is studied. The specific processes include closed multi-directional forging (CMDF), bilateral open multi-directional forging (BOMDF), and single-side open multi-directional forging (SSOMDF). First, the geometric model corresponding to each process is established. Four-node tetrahedral elements are selected to divide a blank into 25,000 tetrahedral element meshes. Shear friction is selected as the friction property, and the friction factor is set to 0.3. The final constructed finite element model is shown in Fig. 6. In the post-processing of the simulation results, the user-defined variables are extracted according to the intercepting plane method shown in Fig. 6d.

Fig. 6
figure 6

Finite element model. a) CMDF. b) BOMDF. c) SSOMDF. d) A section of the blank

The mold structures of the three multi-directional forging processes show differences. The initial position of the blank of the first two processes is the geometric center of the mold cavity. By contrast, the blank of the SSOMDF process is placed on one side of the cavity. Thus, the stress state of the blank is not consistent during the deformation process. Each loading up to the preset deformation is defined as one pass deformation. At the end of each pass deformation, the CMDF and BOMDF blanks flip along the X and Y directions, respectively, so that the next pass deformation in another loading direction is applied to the blank. After each pass deformation of the SSOMDF, the blank is overturned along the X, Y, and Z directions, and the cycle is carried out so as to achieve uniform deformation of the blank. Aside from the mold structure, the main impact factors of the dynamic recrystallization behavior of the material also include deformation temperature, strain rate, and single pass deformation. To reduce the time cost of the simulation, we use an L9 (34) orthogonal table in the experimental design. The final determined orthogonal table, that is, the simulated grouping, is shown in Table 4. In the table, C represents a CMDF die, B represents a BOMDF die, and S represents a SSOMDF die. The initial grain size of the material is defined as 58.9 μm, and each group of processes undergoes nine passes of deformation. Corresponding to single pass deformation of 20%, 30%, and 40%, the dimensions of the cuboid forging blanks set are 40 × 40 × 50, 35 × 35 × 50, and 30 × 30 × 50 mm, respectively.

Table 4 Orthogonal table

3.3 Analysis and discussion of simulation results

Process 3, process 6, process 8, and process 9 are taken as examples to briefly summarize the microstructure simulation results of the multi-directional forging deformation of the blank.

The simulation result of process 3 is shown in Fig. 7. Among the first three groups of processes with a deformation temperature of 900 °C, the single pass deformation and strain rate of process 3 are the largest. The blank after three passes of deformation has a relatively high degree of recrystallization on the right side of the x-axis direction. After six passes of deformation, the blank basically reaches complete dynamic recrystallization. The minimum grain size after nine passes of deformation is as low as 1.45 μm. This group uses a SSOMDF die. After nine passes of deformation, the grain size of the core of the blank and the free surface area near the left side of the blank’s x-axis direction are slightly large, and the small-sized grains are mostly distributed in the surface area of the blank. However, the gap between grain sizes is small. The overall structure is uniform.

Fig. 7
figure 7

Simulation results of process 3

The cloud diagram of the simulation results of the blank under the condition of process 6 is shown in Fig. 8. The deformation temperature of this process is 1000 °C. The strain rate is high, but the single pass deformation is low. After three passes of deformation, the dynamic recrystallization of the blank is not complete, but after six passes, it can basically achieve complete dynamic recrystallization. However, the degree of change in the grain size of the blank after deformation from six passes to nine passes is not obvious, thus indicating a limit to grain refinement. This result may be due to the fact that the billet obtains small-sized grains after six passes of deformation and excessive grain boundaries require a large driving force for recrystallization. At a low single pass deformation, the energy brought by the further accumulation of passes is not enough to drive recrystallization.

Fig. 8
figure 8

Simulation results of process 6

The simulation result of process 8 is shown in Fig. 9. The deformation temperature of this group is 1300 °C, and the simulation result shows that the degree of grain size refinement of this group is extremely small. This result is mainly due to the deformation temperature of process 8 being relatively high and the strain rate being adequately low. The crystal grains first absorb energy and expand. Then, dynamic recrystallization occurs with the accumulation of deformation.

Fig. 9
figure 9

Simulation results of process 8

The simulation result of process 9 is shown in Fig. 10. The strain rate under this group of processes is increased to 10 s−1, and the single pass deformation is 30%. The simulated cloud image shows that the influence of a high temperature under this process is lower than that of a high strain rate. The blank is completely recrystallized after three passes of deformation, and the overall average grain size is refined to about 20 μm after nine passes of deformation.

Fig. 10
figure 10

Simulation results of process 9

The blank can be completely recrystallized under each set of process conditions. Hence, this section does not discuss the relationship between deformation conditions and volume fraction. Table 5 shows the average grain size of the blank after deformation under each set of process conditions. To quantitatively analyze the impact of each factor, we take the average grain size of the blanks deformed in three, six, and nine passes under each group of processes as the research index. The average value and range of the index corresponding to the value of each factor are then calculated. The results are shown in Table 6.

Table 5 Average grain size statistics
Table 6 Processing of orthogonal experiment results

According to the range calculation results in Table 6, the range value of temperature is the largest for the average grain size after deformation regardless of the number of passes. This result shows that the factor exerts a major effect on the average grain size of the blank. The range of strain rate is the second, which indicates the factor’s strong role. The range of the mold structure ranks third while the range of single pass deformation ranks fourth; hence, the influence of these two factors is weakened in turn. The average value of the index corresponding to the different values of each factor shows that as the deformation temperature increases, the average grain size of the blank after multi-directional forging also increases. When the strain rate is increased, the blank can obtain a fine average grain size. In this simulation, the change in the deformation value of a single pass does not reflect a linear effect. For the three deformations in this study, the grain size of the blank is slightly low when the value is 30%. According to the simulation examples, the differences in the mold structure directly affect the deformation behavior of the blank and further influence the distribution of recrystallization and structure. According to the average values shown in Table 6, the use of CMDF die can obtain a fine structure, and the SSOMDF die and BOMDF die have similar grain sizes and high values. In terms of the values involved in the various influence factors in this study, the deformation temperature can be set to below 1100 °C, the strain rate can be set to above 1 s−1, and the single pass deformation can be set to 30% to obtain a fine and uniform multi-directional forging structure. Furthermore, a CMDF die may be used. According to the data in Tables 5 and 6, except for individual conditions, the average grain size of the blank decreases with an increase in the number of multi-directional forging passes. Therefore, the processing pass can be set to nine passes.

4 Prediction of multi-directional forging microstructure of 30Cr2Ni4MoV steel based on BP neural network

The accuracy of finite element simulation is greatly affected by the accuracy of related mathematical models. Simulations based on fixed-form models cannot easily achieve a comprehensive expression of complex macro- and microevolution laws during the thermal deformation of materials. The original intention of artificial neural network technology is to imitate the human brain’s information processing method, which is suitable for solving various types of complex nonlinear relationships. The BP neural network technology is widely used and can achieve an accurate approximation of arbitrary nonlinear relationships [22, 23]. Therefore, this work further uses a BP neural network to predict the microstructure of the blank deformed under different multi-directional forging process conditions.

4.1 Neural network modeling

A typical BP neural network includes three network layers: input layer, hidden layer, and output layer. The content of the input layer and output layer needs to be determined according to the finite element simulation results. The deformation process of the material involves a variety of influencing factors. The analysis of the orthogonal experiment results indicates that the roles of each factor and the influence weight are quite different. Hence, this study establishes different neural network models. In one neural network model that directly affects the dynamic recrystallization behavior, deformation temperature, strain rate, and true strain are used as the input layer. For the output layer, dynamic recrystallization volume fraction and average grain size are used. In another neural network model that directly affects the strain distribution, the number of deformation passes, mold structure, and single pass deformation are used as the input layer. For the output layer, true strain is used. The range of the number of neurons in the hidden layer of the former is set to 3–12, and that of the latter is set to be 2–12. The selection of this value depends on the following formula:

$$num = \sqrt {m + n} + a\begin{array}{*{20}c} {} & {} \\ \end{array} \left( {0 \le a \le 10} \right)$$
(5)

num represents the number of neurons in the hidden layer, m is the number of nodes in the input layer, and n is the number of nodes in the output layer.

In the BP neural network system, the size of the weight is proportional to the strength of the connection between neurons, and the node transfer function is the medium for neuron weight transfer. Therefore, choosing the appropriate node transfer function is important to ensure the fitting accuracy of the neural network. In this study, the sigmoid function is used in the hidden layer while the linear function is used in the output layer. Given a different number of neuron nodes, the function fit is achieved.

A definite neural network topology architecture is established accordingly (Fig. 11).

Fig. 11
figure 11

Neural network topology architecture

4.2 Neural network prediction results and discussion

Based on the data obtained from the hot compression experiment, the established neural network model is trained and adjusted repeatedly, and finally the network model with good regression effect and strong generalization ability is obtained. This study uses the GUI development function provided by MATLAB to compile the neural network model into an executable function. The relevant deformation parameters are entered into the front-end interface, and the corresponding neural network prediction results are then obtained. This study randomly selects three groups of experimental conditions (Table 7) and carries out the neural network prediction of the multi-directional forging deformation of 30Cr2Ni4MoV steel. The dynamic recrystallization volume fraction and average grain size prediction data of the blank after deformation are then obtained. The method of intercepting the plane on the blank is the same as the finite element simulation above, and the prediction results of the three sections are obtained and compared with the finite element simulation results under the same experimental conditions (Figs. 12, 13 and 14).

Table 7 Experimental conditions
Fig. 12
figure 12

Comparison of group 1. a) Finite element simulation. b) Neural networks

Fig. 13
figure 13

Comparison of group 2. a) Finite element simulation. b) Neural networks

Fig. 14
figure 14

Comparison of group 3. a) Finite element simulation. b) Neural networks

The comparison of the prediction results under various conditions shows that the dynamic recrystallization volume fraction and average grain size prediction results obtained by the two methods are basically the same. However, the recrystallization area and average grain size distribution of the blank predicted by the neural network are more detailed than those by the finite element simulation. Moreover, the transitional stratification changes between different recrystallization degrees and grain sizes are particularly obvious. This feature is particularly significant in the prediction results of the second and third groups of conditions shown in Figs. 13 and 14. Taking condition 2 as an example, for the dynamic recrystallization volume fraction, the finite element simulation results show that the small area on the left and the lower left corner of each slice shows multiple color layers, and most of the remaining areas are displayed as two similar red. Combined with the legend below the picture, the dynamic recrystallization volume fraction of each area of the blank is above 99.9%, and the difference between them is very small. In this state, the predicted result of the grain size distribution given by the finite element simulation is consistent with the volume fraction distribution and gets a single grain size value. The prediction result of the neural network shows that the dynamic recrystallization volume fraction of each area of the blank is above 99.6%, which is 0.3% lower than the finite element simulation result, but the volume fraction on each slice obviously has more transitional layers and richer details. The grain size predicted by the neural network is not a single value, and the distribution state is consistent with the recrystallized volume fraction, and correspondingly shows an obvious layered change process. It is analyzed that the finite element simulation based on fixed-form of mathematical models is less flexible. The neural network with strong nonlinear relationship fitting ability showed a more detailed division of microstructure distribution in the abovementioned comparative experiment. Therefore, it is believed that the established neural network prediction model can be used to predict the microstructure of 30Cr2Ni4MoV steel in multi-directional forging deformation.

5 Conclusions

  1. 1.

    The true stress–strain curve of the thermal deformation of 30Cr2Ni4MoV steel was obtained through a hot compression test, and the constitutive equation of the thermal deformation of the material was constructed. On the basis of the statistics and analysis of the microstructure of the hot compressed sample, the microstructure evolution model of thermal deformation, including the dynamic recrystallization critical condition, dynamic recrystallization volume fraction, and dynamic recrystallization grain size model, was constructed.

  2. 2.

    With the aid of the secondary development interface provided by Deform, the mathematical model was programmed, and the orthogonal method was used to set multiple groups of process conditions. Then, the multi-directional forging deformation of 30Cr2Ni4MoV steel was simulated. The analysis of the orthogonal experiment results reveals the influence law of various factors and may serve as a reference for setting related process conditions.

  3. 3.

    According to the differences in the effects of objects and influence weights of various factors in the finite element simulation, a neural network prediction model for the multi-directional forging deformation of 30Cr2Ni4MoV steel was established. Compared with the results of the finite element simulation, the neural network prediction results showed a more detailed division of microstructure distribution, and have richer detailed information.