Method for establishing RVE model of real microstructure of bearing steel based on image processing

Image processing technology is used to extract the true microstructure of bearing steel from microscopic topography, establish a pixel matrix and generate periodic boundary conditions, which solves the problem of low efficiency of RVE model modeling in the existing technology and achieves a more efficient and Construction of accurate bearing steel microstructure model.

CN118395746BActive Publication Date: 2024-08-23WUHAN UNIV OF TECH
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410826569.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-08-23
Estimated Expiration
2044-06-25

AI Technical Summary

Technical Problem

It is difficult to efficiently establish the real microstructure RVE model of bearing steel with existing technology, especially when adding periodic boundary conditions, which is inefficient, and the Digimat software cannot construct periodic boundary conditions based on the microstructure.

Method used

Image processing technology is used to obtain the real microstructure of bearing steel from the micromorphology diagram. Through image segmentation, grayscale processing, threshold segmentation, opening and closing operations and filling functions, a pixel matrix is ​​established, and based on the node unit relationship of Abaqus Generate inp files with periodic boundary conditions and import them into Abaqus to generate a real microstructure model.

Benefits of technology

It improves the modeling efficiency and accuracy of the RVE model, ensures the rationality and modeling quality of the image processing process, can effectively establish periodic boundary conditions, and simplifies the establishment and simulation of subsequent RVE models.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118395746B
    Figure CN118395746B
Patent Text Reader

Abstract

The invention proposes a method for establishing a real microstructure RVE model of bearing steel based on image processing, which belongs to the technical field of computer-aided design; the method comprises the following steps: step 1, obtaining a microscopic morphology image of the bearing steel; step 2, performing image segmentation; step 3, image preprocessing, grayscale processing of the image obtained after segmentation, and obtaining a grayscale image; step 4, threshold segmentation of the grayscale image, separation of a matrix and a second phase, and output of a binary image; step 5, eliminating noise points in the binary image; step 6, eliminating noise points, missing points and holes in the binary image; step 7, filling edge holes; step 8, performing image splicing, and outputting a pixel matrix of corresponding size; step 9, processing the pixel matrix, applying criteria according to the corresponding relationship between node units and periodic boundary conditions, and converting it into a file required for modeling; step 10, generating a real microstructure model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of computer-aided design, and in particular to a method for establishing a real microstructure RVE model of bearing steel based on image processing. Background Art

[0002] High carbon bearing steel is a material for precision parts such as bearings. Due to different heat treatment processes, there are many second phases in the material. The second phase is a general term for all other phases in the material that are different from the matrix phase, and is generally distributed discontinuously in the matrix phase. Due to the large size span, different composition and organizational morphology of the second phase, the mechanism of its influence on the strength and toughness of the matrix is ​​also different. Therefore, there is an urgent need for a method that can reflect the influence of the microscopic second phase on the macroscopic. Multiscale analysis is an important method to connect the macro and micro. By adding the constitutive parameters of the two phases during the simulation process, the microstructural changes can be presented in the form of finite elements, thereby reflecting the macroscopic properties of the material. The most important tool at present is the representative volume element RVE. There are currently two methods to establish RVE. One is the RVE model based on microscopic feature statistics and random algorithms, but this model cannot fully reflect the microstructural characteristics of the material; the other is the RVE model based on the real microstructure. The RVE model based on the real microstructure has better prediction accuracy.

[0003] In multi-scale analysis, it is necessary to add boundary conditions to the RVE model, including symmetry boundary conditions, homogenization boundary conditions and periodic boundary conditions. Periodic boundary conditions are more in line with actual working conditions, but for RVE with too many units and nodes, adding periodic boundary conditions is a major difficulty. The existing manual addition method is very inefficient; using Digimat software, it is not possible to add periodic boundary conditions to the RVE model constructed based on the microstructure. Therefore, it is very necessary to provide a method for establishing a real microstructure RVE model of bearing steel based on image processing, which can establish periodic boundary conditions in the real microstructure RVE model and improve the modeling efficiency and accuracy of the RVE model. Summary of the invention

