[go: up one dir, main page]

CN114386299A - Topological optimization method and device based on PDE and storage medium - Google Patents

Topological optimization method and device based on PDE and storage medium Download PDF

Info

Publication number
CN114386299A
CN114386299A CN202111559551.8A CN202111559551A CN114386299A CN 114386299 A CN114386299 A CN 114386299A CN 202111559551 A CN202111559551 A CN 202111559551A CN 114386299 A CN114386299 A CN 114386299A
Authority
CN
China
Prior art keywords
optimization model
topology optimization
structural
sensitivity
finite element
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111559551.8A
Other languages
Chinese (zh)
Inventor
张岐良
孟换利
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sun Yat Sen University
Original Assignee
Sun Yat Sen University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sun Yat Sen University filed Critical Sun Yat Sen University
Priority to CN202111559551.8A priority Critical patent/CN114386299A/en
Publication of CN114386299A publication Critical patent/CN114386299A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • G06F30/23Design optimisation, verification or simulation using finite element methods [FEM] or finite difference methods [FDM]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2111/00Details relating to CAD techniques
    • G06F2111/04Constraint-based CAD
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2111/00Details relating to CAD techniques
    • G06F2111/10Numerical modelling

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Complex Calculations (AREA)

Abstract

本发明公开了基于PDE的拓扑优化方法、装置及存储介质。该传输方法通过根据有限元分析离散方法构造Helmholtz型偏微分方程的等价线性方程组,根据多重网格预处理共轭梯度法计算所述等价线性方程组的节点灵敏度过滤结果,将过滤后的所述节点灵敏度映射至所述第二结构拓扑优化模型的单元灵敏度得到第三结构拓扑优化模型;根据OC准则更新结构拓扑优化模型的设计变量;针对结构拓扑优化模型重复有限元分析、灵敏度过滤和更新设计变量的操作过程直至所述结构拓扑优化模型满足预设的收敛条件后,输出最终的结构拓扑优化模型。本发明技术方案减少了拓扑优化的时间,提高了拓扑优化的效率。

Figure 202111559551

The invention discloses a PDE-based topology optimization method, device and storage medium. The transmission method constructs the equivalent linear equation system of the Helmholtz type partial differential equation according to the discrete method of finite element analysis, calculates the node sensitivity filtering result of the equivalent linear equation system according to the multi-grid preprocessing conjugate gradient method, and filters the filtered results. The node sensitivity is mapped to the element sensitivity of the second structure topology optimization model to obtain a third structure topology optimization model; the design variables of the structure topology optimization model are updated according to the OC criterion; the finite element analysis and sensitivity filtering are repeated for the structure topology optimization model. and the operation process of updating the design variables until the structural topology optimization model satisfies the preset convergence condition, and then the final structural topology optimization model is output. The technical scheme of the invention reduces the time of topology optimization and improves the efficiency of topology optimization.

Figure 202111559551

Description

一种基于PDE的拓扑优化方法、装置及存储介质A PDE-based topology optimization method, device and storage medium

技术领域technical field

本发明涉及拓扑优化技术领域,尤其涉及基于PDE的拓扑优化方法、装置及存储介质。The present invention relates to the technical field of topology optimization, in particular to a PDE-based topology optimization method, device and storage medium.

背景技术Background technique

结构拓扑优化是指在限定的结构设计空间中,通过一定的优化方法,寻找满足设计约束的结构最优拓扑结构。结构优化设计技术已经遍布于工程实际的各个领域,包括航空航天、汽车制造、船舶行业、手机通讯、生物工程及土木工程等均以得到成功的应用。传统的结构拓扑优化过程中灵敏度过滤和密度过滤算法时间长、计算效率低,使得对于实际问题中的大规模数值模拟从邻域内获取其它单元信息变成一项昂贵的操作,同时,随着网格划分的越来越密,计算的时间会越来越长。传统的PDE过滤技术应用于结构拓扑优化时,随着网格规模增大,其线性方程组会出现条件数过大,即导致出现模型病态的情形,同时,采用直接法求解该线性方程组时耗时长,进而使得结构拓扑优化时间过长。Structural topology optimization refers to finding the optimal topology structure that satisfies the design constraints through a certain optimization method in a limited structural design space. Structural optimization design technology has spread in various fields of engineering practice, including aerospace, automobile manufacturing, shipbuilding industry, mobile communication, biological engineering and civil engineering, etc., all of which have been successfully applied. In the traditional structural topology optimization process, the sensitivity filtering and density filtering algorithms are time-consuming and computationally inefficient, making it an expensive operation to obtain other unit information from the neighborhood for large-scale numerical simulations in practical problems. The grid is divided more and more densely, and the calculation time will be longer and longer. When the traditional PDE filtering technology is applied to the structural topology optimization, with the increase of the grid size, the condition number of the linear equation system will be too large, that is, the model will be ill-conditioned. At the same time, when the direct method is used to solve the linear equation system It takes a long time, which makes the structure topology optimization time too long.

发明内容SUMMARY OF THE INVENTION

本发明提供了基于PDE的拓扑优化方法、装置及存储介质,大大减少了拓扑优化的时间,提高了拓扑优化的效率。The invention provides a PDE-based topology optimization method, device and storage medium, which greatly reduces the topology optimization time and improves the topology optimization efficiency.

本发明一实施例提供一种基于PDE的拓扑优化方法,包括以下步骤:An embodiment of the present invention provides a PDE-based topology optimization method, comprising the following steps:

初始化第一结构拓扑优化模型的参数,定义所述结构拓扑优化模型的设计区域、约束条件和荷载;Initializing the parameters of the first structural topology optimization model, and defining the design area, constraint conditions and loads of the structural topology optimization model;

针对所述第一结构拓扑优化模型的设计区域划分有限元网络,得到相应的有限元模型,直至所述有限元模型符合第一预设条件则停止划分有限元网络;在所述有限元模型的基础上,建立SIMP柔性结构拓扑优化模型;The finite element network is divided according to the design area of the first structural topology optimization model, and the corresponding finite element model is obtained, and the division of the finite element network is stopped until the finite element model meets the first preset condition; On this basis, the topology optimization model of SIMP flexible structure is established;

有限元分析:对所述SIMP柔性结构拓扑优化模型进行有限元分析,根据所述SIMP柔性结构拓扑优化模型的各个约束条件,计算所述SIMP柔性结构拓扑优化模型的各个单元刚性矩阵、总体刚度矩阵、节点位移、柔度和灵敏度,得到第二结构拓扑优化模型;Finite element analysis: perform finite element analysis on the SIMP flexible structure topology optimization model, and calculate each element stiffness matrix and overall stiffness matrix of the SIMP flexible structure topology optimization model according to each constraint condition of the SIMP flexible structure topology optimization model , node displacement, flexibility and sensitivity to obtain the second structural topology optimization model;

灵敏度过滤:根据有限元分析离散方法构造Helmholtz型偏微分方程的等价线性方程组,根据多重网格预处理共轭梯度法计算所述等价线性方程组的节点灵敏度过滤结果,将过滤后的所述节点灵敏度映射至所述第二结构拓扑优化模型的单元灵敏度得到第三结构拓扑优化模型;Sensitivity filtering: Construct the equivalent linear equation system of Helmholtz-type partial differential equations according to the discrete method of finite element analysis, calculate the node sensitivity filtering results of the equivalent linear equation system according to the multi-grid preprocessing conjugate gradient method, and filter the filtered The node sensitivity is mapped to the element sensitivity of the second structure topology optimization model to obtain a third structure topology optimization model;

更新设计变量:根据OC准则更新所述第三结构拓扑优化模型的设计变量;Update design variables: update the design variables of the third structural topology optimization model according to the OC criterion;

针对所述第三结构拓扑优化模型重复所述有限元分析、灵敏度过滤和更新设计变量的操作过程直至所述第三结构拓扑优化模型满足预设的收敛条件后,输出所述第三结构拓扑优化模型。Repeat the operations of finite element analysis, sensitivity filtering and updating design variables for the third structural topology optimization model until the third structural topology optimization model satisfies the preset convergence condition, and output the third structural topology optimization Model.

进一步的,所述SIMP柔性结构拓扑优化模型表示为:Further, the SIMP flexible structure topology optimization model is expressed as:

Figure BDA0003420086480000021
Figure BDA0003420086480000021

Figure BDA0003420086480000022
Figure BDA0003420086480000022

F=KUF=KU

0<xmin≤xi≤xmax≤10<x min ≤x i ≤x max ≤1

式中,目标函数C为拓扑结构的总体柔度,F为力向量,U为位移列阵,K为拓扑结构的总刚度矩阵,xi为单元相对密度,ui为节点位移,ki,k0为单元刚度矩阵,V是优化后的结构体积,V*为结构体积约束,V0为整个设计域的初始体积,f为优化体积比,vi为优化后的单元体积,xmin和xmax为单元相对密度的最小极限值和最大极限值,N为拓扑结构离散单元总数。In the formula, the objective function C is the overall compliance of the topology structure, F is the force vector, U is the displacement array, K is the total stiffness matrix of the topology structure, x i is the relative density of the element, u i is the node displacement, k i , k0 is the element stiffness matrix, V is the optimized structural volume, V * is the structural volume constraint, V0 is the initial volume of the entire design domain, f is the optimized volume ratio, vi is the optimized element volume, x min and x max is the minimum limit value and maximum limit value of the relative density of cells, and N is the total number of discrete elements in the topology.

进一步的,将过滤后的所述节点灵敏度映射至所述第二结构拓扑优化模型的单元灵敏度得到第三结构拓扑优化模型后,更新设计变量之前,根据二分法更新所述第三结构拓扑优化模型的拉格朗日乘子,直至所述第三结构拓扑优化模型满足预设的体积约束条件。Further, after the filtered node sensitivity is mapped to the element sensitivity of the second structure topology optimization model to obtain the third structure topology optimization model, before updating the design variables, the third structure topology optimization model is updated according to the dichotomy method. , until the third structural topology optimization model satisfies the preset volume constraints.

进一步的,根据有限元分析离散方法构造Helmholtz型偏微分方程的等价线性方程组,具体为:Further, according to the discrete method of finite element analysis, an equivalent linear equation system of Helmholtz-type partial differential equations is constructed, specifically:

将节点灵敏度过滤作为具有Neumann边界条件的Helmholtz型微分方程的解,经有限元离散所述Helmholtz型微分方程得到其等价线性方程组。Taking the nodal sensitivity filter as the solution of the Helmholtz-type differential equation with Neumann boundary conditions, the Helmholtz-type differential equation is discretized by finite element to obtain its equivalent linear equation system.

进一步的,根据多重网格预处理共轭梯度法计算所述等价线性方程组的节点灵敏度过滤结果,将过滤后的所述节点灵敏度映射至所述第二结构拓扑优化模型的单元灵敏度得到第三结构拓扑优化模型,具体为:Further, the node sensitivity filtering result of the equivalent linear equation system is calculated according to the multi-grid preprocessing conjugate gradient method, and the filtered node sensitivity is mapped to the unit sensitivity of the second structural topology optimization model to obtain the No. Three-structure topology optimization model, specifically:

根据多重网格V循环预处理方法降低所述等价线性方程组的系数矩阵的条件数,得到预处理线性方程组,在预处理方法中对出现的含有预处理算子的方法用多重网格算法求解;According to the multigrid V-loop preprocessing method, the condition number of the coefficient matrix of the equivalent linear equation system is reduced to obtain the preprocessing linear equation system. In the preprocessing method, the multigrid is used for the method containing the preprocessing operator. algorithm solution;

根据共轭梯度算法求解所述预处理线性方程组,得到所述预处理线性方程组的节点灵敏度过滤结果,将所述节点灵敏度过滤结果映射至所述第二结构拓扑优化模型的单元灵敏度过滤结果,得到第三结构拓扑优化模型。The preprocessing linear equation system is solved according to the conjugate gradient algorithm, the node sensitivity filtering result of the preprocessing linear equation system is obtained, and the node sensitivity filtering result is mapped to the unit sensitivity filtering result of the second structural topology optimization model , the third structural topology optimization model is obtained.

本发明另一实施例提供了一种基于PDE的拓扑优化装置,包括拓扑模型初始化模块、建立柔性拓扑模块、有限元分析模块、灵敏度过滤模块、更新设计变量模块和优化结果检测模块;Another embodiment of the present invention provides a PDE-based topology optimization device, including a topology model initialization module, a flexible topology establishment module, a finite element analysis module, a sensitivity filtering module, a design variable update module, and an optimization result detection module;

所述拓扑模型初始化模块用于初始化第一结构拓扑优化模型的参数,定义所述结构拓扑优化模型的设计区域、约束条件和荷载;The topology model initialization module is used to initialize the parameters of the first structural topology optimization model, and define the design area, constraints and loads of the structural topology optimization model;

所述建立柔性拓扑模块用于针对所述第一结构拓扑优化模型的设计区域划分有限元网络,得到相应的有限元模型,直至所述有限元模型符合第一预设条件则停止划分有限元网络;在所述有限元模型的基础上,建立SIMP柔性结构拓扑优化模型;The establishing flexible topology module is used to divide the finite element network according to the design area of the first structural topology optimization model to obtain the corresponding finite element model, and stop dividing the finite element network until the finite element model meets the first preset condition ; On the basis of the finite element model, establish a SIMP flexible structure topology optimization model;

所述有限元分析模块用于对所述SIMP柔性结构拓扑优化模型进行有限元分析,根据所述SIMP柔性结构拓扑优化模型的各个约束条件,计算所述SIMP柔性结构拓扑优化模型的各个单元刚性矩阵、总体刚度矩阵、节点位移、柔度和灵敏度,得到第二结构拓扑优化模型;The finite element analysis module is used to perform finite element analysis on the SIMP flexible structure topology optimization model, and calculate the rigidity matrices of each element of the SIMP flexible structure topology optimization model according to each constraint condition of the SIMP flexible structure topology optimization model , the overall stiffness matrix, node displacement, flexibility and sensitivity to obtain the second structural topology optimization model;

所述灵敏度过滤模块用于根据有限元分析离散方法构造Helmholtz型偏微分方程的等价线性方程组,根据多重网格预处理共轭梯度法计算所述等价线性方程组的节点灵敏度过滤结果,将过滤后的所述节点灵敏度映射至所述第二结构拓扑优化模型的单元灵敏度得到第三结构拓扑优化模型;The sensitivity filtering module is used to construct an equivalent linear equation system of Helmholtz type partial differential equations according to the discrete method of finite element analysis, and calculate the node sensitivity filtering result of the equivalent linear equation system according to the multigrid preprocessing conjugate gradient method, mapping the filtered node sensitivity to the element sensitivity of the second structure topology optimization model to obtain a third structure topology optimization model;

所述更新设计变量模块用于根据OC准则更新所述第三结构拓扑优化模型的设计变量;The updating design variable module is used for updating the design variables of the third structural topology optimization model according to the OC criterion;

所述优化结果检测模块用于针对所述第三结构拓扑优化模型重复所述有限元分析模块、灵敏度过滤模块和更新设计变量模块的操作过程直至所述第三结构拓扑优化模型满足预设的收敛条件后,输出所述第三结构拓扑优化模型。The optimization result detection module is configured to repeat the operation process of the finite element analysis module, the sensitivity filtering module and the updating design variable module for the third structural topology optimization model until the third structural topology optimization model satisfies a preset convergence After the conditions are met, the third structural topology optimization model is output.

进一步的,所述SIMP柔性结构拓扑优化模型表示为:Further, the SIMP flexible structure topology optimization model is expressed as:

Figure BDA0003420086480000041
Figure BDA0003420086480000041

Figure BDA0003420086480000042
Figure BDA0003420086480000042

F=KUF=KU

0<xmin≤xi≤xmax≤10<x min ≤x i ≤x max ≤1

式中,目标函数C为拓扑结构的总体柔度,F为力向量,U为位移列阵,K为拓扑结构的总刚度矩阵,xi为单元相对密度,ui是节点位移,ki,k0是单元刚度矩阵,V是优化后的结构体积,V*为结构体积约束,V0为整个设计域的初始体积,f为优化体积比,vi为优化后的单元体积,xmin和xmax为单元相对密度的最小极限值和最大极限值,N为拓扑结构离散单元总数。In the formula, the objective function C is the overall compliance of the topology structure, F is the force vector, U is the displacement array, K is the total stiffness matrix of the topology structure, x i is the relative density of the element, ui is the node displacement, k i , k0 is the element stiffness matrix, V is the optimized structural volume, V * is the structural volume constraint, V0 is the initial volume of the entire design domain, f is the optimized volume ratio, vi is the optimized element volume, x min and x max is the minimum limit value and maximum limit value of the relative density of cells, and N is the total number of discrete elements in the topology.

