A benchmark optimization method for special-shaped pipe forming based on additive manufacturing
The forming benchmark of special-shaped pipes is optimized through neural network and genetic algorithm, which solves the problems of warping and slag hanging during the forming process of special-shaped pipes in additive manufacturing, improves the forming accuracy and calculation efficiency, and improves the surface quality of the inner and outer walls of special-shaped pipes. .
Patent Information
- Application Number
- CN202210016379.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-07
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2042-01-07
AI Technical Summary
In additive manufacturing, during the forming process of special-shaped pipes, due to the lack of inner wall support, defects such as warping deformation and slag hanging are prone to occur, resulting in poor forming quality. In addition, traditional optimization methods have low computational efficiency and are difficult to apply to complex models.
By constructing a neural network and genetic algorithm, the forming benchmark of the special-shaped pipe model is optimized, the position and attitude of the model before printing are determined, the area to be supported is reduced, and the area to be supported is calculated using rotation angle and triangular patch information to improve calculation speed and forming accuracy.
It effectively reduces the slag hanging and warping deformation on the inner and outer walls of special-shaped pipelines, improves the forming quality and calculation efficiency, and reduces the assembly errors of special-shaped pipeline integrated parts.
Smart Images

Figure CN114492173B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of additive manufacturing forming quality optimization, and in particular relates to a special-shaped pipe forming benchmark optimization method based on additive manufacturing. Background Art
[0002] Additive manufacturing (AM) is a technology that forms and manufactures parts layer by layer in a certain direction, also known as 3D printing. Selective laser melting (SLM) technology, which is specifically used for metal powder forming in industry, is widely used. High-energy lasers scan the laid metal powder along a predetermined scanning path to melt it and then cool it to solidify. Complex parts with smaller volume, uniform composition, fewer defects and higher density can be obtained. Each printed layer of the part is the reference surface for the next layer to be printed.
[0003] At present, the weight reduction of various aviation hydraulic components is mainly achieved by integrating various special-shaped pipes to replace the original valve blocks. Due to the complex structure of special-shaped pipes and the poor forming quality of traditional processes, most of them are currently formed using SLM additive manufacturing technology. However, since the support added to the inner wall of the pipe cannot be removed, only the outer wall is supported during printing. The SLM process will cause defects such as warping and slag in the unsupported overhanging area of the formed part, resulting in increased roughness and roundness errors of the inner and outer walls of the special-shaped pipe, affecting the forming quality and subsequent use.
[0004] Although the forming accuracy of parts can be improved by optimizing SLM process parameters such as laser power and scanning speed, slag and warping deformation defects in the unsupported overhanging area will still occur. On the basis of optimizing the SLM process parameters, the area of the overhanging area can be reduced as much as possible by determining the posture of the special-shaped pipeline model relative to the substrate before printing, that is, the forming datum, so as to effectively improve the forming quality of the unsupported areas on the inner and outer walls of the pipeline. Zhang Xiaochuan et al. established an optimization model for the model forming datum by rotating the normal vector of the forming datum with a gradient of 1° and optimizing the forming datum with the goal of minimizing the added support volume. However, when there are too many triangular facets, the calculation is slow and is not suitable for pipeline models. Based on the characteristics of the SLM process, the present invention uses neural network prediction combined with genetic algorithms to search for the minimum value of the area to be supported for the special-shaped pipeline model in the entire domain, which can effectively improve the calculation speed. Summary of the invention
[0005] In view of the above problems, the purpose of the present invention is to provide a benchmark optimization method for special-shaped pipe forming based on additive manufacturing. By determining the position and posture of the model relative to the substrate before printing, defects such as slag and warping deformation of the overhanging parts of the inner and outer walls of the special-shaped pipe after forming can be reduced, thereby effectively improving the forming quality.
[0006] The technical solution adopted by the present invention is as follows:
[0007] The present invention proposes a method for optimizing the forming benchmark of a special-shaped pipe based on additive manufacturing, which specifically includes the following steps:
[0008] S1. Determine the structure and size of the special-shaped pipe to be printed and draw its three-dimensional model;
[0009] S2, obtaining information of each triangular face and normal vector in the three-dimensional model of step S1, and rotating the initial forming reference normal vector of the model, that is, the positive direction of the Z axis, around the X axis and the Z axis or the Y axis and the Z axis in sequence in the three-dimensional space, and obtaining a set of new forming reference normal vectors based on different rotation angles;
[0010] S3, calculating the area of the model to be supported under each forming reference according to the triangular face information obtained in step S2 and the new forming reference normal vector;
[0011] S4, according to the area of the model to be supported obtained in step S3, an array is constructed with the two rotation angles of the forming reference normal vector as input parameters and the area of the model to be supported as output parameters, as training samples and test samples;
[0012] S5. According to the number of columns of input parameters and output parameters obtained in step S4, the number of nodes in the input layer and the output layer are set respectively, and a suitable neural network is constructed for training and prediction;
[0013] S6, using the neural network trained in step S5 as the individual fitness value, using the selection, crossover and mutation operations of the genetic algorithm to find the minimum forming reference and the corresponding rotation angle of the area to be supported of the special-shaped pipe in the full rotation domain;
[0014] S7. The forming datum obtained in step S6 can be used as the final forming datum of the current special-shaped pipe model.
[0015] Furthermore, in step S2, in order to obtain the distribution of the area to be supported in the entire three-dimensional area, the model does not move, and the initial forming reference normal vector of the model is rotated in the range of 0 to 180° around the X-axis or Y-axis, and in the range of 0 to 360° around the Z-axis, and the increment of each rotation angle is set with a preset angle as the gradient.
[0016] Furthermore, in step S3, the steps for calculating the area of the to-be-supported region of the model under each forming reference are as follows:
[0017] The first step is to calculate the area Si of each triangular face of the model;
[0018] The second step is to calculate the angle θ between each triangular facet and the opposite direction -k of the normal vector of the forming datum under each forming datum of the model;
[0019] The third step is to retain all triangular facets with angles θ less than ω and calculate the total area f of the model to be supported under each forming datum. S1 , ω is the limit forming inclination angle when the SLM process is formed without adding support to the model;
[0020] The fourth step is to calculate the base plane area f of the model under each forming basis S2 ;
[0021] Step 5: Correct the model's support area using the following formula: S =f S1 -f S2 , and obtain the final area of the supported region f S .
[0022] Furthermore, all angles θ i The triangular facets with a tilt angle ω smaller than the limit without support are the supported areas of the model. The total area f of the supported areas of the model under each forming criterion is calculated by the following formula: S1 :
[0023]
[0024] Where n is the number of triangles in the STL model of the special-shaped pipe.
[0025] Furthermore, in step S5, the neural network construction is related to the input special-shaped pipeline model, and the error between the network predicted output value and the actual value does not exceed 10%.
[0026] Compared with the prior art, the present invention has the following beneficial effects:
[0027] 1. The present invention provides a special-shaped pipe forming benchmark optimization method based on additive manufacturing, which can improve the forming accuracy of special-shaped pipes, improve the surface quality of the inner and outer walls of the pipes, reduce the friction between the fluid and the inner wall when the pipes are in use, and improve the assembly accuracy of special-shaped pipe integrated parts.
[0028] 2. Based on the processing of STL models, the present invention effectively extracts the real draping features of special-shaped pipes under various forming datums, and obtains the optimal solution in the three-dimensional domain and improves the calculation efficiency by correcting the support area of the special-shaped pipe model and combining neural network prediction with genetic algorithm optimization. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] 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 some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0030] Figure 1 It is a schematic diagram of the initial forming reference of the special-shaped pipe model in the present invention;
[0031] Figure 2 This is a schematic diagram of the area to be supported in the vertical cross section of the pipeline in the present invention;
[0032] Figure 3 It is a schematic diagram of the BP-GA optimization method process in the present invention;
[0033] Figure 4 It is a schematic diagram of the BP neural network structure in the present invention;
[0034] Figure 5 A schematic diagram showing the comparison between the predicted value and the actual value of the area of the region to be supported in the model of the present invention;
[0035] Figure 6 It is a schematic diagram of the change of fitness value of the genetic algorithm in the present invention;
[0036] Figure 7 It is a schematic diagram for comparing the forming benchmarks of the special-shaped pipe before and after optimization in the present invention. DETAILED DESCRIPTION
[0037] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are 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.
[0038] This embodiment is mainly implemented using MATLAB software. It should be understood that the embodiment described here is only used to explain the present invention, and is not used to limit the present invention.
[0039] The present invention proposes a method for optimizing the forming benchmark of a special-shaped pipe based on additive manufacturing, which specifically includes the following steps:
[0040] Step S1: Determine the design parameters such as the size and structure of the special-shaped pipe to be printed, draw a three-dimensional model using CAD software, and save it as an STL file dedicated to additive manufacturing.
[0041] Step S2: According to the STL format file of the special-shaped pipe obtained in step S1, the vertex and normal vector information of each triangular facet are read and extracted, and the initial forming reference normal vector (positive direction of the Z axis) of the model is rotated around the X axis (or Y axis) and the Z axis in three-dimensional space to obtain a set of new forming reference normal vectors;
[0042] The STL file is in binary format and contains the coordinates of the three vertices of each triangle and its unit normal vector information, and all the normal vectors used point to the outside of the model.
[0043] like Figure 1 As shown in the schematic diagram of the initial forming datum of the special-shaped pipe model, the special-shaped pipe is printed on the upper surface of the substrate, i.e., the X and Y planes. The special-shaped pipe has multiple bends, and it is impossible to directly determine the forming datum when the area to be supported is the smallest. The normal vector k of the forming datum is the slicing direction of the layered printing of the model, and the initial direction of k is the positive direction of the Z axis, i.e., k = [0 01];
[0044] In order to obtain the distribution of the area to be supported in the full three-dimensional area, the model does not move, and the rotation range of the model's initial forming reference normal vector (positive direction of the Z axis) around the X axis (or Y axis) is 0 to 180°, and the rotation range around the Z axis is 0 to 360°. You can choose to set the rotation angle increment each time with a gradient of 2, 4, 5, and 10°. The more complex the model, the smaller the incremental angle should be. In this embodiment, the rotation angle increment is set to 5°. The rotation matrices around the X and Z axes are:
[0045]
[0046]
[0047] In the formula is the rotation angle around the X axis, is the rotation angle around the Z axis. After rotation, k becomes:
[0048] k=k·rotx·rotz
[0049] This embodiment has a total of 2664 k vectors.
[0050] S3, calculating the supported area of the model under each forming reference according to the triangular patch information obtained in step S2 and the new forming reference normal vector k;
[0051] The specific steps to calculate the area of the model to be supported under each forming basis are as follows:
[0052] The first step is to calculate the area Si of each triangular face of the model;
[0053] According to the coordinates of the three vertices of each triangle, calculate the lengths of its three sides ai, b respectively.i 、c i , and then use the following formula to calculate the area Si:
[0054]
[0055]
[0056] The second step is to calculate the angle θ between the normal vector of each triangle face under each forming basis of the model and the normal vector of the forming basis in the opposite direction -k. i ;
[0057] Step 3: All angles θ i The triangular facets with an inclination angle less than the limit forming angle ω without support addition are the support areas of the model. The total area f of the support areas of the model under each forming criterion is calculated. S1 ;
[0058] The SLM process has a limit forming inclination angle ω when the model is not supported. Taking the SLM125HL device as an example, the unsupported pipeline inclination angle ω is 35-40°. Considering that the special-shaped pipeline is long and the accumulated deformation at the end of the forming pipeline is large, ω can be increased to 45-50° to ensure the forming accuracy. The specific angle is related to the printing equipment, powder material and model size, and needs to be determined through simulation and actual printing. Figure 2 Taking the schematic diagram of the supported area of the vertical section of the pipeline as an example, θ1 and θ2 are the angles between the normal vectors of the inner and outer contour triangles of the pipeline and -k respectively. In this embodiment, it is assumed that the metal powder is 316L and the equipment is SLM 125HL. Considering that the special-shaped pipeline is long, ω is set to 50° in this embodiment. The range where θ1 and θ2 are less than 50° is the supported area of the pipeline. Calculate f S1 The formula is:
[0059]
[0060] Wherein n is the number of triangular facets of the STL model of the special-shaped pipe in the embodiment, and in this embodiment n=9216.
[0061] The fourth step is to calculate the base plane area f of the model under each forming basis S2 ;
[0062] Since there may be large planes on the side walls and end connections of special-shaped pipes, when the plane is parallel to the substrate and is in the first layer of printing, it will be counted as the support area, resulting in f S1 The calculation has a large error, and this plane is defined as the base plane, that is, the plane where the model is parallel to the printing substrate and has the smallest Z coordinate value under each forming datum;
[0063] To increase the calculation speed, first find the angle θ i The forming datum is equal to zero, all θ i The forming reference mode where all values are not zero does not have a base plane; calculate f S2 The coordinate axis needs to be kept stationary, and the model is transformed in the reverse coordinate according to the current forming datum. The calculation formula of the transformed coordinate is:
[0064] [x 1i ;y 1i ; z 1i ]=rotx1·rotz1·[x i ;y i ; z i ]
[0065]
[0066]
[0067] In the formula [x i ;y i ; z i ] is the coordinate of the model before rotation, [x 1i ;y 1i ; z 1i ] is the coordinate of the model after rotation.
[0068] Step 5: Correct the model's support area: fs = f S1 -f S2 , get the final support area fs;
[0069] In this embodiment, the area of the support area under the initial forming reference of the special-shaped pipe is about 1036mm 2 .
[0070] S4, according to the model support area obtained in step S3, the forming reference normal vector is rotated twice by an angle is the input parameter, and the supported area fs is the output parameter, which serves as the training sample and test sample of the neural network;
[0071] S5, according to the input parameter and output parameter column number obtained in step S4, the number of input layer and output layer nodes are set respectively, and a suitable neural network is constructed for training;
[0072] This embodiment uses BP neural network for prediction, and the BP-GA optimization method process is as follows: Figure 3 As shown in the figure, the construction of BP neural network is related to the complexity of the input special-shaped pipeline model. The number of training times, learning efficiency, number of hidden layers, etc. need to be determined according to the training effect. The number of hidden layer nodes is determined by the empirical formula:
[0073]
[0074] Where a is a constant and can be 0 to 10;
[0075] like Figure 4 The schematic diagram of the BP neural network structure is shown in the figure. In this embodiment, the number of hidden layer nodes n1 is 12, the number of input layer nodes m is 2, the number of output layer nodes p is 1, and the number of hidden layers is 3; the transfer function between the input layer and the hidden layer is the S-type tangent function Tansig, and the transfer function between the hidden layer and the output layer is the linear function Purelin; the number of training times is 200, the learning efficiency is 0.01, and the target error is 0.00001; the comparison between the predicted value and the expected value of the area of the supported region obtained by training is as follows: Figure 5 shown.
[0076] S6, using the BP neural network trained in step S5 as the individual fitness value, using the selection, crossover and mutation operations of the genetic algorithm (GA) to find the minimum forming reference and the corresponding rotation angle of the area to be supported of the special-shaped pipe in the full rotation domain;
[0077] The way to obtain individual fitness from the BP neural network is as follows:
[0078] Train the BP neural network and save it. x is the input data. Load the saved network. Use the mapminmax function to normalize x. Use the sim function to get the output data y. Fitness is the individual fitness value, which is obtained by denormalizing the y value.
[0079] The parameters of the genetic algorithm in this embodiment are set as follows:
[0080] The number of evolutions is 100, the population size is 25, the crossover probability is 0.45, the mutation probability is 0.15, the length of the floating-point variable x is [1 1], and the variable boundary is [0 180; 0 360];
[0081] like Figure 6 The schematic diagram of the change of the fitness value of the genetic algorithm is shown in the figure. Through the genetic algorithm extreme value optimization, the convergence effect is good, and the minimum value of the area of the special-shaped pipe to be supported in the full rotation domain is about 457mm 2 , the corresponding rotation angles are approximately 119° and 331°.
[0082] S7, taking the forming datum obtained in step S6 as the final forming datum of the current special-shaped pipe model;
[0083] like Figure 7 The schematic diagram of the comparison of the special-shaped pipe forming benchmark before and after optimization is shown. The left side is before optimization, and the right side is after optimization. After optimization, the actual area to be supported is about 435mm 2, the error of the genetic algorithm is 5%; the area of the model to be supported after the baseline optimization is reduced by about 57% compared with the initial area, which can greatly reduce the forming quality of the unsupported overhanging areas of the inner and outer walls when printing special-shaped pipes.
[0084] In step S5, the neural network is used to predict the area value of the supported region. The specific construction is related to the input special-shaped pipe model. The error between the network prediction output value and the actual value should be small and should not exceed 10%, otherwise the genetic algorithm optimization will fail.
[0085] The present invention is suitable for SLM additive manufacturing of special-shaped pipe parts. The above-mentioned embodiments are merely descriptions of the implementation methods of the present invention, and are not intended to limit the scope of the present invention. Without departing from the design spirit of the present invention, various modifications and improvements made to the technical solution of the present invention by ordinary technicians in this field should fall within the protection scope determined by the claims of the present invention.
[0086] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A special-shaped pipe forming benchmark optimization method based on additive manufacturing, characterized in that: The method comprises the following steps: S1. Determine the structure and size of the special-shaped pipe to be printed and draw its three-dimensional model; S2, obtaining information of each triangular face and normal vector in the three-dimensional model of step S1, and rotating the initial forming reference normal vector of the model, that is, the positive direction of the Z axis, around the X axis and the Z axis or the Y axis and the Z axis in sequence in the three-dimensional space, and obtaining a set of new forming reference normal vectors based on different rotation angles; S3, calculating the area of the model to be supported under each forming reference according to the triangular face information obtained in step S2 and the new forming reference normal vector; S4, according to the area of the model to be supported obtained in step S3, an array is constructed with the two rotation angles of the forming reference normal vector as input parameters and the area of the model to be supported as output parameters, as training samples and test samples; S5. According to the number of columns of input parameters and output parameters obtained in step S4, the number of nodes in the input layer and the output layer are set respectively, and a suitable neural network is constructed for training and prediction; S6, using the neural network trained in step S5 as the individual fitness value, using the selection, crossover and mutation operations of the genetic algorithm to find the minimum forming reference and the corresponding rotation angle of the area to be supported of the special-shaped pipe in the full rotation domain; S7. The forming datum obtained in step S6 can be used as the final forming datum of the current special-shaped pipe model.
2. The method for optimizing the forming benchmark of a special-shaped pipe based on additive manufacturing according to claim 1, characterized in that: In step S2, in order to obtain the distribution of the area to be supported in the entire three-dimensional area, the model does not move, and the initial forming reference normal vector of the model is rotated in the range of 0 to 180° around the X-axis or the Y-axis, and in the range of 0 to 360° around the Z-axis, and the increment of each rotation angle is set with a preset angle as the gradient.
3. The method for optimizing the forming benchmark of a special-shaped pipe based on additive manufacturing according to claim 2, characterized in that: In step S3, the steps for calculating the area of the to-be-supported region of the model under each forming datum are as follows: The first step is to calculate the area Si of each triangular face of the model; The second step is to calculate the angle θ between each triangular facet and the opposite direction -k of the normal vector of the forming datum under each forming datum of the model; The third step is to retain all triangular facets with angles θ less than ω and calculate the total area f of the model to be supported under each forming datum. S1 , ω is the limit forming inclination angle when the SLM process is formed without adding support to the model; The fourth step is to calculate the base plane area f of the model under each forming basis S2 ; Step 5: Correct the model's support area using the following formula: S =f S1 -f S2 , and obtain the final area of the supported region f S .
4. The method for optimizing the forming benchmark of a special-shaped pipe based on additive manufacturing according to claim 3, characterized in that: All angles θ i The triangular facets with a tilt angle ω smaller than the limit without support are the supported areas of the model. The total area f of the supported areas of the model under each forming criterion is calculated by the following formula: S1 : Where n is the number of triangles in the STL model of the special-shaped pipe.
5. The method for optimizing the forming benchmark of a special-shaped pipe based on additive manufacturing according to claim 1, characterized in that: In step S5, the neural network is constructed in relation to the inputted special-shaped pipeline model, and the error between the network predicted output value and the actual value does not exceed 10%.
Citation Information
Patent Citations
Optimization design method of bionic flow channel of thin-layer oil slick transfer device
CN108090964A
Atmospheric porous probe measurement calibration method for optimizing neural network based on genetic algorithm
CN112926265A
Three-dimensional printing method and system
WO2016173065A1