[0004] In view of this, the present invention proposes a method for establishing a real microstructure RVE model of bearing steel based on image processing, which uses SEM image pixels derived from real tissues, can truly reflect the original microscopic appearance, and reasonably sets periodic boundary conditions.

[0005] The technical solution of the present invention is implemented as follows: The present invention provides a method for establishing a real microstructure RVE model of bearing steel based on image processing, comprising the following steps:

[0006] Step 1, obtaining a microscopic morphology image of a bearing steel containing second phase particles;

[0007] Step 2: Perform image segmentation to segment the obtained microscopic morphology into N pictures;

[0008] Step 3: Image preprocessing: N The image is processed in grayscale and the N A grayscale image;

[0009] Step 4: N The grayscale image is segmented by threshold to separate the matrix and the second phase. The matrix and the second phase are black and white respectively. Output N A binary image;

[0010] Step 5: N Perform preliminary image denoising on the binary image to eliminate the noise points in the binary image;

[0011] Step 6: Use opening and closing operations to eliminate the noise, missing points and holes that still exist in the image, and output N Open and close processing diagram;

[0012] Step 7: Use the fill function in Matlab to further fill the edge holes that still exist in the opening and closing processing graph to obtain N Image after repairing the hole;

[0013] Step 8: N The images after hole repair are stitched together to form a stitched image, and a pixel matrix of corresponding size is output as required;

[0014] Step 9: Process the pixel matrix based on Python software, and convert it into an inp file that can be recognized by Abaqus according to the node unit correspondence relationship and periodic boundary condition application criteria in Abaqus;

[0015] Step 10: Import the obtained inp file into Abaqus to generate a real microstructure model, and assign its property parameters according to the two-phase parameters.

[0016] On the basis of the above technical solution, preferably, the microscopic morphology image in step 1 is a SEM image obtained by a scanning electron microscope.

[0017] Preferably, the image segmentation described in step 2 is in accordance with the following principles: 1) obtaining the number of pixels X×Y of the SEM image, where X is the number of pixels along the row direction of the SEM image, and Y is the number of pixels along the column direction of the SEM image; 2) dividing the SEM image into T×T parts; if the SEM image cannot be divided into T×T parts, the number of rows and columns of the SEM image is adjusted by the function imresize(X1, Y1), and the number of pixels of the adjusted SEM image is X1×Y1, where X1 is the pixel closest to X and can be The value that is divisible by T, Y1 is the value that is closest to Y and divisible by T, and the adjusted SEM image is divided into T×T parts; n1 equal-divided images are obtained by equal division; 3) The SEM image is divided into random images, and the number of pixels of each random image is m×n, where m, n∈random(100,1000), and each random image is defined as follows: {random image number label, initial point position (x, y), side length (m, n)}, and n2 random images are obtained by random division, and n1+n2= N .

[0018] Further preferably, the step 3 is to obtain N To process the grayscale of an image, the global grayscale of the SEM image is added and averaged. The grayscale value Gary of each pixel is first obtained using the formula Gary= (R+G+B) / 3, where R, G, and B are the red, green, and blue pixel values ​​of the pixel, respectively. Then, the grayscale value of each pixel in the SEM image is added and averaged to obtain the grayscale mean, which is used as the brightness evaluation value of the SEM image.

[0019] It is further preferred that the obtained N The grayscale image is segmented by threshold using the threshold binary method. The pixels with grayscale values ​​greater than the set grayscale threshold are assigned a grayscale of 255, and the pixels with grayscale values ​​less than the set grayscale threshold are assigned a grayscale of 0. The grayscale threshold is selected based on the OSTU segmentation algorithm optimized by the sparrow algorithm.

[0020] Still further preferably, the use of opening and closing operations in step 6 to eliminate the noise, missing parts and holes still existing in the image is to use the imopen function to implement the opening operation and the imclose function to implement the closing operation; both the opening operation and the closing operation are formed based on the dilation operation, the opening operation is used to eliminate the brighter area under the dark background, and the closing operation is used to eliminate the darker area under the background; the opening operation and the closing operation are performed alternately.