进一步地,将过滤后的所述节点灵敏度映射至所述第二结构拓扑优化模型的单元灵敏度得到第三结构拓扑优化模型后,更新设计变量之前,根据二分法更新所述第三结构拓扑优化模型的拉格朗日乘子,直至所述第三结构拓扑优化模型满足预设的体积约束条件。Further, after the filtered node sensitivity is mapped to the element sensitivity of the second structure topology optimization model to obtain the third structure topology optimization model, before updating the design variables, the third structure topology optimization model is updated according to the dichotomy method. , until the third structural topology optimization model satisfies the preset volume constraints.

进一步地,根据有限元分析离散方法构造Helmholtz型偏微分方程的等价线性方程组,根据多重网格预处理共轭梯度法计算所述等价线性方程组的节点灵敏度过滤结果,将过滤后的所述节点灵敏度映射至所述第二结构拓扑优化模型的单元灵敏度得到第三结构拓扑优化模型,具体为:Further, an equivalent linear equation system of Helmholtz type partial differential equations is constructed according to the discrete method of finite element analysis, and the node sensitivity filtering result of the equivalent linear equation system is calculated according to the multi-grid preprocessing conjugate gradient method, and the filtered The node sensitivity is mapped to the element sensitivity of the second structure topology optimization model to obtain a third structure topology optimization model, which is specifically:

将节点灵敏度过滤作为具有Neumann边界条件的Helmholtz型微分方程的解,经有限元离散所述Helmholtz型微分方程得到其等价线性方程组;The nodal sensitivity filter is taken as the solution of the Helmholtz-type differential equation with Neumann boundary conditions, and its equivalent linear equation system is obtained by the finite element discretization of the Helmholtz-type differential equation;

根据多重网格V循环预处理方法降低所述等价线性方程组的系数矩阵的条件数,得到预处理线性方程组,在预处理方法中对出现的含有预处理算子的方法用多重网格算法求解;According to the multigrid V-loop preprocessing method, the condition number of the coefficient matrix of the equivalent linear equation system is reduced to obtain the preprocessing linear equation system. In the preprocessing method, the multigrid is used for the method containing the preprocessing operator. algorithm solution;

根据共轭梯度算法求解所述预处理线性方程组,得到所述预处理线性方程组的节点灵敏度过滤结果,将所述节点灵敏度过滤结果映射至所述第二结构拓扑优化模型的单元灵敏度过滤结果,得到第三结构拓扑优化模型。The preprocessing linear equation system is solved according to the conjugate gradient algorithm, the node sensitivity filtering result of the preprocessing linear equation system is obtained, and the node sensitivity filtering result is mapped to the unit sensitivity filtering result of the second structural topology optimization model , the third structural topology optimization model is obtained.

本发明又一实施例提供一种可读存储介质,所述可读存储介质包括存储的计算机程序,所述计算机程序执行时,控制所述可读存储介质所在的设备执行本发明任意一项方法项实施例所述的基于PDE的拓扑优化方法。Yet another embodiment of the present invention provides a readable storage medium, where the readable storage medium includes a stored computer program, and when the computer program is executed, controls a device where the readable storage medium is located to perform any one of the methods of the present invention The PDE-based topology optimization method described in this embodiment.

本发明的实施例,具有如下有益效果:The embodiment of the present invention has the following beneficial effects:

本发明提供了一种基于PDE的拓扑优化方法、装置及存储介质,该方法通过对所述第一结构拓扑优化模型的设计区域划分有限元网络,得到有限元模型,再在所述有限元模型的基础上,建立SIMP柔性结构拓扑优化模型后,再对所述SIMP柔性结构拓扑优化模型进行有限元分析,得到第二结构拓扑优化模型;针对所述第二结构拓扑优化模型构造经有限元离散的Helmholtz型偏微分方程的等价线性方程组,再根据多重网格预处理共轭梯度法对所述等价线性方程组进行求解,即根据多重网格预处理共轭梯度法计算等价线性方程组的节点灵敏度过滤结果,将节点灵敏度过滤映射到单元灵敏度过滤,得到优化后的第三结构拓扑优化模型。本申请通过针对结构拓扑优化模型进行多次有限元分析,针对结构拓扑优化模型构造经有限元离散的Helmholtz型偏微分方程的等价线性方程组和根据多重网格预处理共轭梯度法计算等价线性方程组的节点灵敏度过滤结果,通过映射得到单元灵敏度过滤结果,极大地减少了结构拓扑优化的时间,提高了结构拓扑优化的效率。The present invention provides a PDE-based topology optimization method, device and storage medium. The method obtains a finite element model by dividing the design area of the first structural topology optimization model into a finite element network, and then adds the finite element model to the finite element model. On the basis of , after establishing the SIMP flexible structure topology optimization model, the finite element analysis is performed on the SIMP flexible structure topology optimization model to obtain a second structure topology optimization model; for the second structure topology optimization model, the structure is discrete by finite element. The equivalent linear equations of the Helmholtz-type partial differential equations, and then the equivalent linear equations are solved according to the multigrid preprocessing conjugate gradient method, that is, the equivalent linear equations are calculated according to the multigrid preprocessing conjugate gradient method. The node sensitivity filtering result of the equation system is mapped to the element sensitivity filtering, and the optimized third structure topology optimization model is obtained. In this application, by performing multiple finite element analysis on the structural topology optimization model, constructing the equivalent linear equation system of the Helmholtz type partial differential equations discretized by the finite element for the structural topology optimization model, and calculating according to the conjugate gradient method of multi-grid preprocessing, etc. The node sensitivity filtering result of the valence linear equation system is obtained by mapping the element sensitivity filtering result, which greatly reduces the time of structural topology optimization and improves the efficiency of structural topology optimization.

附图说明Description of drawings

图1是本发明一实施例提供的基于PDE的拓扑优化方法的流程示意图;1 is a schematic flowchart of a PDE-based topology optimization method provided by an embodiment of the present invention;

图2是本发明一实施例提供的基于PDE的拓扑优化装置的结构示意图;2 is a schematic structural diagram of a PDE-based topology optimization device provided by an embodiment of the present invention;

图3为本发明一实施例提供的基于PDE的拓扑优化方法的多重网格V循环预处理原理示意图。FIG. 3 is a schematic diagram of the principle of multi-grid V-loop preprocessing of the PDE-based topology optimization method according to an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明中的附图,对本发明中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the present invention will be clearly and completely described below with reference to the accompanying drawings of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

如图1所示,本发明一实施例提供的一种基于PDE的拓扑优化方法,包括以下步骤:As shown in Figure 1, a PDE-based topology optimization method provided by an embodiment of the present invention includes the following steps:

步骤S101:初始化第一结构拓扑优化模型的参数,定义所述结构拓扑优化模型的设计区域、约束条件和荷载。Step S101: Initialize the parameters of the first structural topology optimization model, and define the design area, constraint conditions and loads of the structural topology optimization model.

步骤S102:针对所述第一结构拓扑优化模型的设计区域划分有限元网络,得到相应的有限元模型,直至所述有限元模型符合第一预设条件则停止划分有限元网络;在所述有限元模型的基础上,建立SIMP柔性结构拓扑优化模型。Step S102: dividing a finite element network according to the design area of the first structural topology optimization model to obtain a corresponding finite element model, until the finite element model meets the first preset condition, then stop dividing the finite element network; Based on the meta-model, a topology optimization model of SIMP flexible structure is established.

作为其中一种实施例,以第一结构拓扑优化模型的最小柔度(即刚度最大)为目标,第一结构拓扑优化模型的体积小于预设阈值为约束条件,采用SIMP法作为插值方法,用1表示物体实体的部分,0表示物体空洞的部分,并通过连续函数xi p来表示单元相对密度特征,所述SIMP柔性结构拓扑优化模型表示为:As one of the embodiments, taking the minimum flexibility (that is, the maximum stiffness) of the first structural topology optimization model as the goal, the volume of the first structural topology optimization model being smaller than the preset threshold is a constraint condition, and the SIMP method is used as the interpolation method, and the 1 represents the solid part of the object, 0 represents the hollow part of the object, and the relative density feature of the unit is represented by the continuous function x i p . The SIMP flexible structure topology optimization model is expressed as:

Figure BDA0003420086480000071
Figure BDA0003420086480000071

Figure BDA0003420086480000072
Figure BDA0003420086480000072

F=KUF=KU

0<xmin≤xi≤xmax≤10<x min ≤x i ≤x max ≤1

式中,目标函数C为拓扑结构的总体柔度,F为力向量,U为位移列阵,K为拓扑结构的总刚度矩阵,xi为单元相对密度,ui是节点位移,ki,k0是单元刚度矩阵,V是优化后的结构体积,V*为结构体积约束,V0为整个设计域的初始体积,f为优化体积比,vi为优化后的单元体积,xmin和xmax为单元相对密度的最小极限值和最大极限值,N为拓扑结构离散单元总数。In the formula, the objective function C is the overall compliance of the topology structure, F is the force vector, U is the displacement array, K is the total stiffness matrix of the topology structure, x i is the relative density of the element, ui is the node displacement, k i , k0 is the element stiffness matrix, V is the optimized structural volume, V * is the structural volume constraint, V0 is the initial volume of the entire design domain, f is the optimized volume ratio, vi is the optimized element volume, x min and x max is the minimum limit value and maximum limit value of the relative density of cells, and N is the total number of discrete elements in the topology.

所述SIMP法即幂律法,其材料插值模型以密度作为设计变量,单元材料弹性模量和密度之间关系满足以下公式:The SIMP method is the power law, and its material interpolation model uses density as the design variable, and the relationship between the elastic modulus of the element material and the density satisfies the following formula:

Figure BDA0003420086480000073
Figure BDA0003420086480000073

其中,E0为固体各向同性材料弹性模量,Ei为单元i插值后的弹性模量。Among them, E 0 is the elastic modulus of solid isotropic material, and E i is the elastic modulus after interpolation of element i.

步骤S104:有限元分析:对所述SIMP柔性结构拓扑优化模型进行有限元分析,根据所述SIMP柔性结构拓扑优化模型的各个约束条件,计算所述SIMP柔性结构拓扑优化模型的各个单元刚性矩阵、总体刚度矩阵、节点位移、柔度和灵敏度,得到第二结构拓扑优化模型。Step S104: Finite element analysis: finite element analysis is performed on the SIMP flexible structure topology optimization model, and each element rigidity matrix of the SIMP flexible structure topology optimization model is calculated according to each constraint condition of the SIMP flexible structure topology optimization model, The overall stiffness matrix, node displacement, compliance and sensitivity are used to obtain the second structural topology optimization model.

步骤S105:灵敏度过滤:根据有限元分析离散方法构造Helmholtz型偏微分方程的等价线性方程组,根据多重网格预处理共轭梯度法计算所述等价线性方程组的节点灵敏度过滤结果,将过滤后的所述节点灵敏度映射至所述第二结构拓扑优化模型的单元灵敏度得到第三结构拓扑优化模型。Step S105: Sensitivity filtering: construct an equivalent linear equation system of Helmholtz-type partial differential equations according to the discrete method of finite element analysis, calculate the node sensitivity filtering result of the equivalent linear equation system according to the multi-grid preprocessing conjugate gradient method, and use The filtered node sensitivities are mapped to the element sensitivities of the second structure topology optimization model to obtain a third structure topology optimization model.

作为其中一种实施例,步骤S105包括以下子步骤:As one of the embodiments, step S105 includes the following sub-steps:

子步骤S1051:将灵敏度过滤表示为具有Neumann边界条件的Helmholtz型微分方程(2)的隐式解,有限元离散所述Helmholtz型微分方程(2)得到其等价线性方程组(3)。Sub-step S1051 : express the sensitivity filter as an implicit solution of the Helmholtz-type differential equation (2) with Neumann boundary conditions, and obtain the equivalent linear equation system (3) by finite element discretization of the Helmholtz-type differential equation (2).

Figure BDA0003420086480000081
Figure BDA0003420086480000081

Figure BDA0003420086480000082
Figure BDA0003420086480000082

其中

Figure BDA0003420086480000083
x是单元相对密度,
Figure BDA0003420086480000084
Figure BDA0003420086480000085
是过滤前后的灵敏度,
Figure BDA0003420086480000086
是边界的法向量,KF是标量问题的标准有限元刚度矩阵,TF是将单元相对密度x映射到具有节点值的向量的矩阵,
Figure BDA0003420086480000087
是过滤区域内的节点表示。Rmin是长度参数,用来确定过滤区域,它与标准的过滤半径rmin之间满足:in
Figure BDA0003420086480000083
x is the cell relative density,
Figure BDA0003420086480000084
and
Figure BDA0003420086480000085
is the sensitivity before and after filtering,
Figure BDA0003420086480000086
is the normal vector of the boundary, K F is the standard finite element stiffness matrix for scalar problems, T F is the matrix mapping the element relative density x to a vector with nodal values,
Figure BDA0003420086480000087
is the node representation within the filter area. R min is a length parameter, used to determine the filter area, which satisfies the standard filter radius r min :

Figure BDA0003420086480000088
Figure BDA0003420086480000088

子步骤S1052:根据多重网格V循环预处理方法降低所述等价线性方程组(3)的系数矩阵的条件数,得到预处理线性方程组(4),在预处理方法中对出现的含有预处理算子的方法用多重网格算法求解。Sub-step S1052: reduce the condition number of the coefficient matrix of the equivalent linear equation system (3) according to the multi-grid V-loop preprocessing method to obtain the preprocessing linear equation system (4), in the preprocessing method, The method of preprocessing operators is solved by a multigrid algorithm.

Figure BDA0003420086480000089
Figure BDA0003420086480000089

其中M-1是预处理矩阵where M -1 is the preprocessing matrix

在本实施例中,将所述第二结构拓扑优化模型的设计区域剖分为nelx*nely个单元小矩形,则经有限元离散的Helmholtz方程的等价线性方程组的系数矩阵KF的维数是(nelx+1)(nely+1)*(nelx+1)(nely+1)。随着网格的不断加密,系数矩阵KF的条件数也随之变大,有时甚至为病态矩阵,此时采用常规的求解方法将使模型的优化效率大幅降低。因此,本发明实施例采用多重网格V循环预处理方法。采用多重网格作为预处理方法,是指在预处理方法中对出现的含有预处理算子的方法用多重网格算法求解。In this embodiment, the design area of the second structural topology optimization model is divided into nelx*nely unit small rectangles, then the dimension of the coefficient matrix K F of the equivalent linear equation system of the Helmholtz equation discrete by the finite element The number is (nelx+1)(nely+1)*(nelx+1)(nely+1). With the continuous densification of the grid, the condition number of the coefficient matrix K F also becomes larger, and sometimes it is even an ill-conditioned matrix. At this time, using the conventional solution method will greatly reduce the optimization efficiency of the model. Therefore, the embodiment of the present invention adopts the multi-grid V-cycle preprocessing method. Using multigrid as the preprocessing method refers to using the multigrid algorithm to solve the method containing the preprocessing operator in the preprocessing method.

具体地,在方程左右两边同时乘以非奇异矩阵M的逆,得到预处理线性方程组(4)。再采用共轭梯度算法求解所述预处理线性方程组(4),即为预处理共轭梯度算法;在传统方法中,采用预处理共轭梯度算法时需要给出具体的预处理矩阵M,而本实施例则是通过采用多重网格在每一个共轭梯度算法中需要预处理的地方,取系数矩阵作为预处理算子,即为多重网格预处理。Specifically, the inverse of the non-singular matrix M is multiplied on the left and right sides of the equation to obtain the pre-processed linear equation system (4). Then use the conjugate gradient algorithm to solve the preprocessing linear equations (4), which is the preprocessing conjugate gradient algorithm; in the traditional method, when using the preprocessing conjugate gradient algorithm, a specific preprocessing matrix M needs to be given, In this embodiment, the coefficient matrix is used as the preprocessing operator by using multiple grids where preprocessing is required in each conjugate gradient algorithm, that is, multigrid preprocessing.

