Abstract

Using ANSYS software to establish the finite element model of crack bending tube, the SIF at the tip of the crack is calculated for the difference in the diameter of the pipe, the outer diameter of the elbow, and the bending angle of the bend pipe, and it is used as a neural network to calculate the sample. By using three layers of BP network to establish the prediction model of the SIF of cracked pipe, the simulation of 39 sets of samples proves that the relative error of the BP network model is 0.19% and the mean square error of the network output is 0.0102. The prediction model has high prediction precision and generalization ability and can be used in engineering design and calculation.

1. Introduction

Elbows are widely used in engineering structural parts such as building structures, mechanical equipment, and vehicle manufacturing. Defects and cracks are usually inevitable. Tension and bending moment are the load types that pipes bear more. Therefore, it is of great significance to study the fracture parameters of circumferential cracks on the inner wall of elbows under tension and bending moment for the safety assessment of defective structures [1].

Stress intensity factor is an important parameter to control the fracture structure. It is a necessary theoretical basis to determine the service life of crack structure and design crack prevention measures. Fett and Noda [2, 3] used the analytical method to solve the strength factor, but it is only suitable for the relatively simple crack model. Rong et al. [4] recorded a variety of typical crack strength factor calculation formulas, but their mechanical models are infinite and semi-infinite plate structures and bear a single load. For more complex cracks, the classical theory is difficult to give the calculation method of stress intensity factor, which is often solved by numerical methods such as the finite element method, finite difference method, and boundary element method [5]. The finite element method [6] is simple and accurate and has been proved to be an effective method for calculating the stress intensity factor of structures with cracks [7, 8]. Many parameters need to be considered in the strength factor of cracked elbow.

Due to the high complexity and professionalism of the operation of the finite element method, the calculator cannot complete all the calculations of a large number of variables. In this paper, the strength factor training samples are collected by the finite element method, and the artificial neural network method is used. The artificial neural network has strong memory and prediction ability to establish the calculation model of the stress intensity factor of the circumferential through crack of the elbow, so as to realize the calculation of the stress intensity factor of the circumferential through crack of the elbow in a certain range. The results show that the accuracy of the calculation network meets the engineering requirements.

2. Calculation of Stress Intensity Factor

The relationship between the stress intensity factor near the crack tip and stress, displacement, and strain is shown in formulas (1)–(3):where σij(,  = 1, 2, 3) represents the stress component, ui( = 1, 2, 3) represents the displacement component, N = I, II, III represents the type of fracture crack, and r and θ are distributed as the polar radius and rotation angle of the plastic zone at the crack tip.

is used to represent the intensity factor of the stress field at the tip of I crack. Generally, it is considered that the calculation formula of I crack intensity factor is

It can be seen that the stress distribution near the crack tip is a function of r and θ, which is independent of the load borne by the material or structure and the crack length. The general expression of stress intensity factor iswhere σ is the nominal stress; a is the crack size; and Y is the shape factor. Literature review shows that the influencing factors of crack bend shape coefficient Y mainly include bend inner diameter, bend outer diameter, bend angle, and so on [9, 10].

3. Finite Element Modeling of Circular Through Crack Elbow

3.1. Structure and Geometric Parameters of Circumferential Through Crack Elbow

The common through elliptical crack elbow is selected as the analysis object. The geometric configuration and load of the crack in the elbow area are shown in Figure 1. Figure 2 shows the structural dimension diagram of the elbow, in which a is the inner diameter of the elbow, b is the outer diameter of the elbow, x is the center angle of the crack, xx is the bending angle of the elbow, t is the wall thickness of the elbow, and D is the diameter of the elbow orifice.

3.2. Finite Element Modeling

To solve the crack stress intensity factor K by the finite element method, the three-dimensional model with crack must be established first. According to the characteristics of ANSYS finite element analysis [11], this paper establishes a symmetrical half bend model and completes the finite element meshing, as shown in Figure 3. The selected element is the shell element shell36 with 6 degrees of freedom, and the elastic modulus E = 2.1 × 10−11 and Poisson’s ratio μ = 0.3. With the help of KSCON command, the crack tip meshing is established to generate the singular element of stress singularity at the crack tip [12], as shown in Figure 4.

4. BP Neural Network Design

4.1. BP Neural Network Learning Algorithm

BP neural network is the neural network using the error backpropagation algorithm. Its algorithm is as follows: according to the negative gradient direction of the error between the actual output and the expected output of the neural network, the link weight between neurons of each layer is iteratively corrected layer by layer from back to front [13]. Figure 5 shows the three-layer BP neural network model designed in this paper. The learning steps of the neural network backpropagation algorithm are as follows [14]:(1)Initialization: set all synaptic weights and thresholds to the minimum random number.(2)Provide input training sample set , where  = [xi1, xi2, xi3]T and Oi = [Oi] are used as input and output samples, respectively, and select learning step η = 0.6 to adjust the speed and seismic breaking degree of neural network searching the optimal weight. For n = 1, 2, …, 160 groups of samples were input circularly.(3)For the training sample n, calculate the output of neurons in each hidden layer and output layer:(4)Calculate the error signal and the cost function .(5)Adjust synaptic weights of output layer and hidden layer:(6)Let n = n + 1 and return to step (3) until the stop criterion is met.

4.2. Topology of Prediction Intensity Factor Calculation Network

In this paper, a three-layer BP neural network structure is established, in which there are three nodes in the input layer. The input parameters are the inner diameter a of the elbow, the outer diameter b of the elbow, and the center angle x of the crack. The output is a node, that is, the intensity factor of the cracked elbow. The number of hidden layer nodes affects the accuracy of the network model. At present, there is no theoretical rule for its determination method. The number of hidden layer nodes is related to the amount of input and output information. The network topology is QG3—58—1, as shown in Figure 6. The “tansig” function is used as the activation function, the “purelin” function is used as the activation function in the output layer, and the “trainlm” algorithm is used for training.

5. Experimental Analysis

5.1. Obtaining Training Samples

According to the theory of fracture mechanics, the finite element analysis of the cracked elbow is carried out by ANSYS. The modeling size range is a = 79∼40 mm, b = 89∼50 mm; x = 2.8°; and xx = 10°∼15°. In this paper, a singular element is generated at the crack tip of the model, and the stress intensity factor is determined by the three-point displacement extrapolation method at the crack tip.

198 groups of neural network training samples were collected, 159 groups were used for neural network training, and 39 groups were used for neural network verification.

5.2. Result Analysis
5.2.1. Network Training

In this paper, two methods, adding momentum term and adjusting learning rate, are used to improve the learning speed, increase the reliability of the algorithm, and avoid falling into local minimum during neural network training. Adaptively adjusting the learning rate shortens the learning time of neural network. In order to give better play to the performance of the training function, the training samples are quantified to the range of [−1, 1], and the error variation diagram of the network training process shown in Figure 7, as well as the connection weights of each layer and the threshold of each neuron of the network model shown in Table 1, is obtained. Through comprehensive analysis of Figure 7 and Table 1, it can be seen that the network training of this method reaches very high accuracy in step 4500, the mean square deviation of network output is about 2.7902 × 10−7, and the maximum fitting error is 0.0018, so the network output under the model in this paper is good for target tracking and has high prediction accuracy.

5.2.2. Network Extension Test

The prediction ability of the network to the samples not participating in the training is an effective method to evaluate the reliability of the model [15]. The root mean square error of the intensity factor k was 0.0102, the maximum error was 0.1544, and the average relative deviation of prediction was 0.19%. Figure 8 shows the linear regression analysis diagram of the change rate of the network output change relative to the target value, the linear correlation determination coefficient is R2 = 0.9841, Figure 9 shows the network generalization tracking diagram, and Figure 10 shows the residual diagram of neural network model extension verification. According to the comprehensive analysis of Figures 810, the fitting degree between the change of network output and the change rate of target value is good, and the consistency between the predicted value of ANN model and the measured value is good. The error between the predicted value of network and the measured value is mostly distributed in the range of ±0.15, and the range of model error is appropriate. Therefore, the neural network prediction model has certain generalization ability and applicability.

6. Conclusion

In order to optimize the accuracy and generalization ability of the existing prediction model of stress intensity factor of circumferential through crack in elbow, a neural network model is introduced to optimize it, and the following conclusions are obtained:(1)The training samples are obtained based on the finite element analysis software, and the neural network prediction model of stress intensity factor of cracked elbow is established by using BP neural network. The relative error distribution of fitting and prediction is 0.000027% and 0.19%, which has high fitting and prediction accuracy in a large range.(2)Compared with the traditional method, the neural network method is used to establish the calculation model of stress intensity factor of through crack elbow structure, which can effectively avoid the difficulties of other prediction models and the errors caused by human factors.(3)BP network is used to replace the traditional calculation method, reduce the calculation difficulty, improve the calculation speed, and speed up the actual engineering structure design and structure analysis, so as to speed up the engineering process.

Data Availability

The raw data supporting the conclusions of this article will be made available by the authors, without undue reservation.

Conflicts of Interest

The authors declare that they have no conflicts of interest.