[0021] Further preferably, the use of the filling function in Matlab in step 7 to further fill the edge holes that still exist in the opening and closing processing image is to use the imfill function to fill the edge holes; the edge hole filling rules are as follows: the opening and closing image is flipped up and down, left and right to generate four flipped images, and the holes at the edges are completed and then filled by splicing the flipped images with the opening and closing images.

[0022] Preferably, the step 8 N The images after hole repair are stitched to form a stitched image. The rules of the stitched image are as follows: 1) Establish an all-0 matrix based on the SEM image using the zeros(X,Y) function or the zeros(X1,Y1) function in Matlab; 2) Perform a preliminary replacement of the all-0 matrix based on the n1 equally divided images to obtain a preliminary replacement image; 3) Insert the n2 random images obtained by random division into the preliminary replacement image, and further replace the same positions in the preliminary replacement image based on the attributes of the random image {random image number label, initial point position (x, y), side length (m, n)} to obtain the final stitched image, and output the pixel matrix.

[0023] Further preferably, step 9 specifically comprises the following steps:

[0024] Step 9.1: Read the pixel matrix and get the number of pixels in each row and column. M 2 and N 2, and then get the number of nodes in each row and the number of nodes in each column, where the number of nodes in each row = M 2+1, number of nodes per column = N 2+1, the total number of nodes in the SEM graph is Node= (M 2 +1) × (N 2 +1) The number of all elements in the SEM image is Element= M 2× N 2, each unit corresponds to the area of ​​a pixel;

[0025] Step 9.2: Determine the side length of each unit based on the size of the SEM image and M 2 and N The value of 2 determines the side length of each unit;

[0026] Step 9.3, determine the coordinates of each node;

[0027] Step 9.4: Determine the position of each unit and the node number that constitutes the unit. The rules are as follows: t If the unit is located in kOK, make a judgment:

[0028] like t satisfy t > N 2× k and t < N 2×( k +1), the four node numbers that make up the unit are: t + k , t + k +1, t + k + N 2+1 and t + k + N 2;

[0029] like t Dissatisfied t > N 2× k and t < N 2×( k +1), then t Number of rows per cell k Adjust to k +1, the four nodes that make up this unit are numbered as follows: t + k , t + k +1, t + k + N 2+1 and t + k + N 2;

[0030] Step 9.5: Establish periodic boundary conditions for the established real microstructure. The criteria for applying periodic boundary conditions are as follows:

[0031] ,in Indicates positive, direction, Indicates negative direction, Indicates k The horizontal direction of the row pixels; Representative Node i The displacement of Indicates i The nodes on the right side of the unit, Indicates i The difference between the two represents the spacing between adjacent column edges. is the mean strain; It is k The length of the RVE edge between adjacent columns of a row;

[0032] Step 9.6: Output all the node coordinates, unit and node numbers, and periodic boundary adjustment application criteria obtained in accordance with the inp file that Abaqus can recognize.

[0033] Preferably, all the units in the SEM image are quadrilateral grid units.

[0034] The method for establishing the real microstructure RVE model of bearing steel based on image processing provided by the present invention has the following beneficial effects compared with the prior art:

[0035] (1) This application uses the SEM image of the real bearing steel microstructure to segment and splice the image, avoiding the defect that the binary threshold is inconvenient to select due to the large image. The maximum inter-class variance method OSTU segmentation algorithm optimized by the sparrow algorithm is used to select the optimal grayscale threshold to ensure the rationality of the binarization of each block image, so that the re-spliced ​​image is consistent with the content of the SEM image, which can improve the modeling quality;

[0036] (2) Based on mathematical logic, the relationship between pixel units and nodes was established to make the modeling process clearer. At the same time, based on the periodic boundary condition theory, the periodic boundary condition equation was established for the obtained real microstructure, which greatly facilitated the subsequent establishment and simulation of the RVE model. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0038] Figure 1 The overall flow chart of the method for establishing the real microstructure RVE model of bearing steel based on image processing according to the present invention;

[0039] Figure 2 The SEM image of the bearing steel of the method for establishing the real microstructure RVE model of the bearing steel based on image processing of the present invention;

[0040] Figure 3 A schematic diagram of the processing process of M50 bearing steel in a spheroidizing annealing state according to the method for establishing a bearing steel real microstructure RVE model based on image processing of the present invention;