所述多重网格预处理具体为,首先,在所述第二结构拓扑优化模型的细网格层上使用2至3次的光滑预处理技术,消除高频分量(所述高频分量包括波长较短、波形频率高)误差,得到网格方程的近似解;其次,使用限制算子将低频分量(低频分量包括波长较长、波形频率低)误差限制到较粗的网格上,使得低频分量重新振荡起来,得到高频分量;在较粗的网格上将其抹平,使网格逐层变粗直到最粗的一层,消除所有误差,在最粗的网格层上求得误差精确解;The multi-grid preprocessing is specifically: first, using 2 to 3 smooth preprocessing techniques on the fine grid layer of the second structural topology optimization model to eliminate high-frequency components (the high-frequency components include wavelengths); The approximate solution of the grid equation is obtained; secondly, the limit operator is used to limit the error of the low-frequency component (the low-frequency component includes longer wavelength and low waveform frequency) to the coarser grid, so that the low frequency The component re-oscillates to get the high-frequency component; smooth it on the thicker grid, make the grid thicker layer by layer until the thickest layer, eliminate all errors, and get it on the thickest grid layer error exact solution;

然后使用插值算子将精确解逐步插值到细网格层上,将误差精确解和原来的近似解相加,得出网格方程的解;Then use the interpolation operator to interpolate the exact solution to the fine grid layer step by step, and add the error exact solution and the original approximate solution to get the solution of the grid equation;

最后判断是否满足误差求解的精度要求及最大迭代次数限制,若满足,则得到方程组的解。若不满足,则继续进行若干次套迭代,直至满足误差求解的精度要求和最大迭代次数的限制,最终得到方程组的解。Finally, it is judged whether the accuracy requirements of the error solution and the limit of the maximum number of iterations are met. If so, the solution of the equation system is obtained. If it is not satisfied, continue to perform several iterations until the accuracy requirements of the error solution and the limit of the maximum number of iterations are satisfied, and finally the solution of the equation system is obtained.

如图3所示,所述多重网格V循环预处理的原理为:采用迭代法求解线性方程组,得到近似解,利用误差在不同网格的波形频率不同的特点,将最细一层网格上的误差通过限制算子传递到粗网格上,一步一步消除误差,直到误差完全消除。再使用插值的方式将精确解一步一步返回到最细的网格上面,即可得到精确解。As shown in FIG. 3 , the principle of the multi-grid V-loop preprocessing is as follows: using an iterative method to solve the linear equation system to obtain an approximate solution, and using the characteristics of different waveform frequencies of errors in different grids, the thinnest layer of grid The error on the grid is passed to the coarse grid through the limit operator, and the error is eliminated step by step until the error is completely eliminated. Then use interpolation to return the exact solution to the finest grid step by step to get the exact solution.

因此,采用本发明技术方案对拓扑进行优化时,可以实现快速完成灵敏度过滤,即使网格规模增大,网格划分越来越密,也不会降低模型的优化速度,导致拓扑模型的病态。Therefore, when using the technical solution of the present invention to optimize the topology, the sensitivity filtering can be quickly completed, and even if the grid size increases and the grid division becomes denser, the optimization speed of the model will not be reduced, resulting in an ill-conditioned topology model.

子步骤S1053:根据共轭梯度算法求解所述预处理线性方程组,根据所述预处理线性方程组的节点灵敏度过滤求解结果通过映射将节点灵敏度过滤映射到单元灵敏度过滤,对所述第二结构拓扑优化模型进行灵敏度过滤得到第三结构拓扑优化模型。Sub-step S1053: Solve the preprocessing linear equation system according to the conjugate gradient algorithm, map the node sensitivity filtering to the unit sensitivity filtering by mapping according to the node sensitivity filtering solution result of the preprocessing linear equation system, and perform the second structure The topology optimization model performs sensitivity filtering to obtain a third structural topology optimization model.

作为其中一种实施例,根据共轭梯度算法x=mgcg(A,b,x0)求解所述预处理线性方程组(4)的过程如下,其中:A=M-1KF,b=M-1(TFx),

Figure BDA0003420086480000101
分别代表(4)式中的分量。As one of the embodiments, the process of solving the preprocessing linear equation system (4) according to the conjugate gradient algorithm x=mgcg(A, b, x 0 ) is as follows, where: A=M −1 K F , b= M -1 (T F x),
Figure BDA0003420086480000101
respectively represent the components in (4).

输入:enter:

给定对称正定矩阵A;Given a symmetric positive definite matrix A;

给定右端项b;Given the right-hand term b;

给定迭代初值x0∈RnGiven an initial value of iteration x 0 ∈R n ;

输出:output:

所述预处理线性方程组的解x;the solution x of the system of preprocessed linear equations;

1计算在最细网格上的残量

Figure BDA0003420086480000102
1 Calculate residuals on the finest mesh
Figure BDA0003420086480000102

2for i=1,2,…do;2for i=1,2,...do;

3多重网格V循环求解线性方程组Az0=r03 Multigrid V loop to solve linear equations Az 0 =r 0 ;

4初始化p0=z04 initialize p 0 =z 0 ;

5计算步长

Figure BDA0003420086480000103
并根据多重网格V循环预处理方法求解zi-1;5 Calculation step size
Figure BDA0003420086480000103
And solve zi -1 according to the multigrid V cycle preprocessing method;

6更新近似解xi=xi-1ipi-16 update the approximate solution x i =x i-1i p i-1 ;

7更新残量ri=ri-1iApi-17. Update residual r i =r i-1i Ap i-1 ;

8根据多重网格V循环求解线性方程组Azi=ri8. According to the multigrid V, the linear equation system Az i =r i is solved cyclically;

9计算梯度方向系数

Figure BDA0003420086480000104
9 Calculate the gradient direction coefficient
Figure BDA0003420086480000104

10设置新的搜索方向pi=ziipi-110 Set a new search direction p i =z ii p i-1 ;

11end;11end;

12until convergence;12 until convergence;

作为其中一种实施例:在步骤S105之后,步骤S106之前,根据二分法更新所述第三结构拓扑优化模型的拉格朗日乘子,直至所述第三结构拓扑优化模型满足预设的体积约束条件。As one of the embodiments: after step S105 and before step S106, update the Lagrangian multiplier of the third structural topology optimization model according to the dichotomy method until the third structural topology optimization model satisfies a preset volume Restrictions.

步骤S106:更新设计变量:根据OC准则更新所述第三结构拓扑优化模型的设计变量。Step S106: Update design variables: update the design variables of the third structural topology optimization model according to the OC criterion.

步骤S107:针对所述第三结构拓扑优化模型重复所述有限元分析、灵敏度过滤和更新设计变量的操作过程直至所述第三结构拓扑优化模型满足预设的收敛条件后,输出所述第三结构拓扑优化模型。Step S107: Repeat the operations of finite element analysis, sensitivity filtering and updating design variables for the third structural topology optimization model until the third structural topology optimization model satisfies a preset convergence condition, and output the third structural topology optimization model. Structural topology optimization model.

作为其中一种实施例,当所述第一结构拓扑优化模型的左侧固定,右侧的下面为短悬臂梁,且受到垂直向下载荷F=1N。设计区域长480mm,高160mm,体积比为0.5,材料的杨氏弹性模量为1,泊松比为0.3。优化时,惩罚因子为3,移动极限move=0.2,依次取过滤半径为3、6、9、12、15mm进行实验。发现,在过滤半径一定的情况下,本发明实施例的优化时间整体比传统的拓扑优化方案时间少,即采用本发明技术方案可以提高拓扑优化时的过滤效率。同时,在过滤半径一定的情况下,本发明实施例随着过滤半径的增大,柔度值呈现上升的趋势,拓扑优化时间呈现下降的趋势,即采用本发明实施例精度比较高,误差比较小。As an example, when the left side of the first structural topology optimization model is fixed, the lower side of the right side is a short cantilever beam, and is subjected to a vertical downward load F=1N. The design area is 480mm long and 160mm high, the volume ratio is 0.5, the Young's modulus of elasticity of the material is 1, and the Poisson's ratio is 0.3. During optimization, the penalty factor is 3, the moving limit move=0.2, and the filter radius is 3, 6, 9, 12, and 15 mm for experiments. It is found that under the condition of a certain filtering radius, the overall optimization time of the embodiment of the present invention is shorter than that of the traditional topology optimization solution, that is, the filtering efficiency during topology optimization can be improved by using the technical solution of the present invention. At the same time, under the condition of a certain filter radius, the flexibility value shows an increasing trend and the topology optimization time shows a decreasing trend with the increase of the filter radius in the embodiment of the present invention, that is, the accuracy of the embodiment of the present invention is relatively high, and the error is relatively high. Small.

