Multi-fidelity dynamic reduction topology optimization method, device and storage medium

Through the dynamic order reduction calculation method, the problem of large calculation amount when stress constraints are incorporated into topology optimization design is solved, efficient topology optimization is achieved, and design cost and time are reduced.

CN113987887BActive Publication Date: 2024-09-06NORTHWESTERN POLYTECHNICAL UNIV
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202111307899.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-05
Publication Date
2024-09-06
Estimated Expiration
2041-11-05

AI Technical Summary

Technical Problem

When the existing technology incorporates stress constraints into topology optimization design, the amount of calculation increases dramatically, resulting in expensive and time-consuming design, especially in large-scale numerical calculations, especially in three-dimensional model optimization, where the design degrees of freedom reach millions or even dozens. On the order of billions, it is difficult to achieve efficient stress-constrained topology optimization.

Method used

Using the multi-fidelity dynamic reduction topology optimization method, the finite element mesh is discretized by constructing the objective function and constraint conditions, and the core equations are dynamically reduced in order, including the reduction of the equilibrium equation and the adjoint equation, and the objective function is calculated. and sensitivity of constraint conditions, optimize solutions and update design variables, reducing the number of iteration steps and calculation amount.

Benefits of technology

It greatly reduces the calculation amount and numerical calculation time, reduces the cost of topology optimization, improves the numerical solution efficiency of large-scale linear systems, and achieves efficient stress-constrained topology optimization design.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113987887B
    Figure CN113987887B
Patent Text Reader

Abstract

The present application discloses a multi-fidelity dynamic reduction topology optimization method, device and storage medium, the method comprising: constructing an objective function and constraint conditions, and setting convergence accuracy and maximum iteration steps; wherein the constraint conditions include volume constraint and stress constraint; discretizing the structural model into finite element meshes and applying loads; performing iterative calculations until the iteration result reaches convergence accuracy or the iteration steps reach the maximum iteration steps; the iterative calculations include the following steps: calculating the overall stiffness of the structural model; performing dynamic reduction calculations on the core equations; wherein the core equations include equilibrium equations and adjoint equations; calculating the objective function and its sensitivity, as well as the constraint conditions and their sensitivity; optimizing and solving and updating the design variables. The present application significantly reduces the amount of calculations, thereby reducing the time for numerical calculations and reducing the cost of topological optimization of the structural model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of structural optimization, and in particular to a multi-fidelity dynamic reduction topology optimization method, device and storage medium. Background Art

[0002] Lightweight, strong load-bearing, high strength, high precision and other characteristics are performance indicators of high-end equipment such as aerospace vehicles. Stress is a crucial design criterion in engineering structure design. It is directly related to the strength of mechanical parts, thus affecting the safety, service life and fatigue resistance of the structure. For example, in the manufacture of aircraft fuselages, rivets are used extensively to connect parts, and rivets are usually applied to perforated plates. A large number of theories and experiments have shown that when a perforated plate is subjected to axial tensile force, the stress value in the local area near the circular hole will increase dramatically, while in slightly farther areas, the stress decreases rapidly and tends to be uniform. This stress concentration problem will greatly reduce the strength of the fuselage structure and endanger flight safety.

[0003] In actual engineering optimization design, in order to accurately simulate the performance of mechanical components in all aspects, especially to avoid structural damage caused by stress concentration, it is necessary to incorporate stress constraints into the optimization formula during topology optimization design. By controlling local stress, it is iterated step by step to a topological configuration that satisfies the stress constraints.

[0004] However, each step of the iterative analysis requires calculating the size and sensitivity of the stress constraint of each stiffness unit, which leads to a sharp increase in the amount of calculation. Especially when the optimization model needs to establish a detailed three-dimensional model, the design freedom can easily exceed the millions or even billions of degrees of freedom. The cost of implementing topological optimization design considering stress constraints is very expensive, mainly reflected in the time-consuming large-scale numerical calculations. Summary of the invention

[0005] The embodiments of the present application provide a topology optimization method, device and storage medium to solve the technical problem that the prior art incorporates stress constraints into the optimization formula, which leads to a sharp increase in the amount of calculation, thereby making the calculation more time-consuming and the design cost more expensive.

[0006] In a first aspect, an embodiment of the present application provides a multi-fidelity dynamic reduction topology optimization method, the method comprising:

[0007] Constructing an objective function and constraint conditions, and setting convergence accuracy and a maximum number of iteration steps; wherein the constraint conditions include volume constraint and stress constraint;

[0008] Discretize the structural model into finite element mesh and apply loads;

[0009] Perform iterative calculation until the iterative result reaches the convergence accuracy or the number of iterative steps reaches the maximum number of iterative steps; the iterative calculation includes the following steps:

[0010] calculating the overall stiffness of the structural model;

[0011] Performing dynamic order reduction calculation on the core equation; wherein the core equation includes the equilibrium equation and the adjoint equation;

[0012] Calculating the objective function and its sensitivity, and the constraint conditions and their sensitivity;

[0013] The optimization solves and updates the design variables.

[0014] In a second aspect, an embodiment of the present application provides a multi-fidelity dynamic reduction topology optimization device, the topology optimization device comprising:

[0015] A construction module is used to construct an objective function and constraint conditions, and set convergence accuracy and a maximum number of iteration steps; wherein the constraint conditions include volume constraints and stress constraints;

[0016] Finite element module, used to discretize the structural model into finite element mesh and apply loads;

[0017] The iterative calculation module is used to perform iterative calculation until the iterative result reaches the convergence accuracy or the number of iterative steps reaches the maximum number of iterative steps; the iterative calculation includes the following steps:

[0018] calculating the overall stiffness of the structural model;

[0019] Performing dynamic order reduction calculation on the core equation; wherein the core equation includes the equilibrium equation and the adjoint equation;

[0020] Calculating the objective function and its sensitivity, and the constraint conditions and their sensitivity;

[0021] The optimization solves and updates the design variables.