[0041] Figure 4 A schematic diagram of the processing process of tempered M50 bearing steel according to the method for establishing a real microstructure RVE model of bearing steel based on image processing of the present invention;

[0042] Figure 5 The principle diagram of image denoising in step 5 of the method for establishing a bearing steel real microstructure RVE model based on image processing according to the present invention;

[0043] Figure 6 The real microstructure RVE model is obtained by the method for establishing the real microstructure RVE model of bearing steel based on image processing in the present invention;

[0044] Figure 7 A logical relationship diagram of units and nodes of a method for establishing a bearing steel real microstructure RVE model based on image processing according to the present invention;

[0045] Figure 8 A schematic diagram of periodic boundary units of the method for establishing a real microstructure RVE model of bearing steel based on image processing according to the present invention. DETAILED DESCRIPTION

[0046] The following will be combined with the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0047] The present invention provides a method for establishing a real microstructure RVE model of bearing steel based on image processing, comprising the following steps:

[0048] Step 1: Obtain a microscopic morphology image of a bearing steel containing second phase particles.

[0049] like Figure 2 As shown, Figure 2 Figure a on the left is a microscopic morphology of the spheroidized annealed M50 bearing steel. The matrix of the spheroidized annealed M50 bearing steel is ferrite, and a large number of irregular carbides are distributed on the matrix. Figure 2 Figure b on the right is a microscopic morphology of tempered M50 bearing steel. The matrix of tempered M50 bearing steel is martensite, and uneven and dispersed carbides are scattered on the martensite matrix. The microscopic morphology in this embodiment is a SEM image obtained by scanning electron microscopy. The magnification is set arbitrarily, but the larger the intercepted range and the more pixels, the larger the real microstructure model generated will be.

[0050] Step 2: Perform image segmentation to segment the obtained microscopic morphology into Npictures.

[0051] Specifically, image segmentation is based on the following principles: 1) Obtain the number of pixels X×Y of the SEM image, where X is the number of pixels along the row direction of the SEM image, and Y is the number of pixels along the column direction of the SEM image; 2) Divide the SEM image into T×T parts; if the SEM image cannot be divided into T×T parts, adjust the number of rows and columns of the SEM image through the function imresize(X1, Y1), and the number of pixels of the adjusted SEM image is X1×Y1, where X1 is the number closest to X and divisible by T. value, Y1 is the value closest to Y and divisible by T, and the adjusted SEM image is divided into T×T parts; n1 equal-divided images are obtained by equal division; 3) The SEM image is divided into random images, and the number of pixels of each random image is m×n, where m, n∈random(100,1000), and each random image is defined as follows: {random image number label, initial point position (x, y), side length (m, n)}, and n2 random images are obtained by random division, and n1+n2= N In this embodiment, the number of pixels of the random graph is obtained by taking values ​​of a random function within the range of 100-1000, and the number of pixels of each random graph is not completely equal.

[0052] It can be seen that image segmentation includes two different operations, namely, average segmentation and random segmentation. In this embodiment, n1=16. The average segmentation diagram of M50 bearing steel in spheroidizing annealing state can be found in Figure 3 In the upper left figure a, the position of the random graph is not exactly the same as that of the evenly divided graph. Figure 3 No random graph examples are given in , because the sizes of random graphs are completely random, unlike the equipartitioned graphs which all have uniform sizes.

[0053] Similarly, the average distribution diagram and random diagram of tempered M50 bearing steel can be found in Figure 4 The upper left image a also has 16 equal parts. If we only rely on random division, we may not be able to fully obtain the details of each part of the SEM image, and there is a possibility of loss of details. Similarly, due to the limitation of the image size, Figure 4 There is no random picture attached either.

[0054] Step 3: Image preprocessing: N The image is processed in grayscale and the N Grayscale image.

[0055] The grayscale processing process is to add and average the global grayscale of the SEM image, first use the formula Gary=(R+G+B) / 3 to get the grayscale value Gary of each pixel, R, G and B are the red, green and blue pixel values ​​of each pixel; then add and average the grayscale values ​​of each pixel in the SEM image to get the grayscale mean, and use the grayscale mean as the brightness evaluation value of the SEM image. The meaning of the brightness evaluation value is that a higher brightness evaluation value makes the image look brighter, and a lower brightness evaluation value makes the image look darker.