如图2所示,本发明另一实施例提供了基于PDE的拓扑优化装置,包括拓扑模型初始化模块、建立柔性拓扑模块、有限元分析模块、灵敏度过滤模块、更新设计变量模块和优化结果检测模块;As shown in FIG. 2 , another embodiment of the present invention provides a PDE-based topology optimization device, including a topology model initialization module, a flexible topology establishment module, a finite element analysis module, a sensitivity filtering module, a design variable update module, and an optimization result detection module ;

所述拓扑模型初始化模块用于初始化第一结构拓扑优化模型的参数,定义所述结构拓扑优化模型的设计区域、约束条件和荷载;The topology model initialization module is used to initialize the parameters of the first structural topology optimization model, and define the design area, constraints and loads of the structural topology optimization model;

所述建立柔性拓扑模块用于针对所述第一结构拓扑优化模型的设计区域划分有限元网络,得到相应的有限元模型,直至所述有限元模型符合第一预设条件则停止划分有限元网络;在所述有限元模型的基础上,建立SIMP柔性结构拓扑优化模型;The establishing flexible topology module is used to divide the finite element network according to the design area of the first structural topology optimization model to obtain the corresponding finite element model, and stop dividing the finite element network until the finite element model meets the first preset condition ; On the basis of the finite element model, establish a SIMP flexible structure topology optimization model;

所述有限元分析模块用于对所述SIMP柔性结构拓扑优化模型进行有限元分析,根据所述SIMP柔性结构拓扑优化模型的各个约束条件,计算所述SIMP柔性结构拓扑优化模型的各个单元刚性矩阵、总体刚度矩阵、节点位移、柔度和灵敏度,得到第二结构拓扑优化模型;The finite element analysis module is used to perform finite element analysis on the SIMP flexible structure topology optimization model, and calculate the rigidity matrices of each element of the SIMP flexible structure topology optimization model according to each constraint condition of the SIMP flexible structure topology optimization model , the overall stiffness matrix, node displacement, flexibility and sensitivity to obtain the second structural topology optimization model;

所述灵敏度过滤模块用于根据有限元分析离散方法构造Helmholtz型偏微分方程的等价线性方程组,根据多重网格预处理共轭梯度法计算所述等价线性方程组的节点灵敏度过滤结果,将过滤后的所述节点灵敏度映射至所述第二结构拓扑优化模型的单元灵敏度得到第三结构拓扑优化模型;The sensitivity filtering module is used to construct an equivalent linear equation system of Helmholtz type partial differential equations according to the discrete method of finite element analysis, and calculate the node sensitivity filtering result of the equivalent linear equation system according to the multigrid preprocessing conjugate gradient method, mapping the filtered node sensitivity to the element sensitivity of the second structure topology optimization model to obtain a third structure topology optimization model;

所述更新设计变量模块用于根据OC准则更新所述第三结构拓扑优化模型的设计变量;The updating design variable module is used for updating the design variables of the third structural topology optimization model according to the OC criterion;

所述优化结果检测模块用于针对所述第三结构拓扑优化模型重复所述有限元分析模块、灵敏度过滤模块和更新设计变量模块的操作过程直至所述第三结构拓扑优化模型满足预设的收敛条件后,输出所述第三结构拓扑优化模型。The optimization result detection module is configured to repeat the operation process of the finite element analysis module, the sensitivity filtering module and the updating design variable module for the third structural topology optimization model until the third structural topology optimization model satisfies a preset convergence After the conditions are met, the third structural topology optimization model is output.

作为其中一种实施例,所述SIMP柔性结构拓扑优化模型表示为:As one of the embodiments, the SIMP flexible structure topology optimization model is expressed as:

Figure BDA0003420086480000121
Figure BDA0003420086480000121

Figure BDA0003420086480000122
Figure BDA0003420086480000122

F=KUF=KU

0<xmin≤xi≤xmax≤10<x min ≤x i ≤x max ≤1

式中,目标函数C为拓扑结构的总体柔度,F为力向量,U为位移列阵,K为拓扑结构的总刚度矩阵,xi为单元相对密度,ui是节点位移,ki,k0是单元刚度矩阵,V是优化后的结构体积,V*为结构体积约束,V0为整个设计域的初始体积,f为优化体积比,vi为优化后的单元体积,xmin和xmax为单元相对密度的最小极限值和最大极限值,N为拓扑结构离散单元总数。In the formula, the objective function C is the overall compliance of the topology structure, F is the force vector, U is the displacement array, K is the total stiffness matrix of the topology structure, x i is the relative density of the element, ui is the node displacement, k i , k0 is the element stiffness matrix, V is the optimized structural volume, V * is the structural volume constraint, V0 is the initial volume of the entire design domain, f is the optimized volume ratio, vi is the optimized element volume, x min and x max is the minimum limit value and maximum limit value of the relative density of cells, and N is the total number of discrete elements in the topology.

作为其中一种实施例,将过滤后的所述节点灵敏度映射至所述第二结构拓扑优化模型的单元灵敏度得到第三结构拓扑优化模型后,更新设计变量之前,根据二分法更新所述第三结构拓扑优化模型的拉格朗日乘子,直至所述第三结构拓扑优化模型满足预设的体积约束条件。As one of the embodiments, after the filtered node sensitivity is mapped to the element sensitivity of the second structure topology optimization model to obtain a third structure topology optimization model, before updating design variables, the third structure topology optimization model is updated according to the dichotomy method. Lagrange multipliers of the structural topology optimization model until the third structural topology optimization model satisfies the preset volume constraint conditions.

作为其中一种实施例,根据有限元分析离散方法构造Helmholtz型偏微分方程的等价线性方程组,根据多重网格预处理共轭梯度法计算所述等价线性方程组的节点灵敏度过滤结果,将过滤后的所述节点灵敏度映射至所述第二结构拓扑优化模型的单元灵敏度得到第三结构拓扑优化模型,具体为:As one of the embodiments, an equivalent linear equation system of Helmholtz-type partial differential equations is constructed according to the discrete method of finite element analysis, and the node sensitivity filtering result of the equivalent linear equation system is calculated according to the multigrid preprocessing conjugate gradient method, The filtered node sensitivity is mapped to the element sensitivity of the second structure topology optimization model to obtain a third structure topology optimization model, specifically:

将节点灵敏度过滤作为具有Neumann边界条件的Helmholtz型微分方程的解,经有限元离散所述Helmholtz型微分方程得到其等价线性方程组;The nodal sensitivity filter is taken as the solution of the Helmholtz-type differential equation with Neumann boundary conditions, and its equivalent linear equation system is obtained by the finite element discretization of the Helmholtz-type differential equation;

根据多重网格V循环预处理方法降低所述等价线性方程组的系数矩阵的条件数,得到预处理线性方程组,在预处理方法中对出现的含有预处理算子的方法用多重网格算法求解;According to the multigrid V-loop preprocessing method, the condition number of the coefficient matrix of the equivalent linear equation system is reduced to obtain the preprocessing linear equation system. In the preprocessing method, the multigrid is used for the method containing the preprocessing operator. algorithm solution;

根据共轭梯度算法求解所述预处理线性方程组,得到所述预处理线性方程组的节点灵敏度过滤结果,将所述节点灵敏度过滤结果映射至所述第二结构拓扑优化模型的单元灵敏度过滤结果,得到第三结构拓扑优化模型。The preprocessing linear equation system is solved according to the conjugate gradient algorithm, the node sensitivity filtering result of the preprocessing linear equation system is obtained, and the node sensitivity filtering result is mapped to the unit sensitivity filtering result of the second structural topology optimization model , the third structural topology optimization model is obtained.

在上述方法项实施例的基础上,本发明对应提供了可读存储介质项实施例;On the basis of the above method item embodiment, the present invention correspondingly provides the readable storage medium item embodiment;

