Topological optimization result geometric feature size control method based on image processing

By quantifying and regulating the geometric features of topological optimization results based on image processing, the geometric feature regulation problem in the existing technology is solved, and the precise control of extremely fine components, holes and angles in additive manufacturing is realized, and the design and manufacturing integration is promoted. and efficiency improvement.

CN118981808AActive Publication Date: 2024-11-19BEIHANG UNIV
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410922343.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-10
Publication Date
2024-11-19
Estimated Expiration
2044-07-10

AI Technical Summary

Technical Problem

The existing technology is difficult to effectively quantify the geometric features of topological optimization results and realize the precise regulation of geometric features. Especially when the manufacturing constraints of extremely fine components, extremely small holes and special angles in the additive manufacturing process, the design and manufacturing integration faces difficulties. .

Method used

Using image processing-based methods, through image binarization and bilinear interpolation technology, the topological optimization design results are quantified to identify the macro-metaphors boundary features of the cross-scale structure, and the distance and angle characteristics are controlled by regulating boundary coordinate points. , build a cross-scale topology optimization model under the constraints of a variety of geometric features to achieve precise control of extremely fine components, holes and angles.

Benefits of technology

The precise identification and quantitative regulation of geometric features of topological optimization design results are achieved, which promotes the integration of design and manufacturing, improves design efficiency and shortens the design cycle, and ensures the manufacturability of cross-scale structures.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118981808A_ABST
    Figure CN118981808A_ABST
Patent Text Reader

Abstract

The invention discloses a topological optimization result geometric feature size control method based on image processing. The method comprises the following steps: step 1, constructing a dual-scale topological optimization model; 2, updating the dual-scale level set function to drive the configuration update of the cross-scale structure; 3, obtaining the number of boundaries of the cross-scale structure and coordinate points of the boundaries; 4, based on the coordinate points of the boundary of the cross-scale structure, the macro configuration and the micro configuration are quantized, and specific geometric feature values of the cross-scale structure are obtained; 5, regulating and controlling the characteristics of the superfine component of the cross-scale structure; 6, regulating and controlling the hole characteristics of the cross-scale structure; and 7, regulating and controlling the special angle characteristics of the cross-scale structure. According to the method, effective regulation and control of accurate identification of various geometric features are realized based on an image processing technology under a level set framework, integration of design and manufacturing is promoted, and improvement of design efficiency and shortening of a design period are facilitated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of integrated topological design and additive manufacturing of material structures, and in particular to a method for controlling geometric feature dimensions of topological optimization results based on image processing. Background Art

[0002] Lightweight design is an eternal theme in the structural design of advanced equipment. As a design method in the conceptual design stage, topology optimization can improve material utilization and obtain the best force transmission path, and is an effective means of lightweight design. The integration of design and manufacturing, as well as the integration of materials and structures, are important contents of structural design and are receiving more and more attention. Due to their powerful design and manufacturing capabilities, additive manufacturing and topology optimization technologies have been widely used in aviation, aerospace, automobiles, medical and other fields. In particular, dual-scale concurrent topology optimization expands the design space and can better meet the multifunctional needs of structural design. In recent years, topology optimization technology has developed rapidly and has been continuously used in structural, fluid, heat transfer and multi-field coupling problems. As a typical boundary-driven method, the level set method has received more and more attention from industry and academia.

[0003] The level set method was originally a key technology in image processing. Later, it was introduced into the topology optimization problem to realize a new topology optimization method different from the density optimization method. The advantages of the level set method are that it can keep the design results with a clear configuration, no gray units and checkerboard phenomenon, and good numerical stability. The level set method is also constantly applied to the topology optimization design of important aerospace structures. In the topology optimization design of cross-scale structures, it is necessary to introduce two-scale level set functions to characterize the configuration changes of macroscopic structures and microscopic unit cells respectively. This can effectively ensure the clear expression of macroscopic configurations and microscopic unit cells, and also provide a data basis for the subsequent identification of geometric features. The natural advantages of the level set method make the geometric feature identification based on image processing more efficient.

[0004] Although the continuous development and maturity of additive manufacturing technology has improved the ability of integrated molding of complex configurations, there are still many geometric constraints in the additive manufacturing process that restrict the progress of design and manufacturing integration. In order to achieve the goals of additive manufacturing shape control and controllability and consider the actual constraints of manufacturing equipment, the design results are often subject to complex geometric constraints such as maximum manufacturing size, minimum manufacturing size, overhang angle, connectivity, etc. The results of topology optimization require multiple rounds of iterative modifications to meet manufacturing requirements. Processing the topology optimization results so that the optimization results meet the design requirements is an important part of opening up the integration of design and manufacturing. How to give full play to the powerful advantages of the boundary description of the level set method so that the topology optimization results maintain clear configuration boundaries while having good manufacturability is an unavoidable problem in the application of level set topology optimization in actual engineering.

[0005] The current research challenge is mainly how to effectively quantify the geometric features of topology optimization results and achieve precise control of geometric features. First of all, there is little research on the identification of configuration boundaries and the quantification of geometric features. The image processing methods that accurately identify the coordinate position of the boundary of the optimization result and calculate the component size, hole size and angle have not yet been quantified into the topology optimization problem. For the distance and angle features of the topology optimization design results, how to control the distance and angle features of the boundary based on the coordinate position of the boundary without changing the overall configuration, and how to locally adjust the boundary features while maintaining the overall configuration so that the component, hole or angle meets the constraint conditions is the main difficulty.

[0006] First, there is little research on the identification of configuration boundaries and the quantification of geometric features. The image processing methods that accurately identify the coordinate position of the boundary of the optimization result and calculate the component size, hole size and angle have not been quantified into the topology optimization problem. For the distance and angle features of the topology optimization design results, how to control the distance and angle features of the boundary based on the coordinate position of the boundary without changing the overall configuration, and how to locally adjust the boundary features while maintaining the overall configuration so that the component, hole or angle meets the constraint conditions is the main difficulty. Summary of the invention