[0056] Combining the embodiments, it can be seen that the segmented N The grayscale processing results of the image after segmentation of the spheroidized annealed M50 bearing steel are shown in the figure below. Figure 3 As shown in the figure b in the middle of the upper part; the grayscale processing results of the segmented image of the tempered M50 bearing steel are as follows Figure 4 As shown in Figure b in the upper middle part.

[0057] Step 4: N The grayscale image is segmented by threshold to separate the matrix and the second phase. The matrix and the second phase are black and white respectively. Output N A binary image.

[0058] Threshold segmentation uses the threshold binary method. Pixels with grayscale values ​​greater than the set grayscale threshold are assigned a grayscale of 255, and pixels with grayscale values ​​less than the set grayscale threshold are assigned a grayscale of 0. The grayscale threshold is selected based on the OSTU segmentation algorithm optimized by the sparrow algorithm. The image processed by the threshold binary method is a black and white image.

[0059] The OSTU segmentation algorithm based on the optimization of the sparrow algorithm uses the maximum inter-class variance and the calculation of the histogram of the image grayscale to obtain the optimal set of threshold combinations. This algorithm is a common technical means in this field and will not be described in detail here.

[0060] Combined with the example, it can be seen that the binary image processing result of the image of the M50 bearing steel in the spheroidizing annealing state after segmentation is as follows: Figure 3 As shown in the figure c on the upper right; the grayscale processing results of the segmented image of the tempered M50 bearing steel are as follows Figure 4 As shown in Figure c on the upper right.

[0061] Step 5: N The binary image is used for preliminary image denoising to eliminate the noise points in the binary image.

[0062] like Figure 5As shown in the figure, in this embodiment, the principle of noise reduction processing is to compare the RGB value of a point A with the RGB values ​​of the four points above, below, left and right of it. If there are three or more RGB values ​​around it that are not equal to the value, then this point is a noise point. If it is confirmed to be a noise point, the gray value of the point is replaced with another gray value. In the binary image, the gray value is only 0 and 255, which is expressed as black or white. Figure 5 As shown, Figure 5 In (a), point A is different from two of the four surrounding points, so it is not a noise point and is not processed. Figure 5 In (b), A is different from three of the four surrounding points, and is judged to be a noise point and its grayscale value is replaced, that is, pixel A is blackened. As a modification of this embodiment, the RGB values ​​of the four points diagonally adjacent to point A, that is, the upper left, upper right, lower left and lower right pixel points of point A can also be compared.

[0063] Of course, a more accurate method may also be used. For example, if there are 8 adjacent pixels around A, the grayscale value of point A is replaced only when the RGB value of point A differs from 5 or more of the RGB values ​​of the adjacent 8 pixels.

[0064] Step 6: Use opening and closing operations to eliminate the noise, missing points and holes that still exist in the image, and output N Open and close processing diagram.

[0065] Specifically, the imopen function is used to implement the opening operation, and the imclose function is used to implement the closing operation; both the opening operation and the closing operation are formed based on the dilation operation, the opening operation is used to eliminate the brighter area under the dark background, and the closing operation is used to eliminate the darker area under the background; the opening operation and the closing operation are performed alternately.

[0066] Referring to the attached figure, the results of the opening and closing diagram processing of the spheroidizing annealed M50 bearing steel are as follows: Figure 3 As shown in Figure d on the lower left, the opening and closing diagram processing results of the tempered M50 bearing steel are as follows Figure 4 As shown in Figure d on the lower left.

[0067] Step 7: Use the fill function in Matlab to further fill the edge holes that still exist in the opening and closing processing graph to obtain N Image after repairing the hole.

[0068] Specifically, the imfill function is used to fill the edge holes; the edge hole filling rules are as follows: the open and closed image is flipped up and down and left and right to generate four flipped images, and the flipped images are spliced ​​with the open and closed images to complete the holes at the edges and then fill them. After the opening and closing operations, there will still be some large holes and unfilled holes at the boundaries. The imfill function can only fill closed areas, and cannot fill non-closed areas at the boundaries. The image is flipped up and down and left and right to ensure its contour integrity and obtain a filled image.

[0069] The image processing results of the hole repair of M50 bearing steel in spheroidizing annealing state are as follows Figure 3 As shown in Figure e in the middle below; the image processing results of the hole repair of tempered M50 bearing steel are as follows Figure 4 As shown in Figure e in the middle below.

[0070] Step 8: N The images after hole repair are stitched together to form a stitched image, and a pixel matrix of corresponding size is output as needed.

[0071] Specifically, the rules for stitching images are as follows: 1) Create a zero matrix based on the SEM image using the zeros(X,Y) function or zeros(X1,Y1) function in Matlab; 2) Perform a preliminary replacement of the zero matrix based on the n1 equally divided images to obtain a preliminary replacement image; 3) Insert the n2 random images obtained by random division into the preliminary replacement image, and further replace the same positions in the preliminary replacement image based on the attributes of the random image {random image number label, initial point position (x, y), side length (m, n)} to obtain the final stitching image and output the pixel matrix. Here, let x be the horizontal direction and y be the vertical direction.

[0072] In the images stitched using the above rules, the stitched image of the spheroidized annealed M50 bearing steel is as follows: Figure 3 As shown in Figure f on the lower right; the splicing image of tempered M50 bearing steel is as follows Figure 4 As shown in figure f on the lower right.

[0073] Step 9: Process the pixel matrix based on Python software, and convert it into an inp file that can be recognized by Abaqus according to the node unit correspondence relationship and periodic boundary condition application criteria in Abaqus. Figure 7 As shown, the flowchart of step 9 is shown in the figure.

[0074] Step 9 specifically includes the following steps:

[0075] Step 9.1: Read the pixel matrix and get the number of pixels in each row and column. M 2 and N2, and then get the number of nodes in each row and the number of nodes in each column, where the number of nodes in each row = M 2+1, number of nodes per column = N 2+1, the total number of nodes in the SEM graph is Node= (M 2 +1) × (N 2 +1) The number of all elements in the SEM image is Element= M 2× N 2, each unit corresponds to the area of ​​a pixel; each unit is a quadrilateral grid unit;

[0076] Step 9.2: Determine the side length of each unit based on the size of the SEM image and M 2 and N The value of 2 determines the side length of each unit;

[0077] Step 9.3, determine the coordinates of each node;

[0078] Step 9.4: Determine the position of each unit and the node number that constitutes the unit. The rules are as follows: t If the unit is located in k OK, make a judgment:

[0079] like t satisfy t > N 2× k and t < N 2×( k +1), the four node numbers that make up the unit are: t + k , t + k +1, t + k + N 2+1 and t + k + N 2;

[0080] like t Dissatisfied t > N 2× k and t < N 2×( k +1), then t Number of rows per cell k Adjust to k +1, the four nodes that make up this unit are numbered as follows: t +k , t + k +1, t + k + N 2+1 and t + k + N 2;

[0081] Step 9.5: Establish periodic boundary conditions for the established real microstructure. The criteria for applying periodic boundary conditions are as follows:

[0082] ,in Indicates positive direction, Indicates negative direction, Indicates k The horizontal direction of the row pixels; Representative Node i The displacement of Indicates i The nodes on the right side of the unit, Indicates i The difference between the two represents the spacing between adjacent column edges. is the mean strain; It is k The meaning of the above formula is that the spacing between nodes of adjacent columns is equal to the strain multiplied by the length of the RVE. When the two opposite sides of the boundary are parallel, is a constant, which is the length of the side of the RVE model along the horizontal direction.

[0083] The specific application criteria on the two-dimensional model are as follows Figure 8 As shown in the figure, the black area is the matrix, and the white area is the microstructure, that is, the second phase included in the matrix. The edge of the black area is used as the preset boundary of the microstructure periphery, where the nodes at the non-vertices on the four edges are set to four sets: XINF, XSUP, YINF and YSUP; the four corners are set to four sets: Point1, Point2, Point3 and Point4; and the two reference points are set to two sets: Reference Point 1 and Reference Point 2.