本发明另一实施例提供了一种可读存储介质,所述可读存储介质包括存储的计算机程序,所述计算机程序执行时,控制所述可读存储介质所在的设备执行如本发明任意一项方法项实施例所述的基于PDE的拓扑优化方法。Another embodiment of the present invention provides a readable storage medium, where the readable storage medium includes a stored computer program, and when the computer program is executed, controls the device where the readable storage medium is located to perform any one of the methods of the present invention. Item Method Item The PDE-based topology optimization method described in the embodiment.

示例性的,所述计算机程序可以被分割成一个或多个模块,所述一个或者多个模块被存储在所述存储器中,并由所述处理器执行,以完成本发明。所述一个或多个模块可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述所述计算机程序在所述终端设备中的执行过程。Exemplarily, the computer program may be divided into one or more modules, and the one or more modules are stored in the memory and executed by the processor to accomplish the present invention. The one or more modules may be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used to describe the execution process of the computer program in the terminal device.

所述终端设备可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。所述终端设备可包括,但不仅限于,处理器、存储器。The terminal device may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server. The terminal device may include, but is not limited to, a processor and a memory.

所称处理器可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等,所述处理器是所述终端设备的控制中心,利用各种接口和线路连接整个终端设备的各个部分。The processor may be a central processing unit (Central Processing Unit, CPU), or other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf processors Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The processor is the control center of the terminal device, and uses various interfaces and lines to connect various parts of the entire terminal device.

所述存储器可用于存储所述计算机程序和/或模块,所述处理器通过运行或执行存储在所述存储器内的计算机程序和/或模块,以及调用存储在存储器内的数据,实现所述终端设备的各种功能。所述存储器可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器可以包括高速随机存取存储器,还可以包括非易失性存储器,例如硬盘、内存、插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)、至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory can be used to store the computer program and/or module, and the processor implements the terminal by running or executing the computer program and/or module stored in the memory and calling the data stored in the memory various functions of the device. The memory may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the storage data area may store Data (such as audio data, phonebook, etc.) created according to the usage of the mobile phone, etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory such as hard disk, internal memory, plug-in hard disk, Smart Media Card (SMC), Secure Digital (SD) card , a flash memory card (Flash Card), at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.

其中,所述终端设备集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质(即上述可读存储介质)中。基于这样的理解,本发明实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。Wherein, if the modules/units integrated in the terminal device are implemented in the form of software functional units and sold or used as independent products, they may be stored in a computer-readable storage medium (ie, the above-mentioned readable storage medium). Based on this understanding, the present invention can implement all or part of the processes in the methods of the above embodiments, and can also be completed by instructing relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the program is executed by the processor, the steps of the foregoing method embodiments can be implemented. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form, and the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM, Read-Only Memory) , Random Access Memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc.

需说明的是,以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。另外,本发明提供的装置实施例附图中,模块之间的连接关系表示它们之间具有通信连接,具体可以实现为一条或多条通信总线或信号线。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也视为本发明的保护范围。本领域普通技术人员可以理解实现上述实施例中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random AccessMemory,RAM)等。It should be noted that the device embodiments described above are only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical unit, that is, it can be located in one place, or it can be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment. In addition, in the drawings of the apparatus embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. Those of ordinary skill in the art can understand and implement it without creative effort. The above are the preferred embodiments of the present invention. It should be pointed out that for those skilled in the art, without departing from the principles of the present invention, several improvements and modifications can be made, and these improvements and modifications may also be regarded as It is the protection scope of the present invention. Those of ordinary skill in the art can understand that the realization of all or part of the processes in the above embodiments can be accomplished by instructing relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and the program is During execution, the processes of the above-mentioned embodiments may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM) or the like.

Claims (10)

1. A topology optimization method based on PDE is characterized by comprising the following steps:
initializing parameters of a first structural topological optimization model, and defining a design area, constraint conditions and load of the structural topological optimization model;
dividing a finite element network aiming at the design area of the first structural topological optimization model to obtain a corresponding finite element model, and stopping dividing the finite element network until the finite element model meets a first preset condition; establishing an SIMP flexible structure topological optimization model on the basis of the finite element model;
finite element analysis: carrying out finite element analysis on the SIMP flexible structure topological optimization model, and calculating each unit rigidity matrix, total rigidity matrix, node displacement, flexibility and sensitivity of the SIMP flexible structure topological optimization model according to each constraint condition of the SIMP flexible structure topological optimization model to obtain a second structure topological optimization model;
and (3) sensitivity filtration: constructing an equivalent linear equation set of a Helmholtz type partial differential equation according to a finite element analysis discrete method, calculating a node sensitivity filtering result of the equivalent linear equation set according to a multiple grid preprocessing conjugate gradient method, and mapping the filtered node sensitivity to the unit sensitivity of the second structure topology optimization model to obtain a third structure topology optimization model;
updating design variables: updating the design variables of the third structural topology optimization model according to OC criteria;
and repeating the operation processes of finite element analysis, sensitivity filtering and design variable updating for the third structural topological optimization model until the third structural topological optimization model meets a preset convergence condition, and outputting the third structural topological optimization model.
2. The PDE-based topology optimization method of claim 1, wherein the SIMP flexible structure topology optimization model is represented as:
Figure FDA0003420086470000021
Figure FDA0003420086470000022
F=KU
0<xmin≤xi≤xmax≤1
in the formula, the target function C is the total flexibility of the topological structure, F is a force vector, U is a displacement array, K is a total rigidity matrix of the topological structure, and xiIs the relative density of the unit, uiIs node displacement, ki,k0Is a unit stiffness matrix, V is the optimized structure volume, V*For structural volume constraints, V0Initial volume for the entire design domain, f is the optimized volume ratio, viFor optimized cell volume, xminAnd xmaxThe minimum limit and the maximum limit of the relative density of the units, and N is the total number of discrete units of the topological structure.
3. The PDE-based topology optimization method of claim 2, wherein after mapping the filtered node sensitivities to the unit sensitivities of the second structural topology optimization model to obtain a third structural topology optimization model, and before updating design variables, updating lagrangian multipliers of the third structural topology optimization model according to a bisection method until the third structural topology optimization model meets a preset volume constraint condition.
4. The PDE-based topology optimization method of claim 3, wherein an equivalent linear equation set of the Helmholtz-type partial differential equation is constructed according to a finite element analysis discretization method, specifically:
and filtering the node sensitivity to be used as a solution of a Helmholtz type differential equation with Neumann boundary conditions, and dispersing the Helmholtz type differential equation by finite elements to obtain an equivalent linear equation set of the Helmholtz type differential equation.
5. The PDE-based topology optimization method according to any one of claims 1 to 4, wherein a node sensitivity filtering result of the equivalent linear equation set is calculated according to a multiple mesh preprocessing conjugate gradient method, and the filtered node sensitivity is mapped to a unit sensitivity of the second structural topology optimization model to obtain a third structural topology optimization model, specifically:
reducing the condition number of a coefficient matrix of the equivalent linear equation set according to a multiple grid V circulation preprocessing method to obtain a preprocessing linear equation set, and solving the method containing a preprocessing operator in the preprocessing method by using a multiple grid algorithm;
and solving the preprocessed linear equation set according to a conjugate gradient algorithm to obtain a node sensitivity filtering result of the preprocessed linear equation set, and mapping the node sensitivity filtering result to a unit sensitivity filtering result of the second structural topological optimization model to obtain a third structural topological optimization model.
6. A topology optimization device based on PDE is characterized by comprising a topology model initialization module, a flexible topology establishment module, a finite element analysis module, a sensitivity filtering module, a design variable updating module and an optimization result detection module;
the topology model initialization module is used for initializing parameters of a first structural topology optimization model, and defining a design area, constraint conditions and load of the structural topology optimization model;
the flexible topology establishing module is used for dividing a finite element network aiming at the design region of the first structural topology optimization model to obtain a corresponding finite element model, and stopping dividing the finite element network until the finite element model meets a first preset condition; establishing an SIMP flexible structure topological optimization model on the basis of the finite element model;
the finite element analysis module is used for carrying out finite element analysis on the SIMP flexible structure topological optimization model, and calculating each unit rigidity matrix, the overall rigidity matrix, the node displacement, the flexibility and the sensitivity of the SIMP flexible structure topological optimization model according to each constraint condition of the SIMP flexible structure topological optimization model to obtain a second structure topological optimization model;
the sensitivity filtering module is used for constructing an equivalent linear equation set of a Helmholtz type partial differential equation according to a finite element analysis discrete method, calculating a node sensitivity filtering result of the equivalent linear equation set according to a multiple grid pretreatment conjugate gradient method, and mapping the filtered node sensitivity to the unit sensitivity of the second structure topology optimization model to obtain a third structure topology optimization model;
the design variable updating module is used for updating the design variables of the third structural topology optimization model according to OC criteria;
the optimization result detection module is used for repeating the operation processes of the finite element analysis module, the sensitivity filtering module and the design variable updating module aiming at the third structural topology optimization model until the third structural topology optimization model meets a preset convergence condition, and then outputting the third structural topology optimization model.
7. The PDE-based topology optimization device of claim 6, wherein the SIMP flexible structure topology optimization model is expressed as:
Figure FDA0003420086470000041
Figure FDA0003420086470000042
F=KU
0<xmin≤xi≤xmax≤1
in the formula, the target function C is the total flexibility of the topological structure, F is a force vector, U is a displacement array, K is a total rigidity matrix of the topological structure, and xiIs the relative density of the unit, uiIs node displacement, ki,k0Is a matrix of cell stiffness, V is the optimized structural volume, V*For structural volume constraints, V0Initial volume for the entire design domain, f is the optimized volume ratio, viFor optimized cell volume, xminAnd xmaxThe minimum limit and the maximum limit of the relative density of the units, and N is the total number of discrete units of the topological structure.
8. The PDE-based topology optimization device of claim 7, wherein after mapping the filtered node sensitivities to the unit sensitivities of the second structure topology optimization model to obtain a third structure topology optimization model, and before updating design variables, the lagrangian multiplier of the third structure topology optimization model is updated according to a bisection method until the third structure topology optimization model meets a preset volume constraint condition.
9. The PDE-based topology optimization device according to any one of claims 6 to 8, wherein an equivalent linear equation set of the Helmholtz-type partial differential equation is constructed according to a finite element analysis discretization method, a node sensitivity filtering result of the equivalent linear equation set is calculated according to a multiple mesh preprocessing conjugate gradient method, and the filtered node sensitivity is mapped to a unit sensitivity of the second structural topology optimization model to obtain a third structural topology optimization model, specifically:
filtering the node sensitivity to be used as a solution of a Helmholtz type differential equation with Neumann boundary conditions, and dispersing the Helmholtz type differential equation by finite elements to obtain an equivalent linear equation set of the Helmholtz type differential equation;
reducing the condition number of a coefficient matrix of the equivalent linear equation set according to a multiple grid V circulation preprocessing method to obtain a preprocessing linear equation set, and solving the method containing a preprocessing operator in the preprocessing method by using a multiple grid algorithm;
and solving the preprocessed linear equation set according to a conjugate gradient algorithm to obtain a node sensitivity filtering result of the preprocessed linear equation set, and mapping the node sensitivity filtering result to a unit sensitivity filtering result of the second structural topological optimization model to obtain a third structural topological optimization model.
10. A readable storage medium, comprising a stored computer program which, when executed, controls an apparatus in which the readable storage medium is located to perform the method of PDE-based topology optimization as defined in any one of claims 1 to 5.
CN202111559551.8A 2021-12-20 2021-12-20 Topological optimization method and device based on PDE and storage medium Pending CN114386299A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111559551.8A CN114386299A (en) 2021-12-20 2021-12-20 Topological optimization method and device based on PDE and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111559551.8A CN114386299A (en) 2021-12-20 2021-12-20 Topological optimization method and device based on PDE and storage medium