[0007] The technical problem to be solved by the present invention is to effectively quantify the geometric features of the topology optimization results and realize the precise control of the geometric features. To achieve the above purpose, the technical solution adopted by the present invention is: A method for controlling the geometric feature size of topology optimization results based on image processing is used in the topology optimization design and manufacturing of integrated materials and structures, and realizes the integration of topology design and additive manufacturing of cross-scale structures under concentrated and distributed loads, fixed support and simply supported boundary constraints, and extremely fine components, extremely small holes, and cross-scale structures under special angle constraints. It quantifies the topology optimization design results based on the image binarization method, and uses image processing technology to accurately identify and quantify the macro and micro boundaries of cross-scale structures. Then, the distance and angle characteristics of the topology optimization design results are regulated by regulating the coordinate points of the boundaries. The implementation steps are as follows: Step 1: For cross-scale structures based on additive manufacturing, given the macroscopic structure design domain, microscopic unit cell design domain, load and displacement boundary conditions, determine the design domain and non-design domain at the macroscopic and microscopic levels, and construct a dual-scale topology optimization model; constructing a dual-scale topology optimization model includes: taking the volume fraction of the macroscopic structure as the optimization target, taking the macroscopic allowable displacement and the microscopic volume fraction as inequality constraints, taking the macroscopic and microscopic finite element equilibrium equations as equality constraints, and taking the radial basis function coefficients of the dual-scale level set function as design variables to construct a dual-scale topology optimization model; Step 2: Perform macro-micro finite element analysis on the cross-scale structure in the current iteration process, and then calculate the sensitivity of the objective function and constraints in the dual-scale topology optimization model to the time variable of the dual-scale level set function based on the shape derivative principle, update the dual-scale level set function to drive the update of the cross-scale structure configuration, and then determine whether the updated cross-scale structure meets the convergence conditions of the topology optimization. If so, obtain the topology optimization design result. If not, continue to perform finite element analysis and sensitivity analysis and update the design variables until the convergence conditions are met; Step 3: Perform image processing on the dual-scale topology optimization model: Given the resolution multiple of the dual-scale level set function, perform bilinear interpolation on the dual-scale level set function, and then process the dual-scale level set function based on the image binarization method to obtain a 0-1 distribution dual-scale level set function, thereby identifying the macro-micro topological features of the cross-scale structure and obtaining the number of boundaries and coordinate points of the boundaries of the cross-scale structure; Step 4: Based on the coordinate points of the boundaries of the cross-scale structure, the minimum distance between the coordinates of two points on different boundaries is calculated as a way to detect extremely fine components, the maximum distance between the coordinates of two points on the same boundary or the distance from the coordinates of points on the same boundary to the center of gravity is calculated as a way to detect extremely small holes, and the angle between the coordinates of any three points on the same boundary is calculated as a way to detect special angles. The macroscopic configuration and the microscopic configuration are quantified respectively to obtain the specific numerical values ​​of the geometric characteristics of the cross-scale structure; Step 5: Regulate the ultra-fine component features of cross-scale structures: For the ultra-fine component features, first identify the boundary with a larger radius and keep it unchanged, and scale the boundary with a smaller radius. If the boundary with a smaller radius does not have an extremely small hole problem when scaled to meet the component size threshold constraint, the ultra-fine component regulation is completed. If the boundary with a smaller radius has an extremely small hole problem when scaled to meet the component size threshold constraint, the boundary with a smaller radius is deleted. Step 6: Regulate the hole features of cross-scale structures: For extremely small hole features, first identify the radius of the boundary, and scale the boundary with the center of gravity of the boundary as the center until the new boundary meets the component size threshold constraint. If the minimum distance between the boundary and other boundaries meets the component size threshold constraint at this time, the hole regulation is completed; if the minimum distance between the boundary and other boundaries does not meet the component size threshold constraint at this time, the boundary is deleted; Step 7: Regulate the special angle features of cross-scale structures: For special angle features, if the angle between the coordinates of any three points on the same boundary does not satisfy the angle constraint, then determine whether the distance between the two endpoints of the boundary satisfies the component size threshold constraint. If it is greater than the component size threshold constraint, then find and add two points on the two adjacent sides of the boundary that are parallel to the opposite sides of the boundary and whose distance is equal to the distance constraint, and delete the vertex of the angle; if it is less than the component size threshold constraint, delete the vertex directly without adding new points.

[0008] The present invention is characterized in that: In the step one, a cross-scale topology optimization model under various geometric feature constraints including component size, hole size and special angles is established; in the step two, rapid convergence of cross-scale topology optimization is achieved based on the parameterized level set method, and the established convergence indicators include the stability constraint of the objective function and the error values ​​of various constraint conditions; in the step three, the topology optimization design results are quantified based on the image binarization method, and the macro-micro boundary features of the cross-scale structure are identified; in the step four, the minimum component size, the minimum hole size and the boundary angle value of the topology optimization result are calculated based on the coordinate point information on the boundary; in the step five, size control criteria for extremely fine components under different conditions are constructed; in the step six, size control criteria for extremely small holes under different conditions are constructed; in the step seven, angle control criteria for special angles under different conditions are constructed.

[0009] The beneficial effects of the present invention compared with the prior art are: The present invention discloses a method for controlling the size of geometric features of topological optimization results based on image processing. Taking into account the manufacturing constraints of extremely fine components, extremely small holes and special angles in the additive manufacturing process, a size control strategy is introduced after the optimization design results are obtained and before processing and manufacturing. This method can accurately identify and quantify various geometric features and accurately quantitatively control them for the topological optimization results.