[0084] The equations for the points on the four sides excluding the four corners are as follows:

[0085] ;

[0086] The equations for the four corner vertices are as follows:

[0087] ;

[0088] DOF stands for direction, 1 is the x direction, and 2 is the y direction. The above directions are used to define the association between nodes on different edges in the x direction and the y direction.

[0089] Step 9.6: Output all the node coordinates, unit and node numbers, and periodic boundary adjustment application criteria obtained in accordance with the inp file that Abaqus can recognize.

[0090] Step 10: Import the obtained inp file into Abaqus to generate a real microstructure model, and assign its property parameters according to the two-phase parameters to finally obtain the real microstructure RVE model.

[0091] like Figure 6 As shown, Figure 6 The figure on the left (a) is the RVE model of the real microstructure of M50 bearing steel in spheroidizing annealing state. Figure 6 The figure on the right (b) is the RVE model of the real microstructure of tempered M50 bearing steel.

[0092] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for establishing a real microstructure RVE model of bearing steel based on image processing, characterized in that: The steps include: Step 1, obtaining a microscopic morphology image of a bearing steel containing second phase particles; Step 2: Perform image segmentation to segment the obtained microscopic morphology into N pictures; Step 3: Image preprocessing: N The image is processed in grayscale and the N A grayscale image; Step 4: N The grayscale image is segmented by threshold to separate the matrix and the second phase. The matrix and the second phase are black and white respectively. Output N A binary image; Step 5: N Perform preliminary image denoising on the binary image to eliminate the noise points in the binary image; Step 6: Use opening and closing operations to eliminate the noise, missing points and holes that still exist in the image, and output N Open and close processing diagram; Step 7: Use the fill function in Matlab to further fill the edge holes that still exist in the opening and closing processing graph to obtain N Image after repairing the hole; Step 8: N The images after hole repair are stitched together to form a stitched image, and a pixel matrix of corresponding size is output as required; Step 9: Process the pixel matrix based on Python software, and convert it into an inp file that can be recognized by Abaqus according to the node unit correspondence relationship and periodic boundary condition application criteria in Abaqus; Step 10, import the obtained inp file into Abaqus to generate a real microstructure model, and assign its property parameters according to the two-phase parameters; The microscopic morphology image in step 1 is a SEM image obtained by scanning electron microscopy; The image segmentation described in step 2 is performed according to the following principles: 1) obtaining the number of pixels X×Y of the SEM image, where X is the number of pixels along the row direction of the SEM image, and Y is the number of pixels along the column direction of the SEM image; 2) Divide the SEM image into T×T parts; if the SEM image cannot be divided into T×T parts, adjust the number of rows and columns of the SEM image through the function imresize(X1, Y1), and the number of pixels of the adjusted SEM image is X1×Y1, X1 is the value closest to X and divisible by T, and Y1 is the value closest to Y and divisible by T. The adjusted SEM image is divided into T×T parts; n1 equal-divided images are obtained by equal division; 3) The SEM image is divided into random graphs, and the number of pixels of each random graph is m×n, where m, n∈random(100, 1000), and each random graph is defined as follows: {random graph number label, initial point position (x, y), side length (m, n)}, and n2 random graphs are obtained by random division, and n1+n2= N ; As described in step 8, N The images after repairing the holes are stitched together to form a stitched image. The stitching rules used are as follows: 1) A matrix of all zeros is established based on the SEM image using the zeros(X,Y) function or the zeros(X1,Y1) function in Matlab; 2) The matrix of all zeros is preliminarily replaced based on the n1 equally divided images to obtain a preliminary replacement image; 3) The n2 random images obtained by random division are inserted into the preliminary replacement image, and the same positions in the preliminary replacement image are further replaced based on the attributes of the random image {random image number label, initial point position (x, y), side length (m, n)} to obtain the final stitched image, and the pixel matrix is ​​output; Step 9 specifically includes the following steps: Step 9.1: Read the pixel matrix and get the number of pixels in each row and column. M 2 and N 2, and then get the number of nodes in each row and the number of nodes in each column, where the number of nodes in each row = M 2+1, number of nodes per column = N 2+1, the total number of nodes in the SEM graph is Node= (M 2 +1) × (N 2 +1) The number of all elements in the SEM image is Element= M 2× N 2, each unit corresponds to the area of ​​a pixel; Step 9.2: Determine the side length of each unit based on the size of the SEM image and M 2 and N The value of 2 determines the side length of each unit; Step 9.3, determine the coordinates of each node; Step 9.4: Determine the position of each unit and the node number that constitutes the unit. The rules are as follows: t If the unit is located in k OK, make a judgment: like t satisfy t > N 2× k and t < N 2×( k +1), the four node numbers that make up the unit are: t + k , t + k +1, t + k + N 2+1 and t + k + N 2; like t Dissatisfied t > N 2× k and t < N 2×( k +1), then t Number of rows per cell k Adjust to k +1, the four nodes that make up this unit are numbered as follows: t + k , t + k +1, t + k + N 2+1 and t + k + N 2; Step 9.5: Establish periodic boundary conditions for the established real microstructure. The criteria for applying periodic boundary conditions are as follows: ,in Indicates positive direction, Indicates negative direction, Indicates k The horizontal direction of the row pixels; Representative Node i The displacement of Indicates i The nodes on the right side of the unit, Indicates i The difference between the two represents the spacing between adjacent column edges. is the mean strain; It is k The length of the RVE edge between adjacent columns of a row; Step 9.6: Output all the node coordinates, unit and node numbers, and periodic boundary adjustment application criteria obtained in accordance with the inp file that Abaqus can recognize.

2. The method for establishing a bearing steel real microstructure RVE model based on image processing according to claim 1, characterized in that: The obtained after segmentation in step 3 N To process the grayscale of an image, the global grayscale of the SEM image is added and averaged. The grayscale value Gary of each pixel is first obtained using the formula Gary= (R+G+B) / 3, where R, G, and B are the red, green, and blue pixel values ​​of the pixel, respectively. Then, the grayscale value of each pixel in the SEM image is added and averaged to obtain the grayscale mean, which is used as the brightness evaluation value of the SEM image.

3. The method for establishing a bearing steel real microstructure RVE model based on image processing according to claim 2, characterized in that: The result obtained in step 4 is N The grayscale image is segmented by threshold using the threshold binary method. The pixels with grayscale values ​​greater than the set grayscale threshold are assigned a grayscale of 255, and the pixels with grayscale values ​​less than the set grayscale threshold are assigned a grayscale of 0. The grayscale threshold is selected based on the OSTU segmentation algorithm optimized by the sparrow algorithm.

4. The method for establishing a bearing steel real microstructure RVE model based on image processing according to claim 3 is characterized in that: In step 6, the opening and closing operations are used to eliminate the noise, missing points and holes that still exist in the image. The imopen function is used to implement the opening operation, and the imclose function is used to implement the closing operation. Both the opening and closing operations are formed based on the dilation operation. The opening operation is used to eliminate the brighter area under the dark background, and the closing operation is used to eliminate the darker area under the background. Opening and closing operations are performed alternately.

5. The method for establishing a bearing steel real microstructure RVE model based on image processing according to claim 4, characterized in that: The edge holes still existing in the opening and closing processing graph are further filled using the filling function in Matlab as described in step 7, and the edge holes are filled using the imfill function; the edge hole filling rules are as follows: the opening and closing graph is flipped up and down, left and right to generate four flipped graphs, and the holes at the edges are completed and then filled by splicing the flipped graph with the opening and closing graph.

6. The method for establishing a bearing steel real microstructure RVE model based on image processing according to claim 1, characterized in that: All the cells in the SEM images are quadrilateral mesh cells.

Citation Information

Patent Citations

  • Pixel theory-based particle reinforced composite material finite element modeling method

    CN108053478A

  • Method for characterizing second phase of ferromagnetic alloy powder

    CN108802079A

  • Method for automatically generating abaqus finite element calculation Input file for image model

    CN111462837A

  • Method for predicting maximum size of second-phase particles of bearing steel based on image recognition

    CN114708269A