Publications (1)

Publication Number Publication Date
CN114386299A true CN114386299A (en) 2022-04-22

Family

ID=81198759

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111559551.8A Pending CN114386299A (en) 2021-12-20 2021-12-20 Topological optimization method and device based on PDE and storage medium

Country Status (1)

Country Link
CN (1) CN114386299A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115310157A (en) * 2022-08-17 2022-11-08 中国民航大学 A method and device for topology optimization of parts structure based on improved SIMP

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160140269A1 (en) * 2014-11-14 2016-05-19 Industrial Technology Research Institute Structural topology optimization design method
CN109670200A (en) * 2018-11-13 2019-04-23 华中科技大学 A kind of equal geometry density of material field structure Topology Optimization Method
CN111737839A (en) * 2020-05-19 2020-10-02 广州大学 BESO topology optimization method based on dynamic evolution rate and adaptive grid and its application
CN112100882A (en) * 2020-08-27 2020-12-18 华南理工大学 Continuum structure density evolution topological optimization method with smooth boundary
CN113536491A (en) * 2021-06-15 2021-10-22 五邑大学 Lattice structure topology optimization design method, device and computer readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160140269A1 (en) * 2014-11-14 2016-05-19 Industrial Technology Research Institute Structural topology optimization design method
CN109670200A (en) * 2018-11-13 2019-04-23 华中科技大学 A kind of equal geometry density of material field structure Topology Optimization Method
CN111737839A (en) * 2020-05-19 2020-10-02 广州大学 BESO topology optimization method based on dynamic evolution rate and adaptive grid and its application
JP6856286B1 (en) * 2020-05-19 2021-04-07 ▲広▼州大学 BESO topology optimization method based on dynamic evolution rate and adaptive grid
CN112100882A (en) * 2020-08-27 2020-12-18 华南理工大学 Continuum structure density evolution topological optimization method with smooth boundary
CN113536491A (en) * 2021-06-15 2021-10-22 五邑大学 Lattice structure topology optimization design method, device and computer readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
赵清海 等: "基于扩散张量偏微分方程的拓扑优化过滤方法", 中国机械工程, vol. 24, no. 22, 30 November 2013 (2013-11-30), pages 3057 - 3061 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115310157A (en) * 2022-08-17 2022-11-08 中国民航大学 A method and device for topology optimization of parts structure based on improved SIMP

Similar Documents

Publication Publication Date Title
JP6856286B1 (en) BESO topology optimization method based on dynamic evolution rate and adaptive grid
US20210073428A1 (en) Structure topology optimization method based on material-field reduced series expansion
Bartels et al. Averaging techniques yield reliable a posteriori finite element error control for obstacle problems
CN112262394B (en) Machine learning method and machine learning device
CN108717493A (en) A kind of 2 dimensional region automatic classifying method that structure-oriented rectangular mesh generates
CN109359397B (en) A Parallel Method of Finite Element Domain Decomposition Improved SSORPCG for Seepage Field Solution
CN113591346A (en) Self-adaptive region decomposition finite element method for electromagnetic field solution
CN112581624A (en) Two-dimensional finite element mesh subdivision algorithm based on distance function defined boundary
CN114386299A (en) Topological optimization method and device based on PDE and storage medium
Nobile et al. Non-intrusive double-greedy parametric model reduction by interpolation of frequency-domain rational surrogates
CN117034511A (en) Level set topology optimization design method considering structural size constraint
CN111597602B (en) High-rise building structure efficient analysis method based on AMGPCG algorithm
CN111104760B (en) Electrical performance-oriented reflective surface antenna back frame structure topology optimization method
CN108984914B (en) Rapid multi-scale calculation method for solving complex time domain electromagnetic problem
CN118709618B (en) Pressure drop analysis method for three-dimensional integrated circuit, computer device and storage medium
CN118332877B (en) A physical information neural network electromagnetic field calculation method based on polar coordinate mapping
Burczyński et al. Intelligent optimal design of spatial structures
CN115358107A (en) Structure design method, system, equipment and medium based on elastic deformation controllable output force
CN115577447B (en) UAV structure optimization method based on dual-scale parallel topology optimization
CN118013803A (en) Six-direction break line generation method applied to slope stability upper limit analysis
CN113094943B (en) Level set topology optimization method, system, device and medium
CN112989678B (en) Coarse grain parallel iteration method and device for integrated circuit interlayer coupling part accumulation
CN116308853A (en) Propagation network structure reconstruction method, device, equipment and readable storage medium
CN113656898A (en) Sheet vibration optimization method and device
CN113987860B (en) A structure optimization method and device based on dynamic Gaussian kernel convolution filtering

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination