A method and system for reverse topology optimization design of diversified metamaterials
Carry out reverse topology optimization design through neural network, use finite element analysis and convolutional neural network training to solve the problem of low efficiency in the existing technology, achieve efficient design of diversified metamaterial structures, avoid over-fitting phenomenon, and significantly Improved design efficiency.
Patent Information
- Application Number
- CN202110511642.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-11
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-05-11
AI Technical Summary
Existing structural topology optimization design methods are inefficient and difficult to meet the design needs of diverse metamaterials. Traditional methods based on finite element analysis are time-consuming and prone to over-fitting, and cannot effectively generate diverse topological structures.
Use neural networks to perform inverse topology optimization design, conduct finite element analysis by changing the volume fraction, penalty index, filter radius and filtering method of the metamaterial structure, generate multiple sets of topological configurations and elastic tensor matrices, and use SegNet or Mobile-SegNet volumes Accumulated neural network training generates diverse topological configurations directly from attribute value input.
It achieves the rapid and efficient generation of diversified metamaterial topological configurations, avoids over-fitting, significantly improves design efficiency, and can output topological structures in real time to meet diverse needs.
Smart Images

Figure CN113191007B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field related to structural optimization, and more specifically, relates to a method and system for reverse topology optimization design of diversified metamaterials. Background Art
[0002] Obtaining metamaterial structures with specific properties is a hot topic in the current academic and industrial circles. Theoretically, there are two feasible methods. One is to change the material by finding a material with better performance to replace the poor-performing material. This method is expensive and has very poor economic efficiency. The other is to change the design. Generally, the microstructure unit cell configuration of the porous structure is changed to change the structural performance. This is a relatively cheap method and is widely favored by engineering designers. The structural topology optimization design method can find the most reasonable distribution method for the material within a given design domain, so that the structure can obtain the best mechanical properties under given constraints and maximize the material utilization rate. However, on the one hand, the existing topology optimization design methods can only obtain the property values of the structure after the structural optimization is completed. The design can only be carried out first and then see whether the property values of the designed structure meet the requirements. If it does not meet the requirements, the structural design needs to be redesigned. It is necessary to debug the parameters many times before a structure that meets the requirements can be obtained; on the other hand, the traditional structural topology optimization design method is based on finite element analysis, which will result in a long time consumption, making the structural topology optimization design method inefficient and difficult to apply to the design of actual engineering material structures. Diversified customized design has always been the goal pursued by engineering designers. The existing design method is based on finite element analysis. One by one debugging will consume a lot of manpower and material resources, and the economy is very poor. Chinese patent CN111723420A discloses a structural topology optimization method based on deep learning, including generating training data, preprocessing the training data, constructing a deep learning model for training, and using the trained deep learning model for optimization to obtain an output result, that is, a topology optimized structure. The deep learning model used is the U-Net network, and the input is a 6-channel input tensor. Improper selection of input parameters can easily lead to discontinuous structures, which are unusable in engineering, especially for metamaterials with diverse needs, whose property values are limited and relatively simple. If U-Net is used, it will lead to overfitting in network training, that is, the accuracy of predicting the structure of new materials will be greatly reduced. At the same time, the input of this method is multi-channel and the output is single-channel, which cannot meet the needs of diversified topological structures with the same property values. Therefore, it is urgent to design a method that can efficiently design diversified topological structures. Summary of the invention
[0003] In response to the above defects or improvement needs of the prior art, the present invention provides a method and system for reverse topology optimization design of diversified metamaterials. Based on a neural network, the corresponding diversified topological configurations can be directly obtained by taking attribute values as input. This reverse design method does not require repeated debugging and verification, can meet diversified customization needs, and greatly improves design efficiency.
[0004] To achieve the above-mentioned purpose, according to one aspect of the present invention, a diversified metamaterial reverse topology optimization design method is provided, the method comprising: S1: performing finite element analysis by changing the volume fraction, penalty index, filter radius and filter mode of the metamaterial structure to obtain multiple groups of topological configurations of the metamaterial structure and the elastic tensor matrix corresponding to the topological configuration; S2, selecting eigenvalues representing specific properties of the topological configuration structure in the elastic tensor matrix, comparing multiple groups of eigenvalues, and then averaging the eigenvalues whose differences in eigenvalues are within a preset range, and taking the average value as the property value corresponding to the multiple groups of topological configurations, thereby obtaining the property values and multiple topological configurations corresponding to the property values; S3: encoding each group of the property values into a single-pass The method comprises the following steps: obtaining a plurality of topological configurations and encoding the plurality of topological configurations into a corresponding number of multi-channel tensor information, and encoding the plurality of attribute values and the corresponding plurality of topological configurations into a data set; S4: taking the attribute values as input and taking the plurality of topological configurations as output, training a neural network to obtain a trained neural network, wherein the neural network is a SegNet convolutional neural network or a Mobile-SegNet convolutional neural network, and the Mobile-SegNet convolutional neural network is obtained by modifying the encoder of the SegNet convolutional neural network into a MobileNet network; S5: obtaining the attribute values of the topological configuration to be designed, encoding the attribute values, and inputting the encoded attribute values into the trained neural network to obtain the corresponding plurality of topological configurations.
[0005] Preferably, in step S1, a homogenization method is used to obtain multiple groups of topological configurations of the metamaterial structure and elastic tensor matrices corresponding to the topological configurations.
[0006] Preferably, the characteristic value comprises a shear modulus value and / or a bulk modulus value.
[0007] Preferably, in step S3, the shape and size of the single-channel tensor information are the same as the shape and size of each channel tensor information in the multi-channel tensor information.
[0008] Preferably, step S4 includes: dividing the data set into two parts, one part is used for training the neural network, and the other part is used for cross-validation of hyperparameter adjustment decisions of the neural network.
[0009] Preferably, during the training process, the Adam algorithm is used to adaptively modify the actual learning rate during the SegNet convolutional neural network training process until its loss function value is less than a preset value or converges.
[0010] Preferably, the loss function of the neural network is:
[0011]
[0012] in, is the topological configuration of the metamaterial structure in the kth channel tensor; is the predicted result of the k-th layer configuration output by the neural network during the training process, N and M are the length and width of the metamaterial topological structure, respectively. is the true value of the cell in the i-th row and j-th column of the k-th channel tensor, is the output value of the cell in the i-th row and j-th column of the k-th channel tensor predicted by the neural network.
[0013] According to another aspect of the present invention, a diversified metamaterial reverse topology optimization design system is provided, the system comprising: a first acquisition module: used to perform finite element analysis to obtain multiple groups of topological configurations of the metamaterial structure and the elastic tensor matrix corresponding to the topological configuration by changing the volume fraction, penalty index, filter radius and filter mode of the metamaterial structure; a second acquisition module, used to select eigenvalues representing specific properties of the topological configuration structure in the elastic tensor matrix, compare multiple groups of eigenvalues, and then average the eigenvalues whose differences are within a preset range and take the average value as the property value corresponding to the multiple groups of topological configurations, thereby obtaining the property values and the multiple topological configurations corresponding to the property values; an encoding module: used to encode each group of the property values into a single-pass The invention relates to a method for preparing a neural network for designing a plurality of topological configurations, wherein the plurality of topological configurations are encoded into a corresponding number of multi-channel tensor information, and a plurality of groups of attribute values and corresponding plurality of topological configurations constitute a data set; a training module: used for training a neural network with the attribute values as input and the plurality of topological configurations as output to obtain a trained neural network, wherein the neural network is a SegNet convolutional neural network or a Mobile-SegNet convolutional neural network, and the Mobile-SegNet convolutional neural network is obtained by modifying the encoder of the SegNet convolutional neural network into a MobileNet network; an input module: used for obtaining the attribute values of the topological configuration to be designed and encoding the attribute values and then inputting the encoded attribute values into the trained neural network to obtain the corresponding plurality of topological configurations.
[0014] In general, compared with the prior art, the above technical solution conceived by the present invention provides a diversified metamaterial reverse topology optimization design method with the following beneficial effects:
[0015] 1. The present application can use the reverse design method to generate various metamaterial structure topological configurations for specified property values, thereby realizing the design of diversified metamaterial configurations.
[0016] 2. Since the property values required for the diversified design of metamaterials are relatively simple, traditional networks are prone to overfitting, which greatly reduces the accuracy of structural prediction, and requires the selection of reasonable input parameters, otherwise discontinuous structures are likely to occur. The present application uses the SegNet convolutional neural network to achieve diversified design of metamaterials, and the input parameters are simple, which can achieve one-to-many output.
[0017] 3. This application uses deep learning technology to perform topological optimization design of metamaterial structures, which can output the topological structure in real time, significantly shortening the time and improving the design efficiency.
[0018] 4. The homogenization method is used to obtain the property values and topological configuration of the metamaterial structure with volume fraction, penalty index, filter radius and filtering method as variables. Since multiple factors are taken into consideration, the volume fraction is used to characterize the volume of the optimized metamaterial topological configuration, the penalty index is used to characterize the penalty for the intermediate density of the material during the optimization process, the filter radius is used to characterize the suppression of the checkerboard phenomenon during the optimization process, and the filtering method is used to characterize what strategy is used to suppress numerical instability during the optimization process. Therefore, accurate property values and topological configurations can be obtained. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 A schematic diagram showing the steps of a reverse topology optimization design method for diversified metamaterials of this embodiment;
[0020] Figure 2 A flowchart of a reverse topology optimization design method for diversified metamaterials of this embodiment is schematically shown;
[0021] Figure 3 The encoding strategy of the input information of this embodiment is schematically shown;
[0022] Figure 4 The coding strategy of the tag information of this embodiment is schematically shown;
[0023] Figure 5 The SegNet convolutional neural network of this embodiment is schematically shown;
[0024] Figure 6 A diagram schematically shows a network training process diagram of training a SegNet convolutional neural network to predict a first metamaterial topological configuration in this embodiment;
[0025] Figures 7A to 7IThe nine metamaterial topological configurations with bulk modulus values equal to -0.583 obtained in this embodiment are schematically shown;
[0026] Figures 8A to 8I Nine metamaterial topological configurations with shear modulus values equal to -0.101 obtained in this embodiment are schematically shown. DETAILED DESCRIPTION
[0027] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0028] See also Figure 1 and Figure 2 The present invention provides a method for reverse topology optimization design of diversified metamaterials, and the method comprises the following steps S1 to S5.
[0029] S1: By changing the volume fraction, penalty index, filter radius and filter mode of the metamaterial structure, a finite element analysis is performed to obtain multiple groups of topological configurations of the metamaterial structure and the elastic tensor matrix corresponding to the topological configurations.
[0030] For example, in the design domain of the metamaterial, the volume fraction is accumulated from 0.4 to 0.6 by a gradient of 0.001, a total of 201 types, the penalty index is accumulated from 2 to 20 by a gradient of 1, a total of 19 types, the filter radius is accumulated from 1.5 to 6 by a gradient of 0.5, a total of 10 types, and the filtering mode is sensitivity filtering or density filtering, a total of two types. Each time, one of these four variables is selected, that is, according to The combination and arrangement method selects a variable value from the four variable items of volume fraction, penalty index, filter radius and filter method each time, and integrates the selected variable value and the values of other variable items on the average primitive domain to obtain multiple groups of topological configurations of the metamaterial structure and the elastic tensor matrix corresponding to the topological configuration.
[0031] Multiple groups of topological configurations and the elastic tensor matrices corresponding to the topological configurations are obtained by the following formula:
[0032]
[0033] in, is the elastic tensor matrix, Y is the average primitive domain, N is the number of finite elements discretized in the average primitive domain Y, e is the e-th element in the design domain, A(ij) is the ij direction, is the unit displacement vector of the load condition in the ij direction, T is the matrix transpose, ke is the stiffness matrix of the e-th material element, is the unit displacement solution corresponding to the unit test strain field, A(kl) is the kl direction, where They are all functions of volume fraction, penalty index, filter radius and filter mode.
[0034] S2: Select eigenvalues representing the topological configuration structure in the elastic tensor matrix, compare multiple groups of the eigenvalues, and then average the eigenvalues whose differences are within a preset range and take the average values as the attribute values corresponding to the multiple groups of topological configurations, thereby obtaining the attribute values and multiple topological configurations corresponding to the attribute values.
[0035] The eigenvalue that best characterizes the topological configuration structure is selected in the elastic tensor matrix. In this embodiment, the eigenvalue is preferably a shear modulus value and / or a bulk modulus value, and can also be a parameter such as Poisson's ratio. Therefore, multiple groups of topological configurations correspond to multiple groups of eigenvalues. The multiple groups of eigenvalues are compared, and then the eigenvalues with a difference in the eigenvalue within a preset range, such as ±0.002, are classified into one category and averaged. The average value is used as the attribute value characterizing the multiple groups of topological configurations, and then the attribute values and multiple topological configurations corresponding to the attribute values are obtained.
[0036] S3: encoding each group of the attribute values into single-channel tensor information, and encoding the multiple topological configurations into a corresponding number of multi-channel tensor information, wherein the multiple groups of the attribute values and the corresponding multiple topological configurations constitute a data set;
[0037] The property value of the metamaterial is encoded as single-channel tensor information, and multiple topological configurations are encoded as corresponding numbers of multi-channel tensor information, wherein the shape and size of the single-channel tensor information and the shape and size of each channel tensor information in the multi-channel tensor information are the same as the size of the design domain. For example, if the size of the design domain is 48×48, the size of the single-channel tensor information and the size of each channel tensor information in the multi-channel tensor information are also 48×48.
[0038] The property values of the metamaterial structure are encoded into single-channel tensor information as input information for training the neural network, such as Figure 3 As shown in the figure, the topological configuration of the metamaterial structure is encoded into multi-channel tensor information as label information for training the neural network, such as Figure 4 As shown, each channel represents a topological configuration.
[0039] S3: Training a neural network with the attribute value as input and with the plurality of topological configurations as output to obtain a trained neural network, wherein the neural network is a SegNet convolutional neural network or a Mobile-SegNet convolutional neural network, and the Mobile-SegNet convolutional neural network is obtained by modifying the encoder of the SegNet convolutional neural network into a MobileNet network.
[0040] The above dataset is divided into two parts, one of which is used to train the neural network and the other is used to cross-validate the hyperparameter adjustment decisions of the neural network.
[0041] In this embodiment, the label information in all channels is divided into a training set and a validation set at a ratio of 9:1. In each complete training process, only one channel of information is selected at a time according to the order of multi-channel tensor information in the label information, and the combined input information is simultaneously input into the neural network to train the neural network until the number of iterations reaches a preset value or the loss function value reaches convergence, such as Figure 6 In this embodiment, the neural network is preferably a SegNet convolutional neural network, such as Figure 5 As shown, in order to reduce the amount of network calculation and reduce the network training time, the encoder can be changed to MobileNet, which is a Mobile-SegNet convolutional neural network. During the training process, the Adam algorithm is used to adaptively modify the actual learning rate during the SegNet network training process. The loss function is preferably calculated using the MSE loss function:
[0042]
[0043] in, is the topological configuration of the metamaterial structure in the kth channel tensor; is the predicted result of the k-th layer configuration output by the neural network during the training process, N and M are the length and width of the metamaterial topological structure, respectively. is the true value of the cell in the i-th row and j-th column of the k-th channel tensor, is the output value of the cell in the i-th row and j-th column of the k-th channel tensor predicted by the neural network.
[0044] S4: Obtain the attribute values of the topological configuration to be designed, encode the attribute values, and then input them into the trained neural network to obtain the corresponding topological configuration.
[0045] The property values of the topological configuration to be designed are encoded into a single-channel tensor, and the encoded property values are input into the trained neural network to obtain diversified metamaterial structure topological configurations with the same property values but different configurations. Figures 7A to 7I and Figures 8A to 8Ishown.
[0046] On the other hand, the present application provides a diversified metamaterial reverse topology optimization design system, the system comprising a first acquisition module, a second acquisition module, an encoding module, a training module and an input module, wherein:
[0047] The first acquisition module is used to perform finite element analysis to obtain multiple groups of topological configurations of the metamaterial structure and elastic tensor matrices corresponding to the topological configurations by changing the volume fraction, penalty index, filter radius and filter mode of the metamaterial structure;
[0048] A second acquisition module is used to select eigenvalues representing specific properties of topological configuration structures in the elastic tensor matrix, compare multiple groups of eigenvalues, and then average the eigenvalues whose differences are within a preset range, and use the average value as the property values corresponding to the multiple groups of topological configurations, so as to obtain the property values and multiple topological configurations corresponding to the property values;
[0049] Encoding module: used for encoding each group of the attribute values into single-channel tensor information, and encoding the multiple topological configurations into a corresponding number of multi-channel tensor information, and the multiple groups of the attribute values and the corresponding multiple topological configurations constitute a data set;
[0050] A training module: used for training a neural network with the attribute value as input and multiple topological configurations as output to obtain a trained neural network, wherein the neural network is a SegNet convolutional neural network or a Mobile-SegNet convolutional neural network, and the Mobile-SegNet convolutional neural network is obtained by modifying the encoder of the SegNet convolutional neural network into a MobileNet network;
[0051] Input module: used to obtain the attribute values of the topological configuration to be designed and encode the attribute values and then input them into the trained neural network to obtain the corresponding multiple topological configurations.
[0052] In summary, this application is based on a neural network, and the corresponding topological configuration can be directly obtained by taking the attribute value as input. This reverse design method does not require repeated debugging and verification, can meet diversified customization needs, and greatly improves design efficiency.
[0053] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for reverse topology optimization design of diversified metamaterials, characterized in that: The method comprises: S1: performing finite element analysis by changing the volume fraction, penalty index, filter radius and filter mode of the metamaterial structure to obtain multiple groups of topological configurations of the metamaterial structure and elastic tensor matrices corresponding to the topological configurations; S2, selecting eigenvalues representing specific properties of the topological configuration structure in the elastic tensor matrix, comparing multiple groups of the eigenvalues, and then averaging the eigenvalues whose differences are within a preset range, and using the average value as the property value corresponding to the multiple groups of topological configurations, thereby obtaining the property values and multiple topological configurations corresponding to the property values; S3: encoding each group of the attribute values into single-channel tensor information, and encoding the multiple topological configurations into a corresponding number of multi-channel tensor information, wherein the multiple groups of the attribute values and the multiple topological configurations corresponding to the attribute values constitute a data set; S4: training a neural network with the attribute value as input and the multiple topological configurations as output to obtain a trained neural network, wherein the neural network is a SegNet convolutional neural network or a Mobile-SegNet convolutional neural network, and the Mobile-SegNet convolutional neural network is obtained by modifying the encoder of the SegNet convolutional neural network into a MobileNet network; S5: obtaining the attribute values of the topological configuration to be designed, encoding the attribute values, and inputting them into the trained neural network to obtain the corresponding multiple topological configurations; In step S1, a homogenization method is used to obtain multiple groups of topological configurations of the metamaterial structure and elastic tensor matrices corresponding to the topological configurations; Multiple groups of topological configurations and the elastic tensor matrices corresponding to the topological configurations are obtained by the following formula: in, is the elastic tensor matrix, Y is the average primitive domain, N is the number of finite elements discretized in the average primitive domain Y, is the e-th unit in the design domain, is the ij direction, is the unit displacement vector of the load case in the ij direction, is the matrix transpose, is the stiffness matrix of the e-th material element, is the unit displacement solution corresponding to the unit test strain field, is the kl direction, where , They are all functions of volume fraction, penalty index, filter radius and filter mode.
2. The optimization design method according to claim 1, characterized in that: The characteristic values include a shear modulus value and / or a bulk modulus value.
3. The optimization design method according to claim 1, characterized in that: In step S3, the shape and size of the single-channel tensor information and the shape and size of each channel tensor information in the multi-channel tensor information are the same as the size of the design domain.
4. The optimization design method according to claim 3, characterized in that: Step S4 includes: The dataset is divided into two parts, one of which is used to train the neural network and the other is used to cross-validate the hyperparameter tuning decisions of the neural network.
5. The optimization design method according to claim 4, characterized in that: During the training process, the Adam algorithm is used to adaptively modify the actual learning rate of the SegNet convolutional neural network training process until its loss function value is less than the preset value or converges.
6. The optimization design method according to claim 5, characterized in that: The loss function of the neural network is: in, is the topological configuration of the metamaterial structure in the kth channel tensor; is the prediction result of the k-th layer configuration output by the neural network during the training process, N and M are the length and width of the metamaterial topological structure, is the true value of the cell in the i-th row and j-th column of the k-th channel tensor, is the output value of the cell in the i-th row and j-th column of the k-th channel tensor predicted by the neural network.
7. A diversified metamaterial reverse topology optimization design system, characterized in that: The system comprises: The first acquisition module is used to perform finite element analysis to obtain multiple groups of topological configurations of the metamaterial structure and elastic tensor matrices corresponding to the topological configurations by changing the volume fraction, penalty index, filter radius and filter mode of the metamaterial structure; A second acquisition module is used to select eigenvalues representing the topological configuration structure in the elastic tensor matrix, compare multiple groups of the eigenvalues, and then average the eigenvalues whose differences are within a preset range, and use the average value as the attribute value corresponding to the multiple groups of topological configurations, so as to obtain the attribute values and multiple topological configurations corresponding to the attribute values; An encoding module: used for encoding each group of the attribute values into single-channel tensor information, and encoding the multiple topological configurations into a corresponding number of multi-channel tensor information, wherein the multiple groups of the attribute values and the multiple topological configurations corresponding to the attribute values constitute a data set; A training module: used for training a neural network with the attribute value as input and the multiple topological configurations as output to obtain a trained neural network, wherein the neural network is a SegNet convolutional neural network or a Mobile-SegNet convolutional neural network, and the Mobile-SegNet convolutional neural network is obtained by modifying the encoder of the SegNet convolutional neural network into a MobileNet network; Input module: used to obtain the attribute values of the topological configuration to be designed and encode the attribute values and then input them into the trained neural network to obtain the corresponding multiple topological configurations; Wherein, a homogenization method is used to obtain multiple groups of topological configurations of the metamaterial structure and elastic tensor matrices corresponding to the topological configurations; Multiple groups of topological configurations and the elastic tensor matrices corresponding to the topological configurations are obtained by the following formula: in, is the elastic tensor matrix, Y is the average primitive domain, N is the number of finite elements discretized in the average primitive domain Y, is the e-th unit in the design domain, is the ij direction, is the unit displacement vector of the load case in the ij direction, is the matrix transpose, is the stiffness matrix of the e-th material element, is the unit displacement solution corresponding to the unit test strain field, is the kl direction, where , They are all functions of volume fraction, penalty index, filter radius and filter mode.