[0022] In a third aspect, an embodiment of the present application provides a multi-fidelity dynamic reduction topology optimization device, the topology optimization device comprising a memory and a processor;

[0023] The memory is used to store computer executable instructions;

[0024] The processor is used to execute the computer executable instructions, and can implement the topology optimization method described in the first aspect and any one of various possible implementations of the first aspect.

[0025] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores executable instructions, and a computer executes the executable instructions to implement the topology optimization method described in the first aspect and any one of the various possible implementation methods of the first aspect.

[0026] One or more technical solutions provided in the embodiments of the present invention have at least the following technical effects:

[0027] An embodiment of the present invention provides a multi-fidelity dynamic reduction topology optimization method. In the iterative calculation, the topology optimization method performs dynamic order reduction calculations on the equilibrium equations and adjoint equations, which greatly reduces the amount of calculations, thereby reducing the numerical calculation time and reducing the cost of topology optimization of the structural model. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0029] Figure 1 A flowchart of a multi-fidelity dynamic reduction topology optimization method provided in an embodiment of the present application;

[0030] Figure 2 A flowchart of iterative calculation provided in an embodiment of the present application;

[0031] Figure 3 A flow chart when the force residual provided in the embodiment of the present application is greater than a preset force residual threshold;

[0032] Figure 4 A schematic diagram of a coarse grid sequence provided in an embodiment of the present application;

[0033] Figure 5 A schematic diagram of the interpolation relationship between coarse and fine grid point values ​​provided in an embodiment of the present application;

[0034] Figure 6 A schematic diagram of the structure of an L-shaped beam provided in an embodiment of the present application;

[0035] Fig. 7A The optimal topology of the reference model provided in the embodiment of the present application

[0036] Figure 7B A schematic diagram of the optimal topology of MF-ROM provided in an embodiment of the present application;

[0037] Figure 7C A schematic diagram of the optimal topology of the Bi-ROM provided in the embodiment of the present application;

[0038] Fig. 8A The flexibility convergence change curves of the three models provided in the embodiments of the present application;

[0039] Figure 8B The maximum paradigm equivalent stress variation curves of the three models provided in the embodiments of the present application;

[0040] Fig. 9A A schematic diagram of the optimal topology of the adaptive reduced-order model provided in an embodiment of the present application;

[0041] Fig. 9B The initial force residual threshold of the equilibrium equation of the double reduction model provided in the embodiment of the present application Force residual threshold for adjoint equation Schematic diagram of the optimal topology when ;

[0042] Fig. 9C The initial force residual threshold of the equilibrium equation of the double reduction model provided in the embodiment of the present application Force residual threshold for adjoint equation Schematic diagram of the optimal topology when ;

[0043] Fig.10 A curve showing a change in the relative error of the objective function value of the double reduction model and the adaptive reduced-order model provided in the embodiment of the present application during the iteration process;

[0044] Fig.11A The force residual evolution curve of the equilibrium equation in the double reduction model and the adaptive reduced order model provided in the embodiments of the present application;

[0045] Fig. 11B The force residual evolution curve of the adjoint equation in the double reduction model and the adaptive reduced order model provided in the embodiment of the present application;

[0046] Fig.12 A schematic diagram of the structure of a multi-fidelity dynamic reduction topology optimization device provided in an embodiment of the present application;

[0047] Fig.13 A schematic diagram of the structure of a multi-fidelity dynamic reduction topology optimization device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0048] Lightweight, strong load-bearing, high strength, high precision and other characteristics are performance indicators of high-end equipment such as aerospace vehicles. Stress is a crucial design criterion in engineering structure design. It is directly related to the strength of mechanical parts, thus affecting the safety, service life and fatigue resistance of the structure. For example, in the manufacture of aircraft fuselages, rivets are used extensively to connect parts, and rivets are usually applied to perforated plates. A large number of theories and experiments have shown that when a perforated plate is subjected to axial tensile force, the stress value in the local area near the circular hole will increase dramatically, while in slightly farther areas, the stress decreases rapidly and tends to be uniform. This stress concentration problem will greatly reduce the strength of the fuselage structure and endanger flight safety.

[0049] In actual engineering optimization design, in order to accurately simulate the performance of mechanical components in all aspects, especially to avoid structural damage caused by stress concentration, it is necessary to incorporate stress constraints into the optimization formula during topology optimization design. By controlling local stress, it is iterated step by step to a topological configuration that satisfies the stress constraints.

[0050] However, each step of the iterative analysis requires the calculation of the stress constraint size and sensitivity of each stiffness unit, which leads to a sharp increase in the amount of calculation. Especially when the optimization model needs to establish a fine three-dimensional model, the design freedom can easily exceed the millions or even billions of degrees of freedom. The cost of implementing topological optimization design considering stress constraints is very expensive, mainly reflected in the time-consuming large-scale numerical calculations. The main reasons include the following aspects.

[0051] First, in iterative calculations, even if the stress constraint block technology is used, the number of constraints is still huge. In addition, in each optimization cycle, when the adjoint method is used to derive the sensitivity expression of the stress constraint, it is necessary to solve an ultra-large-scale evolutionary linear system (adjoint equation), which requires huge computational effort.

[0052] Second, the equilibrium equation in finite element analysis is also an extremely large-scale linear system, which is used to solve the structural displacement field and is a prerequisite for calculating local stress, and it is extremely time-consuming.

[0053] Third, the optimization process requires multiple cycles of iteration to solve the two parts of the ultra-large-scale evolving linear system reaching billions of orders of magnitude, which takes so long that it is impossible to achieve.

[0054] These three factors seriously restrict the application of stress constrained topology optimization in large-scale engineering problems. Therefore, how to effectively improve the efficiency of numerical solution of large-scale linear systems has become one of the key issues in realizing stress constrained topology optimization design.

[0055] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0056] This embodiment provides a multi-fidelity dynamic reduction topology optimization method, which solves the factors that restrict the application of stress-constrained topology optimization in large-scale engineering problems. Figure 1 As shown, the method includes steps S101 to S103.

[0057] Step S101: construct the objective function and constraint conditions, and set the convergence accuracy and the maximum number of iterations, wherein the constraint conditions include volume constraint and stress constraint.

[0058] Specifically, the optimization formula formed by constructing the objective function and the constraints can be expressed as follows:

[0059]

[0060] in, is the normalized equivalent stress corresponding to element e, and the stress evaluation point is located at the geometric center of the element; is the maximum paradigm equivalent stress in the structural model; is the upper limit of stress imposed on the structural model; c is the optimization target, i.e. flexibility; ρ represents the array composed of unit density; u and f represent the displacement and external load arrays respectively; K represents the overall stiffness matrix; v e represents the unit volume; v f Represents predefined material volume fraction limits.

[0061] Step S102: Discretize the structural model into a finite element mesh and apply loads.

[0062] Step S103: perform iterative calculation until the iterative result reaches convergence accuracy or the number of iterative steps reaches the maximum number of iterative steps.

[0063] Specifically, the iterative calculation of step S103 includes steps S201 to S204. Figure 2 shown.

[0064] Step S201: Calculate the overall stiffness of the structural model.

[0065] Step S202: Perform dynamic order reduction calculation on the core equation, wherein the core equation includes the equilibrium equation and the adjoint equation.

[0066] Step S203: Calculate the objective function and its sensitivity, as well as the constraints and their sensitivity.

[0067] Step S204: Optimize and solve and update design variables.

[0068] This multi-fidelity dynamic reduction topology optimization method dynamically reduces the equilibrium equations and adjoint equations in iterative calculations, which greatly reduces the amount of calculations, thereby reducing the numerical calculation time and reducing the cost of topology optimization of the structural model.

[0069] In the process of dynamic order reduction calculation of the core equation, it is necessary to judge the relationship between the number of iterations and the sample capacity. The order reduction calculation process specifically includes the following situations.

[0070] When the number of iterations i satisfies 1≤i≤N bWhen , the core equation is solved in a multi-fidelity global domain, and the global solution is added to the sample matrix; where N b Represents the sample size. The so-called global solution refers to the exact solution obtained by direct inversion or iteration of the equation.

[0071] And, when i=N b It is also necessary to centralize the sample matrix and perform singular value decomposition on the obtained centralized sample matrix, retaining the left singular eigenvector corresponding to the maximum singular value of the preset cutoff number, and obtain the reduced basis.

[0072] When the iterative calculation is completed N b After the step, the sample matrix is ​​U = [u 1 ,u 2 ,…,u M ],u 1 ,u 2 ,…u M is the global solution. The centralized sample matrix in is the mean of all global solutions in the sample matrix, that is,

[0073] The expression for singular value decomposition of the centered sample matrix is ​​as follows:

[0074] U 0 =ΦΣΨ T

[0075] The left singular eigenvector corresponding to the largest singular value of the preset truncation number m is retained to obtain the reduced basis, where the reduced basis is expressed as

[0076] The reduced basis constructed above can be used as an effective low-dimensional approximation for the high-dimensional solution space of large-scale linear systems in the optimization process, thereby replacing the high-precision global solution of large-scale linear systems and achieving the purpose of reducing computational costs.

[0077] When the iteration number i satisfies i>N b When the linear expression of the reduced solution is constructed, the projection coefficient is determined by the reduced-order model; and the force residual of the core equation is calculated to determine the relationship between the force residual and the preset force residual threshold.

[0078] The linear expression of the reduced solution is as follows: in, To reduce the solution, α is the projection coefficient. Reduced order model:

[0079] After arranging the linear expression of the reduced solution and the reduced-order model, we get: For low-order systems, the unknown quantity to be solved becomes the projection coefficient α, and the coefficient matrix is ​​ΦT KΦ, whose order is much smaller than the number of degrees of freedom, can quickly solve the projection coefficient α.

[0080] The accuracy of the reduced solution is defined by the force residual, which is expressed as follows:

[0081]

[0082] Here||·|| 2 Indicates L 2 norm, the force residual represents the relative error between the approximate load resulting from the reduced solution and the actual load. If the reduced solution is accurate, the force residual is zero.

[0083] If the force residual is greater than the preset force residual threshold, execute Figure 3 Step S301 and step S302 are shown.

[0084] Step S301: Delete the first global solution in the sample matrix, perform multi-fidelity global solution on the core equation, and add the obtained global solution to the sample matrix.

[0085] Step S302: performing a centering process on the sample matrix and performing singular value decomposition on the obtained centralized sample matrix, retaining the left singular eigenvector corresponding to the maximum singular value of the preset truncation number, and obtaining an updated reduced basis.

[0086] If the force residual is less than or equal to a preset force residual threshold, a reduced solution to the core equation is determined based on the reduced basis and the projection coefficients.

[0087] The preset force residual threshold mentioned in this embodiment can be artificially set in advance according to design requirements and optimization experience, for example, the preset force residual threshold is set to 0.1.

[0088] In the above-mentioned reduction calculation of the core equation, by judging the level of the force residual, the reduced solution with low computational cost is used instead of the global solution with high computational cost in each iteration to solve the core equation, thereby improving the computational efficiency, reducing the computational time, and reducing the total computational cost. If the force residual is unreasonable, then in this specific iteration step, the reduced solution will be discarded and the global solution of the core equation will be re-solved to form a new sample matrix, so as to dynamically update and improve the reduced basis in real time, ensuring that the result obtained after the reduction is within the set error range.

[0089] Furthermore, in this embodiment, when i=N b When the number of iterations i satisfies i>N, it is necessary to retain the left singular eigenvector corresponding to the maximum singular value of the preset truncation number. bWhen the force residual is greater than the preset force residual threshold, the left singular eigenvector corresponding to the maximum singular value of the preset cutoff number also needs to be retained. The preset cutoff number can be determined according to the following formula:

[0090]

[0091] Among them, M represents the sample size, m represents the preset cutoff number, and ε truc Indicates the preset error limit; λ i represents the ith eigenvalue of the centered sample matrix. truc It is a custom error limit, usually above 90%.

[0092] The core equations are solved in a multi-fidelity global manner, including: solving the core equations using a multi-grid iterative algorithm, and using the obtained approximate solution as the global solution.

[0093] The multigrid iterative algorithm is a fast iterative algorithm for solving linear equations derived from boundary value problems of partial differential equations. Its computational workload is only proportional to the first power of the number of degrees of freedom of the problem, and the convergence speed is independent of the size of the grid. It converges faster and has higher accuracy than the commonly used classical iterative algorithms, and is very suitable for solving large and ultra-large numerical problems.

[0094] The basic principle of the multi-grid iterative algorithm is to introduce a set of nested coarse grid sequences, first place the original equation on the finest grid for relaxation and iteration, and then project the system residual layer by layer onto the coarsest grid through the restriction operator after the high-frequency component of the error is quickly smoothed out. At this time, the residual equation is relaxed to eliminate the low-frequency component of the error, and then the error is transferred back to the finest grid layer by layer through the extension operator, that is, coarse grid correction, to obtain an approximate solution to the original equation.

[0095] From the perspective of modularity and portability of program design, a standard grid coarsening strategy is generally adopted, that is, all step sizes are doubled in all directions, and the cell size ratio of the coarse grid to the fine grid is 2, satisfying the nesting relationship: s represents the number of grid levels, generally 2≤s≤6, and the corresponding coarse grid sequence is Figure 4 shown.

[0096] The smoothing operator relaxes the equations on the fine grid to quickly eliminate high-frequency errors. Usually only a small number of iterations are required. The smoothing process is divided into two stages: pre-smoothing and post-smoothing. Since the equilibrium equations in large-scale topology optimization finite element analysis are highly sparse, symmetrical and positively definite, this embodiment uses the pre-conditioned conjugate gradient method as the smoothing operator for relaxation on the fine grid.

[0097] The following takes the calculation of equilibrium equations as an example to introduce the extension operator and restriction operator of the multi-grid iterative algorithm.

[0098] Consider the grid Ω i Balanced equation on: K (i) u (i) =f (i) ,i=1,2,…,s,u (i) byu (i+1) The interpolation form is:

[0099] Here, The coarse grid Ω i+1 Towards fine grid Ω i The extension operator is used to extend the balance equation error to the fine grid. Figure 4 What you want.

[0100] Similarly, in the fine grid Ω i The residual of the equilibrium equation d (i) =f (i) -K (i) u (i) Can be projected onto a coarse grid Ω i+1 superior,

[0101] Here, It is called fine grid Ω i To the coarse grid Ω i+1 The restriction operator is used to restrict the residual of the equation to the coarse grid. Figure 4 What you want.

[0102] Extension operator Linear interpolation is usually used, which is consistent with the finite element shape function principle, and the restriction operator The fully weighted format is usually used. Under this condition, and Transpose each other, that is For the extension operator It can be determined by the interpolation ratio of the corresponding values ​​at the coarse and fine grid points, such as Figure 5 As shown, the numbers represent the contribution fraction of the value of the central coarse grid point to the value of the neighboring fine grid point.

[0103] from Figure 5 It can be seen that the 8 vertex values ​​of a coarse grid unit are directly inherited by the fine grid points at the corresponding position, the fine grid point values ​​at the 6 face centers are the average of the 4 coarse grid vertex values ​​of the face, the fine grid point values ​​at the centers of the 12 edges are the average of the 2 coarse grid endpoint values ​​of the edge, and the fine grid point value at the body center is the average of the 8 vertex values ​​of the coarse grid unit.

[0104] When the fine grid Ω i The residual d (i)Projection onto the coarse grid Ω i+1 When K is added, the equilibrium equation on the coarse grid is obtained: (i+1) u (i+1) =f (i+1) ,i=1,2,…,s-1. Unknown quantity u (i+1) represents the coarse grid displacement, and the right-hand side term represents the coarse grid load, where the coefficient matrix K (i+1) Not yet determined, according to the Galerkin projection, K (i +1) Defined as:

[0105] It should be noted that K (1) represents the global stiffness matrix on the original single grid, obtained through three-dimensional finite element analysis, K (i) (i=1,2,…,s) are collectively referred to as coarse grid operators.

[0106] Taking the equilibrium equation Ku=f as an example, based on the concepts and definitions of the coarse grid sequence, smoothing operator, extension and interpolation operator and coarse grid operator introduced above, the equilibrium equation is solved by a multi-grid iterative algorithm, including the following steps.

[0107] Initialize the number of grid levels s and the coarse grid operator Extension operator Extension operator

[0108] Determine the relationship between the number of iteration steps and the number of grid levels.

[0109] If the number of iterations is equal to the number of grid levels, the displacement vector u (i) =(K (i) ) -1 f (i) Otherwise, perform the following steps: Perform forward smoothing to obtain the displacement vector approximate solution u (i) ; Calculate the residual of the equilibrium equation: d (i) =f (i) -K (i) u (i) ; Project the residual from the restriction operator onto the coarse grid: Order error Calculate v i+1 =MG(K (i+1) ,u (i+1) ,d (i+1) ,i+1); the error v i+1 Transferred to the fine grid by the continuation operator: Coarse grid correction: Perform post-smoothing to obtain the approximate solution u of the displacement vector (i) .

[0110] By using the above-mentioned multi-grid iterative algorithm to solve the core equations and taking the obtained approximate solution as the global solution, the amount of calculation is further reduced, the calculation efficiency is improved, and the calculation time is shortened.

[0111] In order to further optimize the efficiency while ensuring the target accuracy, this embodiment proposes an adaptive order reduction model to adaptively determine the preset force residual threshold, and its core idea is to adaptively select the force residual threshold according to the relative error change of the objective function value during the iteration process. Therefore, the iterative calculation also includes an adaptive order reduction model, and the adaptive order reduction model includes the following steps.

[0112] The relative error of the objective function is calculated according to the following formula:

[0113] like Then set the preset force residual threshold to zero; if Then let the preset force residual threshold be the initial force residual threshold; otherwise, let the preset force residual threshold be the product of the change factor and the initial force residual threshold; and the value of the change factor is greater than 1.

[0114] Among them, e c represents the relative error of the objective function, c i-1 , c i-2 Represent the objective function values ​​of the i-1th step and the i-1th iteration respectively, represents the relative error limit of the initial objective function, Represents the attenuation factor.

[0115] The attenuation factor and the variation factor used in the above-mentioned adaptive order reduction model are both set manually in advance. For example, the attenuation factor is set to 0.01 and the variation factor is set to 20.

[0116] The adaptive selection of the force residual threshold is roughly divided into three stages. In the first stage, the relative error of the objective function is large, the iteration is far from the convergence point, and the force residual is generally large, so the reduced solution is almost never called in the early stage of optimization. Since the reduced solution will not be called at the beginning, the global solution can be used directly, that is, the force residual threshold is set to zero, which can save some time. In the second stage, the relative error of the objective function drops to a certain range, the iteration gradually converges, and the reduced solution begins to be called. At this time, a smaller force residual threshold is used to ensure that the target accuracy is not lost too much. In the third stage, when the relative error of the objective function is further reduced, a larger force residual threshold is used. On the one hand, it is because the iteration process is already quite stable, and on the other hand, it can increase the number of calls to the reduced solution to save time.

[0117] In addition, the phenomenon of singular solutions in optimization problems originates from truss optimization problems. Some scholars have given corresponding mathematical explanations, pointing out that this phenomenon is mainly caused by the discontinuity of stress constraints. Some scholars have also pointed out that singular solutions also exist in continuum topology optimization with stress constraints, which manifests as strain in low-density areas, resulting in non-zero or even large stresses, while in fact the stress should be zero because the low-density area represents a void without material.

[0118] In order to solve the problem of singular solutions, the iterative calculation provided in this embodiment also includes: using a power function interpolation form to penalize the intermediate density value to avoid generating singular solutions. The specific format is as follows:

[0119]

[0120] Among them, σ e represents the penalized stress vector; represents the stress vector actually calculated at element e; q represents the stress penalty factor, which is usually less than 1 according to experience; D 0 represents the constitutive matrix of the solid material; B represents the strain-displacement matrix; u e Represents the resulting nodal displacement vector of element e.

[0121] According to σ e The vector form of σ e =(σ ex ,σ ey ,σ ez ,τ exy ,τ eyz ,τ ezx ) T , the calculation formula of the corresponding normal equivalent stress of unit e is:

[0122]

[0123] Stress is a local physical quantity. In order to more accurately control the structural stress level, the finite element mesh needs to be encrypted, resulting in a large number of local stress constraints, which significantly increases the computational cost of the sensitivity analysis of stress constraints. Iterative calculations also include: using the P-norm aggregation function to approximate the maximum local stress value, so that a large number of local stress constraints can be transformed into a global stress constraint. The P-norm aggregation function is as follows:

[0124]

[0125] in, represents the cohesion factor. Theoretically, when As it approaches infinity, we have:

[0126]

[0127] However, the actual can only take finite values, so for σ PN Make the following corrections:

[0128]

[0129] Among them, the correction factor Therefore, the stress constraint in equation (2) can be replaced by the following form:

[0130]

[0131] The following is a calculation example to illustrate the topology optimization method provided by this embodiment in detail. Figure 6 As shown, the structural model is an L-beam.

[0132] The length, height and width of the L-shaped beam design domain are 60×60×8. The design domain is discretized using a standard eight-vertex hexahedron unit with a unit volume. The size is 60×60×8. The upper surface is a fixed support surface. The line load f is distributed on the corresponding nodes along the z-axis direction, vertically downward, and the magnitude is 1. In order to avoid excessive stress at the load application point, the load f is evenly distributed from the upper right corner along the negative direction of the y-axis to the 6 adjacent nodes.

[0133] Define relevant parameters: volume fraction limit v f = 0.2, Poisson's ratio v = 0.3, SIMP penalty factor p = 3, Young's modulus Its lower limit value E min =10 -9 , using density filtering method, filtering radius R = 2.5, the number of grid levels in the multi-grid iterative algorithm s = 3, according to the minimum V cycle number K min Calculate the formula and determine the number of iterations of the multi-grid iterative algorithm to be 1. Stress upper limit P-norm aggregation factor The stress penalty factor q = 0.8. The convergence condition of the optimization iteration is that the relative change of any unit density value does not exceed Tol = 0.01%, or the maximum number of iteration steps is 300.

[0134] Sample size N of the equilibrium equation b =6, the sample size of the adjoint equation Force residual threshold for equilibrium equations Force residual threshold for adjoint equation The relevant calculation results are shown in the following table.

[0135]

[0136] Among them, MF-ROM means that only the equilibrium equation is processed by order reduction calculation, and Bi-ROM means that both the equilibrium equation and the adjoint equation are calculated by order reduction calculation. Bi-ROM is called a double reduction model.

[0137] From the above table, we can see that compared with MF-ROM, Bi-ROM can further save the calculation time of topology optimization because it also implements order reduction calculation for the adjoint equation. At the same time, its corresponding optimal objective function value is very close to the optimal objective function value corresponding to MF-ROM and the reference model. This shows that Bi-ROM can further improve the optimization efficiency to a certain extent when the target accuracy loss is very small.

[0138] The optimal topology, flexibility convergence curve and maximum von Mises stress (paradigm equivalent stress) curve of the three models are given below. Fig. 7A , Figure 7B , Figure 7C , Fig. 8A and Figure 8B As shown. Among them, Fig. 7A is a schematic diagram of the optimal topology of the reference model. Figure 7B This is a schematic diagram of the optimal topology of MF-ROM. Figure 7C Schematic diagram of the optimal topology of Bi-ROM.

[0139] from Figures 7A-7C It can be seen that the topological configuration of Bi-ROM is basically consistent with the reference model and the topological configuration of MF-ROM. Fig. 8A It can be seen that the compliance convergence curves of the three models are highly consistent, which shows that Bi-ROM can fully guarantee the target accuracy under a given set of sample numbers and force residual thresholds. Figure 8B It can be seen that the curves of the three models are basically consistent, and it can be found that the maximum von Mises stress value of the final structure is around 0.4, which is lower than the given stress upper limit, which better controls the stress level of the structure and ensures the strength of the structure.

[0140] The optimization results of the double-reduction model (Bi-ROM) and the adaptive reduced-order model (Adap-ROM) are further compared below.

[0141] Sample size N of the equilibrium equation b =4, the sample size of the adjoint equation Initial force residual threshold for equilibrium equations Force residual threshold for adjoint equation The change factor of the equilibrium equation θ = 20, and the change factor of the accompanying equation θ * =120, the initial relative error limit of the objective function The attenuation factor of the objective function ζ=0.01, and the corresponding calculation results are shown in the following table.

[0142]

[0143] Compared with the double reduction model, the iteration time and target accuracy (reflected by the relative error of the optimal flexibility) of the adaptive reduced-order model are a compromise calculation result. On the one hand, compared with only taking a smaller force residual threshold When , the iteration time is reduced (from 4319.71 seconds to 4230.49 seconds); on the other hand, the comparison only takes a larger force residual threshold When , the target accuracy is improved by two orders of magnitude (the error is reduced from 0.4147 to 0.0078). Therefore, the adaptive reduced-order model can effectively balance the target accuracy and optimization efficiency.

[0144] Fig. 9A is the optimal topology diagram of the adaptive order reduction model. Fig. 9B The initial force residual threshold for the double reduction model in the equilibrium equation Force residual threshold for adjoint equation Schematic diagram of the optimal topology when Fig. 9C The initial force residual threshold for the double reduction model in the equilibrium equation Force residual threshold for adjoint equation Schematic diagram of the optimal topology when . Fig.10 Comparison of the change curves of the relative error of the objective function value of the double reduction model and the adaptive reduced-order model during the iteration process.

[0145] Depend on Fig.10 It can be seen that the adaptive reduced-order model and the initial force residual threshold in the equilibrium equation Force residual threshold for adjoint equation The relative error curve of the objective function value of the double reduction model is generally at the initial force residual threshold of the equilibrium equation. Force residual threshold for adjoint equation The objective function value relative error curve of the double reduction model at the time of . In addition, in the first half of the optimization iteration, the adaptive reduction model uses a set of smaller force residual thresholds, and the adaptive reduction model is different from the initial force residual threshold of the equilibrium equation. Force residual threshold for adjoint equation In the second half of the optimization iteration, the adaptive order reduction model uses a larger force residual threshold, and the two curves basically fluctuate within a small error limit of 0.00005. Although the curve of the adaptive order reduction model oscillates violently, when the maximum number of iterations is 300, its relative error value is far lower than the initial force residual threshold of the equilibrium equation. Force residual threshold for adjoint equation This shows that the adaptive reduced-order model can guarantee the target accuracy even when a larger force residual threshold is used.

[0146] from Fig.11A and Fig. 11B It can be seen that the evolution curves of the two force residuals of the equilibrium equation and the adjoint equation in the iterative process of the adaptive order reduction model can be roughly divided into three stages. The first stage is completely on the small threshold line Above, the global solution is called at this time, and the reduced solution is not used. This section of the curve is Fig.10 The second stage is the fluctuation above the smaller threshold line, at which time the reduced solution is used. Fig.10 The error limit is 0.00005-0.005. The third stage is completely on the larger threshold line. Below, note that the curve of the double reduction model with a smaller force residual threshold is at its threshold line The fluctuations indicate that the number of reduced demodulation calls is less than that of the adaptive reduced order model. Therefore, the adaptive reduced order model saves some time compared with the double reduced model under the condition of smaller force residual threshold.

[0147] Comprehensive Fig.10 , Fig.11A and Fig. 11B The result analysis shows that the force residual threshold of the adaptive reduced-order model can be adaptively selected from small to large according to the change of the relative error of the objective function, which can further save the optimization time while ensuring the target accuracy.

[0148] Although the present application provides method operation steps such as embodiments or flow charts, more or fewer operation steps may be included based on conventional or non-creative work. The order of steps listed in this embodiment is only one way of executing the order of many steps and does not represent the only execution order. When the actual device or client product is executed, it can be executed in the order of the method shown in this embodiment or the drawings or in parallel (for example, in a parallel processor or multi-threaded processing environment).

[0149] This embodiment also provides a multi-fidelity dynamic reduction topology optimization device, such as Fig.12 As shown, the multi-fidelity dynamic reduction topology optimization device includes a construction module 401, a finite element module 402 and an iterative calculation module 403.

[0150] The construction module 401 is used to construct the objective function and constraint conditions, and set the convergence accuracy and the maximum number of iteration steps; wherein the constraint conditions include volume constraint and stress constraint.

[0151] The finite element module 402 is used to discretize the structural model into finite element meshes and apply loads.

[0152] The iterative calculation module 403 is used to perform iterative calculation until the iterative result reaches the convergence accuracy or the number of iterative steps reaches the maximum number of iterative steps. It includes steps S201 to S204.

[0153] Step S201: Calculate the overall stiffness of the structural model.

[0154] Step S202: Perform dynamic order reduction calculation on the core equation, wherein the core equation includes the equilibrium equation and the adjoint equation.

[0155] Step S203: Calculate the objective function and its sensitivity, as well as the constraint conditions and their sensitivity.

[0156] Step S204: Optimize and solve and update design variables.

[0157] The multi-fidelity dynamic reduction topology optimization device reduces the equilibrium equation and the adjoint equation in the iterative calculation, which greatly reduces the amount of calculation, thereby reducing the numerical calculation time and reducing the cost of topology optimization of the structural model.

[0158] When performing order reduction calculation on the core equation, the iterative calculation module 403 needs to determine the relationship between the iteration step number i and the sample capacity, which specifically includes the following situations.

[0159] When the number of iterations i satisfies 1≤i≤N b When , the core equation is solved in a multi-fidelity global domain, and the global solution is added to the sample matrix; where N b Indicates the sample size.

[0160] And, when i=N b It is also necessary to centralize the sample matrix and perform singular value decomposition on the obtained centralized sample matrix, retaining the left singular eigenvector corresponding to the maximum singular value of the preset cutoff number, and obtain the reduced basis.

[0161] When the iteration number i satisfies i>N b When the linear expression of the reduced solution is constructed, the projection coefficient is determined by the reduced-order model; and the force residual of the core equation is calculated to determine the relationship between the force residual and the preset force residual threshold.

[0162] If the force residual is greater than the preset force residual threshold, step S301 and step S302 are executed. Figure 3 shown.

[0163] Step S301: Delete the first global solution in the sample matrix, perform multi-fidelity global solution on the core equation, and add the obtained global solution to the sample matrix.

[0164] Step S302: performing a centering process on the sample matrix and performing singular value decomposition on the obtained centralized sample matrix, retaining the left singular eigenvector corresponding to the maximum singular value of the preset truncation number, and obtaining an updated reduced basis.

[0165] If the force residual is less than or equal to a preset force residual threshold, a reduced solution of the core equation is determined based on the reduced basis and the projection coefficients.

[0166] Furthermore, in this embodiment, when i=N b When the number of iterations i satisfies i>N, it is necessary to retain the left singular eigenvector corresponding to the maximum singular value of the preset truncation number. b When the force residual is greater than the preset force residual threshold, the left singular eigenvector corresponding to the maximum singular value of the preset cutoff number also needs to be retained. The preset cutoff number can be determined according to the following formula:

[0167]

[0168] Among them, M represents the sample size, m represents the preset cutoff number, and ε truc Indicates the preset error limit; λ i represents the ith eigenvalue of the centered sample matrix. truc It is a custom error limit, usually above 90%.

[0169] The core equation is solved globally, including: using a multi-grid iterative algorithm to solve the core equation, and using the obtained approximate solution as the global solution.

[0170] In order to further optimize the efficiency while ensuring the target accuracy, this embodiment proposes an adaptive order reduction model to adaptively determine the preset force residual threshold, and its core idea is to adaptively select the force residual threshold according to the relative error change of the objective function value during the iteration process. Therefore, the iterative calculation also includes an adaptive order reduction model, and the adaptive order reduction model includes the following steps.

[0171] The relative error of the objective function is calculated according to the following formula:

[0172] like Then set the preset force residual threshold to zero; if Then let the preset force residual threshold be the initial force residual threshold; otherwise, let the preset force residual threshold be the product of the change factor and the initial force residual threshold; and the value of the change factor is greater than 1.

[0173] Among them, e c represents the relative error of the objective function, c i-1 , c i-2 Represent the objective function values ​​of the i-1th step and the i-1th iteration respectively, represents the relative error limit of the initial objective function, Represents the attenuation factor.

[0174] The attenuation factor and the variation factor used in the above-mentioned adaptive order reduction model are both set manually in advance. For example, the attenuation factor is set to 0.01 and the variation factor is set to 20.

[0175] In addition, the phenomenon of singular solutions in optimization problems originates from truss optimization problems. Some scholars have given corresponding mathematical explanations, pointing out that this phenomenon is mainly caused by the discontinuity of stress constraints. Some scholars have also pointed out that singular solutions also exist in continuum topology optimization with stress constraints, which manifests as strain in low-density areas, resulting in non-zero or even large stresses, while in fact the stress should be zero because the low-density area represents a void without material.

[0176] In order to solve the problem of singular solutions, the iterative calculation provided in this embodiment further includes: using a power function interpolation form to penalize intermediate density values ​​to avoid generating singular solutions.

[0177] Stress is a local physical quantity. In order to more accurately control the structural stress level, the finite element mesh needs to be encrypted, resulting in a large number of local stress constraints, which significantly increases the computational cost of the sensitivity analysis of stress constraints. Iterative calculations also include: using the P-norm aggregation function to approximate the maximum local stress value, so that a large number of local stress constraints can be transformed into a global stress constraint.

[0178] The calculation method involved in the multi-fidelity dynamic reduction topology optimization device provided in this embodiment can be specifically referred to the description of the topology optimization method in this embodiment.

[0179] The devices or modules described in the above embodiments can be implemented by computer chips or entities, or by products with certain functions. For the convenience of description, the above devices are described in various modules according to their functions. When implementing this application, the functions of each module can be implemented in the same or multiple software and / or hardware. Of course, the module that implements a certain function can also be implemented by combining multiple sub-modules or sub-units.

[0180] Some modules in the apparatus of the present application may be described in the general context of computer executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, classes, etc. that perform specific tasks or implement specific abstract data types. The present application may also be practiced in distributed computing environments, where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0181] This embodiment also provides a multi-fidelity dynamic reduction topology optimization device, such as Fig.13 The multi-fidelity dynamic reduction topology optimization device shown includes a memory 501 and a processor 502. The memory 501 is used to store computer executable instructions. The processor 502 is used to execute computer executable instructions to implement the multi-fidelity dynamic reduction topology optimization method provided in this embodiment.

[0182] This embodiment also provides a computer-readable storage medium, which stores executable instructions. The computer executes the executable instructions to implement the multi-fidelity dynamic reduction topology optimization method provided in this embodiment.

[0183] The above storage media include but are not limited to random access memory (RAM), read-only memory (ROM), cache, hard disk (HDD) or memory card. The memory can be used to store computer program instructions.

[0184] The method, device or module in the present application can be implemented in the form of a computer-readable program code. The controller can be implemented in any appropriate manner. For example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (English: Application Specific Integrated Circuit; Abbreviation: ASIC), a programmable logic controller and an embedded microcontroller. Examples of controllers include but are not limited to the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included in it for implementing various functions can also be regarded as structures within the hardware component. Or even, the means for realizing various functions may be regarded as both a software module for realizing the method and a structure within a hardware component.

[0185] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. All or part of this application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld devices or portable devices, tablet devices, mobile communication terminals, multi-processor systems, microprocessor-based systems, programmable electronic devices, distributed computing environments including any of the above systems or devices, etc.

[0186] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit the present application. Although the present application has been described in detail with reference to the aforementioned embodiments, a person of ordinary skill in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some or all of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the present application.

Claims

1. A multi-fidelity dynamic reduction topology optimization method, characterized in that: include: Constructing an objective function and constraint conditions, and setting convergence accuracy and a maximum number of iteration steps; wherein the constraint conditions include volume constraint and stress constraint; Discretize the structural model into finite element mesh and apply loads; Perform iterative calculation until the iterative result reaches the convergence accuracy or the number of iterative steps reaches the maximum number of iterative steps; the iterative calculation includes the following steps: calculating the overall stiffness of the structural model; Performing dynamic order reduction calculation on the core equation; wherein the core equation includes the equilibrium equation and the adjoint equation; Calculating the objective function and its sensitivity, and the constraint conditions and their sensitivity; Optimize and solve and update design variables; The dynamic order reduction calculation of the core equation includes: When the number of iteration steps i satisfies 1≤i≤N b , the core equation is solved in a multi-fidelity global domain, and the obtained global solution is added to the sample matrix; where N b represents the sample size; And, when i=N b , performing a centralization process on the sample matrix and performing a singular value decomposition on the obtained centralized sample matrix, retaining the left singular eigenvector corresponding to the maximum singular value of the preset cutoff number, and obtaining a reduced basis; When the number of iterations i satisfies i>N b , constructing a linear expression of the reduced solution, determining the projection coefficient through the reduced-order model; and calculating the force residual of the core equation, and determining the relationship between the force residual and a preset force residual threshold; If the force residual is greater than the preset force residual threshold, the following steps are performed: The first global solution in the sample matrix is ​​deleted, the core equation is solved globally with multi-fidelity, and the obtained global solution is added to the sample matrix; Centralizing the sample matrix and performing singular value decomposition on the obtained centralized sample matrix, retaining the left singular eigenvector corresponding to the maximum singular value of the preset truncation number, and obtaining the updated reduced basis; If the force residual is less than or equal to the preset force residual threshold, the reduced solution of the core equation is determined according to the reduced basis and the projection coefficient.

2. The multi-fidelity dynamic reduction topology optimization method according to claim 1, characterized in that: The preset cutoff number is determined according to the following formula: Wherein, M represents the sample size, m represents the preset cutoff number, ε truc Indicates the preset error limit; λ i represents the i-th eigenvalue of the centered sample matrix.

3. The multi-fidelity dynamic reduction topology optimization method according to claim 1, characterized in that: The multi-fidelity global solution of the core equation includes: The core equation is solved using a multi-grid iterative algorithm, and the obtained approximate solution is used as the global solution.

4. The multi-fidelity dynamic reduction topology optimization method according to claim 1, characterized in that: The iterative calculation also includes: The relative error of the objective function is calculated according to the following formula to adaptively determine the preset force residual threshold; like Then the preset force residual threshold is set to zero; like Then let the preset force residual thresholds be the initial force residual thresholds; Otherwise, the preset force residual threshold is the product of the change factor and the initial force residual threshold; and the value of the change factor is greater than 1; Among them, e c represents the relative error of the objective function, c i-1 , c i-2 Represent the objective function values ​​of the i-1th step and the i-1th iteration respectively, represents the relative error limit of the initial objective function, Represents the attenuation factor.

5. The multi-fidelity dynamic reduction topology optimization method according to claim 1, characterized in that: The iterative calculation also includes: using a power function interpolation form to penalize intermediate density values ​​to avoid generating singular solutions.

6. The multi-fidelity dynamic reduction topology optimization method according to claim 5, characterized in that: The iterative calculation also includes: using a P-norm aggregation function to approximate the maximum local stress value, so as to transform a large number of local stress constraints into a global stress constraint.

7. A multi-fidelity dynamic reduction topology optimization device, characterized in that: The device is used to implement the method according to any one of claims 1 to 6, comprising: A construction module is used to construct an objective function and constraint conditions, and set convergence accuracy and a maximum number of iteration steps; wherein the constraint conditions include volume constraints and stress constraints; Finite element module, used to discretize the structural model into finite element mesh and apply loads; The iterative calculation module is used to perform iterative calculation until the iterative result reaches the convergence accuracy or the number of iterative steps reaches the maximum number of iterative steps; the iterative calculation includes the following steps: calculating the overall stiffness of the structural model; Performing dynamic order reduction on the core equation and calculating the reduced solution of the core equation; wherein the core equation includes the equilibrium equation and the adjoint equation; calculating the sensitivity of the objective function; The optimization solves and updates the design variables.

8. A multi-fidelity dynamic reduction topology optimization device, characterized in that: including memory and processor; The memory is used to store computer executable instructions; The processor is used to execute the computer executable instructions, and can implement the method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores executable instructions, and a computer executing the executable instructions can implement the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • BESO topological optimization method based on dynamic evolution rate and adaptive grid and application of BESO topological optimization method

    CN111737839A

  • Stress and strain energy double-constraint topological optimization method based on variable density method

    CN112100774A

  • Structural rigidity efficient topological optimization method and application thereof

    CN112100877A

  • BESO topology optimization method based on dynamic evolution rate and adaptive grid

    JP6856286B1