[0010] This method is aimed at cross-scale structures. First, a topology optimization model for heat transfer performance and load-bearing performance of cross-scale structures is constructed based on the level set method; secondly, the sensitivity analysis results of the objective function and constraints in the optimization model are obtained, and the topology optimization model is solved based on the gradient optimization algorithm to realize the topology update of the cross-scale structure until the final topology optimization design result is obtained; then, the design results are quantified based on the image binarization method, and the image processing technology is used to accurately identify and quantify the macro-micro boundaries of the cross-scale structure; finally, the distance and angle of the topology optimization design results are controlled by regulating the coordinate points of the boundaries. The present invention aims at the geometric features that are difficult to manufacture and process, such as extremely fine components, extremely small holes, and special angles of the cross-scale topology optimization design results. Based on the image processing technology under the level set framework, the present invention realizes the effective control of the precise identification of multiple geometric features, promotes the integration of design and manufacturing, and helps to improve design efficiency and shorten the design cycle. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] Figure 1 It is a whole flow chart of a method for controlling geometric feature size of topology optimization results based on image processing of the present invention; Figure 2 is a schematic diagram of a geometric model and boundary conditions of an embodiment; Figure 3 It is the configuration result of topology optimization under different design strategies; Figure 4 It is the iterative process of the macroscopic volume fraction in the topology optimization process; Figure 5 It is the iterative process of the mesoscopic volume fraction during topology optimization. DETAILED DESCRIPTION

[0012] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms, and the present disclosure should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0013] like Figure 1As shown, the present invention discloses a method for controlling the geometric feature size of topology optimization results based on image processing. This method targets cross-scale structures. First, a topology optimization model for the heat transfer performance and load-bearing performance of cross-scale structures is constructed based on the level set method; secondly, the sensitivity analysis results of the objective function and constraints in the optimization model are obtained, and the topology optimization model is solved based on the gradient optimization algorithm to realize the topology update of the cross-scale structure until the final topology optimization design result is obtained; then, the design results are quantified based on the image binarization method, and the image processing technology is used to realize the accurate identification and precise quantification of the macro- and micro-boundaries of the cross-scale structure; finally, the distance and angle of the topology optimization design results are controlled by regulating the coordinate points of the boundaries. The present invention targets the extremely fine components, extremely small holes, special angles and other geometric features that are difficult to manufacture and process in the cross-scale topology optimization design results. Based on the image processing technology under the level set framework, the present invention realizes the effective control of the precise identification of multiple geometric features, promotes the integration of design and manufacturing, and helps to improve design efficiency and shorten the design cycle. The following is combined with Figure 1 Describe the method in detail, such as Figure 1 As shown, the method comprises the following steps: Step 1: For cross-scale structures based on additive manufacturing, given the macroscopic structural design domain, microscopic unit cell design domain, load and displacement boundary conditions, determine the design domain and non-design domain at the macroscopic and microscopic levels, and construct a dual-scale topology optimization model. The construction of the dual-scale topology optimization model includes: taking the volume fraction of the macroscopic structure as the optimization target, the macroscopic allowable displacement and the microscopic volume fraction as inequality constraints, the macroscopic and microscopic finite element equilibrium equations as equality constraints, and the radial basis function coefficients of the dual-scale level set function as design variables to construct a dual-scale topology optimization model, also known as a dual-scale macro-microscopic topology optimization model. Among them, volume fraction, macro-allowable displacement, meso-volume fraction, macro- and meso-finite element equilibrium equation, dual-scale level set function, and radial basis function coefficient are well-known contents of the optimization model in this field. The dual-scale topology optimization model refers to a topology optimization model in which the design variables are the parameters of the macro-structure and the meso-unit cell, the macro-allowable displacement refers to the allowable displacement of the macro-structure, the meso-volume fraction refers to the volume fraction of the meso-unit cell, the macro- and meso-finite element equilibrium equation refers to the equilibrium equation of the macro-structure and the meso-unit cell, the dual-scale level set function refers to the level set function at the macro and meso levels, and the radial basis function coefficient refers to the coefficient of the radial basis function polynomial.

[0014] Step 2: Perform macro-micro finite element analysis on the cross-scale structure in the current iteration process, and then calculate the sensitivity of the objective function and constraints in the dual-scale topology optimization model to the time variable of the dual-scale level set function based on the shape derivative principle, update the dual-scale level set function to drive the cross-scale structure configuration update, and then determine whether the current cross-scale structure meets the convergence conditions of topology optimization. If it does, the topology optimization design result is obtained. If it does not, continue to perform finite element analysis and sensitivity analysis and update the design variables until the convergence conditions are met. Among them, the shape derivative principle refers to the shape derivative principle in the calculus of multivariate functions, the configuration update refers to the change of the structural topology optimization, the convergence conditions include the change value of the objective function is less than the allowable value of its change and the deviation between the constraint condition and the allowable value of the constraint condition is less than the allowable value of the deviation, the finite element analysis refers to the calculation of the structural response based on the finite element method after the macro structure and the micro unit cell are discretized, the sensitivity analysis refers to the calculation of the sensitivity of the objective function and the constraints in the optimization model to the level set function, and the design variables include the coefficients of the dual-scale radial basis function.

[0015] Step 3: Perform image processing on the topology optimization design results. Given the resolution multiple of the two-scale level set function, perform bilinear interpolation on the two-scale level set function, and then process the two-scale level set function based on the image binarization method to obtain a 0-1 distributed two-scale level set function, thereby identifying the macro- and micro-topological features of the cross-scale structure, and obtaining the number of boundaries and coordinate points of the boundaries of the cross-scale structure. The means of identifying the macro- and micro-topological features of the cross-scale structure through the 0-1 distributed two-scale level set function is that the value of the level set function inside the structure is equal to 1, and the value of the level set function outside the structure is equal to 0. The 0-1 change is the structure boundary. The macro- and micro-topological features include the boundaries of the macroscopic structure and the boundaries of the mesoscopic unit cell.

[0016] Step 4: Based on the coordinate points of the boundary of the cross-scale structure, the minimum distance between the coordinates of two points on different boundaries is calculated as a way to detect extremely fine components, the maximum distance between the coordinates of two points on the same boundary or the distance from the coordinates of points on the same boundary to the center of gravity is calculated as a way to detect extremely small holes, and the angle between the coordinates of any three points on the same boundary is calculated as a way to detect special angles. The macroscopic configuration and the microscopic configuration are quantified respectively to obtain the specific numerical values ​​of the geometric characteristics of the cross-scale structure. The macroscopic configuration is the topological configuration of the cross-scale structure at the macroscopic level, and the microscopic configuration is the topological configuration of the microscopic unit cell of the cross-scale structure.

[0017] Step 5: Control the extremely fine component features of cross-scale structures: For extremely fine component features, first identify the boundary with a larger radius and keep it unchanged, and scale the boundary with a smaller radius. If the boundary with a smaller radius does not have an extremely small hole problem when scaled to meet the component size threshold constraint, the extremely fine component control is completed. If the boundary with a smaller radius has an extremely small hole problem when scaled to meet the component size threshold constraint, the boundary with a smaller radius is deleted. The larger radius and smaller radius above refer to the larger or smaller one when compared with the other. The above-mentioned component size threshold constraint may include the length and width of the component. The extremely small hole problem is that the radius of the hole is less than the threshold. The identification method is to calculate the distance from the point on the hole boundary to the center of gravity of the boundary and compare it with the threshold. If the distance is less than the threshold, it is judged as an extremely small hole problem. The scaling ratio can be the proportional coefficient of the threshold and the radius.

[0018] Step 6: Regulate the hole features of cross-scale structures: For extremely small hole features, first identify the radius of the boundary, and scale the boundary with the center of gravity of the boundary as the center until the new boundary meets the component size threshold constraint. If the minimum distance with other boundaries at this time meets the component size threshold constraint, the hole regulation is completed; if the minimum distance with other boundaries at this time does not meet the component size threshold constraint, the boundary is deleted. The above-mentioned component size threshold constraint can include the length and width of the component, and the scaling ratio can be the ratio of the threshold to the actual length or the ratio of the threshold to the actual width.

[0019] Step 7: Regulate the special angle features of cross-scale structures: For special angle features, if the angle between the three points of any three coordinates on the same boundary does not meet the angle constraint, then determine whether the distance between the two endpoints of the boundary meets the component size threshold constraint. If it is greater than the component size threshold constraint, then find and add two points on the two adjacent sides of the boundary that are parallel to the opposite side of the boundary and whose distance is equal to the distance constraint, and delete the vertex of the angle; if it is less than the component size threshold constraint, directly delete the vertex without adding a new point. Angle constraints can include that the angle needs to be less than the maximum value and that the angle needs to be greater than the minimum value. The component size threshold constraint can include a maximum angle constraint and a minimum angle constraint.

[0020] Specifically, the step 1 of “using the radial basis function coefficients of the dual-scale level set function as design variables to construct a dual-scale topology optimization model” means establishing a mathematical model of dual-scale topology optimization based on the level set method, which specifically includes the following formula calculation process: , In the formula, find represents the design variable, min represents the minimization of the objective function, st represents the constraint condition, all variables with superscript "Ma" represent macro variables, superscript "Mi" represent micro variables, and subscript "targ" represents the constraint value (threshold). represents the level set function, represents the spatial variable of the level set function, The coefficients of the radial basis function representing the level set function are only related to the time variable of the level set function. Related variables, represents the volume fraction, Represents the structure boundary, Indicates the same boundary The minimum value from any coordinate point on to the center of gravity, represents the number of boundaries, Represents two boundaries and The minimum distance between represents the component size threshold constraint, and Indicates the boundary number, Representing Boundaries On The coordinates of the points, Indicates is the vertex, and the angle formed by two adjacent points as endpoints, represents the entire design domain, represents the global stiffness matrix, represents the overall displacement column vector, represents the overall load column vector, It represents the flexibility of the cross-scale structure and is the objective function in the optimization model. represents the level set function The projection function, The function expression is: .

[0021] Specifically, the step 2 of "performing macro-micro finite element analysis on the cross-scale structure in the current state, and then calculating the sensitivity of the objective function and constraint conditions in the dual-scale topology optimization model to the time variable of the dual-scale level set function based on the shape derivative principle, updating the dual-scale level set function to drive the update of the cross-scale structure configuration, and then judging whether the updated cross-scale structure meets the convergence conditions of the topology optimization, and if so, obtaining the topology optimization design result, and if not, continuing to perform finite element analysis and sensitivity analysis and updating the design variables until the convergence conditions are met" includes: The macro-micro finite element analysis of the current cross-scale structure includes: first, the equivalent elastic tensor of the unit cell is calculated by the homogenization method: , In the formula, represents the equivalent elastic tensor, represents the actual elastic tensor of the homogeneous structure, represents the third-order identity matrix, represents the finite element strain matrix, represents a vector constructed by periodic boundary conditions, and the superscript T represents matrix transpose.

[0022] Substituting the equivalent elastic tensor of the unit cell into the finite element equation of the macrostructure, the displacement field of the macrostructure can be calculated: .

[0023] The result of finite element analysis is the data source of sensitivity analysis. Sensitivity analysis is a typical means of constructing the velocity field of the level set function. The velocity field of the level set function is the necessary basis for solving the level set equation and updating the level set function. After updating the level set function, convergence judgment should be performed to determine whether the current result meets the design requirements. Based on the shape derivative principle, the sensitivity of the objective function and constraints in the dual-scale topology optimization model to the time variable of the dual-scale level set function (sensitivity to the macroscopic level set function and sensitivity to the microscopic level set function) is calculated, and then the velocity field updated by the level set function is constructed. The distribution of the level set function can be continuously changed, thereby realizing the change of the cross-scale structural boundary. The content of the sensitivity calculation can be carried out by means known in the prior art, and will not be repeated here. The way to construct the velocity field after calculating the sensitivity is to make the velocity field equal to the opposite number of the sensitivity. The way to change the level set function is to solve the level set equation to update the coefficients of the radial basis function, and then change the distribution of the level set function to cross-scale structural configuration, where the level set equation and radial basis function are well known in the art and are typical ordinary differential equations and polynomial functions.

[0024] Determine whether the updated cross-scale structure meets the convergence conditions: , In the formula, is the objective function, is the objective function of the kth iteration, is the objective function of the qth iteration, Indicates The macroscopic volume fraction of the iteration, represents the mesoscopic volume fraction of the kth iteration, represents the allowable value of the macroscopic volume fraction, the subscript q represents the number of iterations, and the subscript represents the number of iterations, , and represent the error thresholds of objective function, macroscopic volume fraction and microscopic volume fraction respectively.

[0025] When the error between the objective function changes for five consecutive times and the macro-micro volume fraction and the allowable value (the allowable value is 0.005) in the dual-scale topology optimization model meets the threshold (the threshold can be set to 0.005), the topology optimization ends and the topology optimization design result is obtained; if the constraints are not met, finite element analysis, sensitivity analysis and level set function update are performed until the constraints are met.

[0026] Specifically, the step three "performs image processing on the topology optimization design results. Given the resolution multiple of the dual-scale level set function, performs bilinear interpolation on the dual-scale level set function, and then processes the dual-scale level set function based on the image binarization method to obtain a 0-1 distributed dual-scale level set function, thereby identifying the macro-micro topological features of the cross-scale structure and obtaining the number of boundaries and coordinate points of the boundaries of the cross-scale structure" includes: According to the geometric feature constraints of the dual-scale macro-micro topology optimization model in step one (the geometric feature constraints refer to the component size, hole size and angle constraints of the dual-scale macro-micro topology optimization model in step one), the data source is acquired (the data source acquisition refers to the acquisition of the level set function in step one). Given the resolution multiple of the dual-scale level set function, the level set function is bilinearly interpolated to refine the level set function, and then the dual-scale level set function is processed based on the image binarization method to obtain a 0-1 distribution of the dual-scale level set function, that is, the refined level set function is gray-scale transformed. The specific transformation formula is: , In the formula, Yes The gray value after transformation, is the threshold value of grayscale transformation, is the grayscale value before transformation: , In the formula, , and are the pixel values ​​of red, green and blue respectively. The threshold for grayscale transformation can be a constant or an adaptively changing value.

[0027] The following is executed to "further identify the macro-micro topological features of the cross-scale structure, and obtain the number of boundaries and coordinate points of the boundaries of the cross-scale structure": Boundary identification can be achieved using the Moore neighborhood tracking algorithm. The algorithm determines the initial detection point based on the binary data and extracts the pixel data around the detection point. Using the eight-neighborhood edge detection method, the pixel data in the eight neighborhoods is judged in a counterclockwise direction until the first non-zero pixel data is obtained. If there are non-zero pixels, the neighborhood where the first non-zero pixel appears becomes the next detection point; if there are no non-zero pixels in all eight neighborhoods, the first non-zero pixel found in all pixel points becomes the detection point until all non-zero pixels are detected, thereby obtaining all the boundary features of the topology optimization result. All non-zero pixels are combined to form the boundary features of the topology optimization result.

[0028] Specifically, the fourth step "based on the coordinate points of the boundary of the cross-scale structure, the minimum distance between the coordinates of two points on different boundaries is calculated as a way to detect extremely fine components, the maximum distance between the coordinates of two points on the same boundary or the distance from the coordinates of the points on the same boundary to the center of gravity is calculated as a way to detect extremely small holes, and the angle between the coordinates of any three points on the same boundary is calculated as a way to detect special angles, and the macroscopic configuration and the microscopic configuration are quantified respectively to obtain the specific numerical values ​​of the geometric characteristics of the cross-scale structure" includes: for the identification of the characteristics of extremely fine components, the distance between different boundaries is calculated. and The distance between the coordinate points on : , In the formula, It's the border The coordinate points on It's the border The coordinate points on the . All distances obtained for all coordinate points constitute Minimum value It is the minimum distance of components between two boundaries, thereby identifying extremely fine components.

[0029] For the recognition of extremely small hole features, the boundary is first calculated Center of gravity : , In the formula, is the number of coordinate points on the boundary. Then calculate the distance from any point on the boundary to the centroid : , The distances obtained for all coordinate points are Minimum value It is the minimum radius of the holes in the boundary, thus identifying the holes.

[0030] For the identification of special angle features, the angle formed by three adjacent coordinate points is calculated using the cosine theorem. The cosine of : , In the formula, and On the same border Points on both sides. Calculate the included angle based on the cosine result. If the included angle satisfies the angle constraint, it is a special angle feature.

[0031] Specifically, the step 5 "regulating the ultra-fine component features of the cross-scale structure: for the ultra-fine component features, first identify the boundary with a larger radius and keep it unchanged, and scale the boundary with a smaller radius. If the boundary with a smaller radius does not have an extremely small hole problem when scaled to meet the component size constraint, the ultra-fine component regulation is completed. If the boundary with a smaller radius has an extremely small hole problem when scaled to meet the component size constraint, the boundary with a smaller radius is deleted" includes: The control of extremely fine component features is achieved through boundary scaling. Minimum value It is the minimum distance between the components of the two boundaries, thereby identifying the extremely fine components. For the identified extremely fine components, calculate the distance between the two boundaries. and Minimum radius and Identification and The larger radius of the boundary and keep it unchanged, and Scaling is done by the smaller radius of the boundary. Suppose ,and Representing a smaller radius, the scaling factor is: , In the formula, is the size threshold, It's the border All points to the boundary Center of gravity The minimum distance if scaled to meet the component size threshold When constraining, there is no problem of extremely small holes in the boundary with a smaller radius, so the extremely fine component regulation is completed, and the scaled boundary The coordinates of the points on are: , If scaled to meet the component size threshold When constraining, if there are extremely small holes in the boundaries with smaller radius, the boundaries with smaller radius will be deleted.

[0032] Specifically, the step six "regulating the extremely small hole features of the cross-scale structure: for the extremely small hole features, first identify the radius of the boundary, and scale the boundary with the center of gravity of the boundary as the center until the new boundary satisfies the component size threshold constraint: if the minimum distance between the boundary and other boundaries at this time satisfies the component size threshold constraint, the hole regulation is completed; if the minimum distance between the boundary and other boundaries at this time does not satisfy the component size threshold constraint, the boundary is deleted" includes: For extremely small hole features, first identify the boundary Radius , with the center of gravity of the boundary Scale the border to the center until the new border Meet size threshold Constraint, the scaling factor is: , The scaled boundary The coordinates of the points on are: , If the minimum distance between the Meeting component size thresholds Constraint, then the hole control is completed; if the minimum distance between other boundaries does not meet the component size threshold constraint, the boundary is deleted.

[0033] Specifically, the step seven "regulating the special angle features of the cross-scale structure: for special angle features, if the three-point angle of any three-point coordinates on the same boundary does not satisfy the angle constraint, then determine whether the distance between the two endpoints of the boundary satisfies the component size threshold constraint. If it is greater than the component size threshold constraint, then find and add two points on the two adjacent sides of the boundary that are parallel to the opposite side of the boundary and whose distance is equal to the component size threshold constraint, and delete the vertex of the angle; if it is less than the component size threshold constraint, directly delete the vertex without adding a new point" includes: for special angle features, if the three-point angle does not satisfy the angle constraint , then determine whether the distance between the two endpoints meets the size threshold Constraint, if greater than the size threshold Constraint, then find and add two adjacent edges that are parallel to the opposite edge and whose distance is equal to the size threshold Constrain two points and move the vertex Delete, and the newly added points satisfy: , In the formula, and Line segments and line segments The point on.

[0034] If the angle between the three points does not satisfy the angle constraint , then determine whether the distance between the two endpoints meets the size threshold Constraint, if less than the size threshold Constraint, directly move the vertex Delete and do not add new points. Here, the angle constraint Can be 150°, size threshold It can be 1.5 mm.

[0035] Example: The method for controlling geometric feature size of topology optimization results based on image processing disclosed in the present invention is applicable to the cross-scale topology optimization design of any structure, such as Figure 2 The cross-scale topology optimization problem of the L-shaped flat plate structure shown in the figure, the macroscopic design domain is a square with a length and width of 600 mm, and the L-shaped structure is obtained by deleting the square of 300 mm in the upper right corner, and the length and width of the microscopic design domain are both 1 mm. The geometric feature size control method of the topology optimization result based on image processing of the present invention can illustrate the effect of size control. Figure 3 The topological optimization results under different design strategies are shown in Figure 2. The elastic modulus of the material is 2×105 MPa and the Poisson’s ratio is 0.3. A clamp constraint is applied to the upper boundary of the design area, and the middle position on the right side is subjected to a load amplitude equal to kN concentrated load, the angle between the direction and the vertical direction is 45°. The comparison of the dimensional constraint parameters of each working condition is shown in Table 1, where the percentage refers to the ratio of the dimensional constraint value to the design domain, and the angle constraint is , Figure 3 middle is the equivalent elastic tensor, Figure 3 The design results and local details of the macro- and micro-configurations are also given. Figure 3 The upper left figure is the design result of working condition 1 shown in Table 1, the upper right figure is the design result of working condition 2, the lower left figure is the design result of working condition 3, and the lower right figure is the design result of working condition 4. The iterative process curves of macroscopic volume fraction and microscopic volume fraction during topology optimization are shown in Figure 4 and Figure 5 As shown in Table 2, the macro-micro volume fraction, actual displacement and total calculation time of topology optimization under different design strategies are shown in Table 2.

[0036] Table 1 Comparison of parameters under various working conditions

[0037] Table 2 Final results of the embodiment

[0038] Result description: The image processing-based dimensional control method for geometric features of topology optimization results can effectively achieve precise control of geometric features under different dimensional constraints and converge quickly. The impact of dimensional constraints on design results is significant, and excessive dimensional constraints can even lead to significant changes in results (Case 2). The higher the dimensional constraint level, the more material is required to maintain manufacturability (0.2392→0.3342). The dimensional control method can maintain effectiveness at different constraint levels and achieve precise quantitative control of multiple geometric features of macro and micro configurations. There are two reasons for the appearance of thicker rods in the macro configuration of Case 2: high level of dimensional constraints, which require strict dimensional restrictions to ensure manufacturability requirements; in addition, due to the uneven distribution of geometric features on the boundary, the distribution of points is uneven, and the boundary scaling does not match the ideal situation.

[0039] From the final configuration results, the geometric feature size control method of the topology optimization result based on image processing can regulate a variety of geometric features, and all situations that do not meet the angle constraints can achieve good results, achieve smooth transitions, effectively avoid the formation of residual stress and stress concentration, and improve the safety and service life of the structure. The method proposed in the present invention can be completed quickly, including the total time of topology optimization in about 1 minute, and the time for geometric feature regulation by image processing alone does not exceed 1 minute.

[0040] The above are only specific steps of the present invention and do not constitute any limitation to the protection scope of the present invention; it can be extended to the field of topological optimization design of different mechanical and thermal problems, and any technical solutions formed by equivalent transformation or equivalent replacement fall within the protection scope of the present invention.

[0041] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be put into practice without these specific details. In some instances, known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description. In addition, it should be noted that the language used in this description is mainly selected for the purpose of readability and teaching, rather than for explaining or limiting the subject matter of the present invention.

Claims

1. A method for controlling geometric feature size of topology optimization results based on image processing, characterized in that: include: Step 1: For cross-scale structures based on additive manufacturing, given the macroscopic structural design domain, microscopic unit cell design domain, load and displacement boundary conditions, determine the design domain and non-design domain at the macroscopic and microscopic levels, and construct a dual-scale topology optimization model; The dual-scale topology optimization model is constructed by taking the volume fraction of the macroscopic structure as the optimization target, taking the macroscopic allowable displacement and the microscopic volume fraction as the inequality constraints, taking the macroscopic and microscopic finite element equilibrium equations as the equality constraints, and taking the radial basis function coefficients of the dual-scale level set function as the design variables to construct the dual-scale topology optimization model; Step 2: Perform macro-micro finite element analysis on the cross-scale structure in the current iteration process, and then calculate the sensitivity of the objective function and constraints in the dual-scale topology optimization model to the time variable of the dual-scale level set function based on the shape derivative principle, update the dual-scale level set function to drive the update of the cross-scale structure configuration, and then determine whether the updated cross-scale structure meets the convergence conditions of the topology optimization. If so, obtain the topology optimization design result. If not, continue to perform finite element analysis and sensitivity analysis and update the design variables until the convergence conditions are met; Step 3: Perform image processing on the dual-scale topology optimization model: Given the resolution multiple of the dual-scale level set function, perform bilinear interpolation on the dual-scale level set function, and then process the dual-scale level set function based on the image binarization method to obtain a 0-1 distribution dual-scale level set function, thereby identifying the macro-micro topological features of the cross-scale structure and obtaining the number of boundaries and coordinate points of the boundaries of the cross-scale structure; Step 4: Based on the coordinate points of the boundaries of the cross-scale structure, the minimum distance between the coordinates of two points on different boundaries is calculated as a way to detect extremely fine components, the maximum distance between the coordinates of two points on the same boundary or the distance from the coordinates of points on the same boundary to the center of gravity is calculated as a way to detect extremely small holes, and the angle between the coordinates of any three points on the same boundary is calculated as a way to detect special angles. The macroscopic configuration and the microscopic configuration are quantified respectively to obtain the specific numerical values ​​of the geometric characteristics of the cross-scale structure; Step 5: Regulate the ultra-fine component features of cross-scale structures: For the ultra-fine component features, first identify the boundary with a larger radius and keep it unchanged, and scale the boundary with a smaller radius. If the boundary with a smaller radius does not have an extremely small hole problem when scaled to meet the component size threshold constraint, the ultra-fine component regulation is completed. If the boundary with a smaller radius has an extremely small hole problem when scaled to meet the component size threshold constraint, the boundary with a smaller radius is deleted. Step 6: Regulate the hole features of cross-scale structures: For extremely small hole features, first identify the radius of the boundary, and scale the boundary with the center of gravity of the boundary as the center until the new boundary meets the component size threshold constraint. If the minimum distance between the boundary and other boundaries meets the component size threshold constraint at this time, the hole regulation is completed; if the minimum distance between the boundary and other boundaries does not meet the component size threshold constraint at this time, the boundary is deleted; Step 7: Regulate the special angle features of cross-scale structures: For special angle features, if the angle between the coordinates of any three points on the same boundary does not satisfy the angle constraint, then determine whether the distance between the two endpoints of the boundary satisfies the component size threshold constraint. If it is greater than the component size threshold constraint, then find and add two points on the two adjacent sides of the boundary that are parallel to the opposite sides of the boundary and whose distance is equal to the distance constraint, and delete the vertex of the angle; if it is less than the component size threshold constraint, delete the vertex directly without adding new points.

2. The method for controlling geometric feature size of topology optimization results based on image processing according to claim 1 is characterized in that: In step 1, the radial basis function coefficients of the dual-scale level set function are used as design variables to construct a dual-scale topology optimization model, which includes the following formula calculation process: , In the formula, find represents the design variable, min represents the minimization of the objective function, st represents the constraint condition, all variables with superscript "Ma" represent macro variables, superscript "Mi" represent micro variables, and subscript "targ" represents the constraint value (threshold). represents the level set function, represents the spatial variable of the level set function, The coefficients of the radial basis function representing the level set function are only related to the time variable of the level set function. Related variables, represents the volume fraction, Represents the structure boundary, Indicates the same boundary The minimum value from any coordinate point on to the center of gravity, represents the number of boundaries, Represents two boundaries and The minimum distance between represents the component size threshold constraint, and Indicates the boundary number, Representing Boundaries On The coordinates of the points, Indicates is the vertex, and the angle formed by two adjacent points as endpoints, represents the entire design domain, represents the global stiffness matrix, represents the overall displacement column vector, represents the overall load column vector, represents the flexibility of the cross-scale structure and is the objective function in the optimization model. represents the level set function The projection function, The function expression is: 。 3. The method for controlling geometric feature size of topology optimization results based on image processing according to claim 1, characterized in that: In step 2, the cross-scale structure in the current state is subjected to macro-micro finite element analysis. Then, based on the shape derivative principle, the sensitivity of the objective function and constraint conditions in the dual-scale topology optimization model to the time variable of the dual-scale level set function is calculated. The dual-scale level set function is updated to drive the cross-scale structure configuration update. Then, it is determined whether the updated cross-scale structure meets the convergence conditions of the topology optimization. If so, the topology optimization design result is obtained. If not, the finite element analysis and sensitivity analysis are continued and the design variables are updated until the convergence conditions are met, including: For the dual-scale topology optimization model in step 1, for the finite element analysis under a given structural state: first, the equivalent elastic tensor of the unit cell is calculated by the homogenization method: , In the formula, represents the equivalent elastic tensor, represents the actual elastic tensor of the homogeneous structure, represents the third-order identity matrix, represents the finite element strain matrix, represents the vector constructed by periodic boundary conditions, and the superscript T represents the matrix transpose; Substitute the equivalent elastic tensor of the unit cell into the finite element equation of the macrostructure and calculate the displacement field of the macrostructure: ; The conditions for judging whether the current cross-scale structure meets the convergence of topology optimization include: , In the formula, is the objective function, is the objective function of the kth iteration, is the objective function of the qth iteration, Indicates The macroscopic volume fraction of the iteration, represents the allowable value of the macroscopic volume fraction, the subscript q represents the number of iterations, and the subscript represents the number of iterations, , and represent the error thresholds of objective function, macroscopic volume fraction, and microscopic volume fraction, respectively; When the five consecutive changes of the objective function in the dual-scale topology optimization model and the errors between the macro-micro volume fraction and the allowable value meet the threshold, the topology optimization ends and the topology optimization design result is obtained; if the constraints are not met, finite element analysis, sensitivity analysis and level set function update are performed until the constraints are met.

4. The method for controlling geometric feature size of topology optimization results based on image processing according to claim 1, characterized in that: Step 3 "perform image processing on the dual-scale topology optimization model, give the resolution multiple of the dual-scale level set function, perform bilinear interpolation on the dual-scale level set function, and then process the dual-scale level set function based on the image binarization method to obtain a 0-1 distribution of the dual-scale level set function, and then identify the macro-micro topological features of the cross-scale structure, and obtain the number of boundaries and coordinate points of the boundaries of the cross-scale structure" includes: According to the geometric feature constraints of the dual-scale topology optimization model in step one, the level set function of step one is obtained. Given the resolution multiple of the dual-scale level set function, the level set function is bilinearly interpolated to refine the level set function. Then, the dual-scale level set function is processed based on the image binarization method to obtain a 0-1 distribution dual-scale level set function, that is, the refined level set function is gray-scale transformed. The transformation formula is: , In the formula, Yes The gray value after transformation, is the threshold value of grayscale transformation, is the gray value before transformation; The initial detection point is determined according to the binary data, and the pixel data around the detection point is extracted. The eight-neighborhood edge detection method is used to judge the pixel data in the eight neighborhoods in a counterclockwise direction until the first non-zero pixel data is obtained; if there is a non-zero pixel, the neighborhood where the first non-zero pixel appears becomes the next detection point; if there is no non-zero pixel in all eight neighborhoods, the first non-zero pixel found in all pixel points becomes the detection point until all non-zero pixels are detected, thereby obtaining all the boundary features of the topology optimization results.

5. The method for controlling geometric feature size of topology optimization results based on image processing according to claim 1, characterized in that: Step 4: "Based on the coordinate points of the boundaries of the cross-scale structure, the minimum distance between the coordinates of two points on different boundaries is calculated as a way to detect extremely fine components, the maximum distance between the coordinates of two points on the same boundary or the distance from the coordinates of the point on the same boundary to the center of gravity is calculated as a way to detect extremely small holes, and the angle between the coordinates of any three points on the same boundary is calculated as a way to detect special angles. The macroscopic configuration and the microscopic configuration are quantified respectively to obtain the specific numerical values ​​of the geometric characteristics of the cross-scale structure" includes: for the identification of the characteristics of extremely fine components, the distance between different boundaries is calculated. and The distance between the coordinate points on : , In the formula, It's the border The coordinate points on It's the border The coordinate points on the Minimum value It is the minimum distance of components between two boundaries, thus identifying extremely fine components; For the recognition of extremely small hole features, the boundary is first calculated Center of gravity : , In the formula, is the number of coordinate points on the boundary, and then calculate the distance from any point on the boundary to the centroid : , The distances obtained for all coordinate points are Minimum value It is the minimum radius of the hole in the boundary, thus identifying the hole; For the identification of special angle features, the angle formed by three adjacent coordinate points is calculated using the cosine theorem. The cosine of : , In the formula, and On the same border The included angle of the points on both sides is calculated based on the cosine result. If the included angle satisfies the angle constraint, it is a special angle feature.

6. The method for controlling geometric feature size of topology optimization results based on image processing according to claim 1, characterized in that: In the step 5, the ultra-fine component features of the cross-scale structure are regulated: for the ultra-fine component features, the boundary with a larger radius is first identified and kept unchanged, and the boundary with a smaller radius is scaled. If the boundary with a smaller radius does not have an ultra-small hole problem when scaled to meet the component size constraint, the ultra-fine component regulation is completed. If the boundary with a smaller radius has an ultra-small hole problem when scaled to meet the component size constraint, the boundary with a smaller radius is deleted, including: For the identified very fine components, two boundaries are calculated and Minimum radius and , identification and The larger radius of the boundary and keep it unchanged, for both boundaries and Smaller border radius To scale; If there is no problem of extremely small holes in the boundary with a smaller radius when scaling to meet the component size threshold constraint, the extremely fine component control is completed; If a border with a smaller radius has very small holes when scaled to meet the component size threshold constraint, the border with a smaller radius is removed.

7. The method for controlling geometric feature size of topology optimization results based on image processing according to claim 1, characterized in that: In step 7, the special angle feature of the cross-scale structure is regulated: for the special angle feature, if the three-point angle of any three-point coordinates on the same boundary does not satisfy the angle constraint, then determine whether the distance between the two end points of the boundary satisfies the component size threshold constraint. If it is greater than the component size threshold constraint, then find and add two points on the two adjacent sides of the boundary that are parallel to the opposite side of the boundary and whose distance is equal to the component size threshold constraint, and delete the vertex of the angle; If the size is smaller than the component size threshold constraint, the vertex is deleted directly without adding new points, including: For special angle features, if the angle between the three points does not satisfy the angle constraint , then determine whether the distance between the two endpoints meets the size threshold Constraint, if greater than the size threshold Constraint, then find and add two adjacent edges that are parallel to the opposite edge and whose distance is equal to the size threshold Constrain two points and move the vertex Delete, and the newly added points satisfy: , In the formula, and Line segments and line segments The point on.

Citation Information

Patent Citations

  • Cross-scale topological optimization method considering size control

    CN110795873A

  • Industrial mechanical arm topological optimization method meeting dynamic load

    CN116451370A

  • Thermoelastic structure dual-scale topological optimization method based on data driving

    CN117648836A