[go: up one dir, main page]

CN111523270A - An improved post-processing method for topology optimization of continuum structures - Google Patents

An improved post-processing method for topology optimization of continuum structures Download PDF

Info

Publication number
CN111523270A
CN111523270A CN202010520561.XA CN202010520561A CN111523270A CN 111523270 A CN111523270 A CN 111523270A CN 202010520561 A CN202010520561 A CN 202010520561A CN 111523270 A CN111523270 A CN 111523270A
Authority
CN
China
Prior art keywords
topology optimization
topology
boundary
post
curve
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.)
Granted
Application number
CN202010520561.XA
Other languages
Chinese (zh)
Other versions
CN111523270B (en
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.)
Sichuan University
Original Assignee
Sichuan 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 Sichuan University filed Critical Sichuan University
Priority to CN202010520561.XA priority Critical patent/CN111523270B/en
Publication of CN111523270A publication Critical patent/CN111523270A/en
Application granted granted Critical
Publication of CN111523270B publication Critical patent/CN111523270B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/18Network design, e.g. design based on topological or interconnect aspects of utility systems, piping, heating ventilation air conditioning [HVAC] or cabling
    • 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)
  • General Physics & Mathematics (AREA)
  • Geometry (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Numerical Control (AREA)
  • Image Generation (AREA)

Abstract

本发明公开了一种改进的连续体结构拓扑优化后处理方法,其特征在于:所述一种改进的连续体结构拓扑优化后处理方法采用较大的网格尺寸,即有限元分析单元尺寸大于默认值1,对目标模型进行拓扑优化时可有效避免因网格数目过多引起的细小柱状结构;对优化模型进行二值化处理并分析优化模型且提取锯齿形边界线,通过数值计算得到目标离散角点集,将其作为样本点进行曲线拟合,对得到的新边界线进一步插值处理,生成边界光滑的拓扑结构,并对其进行实体化处理。本发明提出的方法有效消除了优化结构的锯齿边界,保证优化结构的原始设计要求,降低了计算难度,减少了计算时长,增强了模型可制造性,并且有效降低了拓扑优化后处理工序的难度。

Figure 202010520561

The invention discloses an improved continuum structure topology optimization post-processing method, which is characterized in that: the improved continuum structure topology optimization post-processing method adopts a larger mesh size, that is, the finite element analysis unit size is larger than The default value is 1. When performing topology optimization on the target model, it can effectively avoid the small columnar structure caused by too many meshes. Binarize the optimized model, analyze the optimized model, extract the zigzag boundary line, and obtain the target through numerical calculation. A set of discrete corner points is used as sample points for curve fitting, and the obtained new boundary line is further interpolated to generate a topological structure with a smooth boundary and solidify it. The method proposed by the invention effectively eliminates the sawtooth boundary of the optimized structure, ensures the original design requirements of the optimized structure, reduces the calculation difficulty, reduces the calculation time, enhances the manufacturability of the model, and effectively reduces the difficulty of the post-processing procedure of the topology optimization. .

Figure 202010520561

Description

一种改进的连续体结构拓扑优化后处理方法An improved post-processing method for topology optimization of continuum structures

技术领域technical field

本发明涉及结构优化相关技术领域,特别涉及一种改进的连续体结构拓扑优化后处理方法。The invention relates to the related technical field of structure optimization, in particular to an improved post-processing method for topology optimization of a continuum structure.

背景技术Background technique

拓扑优化方法是最具前景的结构优化方法之一,该方法能够有效的利用材料,弥补尺寸、形状优化无法改变结构拓扑形式的局限性。因其在优化过程中产生和消除小空腔的灵活性,在近些年中得到特别关注和迅速发展。Topological optimization method is one of the most promising structural optimization methods. This method can effectively utilize materials and make up for the limitation that size and shape optimization cannot change the structural topology. It has received special attention and developed rapidly in recent years due to its flexibility in generating and eliminating small cavities during optimization.

连续体结构的拓扑优化是优化设计的一个重要问题,目前最常用的连续体结构拓扑优化方法有均匀化方法、变密度法、渐进结构优化方法(ESO)、水平集法(Levelset)、独立连续映射方法(ICM)等。The topology optimization of continuum structure is an important problem of optimization design. At present, the most commonly used topology optimization methods of continuum structure include homogenization method, variable density method, progressive structure optimization method (ESO), level set method (Levelset), independent continuous method. Mapping Method (ICM) etc.

拓扑优化结构由于依托网格进行有限元分析,优化结果采用单元体的有无来表征连续体结构中的材料特征,导致结果呈锯齿形。若使用更多的单元数目,理论上得到边界描述详细且结果理想的有限元模型,同时避免不同的优化结果的产生。但实际上,由于网络依赖性及数值不稳定等问题,更多的单元数目将产生无穷多的设计变量,使优化结果中柱状结构的尺寸变小、数量增大,增加了几何复杂性,同时增加优化时长。与此同时,锯齿状的结构边界,使得拓扑优化的结果变得极难加工,且不便于导入其他CAD软件中进行优化后处理。为得到光滑边界,需进一步进行形状优化,若采用映射关系将栅格模型转化为光滑的曲线或曲面模型,映射关系的处理难度通常较大,导致实现结果费时费力,不甚理想。Due to the finite element analysis of the topology optimization structure based on the mesh, the optimization results use the presence or absence of unit bodies to characterize the material characteristics in the continuum structure, resulting in a zigzag shape. If a larger number of elements is used, a finite element model with detailed boundary description and ideal results can be obtained theoretically, and the generation of different optimization results can be avoided. But in fact, due to problems such as network dependence and numerical instability, more elements will generate infinite design variables, making the size of the columnar structure in the optimization result smaller and the number larger, increasing the geometric complexity, and at the same time Increase optimization time. At the same time, the jagged structure boundary makes the results of topology optimization extremely difficult to process, and it is not convenient to import into other CAD software for post-optimization processing. In order to obtain a smooth boundary, further shape optimization is required. If a mapping relationship is used to convert the grid model into a smooth curve or surface model, the processing of the mapping relationship is usually difficult, resulting in time-consuming and labor-intensive realization of the results, which is not ideal.

发明内容SUMMARY OF THE INVENTION

本发明的目的在于克服现有技术的缺点与不足,提出一种改进的连续体结构拓扑优化后处理方法,该方法采用较大的网格尺寸,即有限元分析单元尺寸大于默认值1,对目标模型进行拓扑优化时可有效避免因网格数目过多引起的细小柱状结构;对优化模型进行二值化处理并分析优化模型且提取锯齿形边界线,通过数值计算得到目标离散角点集,将其作为样本点进行曲线拟合,有效避免后处理模型与原始拓扑优化模型产生较大的偏差,影响结构性能;对得到的新边界线进一步插值处理,生成边界光滑的拓扑结构,并对其进行实体化处理。该方法有效保证优化结构原始设计要求,并避免网格依赖性、棋盘格现象。The purpose of the present invention is to overcome the shortcomings and deficiencies of the prior art, and to propose an improved post-processing method for topology optimization of continuum structures. When the target model performs topology optimization, it can effectively avoid the small columnar structure caused by the excessive number of meshes; the optimized model is binarized and analyzed, the zigzag boundary line is extracted, and the target discrete corner set is obtained by numerical calculation. It is used as a sample point for curve fitting, which effectively avoids the large deviation between the post-processing model and the original topology optimization model, which affects the structural performance; further interpolation processing is performed on the obtained new boundary line to generate a smooth boundary topology, and the Materialize. This method effectively guarantees the original design requirements of the optimized structure, and avoids grid dependence and checkerboard phenomenon.

为达成上述目的,本发明采用如下技术方案,一种改进的连续体结构拓扑优化后处理方法,包括如下步骤:In order to achieve the above object, the present invention adopts the following technical solutions, a kind of improved continuum structure topology optimization post-processing method, comprising the following steps:

S1,对目标模型进行拓扑优化处理得到拓扑优化结构。S1, performing topology optimization processing on the target model to obtain a topology optimization structure.

S2,对得到的拓扑优化结果进行分析提取边界线,并提取锯齿形边界线的角点得到点集P。S2, analyze the obtained topology optimization result to extract a boundary line, and extract the corner points of the zigzag boundary line to obtain a point set P.

S3,对步骤S2得到的离散角点进行光顺连接。S3, perform a smooth connection on the discrete corner points obtained in step S2.

S4,对得到的曲线封闭区域进行裁剪处理,得到光顺的曲线封闭区域,进而生成边界光滑的拓扑结构。S4 , cutting the obtained closed area of the curve to obtain a smooth closed area of the curve, and then to generate a topology structure with a smooth boundary.

S5,检测生成的拓扑结构是否满足要求,满足执行步骤6,否则重设参数重复执行步骤S3至步骤S4。S5, check whether the generated topology structure meets the requirements, and execute step 6, otherwise, reset the parameters and repeat steps S3 to S4.

S6,得到最终的拓扑结构,对其进行实体化处理。S6, obtain the final topology structure, and perform substantive processing on it.

优选的,所述步骤S1中连续体结构拓扑优化方法采用如变密度法、渐进结构优化方法(ESO)、独立连续映射方法(ICM)等。Preferably, in the step S1, the topology optimization method of the continuum structure adopts, for example, a variable density method, an incremental structure optimization method (ESO), an independent continuous mapping method (ICM), and the like.

优选的,所述步骤S2中对拓扑优化结果进行二值化处理及均值滤波处理,并将二值化结果转化为0-1的数值矩阵。将得到的边界提取结果记为Z(x,y),对锯齿形边界各角点进行识别计算。设定坐标原点,以预先划分的离散单元大小为坐标单元尺寸,进而确定各角点坐标定义为Pj(xj,yj),构成点集P={P1,P2,···,Pn}。Preferably, in the step S2, the topology optimization result is subjected to binarization processing and mean filtering processing, and the binarization result is converted into a 0-1 numerical matrix. The obtained boundary extraction result is recorded as Z(x, y), and each corner point of the zigzag boundary is identified and calculated. Set the coordinate origin, take the pre-divided discrete unit size as the coordinate unit size, and then determine the coordinates of each corner point to be defined as P j (x j , y j ), forming a point set P={P 1 , P 2 , ,P n }.

优选的,所述步骤S3中由下式判断各直线段长度:Preferably, in the step S3, the length of each straight line segment is determined by the following formula:

Figure BDA0002531390290000021
Figure BDA0002531390290000021

其中,

Figure BDA0002531390290000022
为直线段PiPi+1的长度,k为距离系数,Δt为预设最小离散单元的大小。in,
Figure BDA0002531390290000022
is the length of the straight line segment P i P i+1 , k is the distance coefficient, and Δt is the size of the preset minimum discrete unit.

对步骤S3所得到的离散角点集合P采用最小二乘法的二次及三次样条曲线拟合形成光顺的曲线。对经光顺处理的曲线进行光顺程度判别,其标准采用能量判别法,能量值越小,对应点集的光顺性越好。并观察曲率图,保证曲率的单调性变化尽可能的小,曲率变化尽可能趋于线性,变化均匀。对得到的所有线进一步采用二次样条插值方法,形成曲线封闭区域的初步结果。The quadratic and cubic spline curves of the least squares method are used to fit the discrete corner point set P obtained in step S3 to form a smooth curve. The degree of smoothness of the smoothed curve is judged, and the criterion is the energy discrimination method. The smaller the energy value, the better the smoothness of the corresponding point set. And observe the curvature map to ensure that the monotonic change of the curvature is as small as possible, the curvature change tends to be as linear as possible, and the change is uniform. The quadratic spline interpolation method is further used for all the obtained lines to form the preliminary results of the closed area of the curve.

优选的,所述步骤S6中将经程序生成的光滑曲线边界线的数据信息写入特定TXT文件,将其导入三维绘图软件转换为实体引用,以便后续进一步操作。Preferably, in the step S6, the data information of the smooth curve boundary line generated by the program is written into a specific TXT file, which is imported into a three-dimensional drawing software and converted into an entity reference for subsequent further operations.

本发明与现有技术相比,具有如下优点和有益效果:Compared with the prior art, the present invention has the following advantages and beneficial effects:

1、本发明所用数值计算方法简单,减少计算时长。1. The numerical calculation method used in the present invention is simple, and the calculation time is reduced.

2、本发明有效保证拓扑优化结构各项特性基本稳定,进而保证优化结构原始设计要求在许用范围内。2. The present invention effectively ensures that the characteristics of the topology optimization structure are basically stable, and further ensures that the original design requirements of the optimized structure are within the allowable range.

3、本发明有效消除优化后结构锯齿边界,使之平滑过渡,模型可制造性大大增强,能够直接用于3D打印(增材制造技术)、数控加工等,并且有效降低了拓扑优化后处理工序的难度。3. The present invention effectively eliminates the sawtooth boundary of the structure after optimization, makes it a smooth transition, greatly enhances the manufacturability of the model, can be directly used for 3D printing (additive manufacturing technology), numerical control processing, etc., and effectively reduces the post-processing steps of topology optimization. difficulty.

附图说明Description of drawings

图1是本发明一种改进的连续体结构拓扑优化后处理方法的流程图。Fig. 1 is a flow chart of an improved post-processing method for topology optimization of continuum structure of the present invention.

图2是本发明的实施例结构示意图。FIG. 2 is a schematic structural diagram of an embodiment of the present invention.

图3是本发明的实施例拓扑优化结果图。FIG. 3 is a diagram of a topology optimization result according to an embodiment of the present invention.

图4是本发明的实施例二值化处理优化结果图。FIG. 4 is a graph showing the optimization result of binarization processing according to an embodiment of the present invention.

图5是本发明的实施例边界提取结果图。FIG. 5 is a graph showing a result of boundary extraction according to an embodiment of the present invention.

图6是本发明的实施例锯齿边界角点提取图,其中,“*”为角点位置。FIG. 6 is an extraction diagram of a corner point of a sawtooth boundary according to an embodiment of the present invention, wherein "*" is the position of the corner point.

图7是本发明的实施例光滑边界的拓扑优化结果。FIG. 7 is a topology optimization result of a smooth boundary according to an embodiment of the present invention.

图8是本发明的实施例实体化模型。FIG. 8 is a materialized model of an embodiment of the present invention.

具体实施方式Detailed ways

为了更好的阐述本发明的技术方案,下面结合附图对本发明的具体实施方式进一步详细叙述。In order to better illustrate the technical solutions of the present invention, the specific embodiments of the present invention are further described in detail below with reference to the accompanying drawings.

本发明的目的在于克服现有技术的缺点与不足,提出一种改进的连续体结构拓扑优化后处理方法,该方法采用较少的网格划分数目,即有限元分析单元尺寸大于默认值1,对目标模型进行拓扑优化时可有效避免因网格数目过多引起的细小柱状结构;对优化模型进行二值化处理并分析优化模型且提取锯齿形边界线,通过数值计算得到目标离散角点集,将其作为样本点进行曲线拟合,有效避免后处理模型与原始拓扑优化模型产生较大的偏差,影响结构性能;对得到的新边界线进行采取进一步插值处理,进而生成边界光滑的拓扑结构,并对其进行实体化处理。该方法有效保证优化结构原始设计要求,并避免网格依赖性、棋盘格现象。The purpose of the present invention is to overcome the shortcomings and deficiencies of the prior art, and to propose an improved continuum structure topology optimization post-processing method, which adopts a smaller number of mesh divisions, that is, the finite element analysis unit size is greater than the default value of 1, When performing topology optimization on the target model, it can effectively avoid the small columnar structure caused by too many meshes; binarize the optimized model, analyze the optimized model, extract the zigzag boundary line, and obtain the target discrete corner set through numerical calculation. , which is used as a sample point for curve fitting, which effectively avoids the large deviation between the post-processing model and the original topology optimization model, which affects the structural performance; further interpolation processing is performed on the obtained new boundary line to generate a smooth boundary topology. , and materialize it. This method effectively guarantees the original design requirements of the optimized structure, and avoids grid dependence and checkerboard phenomenon.

如附图1所示为本发明的流程图,从图可知,本发明提出一种改进的连续体结构拓扑优化后处理方法,包括以下步骤:As shown in accompanying drawing 1 is the flow chart of the present invention, as can be seen from the figure, the present invention proposes an improved continuum structure topology optimization post-processing method, comprising the following steps:

本实施例中以附图2所示二维平面应力结构来进行说明,该结构设计区域为150mm×40mm,对设计区域左右两端采用固定约束,在附图2所示位置受到竖直方向载荷作用。将结构离散成为6000个四结点双线性正四边形单元,材料的弹性模量取E=108,泊松比取ν=0.3,体积比设定为0.5。因实施例结构为左右对称结构,为较少计算量,在程序计算时以二分之一结构做分析计算。In this embodiment, the two-dimensional plane stress structure shown in FIG. 2 is used for description. The design area of the structure is 150mm×40mm, and fixed constraints are adopted for the left and right ends of the design area. The position shown in FIG. 2 is subjected to vertical load. effect. The structure is discretized into 6000 four-node bilinear regular quadrilateral elements, the elastic modulus of the material is taken as E=10 8 , the Poisson's ratio is taken as ν=0.3, and the volume ratio is set as 0.5. Because the structure of the embodiment is a left-right symmetric structure, in order to reduce the amount of calculation, a half structure is used for analysis and calculation during program calculation.

S1,对目标模型进行拓扑优化处理得到拓扑优化结构。S1, performing topology optimization processing on the target model to obtain a topology optimization structure.

连续体结构拓扑优化方法采用如变密度法、渐进结构优化方法(ESO)、独立连续映射方法(ICM)等。本发明专利采用变密度法,以最小体积权值为优化目标,以结构刚度及位移为约束条件,对实施例进行拓扑优化处理,其优化结果如附图3所示。Topological optimization methods for continuum structures are used such as variable density method, progressive structure optimization method (ESO), independent continuous mapping method (ICM) and so on. The patent of the present invention adopts the variable density method, takes the minimum volume weight as the optimization objective, and takes the structural stiffness and displacement as the constraint conditions to perform topology optimization processing on the embodiment, and the optimization result is shown in FIG. 3 .

优化问题可表述为:The optimization problem can be formulated as:

Figure BDA0002531390290000041
Figure BDA0002531390290000041

subject to:subject to:

Figure BDA0002531390290000042
Figure BDA0002531390290000042

其中C(ρ)为给定拓扑的柔度,U是全局位移矢量,F是全局负载向量,K是全局刚度矩阵,

Figure BDA0002531390290000046
是单位杨氏模量的元素刚度矩阵,V(ρ)是材料体积,V0是设计域的体积,f是预先设定的体积分数,ρmin是一个包含最低允许相对密度的向量。where C(ρ) is the compliance for a given topology, U is the global displacement vector, F is the global load vector, K is the global stiffness matrix,
Figure BDA0002531390290000046
is the element stiffness matrix in unit Young's modulus, V(ρ) is the material volume, V0 is the volume of the design domain, f is the preset volume fraction, and ρmin is a vector containing the minimum allowable relative density.

S2,对得到的拓扑优化结果进行分析并提取边界线,并提取锯齿形边界线的角点得到点集P。S2, analyze the obtained topology optimization result and extract the boundary line, and extract the corner points of the zigzag boundary line to obtain a point set P.

S2-1,对拓扑优化结果进行二值化处理及均值滤波处理,得到边界分明的优化结果,如附图4所示。进一步对优化结果经过腐蚀膨胀边缘处理并进行边界提取,调用graythresh(x)函数自动获取阈值,对提取的边界结果再一次二值化处理,结果如附图5所示,并将二值化结果转化为0-1的数值矩阵。S2-1, performing binarization processing and mean filtering processing on the topology optimization result to obtain an optimization result with clear boundaries, as shown in FIG. 4 . The optimization result is further processed by erosion and expansion and boundary extraction is performed. The graythresh(x) function is called to automatically obtain the threshold value, and the extracted boundary result is binarized again. The result is shown in Figure 5, and the binarized result Convert to a numeric matrix of 0-1.

S2-2,将得到的边界提取结果记为Z(x,y),对锯齿形边界各角点进行识别计算。S2-2, the obtained boundary extraction result is recorded as Z(x, y), and each corner point of the zigzag boundary is identified and calculated.

计算Z(x,y)在x、y两方向的梯度Ix、Iy,如下所示:Calculate the gradients I x and I y of Z(x,y) in the x and y directions as follows:

Figure BDA0002531390290000043
Figure BDA0002531390290000043

计算Z(x,y)在x、y两方向梯度的乘积,如下所示:Calculate the product of the gradients of Z(x,y) in the x and y directions as follows:

Figure BDA0002531390290000044
Ixy=Ix·Iy
Figure BDA0002531390290000044
I xy =I x ·I y

通过使用高斯函数对Ix、Iy及Ixy高斯加权处理,其中σ取1,从而确定出矩阵Q的元素X、Y及XY,如下所示:The elements X, Y and XY of matrix Q are determined by Gaussian weighting of I x , I y and I xy using a Gaussian function, where σ is taken as 1, as follows:

Figure BDA0002531390290000045
XY=(Ixy)
Figure BDA0002531390290000045
XY=(I xy )

计算每个节点的响应值R,并对小于阈值t的响应值R置为零,响应值R可定义为:Calculate the response value R of each node, and set the response value R less than the threshold t to zero. The response value R can be defined as:

R={R:detQ-α(traceQ)2<t}R={R:detQ-α(traceQ) 2 <t}

在邻域内对其进行非极大值抑制,其中局部最大值所在点即为所计算角点。Non-maximum suppression is performed on it in the neighborhood, and the point where the local maximum is located is the calculated corner point.

以附图5中边界线左下角位置作为坐标原点,以预先划分的离散单元大小为坐标单元尺寸,进而确定各角点坐标定义为Pj(xj,yj),构成点集P={P1,P2,···,Pn}。Take the position of the lower left corner of the boundary line in the accompanying drawing 5 as the coordinate origin, take the pre-divided discrete unit size as the coordinate unit size, and then determine that the coordinates of each corner point are defined as P j (x j , y j ), forming a point set P={ P 1 , P 2 , ···, P n }.

S3,对步骤S2得到的离散角点进行光顺连接。S3, perform a smooth connection on the discrete corner points obtained in step S2.

S3-1,由下式判断各直线段长度:S3-1, the length of each straight line segment is judged by the following formula:

Figure BDA0002531390290000051
Figure BDA0002531390290000051

其中,

Figure BDA0002531390290000052
为直线段PiPi+1的长度,k为距离系数,Δt为预设最小离散单元的大小。本实施例中取k=4,Δt=1。in,
Figure BDA0002531390290000052
is the length of the straight line segment P i P i+1 , k is the distance coefficient, and Δt is the size of the preset minimum discrete unit. In this embodiment, k=4 and Δt=1.

对满足条件的直线段储存于线段集

Figure BDA0002531390290000053
中。The line segments that meet the conditions are stored in the line segment set
Figure BDA0002531390290000053
middle.

S3-2,步骤2中所得到的离散角点集合P={C(xm,ym),m=1,2,···,n},对其采用最小二乘法的二次及三次样条曲线拟合形成光顺的曲线。设y=f(x)使得误差平方和最小,即:S3-2, for the discrete corner point set P={C(x m , y m ), m=1,2,...,n} obtained in step 2, use the quadratic and cubic least squares method for it A spline curve fit forms a smooth curve. Set y=f(x) to minimize the sum of squared errors, namely:

Figure BDA0002531390290000054
Figure BDA0002531390290000054

其中,φ=span{φ1(x),φ2(x),···,φm(x)}where φ=span{φ 1 (x),φ 2 (x),...,φ m (x)}

p(x)=a1φ1(x)+a2φ2(x)+···+amφm(x)(m<n)p(x)=a 1 φ 1 (x)+a 2 φ 2 (x)+...+a m φ m (x)(m<n)

对经光顺处理的曲线进行光顺程度判别,其标准采用能量判别法,能量值越小,对应点集的光顺性越好。并观察曲率图,保证曲率的单调性变化尽可能的小,曲率变化尽可能趋于线性,变化均匀。能量值E可由下式计算:The degree of smoothness of the smoothed curve is judged, and the criterion is the energy discrimination method. The smaller the energy value, the better the smoothness of the corresponding point set. And observe the curvature map to ensure that the monotonic change of the curvature is as small as possible, the curvature change tends to be as linear as possible, and the change is uniform. The energy value E can be calculated by the following formula:

Figure BDA0002531390290000055
Figure BDA0002531390290000055

其中,ei为弦Pi-1Pi方向上的单位向量,ki为Pi-1Pi的弦长,|ei+1-ei|表示弦向量PiPi+1与Pi-1Pi之间方向的变化量,ki+1+ki为两段弦长度之和。Among them, e i is the unit vector in the direction of chord P i-1 P i , ki is the chord length of P i-1 P i , |e i+1 -e i | represents the chord vector P i P i+1 and The amount of change in the direction between P i-1 P i , ki +1 + ki is the sum of the lengths of the two chords.

将上述光顺样条曲线

Figure BDA0002531390290000056
储存于曲线集
Figure BDA0002531390290000057
中。The above smoothing spline
Figure BDA0002531390290000056
save in curve set
Figure BDA0002531390290000057
middle.

S3-3,将得到的线集L1、L2进行交叉合并得到总线集:S3-3, cross and merge the obtained line sets L 1 and L 2 to obtain a bus set:

Figure BDA0002531390290000058
Figure BDA0002531390290000058

并进一步对总线集L采用插值处理,形成曲线封闭区域的初步结果。And further interpolate the bus set L to form the preliminary result of the closed area of the curve.

S4,对得到的曲线封闭区域进行裁剪处理,得到光顺的曲线封闭区域,进而生成边界光滑的拓扑结构。S4 , cutting the obtained closed area of the curve to obtain a smooth closed area of the curve, and then to generate a topology structure with a smooth boundary.

S4-1,遍历线集L={l1,l2,···,ls},计算线集L中任意两条线li与li+1的交点,依次记为Qi(xi,yi),并将其存入点集Q={Q1,Q2,···,Qn}。S4-1, traverse the line set L={l 1 ,l 2 ,...,l s }, calculate the intersection of any two lines l i and l i+1 in the line set L, and denote it as Q i (x i , y i ), and store it in the point set Q={Q 1 , Q 2 ,...,Q n }.

S4-2,从交点集Q中任取一点Qi作为起始点,以线集L中各线作为路径,初始以顺时针方向进行搜索,当搜索至下一交点Qi+1,进行判断,若为单一路径,则继续沿此路径搜索,若为多路径,分别搜索各路径,仅当搜索至下一交点Qi+2的路径为有效路径,舍去其余无效路径,重复上述操作继续搜索,直至搜索至初始点Qi,将循环搜索的有效路径数据记录在数据矩K中。当对所以中点及路径搜索完成后结束操作,得到最终数据集K。S4-2, take any point Qi from the intersection point set Q as the starting point, take each line in the line set L as the path, and initially search in a clockwise direction, when the next intersection point Qi +1 is searched, make a judgment, If it is a single path, continue to search along this path; if it is a multi-path, search each path separately, only when the path searched to the next intersection Q i+2 is a valid path, discard the rest of the invalid paths, and repeat the above operations to continue the search , until the initial point Qi is searched , and the effective path data of the cyclic search is recorded in the data moment K. When the search for all midpoints and paths is completed, the operation ends, and the final data set K is obtained.

S4-3,将数据集K重新生成曲线,可得到光顺的曲线封闭区域,进而生成边界光滑的拓扑结构,如附图7所示。S4-3, the data set K is regenerated into a curve, a smooth closed area of the curve can be obtained, and then a topology structure with a smooth boundary is generated, as shown in FIG. 7 .

S5,检测生成的拓扑结构是否满足要求,满足执行步骤6,否则重设参数重复执行步骤S3至步骤S4。S5, check whether the generated topology structure meets the requirements, and execute step 6, otherwise, reset the parameters and repeat steps S3 to S4.

S6,得到最终的拓扑结构,对其进行实体化处理。S6, obtain the final topology structure, and perform substantive processing on it.

将经程序生成的光滑边界曲线的数据信息写入特定TXT文件,在三维软件(以SolidWorks为例)使用曲线功能导入TXT数据,生成实体曲线;将生成的曲线转换为实体引用,以便后续如倒角、倒圆、增删改的操作,从而可直接进行3D打印或数控加工等。需说明在SolidWorks中,此导入方式生成的曲线不能直接编辑,需新建草图,选择转换实体引用功能,将生成的曲线转化成可编辑的实体,如附图8所示。Write the data information of the smooth boundary curve generated by the program into a specific TXT file, use the curve function to import the TXT data in a 3D software (taking SolidWorks as an example), and generate an entity curve; Corner, rounding, addition, deletion and modification operations, so that 3D printing or CNC machining can be directly carried out. It should be noted that in SolidWorks, the curves generated by this import method cannot be edited directly. You need to create a new sketch and select the Convert Entity Reference function to convert the generated curves into editable entities, as shown in Figure 8.

上述实施例的描述仅用于进一步详细解释本发明的内容,但并不构成对本发明保护范围的限定。在不脱离本发明的前提下,通过合乎逻辑的分析、推理或对本发明实施例或其中一部分技术特征的修改、等同替换或改进等,均应当视为属于本发明的保护范围之内。The descriptions of the above embodiments are only used to further explain the content of the present invention in detail, but do not constitute a limitation on the protection scope of the present invention. On the premise of not departing from the present invention, through logical analysis, reasoning, or modification, equivalent replacement or improvement of the embodiments of the present invention or some of its technical features, all should be deemed to fall within the protection scope of the present invention.

Claims (4)

1.一种改进的连续体结构拓扑优化后处理方法,其特征在于:包括如下步骤:1. an improved continuum structure topology optimization post-processing method, is characterized in that: comprise the steps: S1,对目标模型进行拓扑优化处理得到拓扑优化结构,S1, perform topology optimization on the target model to obtain a topology optimization structure, S2,对得到的拓扑优化结果进行分析提取边界线,并提取锯齿形边界线的角点得到点集P,S2, analyze the obtained topology optimization results to extract the boundary line, and extract the corner points of the zigzag boundary line to obtain a point set P, S3,对步骤S2得到的离散角点进行光顺连接,S3, perform a smooth connection on the discrete corner points obtained in step S2, S4,对得到的曲线封闭区域进行裁剪处理,得到光顺的曲线封闭区域,进而生成边界光滑的拓扑结构,S4, the obtained closed area of the curve is clipped to obtain a smooth closed area of the curve, and then a topology structure with a smooth boundary is generated, S5,检测生成的拓扑结构是否满足要求,满足执行步骤6,否则重设参数重复执行步骤S3至步骤S4,S5, check whether the generated topology structure meets the requirements, and perform step 6, otherwise, reset the parameters and repeat steps S3 to S4, S6,得到最终的拓扑结构,对其进行实体化处理。S6, obtain the final topology structure, and perform substantive processing on it. 2.根据权利要求书1所述的一种改进的连续体结构拓扑优化后处理方法,其特征在于:所述步骤S2中对拓扑优化结果进行二值化处理及均值滤波处理,并将二值化结果转化为0-1的数值矩阵,将得到的边界提取结果记为Z(x,y),对锯齿形边界各角点进行识别计算,设定坐标原点,以预先划分的离散单元大小为坐标单元尺寸,进而确定各角点坐标定义为Pj(xj,yj),构成点集P={P1,P2,···,Pn}。2. a kind of improved continuum structure topology optimization post-processing method according to claim 1, is characterized in that: in described step S2, topology optimization result is carried out binarization processing and mean filter processing, and binary The result is converted into a 0-1 numerical matrix, the obtained boundary extraction result is recorded as Z(x,y), the corner points of the zigzag boundary are identified and calculated, and the coordinate origin is set, and the pre-divided discrete unit size is The size of the coordinate unit is determined, and the coordinates of each corner point are defined as P j (x j , y j ) to form a point set P={P 1 , P 2 ,...,P n }. 3.根据权利要求书1所述的一种改进的连续体结构拓扑优化后处理方法,其特征在于:所述步骤S3中由由下式判断各直线段长度:
Figure FDA0002531390280000011
其中,
Figure FDA0002531390280000012
为直线段PiPi+1的长度,k为距离系数,Δt为预设最小离散单元的大小。
3. a kind of improved continuum structure topology optimization post-processing method according to claim 1 is characterized in that: in described step S3, by following formula to judge the length of each straight line segment:
Figure FDA0002531390280000011
in,
Figure FDA0002531390280000012
is the length of the straight line segment P i P i+1 , k is the distance coefficient, and Δt is the size of the preset minimum discrete unit.
4.根据权利要求书1所述的一种改进的连续体结构拓扑优化后处理方法,其特征在于:对步骤2所得到的离散角点集合P采用最小二乘法的二次及三次样条曲线拟合形成光顺的曲线,对经光顺处理的曲线进行光顺程度判别,其标准采用能量判别法,能量值越小,对应点集的光顺性越好,并观察曲率图,保证曲率的单调性变化尽可能的小,曲率变化尽可能趋于线性,变化均匀,对得到的所有线进一步采用二次样条插值方法,形成曲线封闭区域的初步结果。4. a kind of improved continuum structure topology optimization post-processing method according to claim 1 is characterized in that: adopt the quadratic and cubic splines of least squares to the discrete corner point set P obtained in step 2 Fit to form a smooth curve, and judge the degree of smoothness of the smoothed curve. The standard uses the energy discrimination method. The smaller the energy value, the better the smoothness of the corresponding point set. Observe the curvature diagram to ensure the curvature The monotonicity of the change is as small as possible, the curvature change tends to be linear as much as possible, and the change is uniform. The quadratic spline interpolation method is further used for all the obtained lines to form the preliminary results of the closed area of the curve.
CN202010520561.XA 2020-06-09 2020-06-09 Improved topological optimization post-processing method for continuum structure Active CN111523270B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010520561.XA CN111523270B (en) 2020-06-09 2020-06-09 Improved topological optimization post-processing method for continuum structure

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010520561.XA CN111523270B (en) 2020-06-09 2020-06-09 Improved topological optimization post-processing method for continuum structure

Publications (2)

Publication Number Publication Date
CN111523270A true CN111523270A (en) 2020-08-11
CN111523270B CN111523270B (en) 2023-08-04

Family

ID=71913057

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010520561.XA Active CN111523270B (en) 2020-06-09 2020-06-09 Improved topological optimization post-processing method for continuum structure

Country Status (1)

Country Link
CN (1) CN111523270B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112182794A (en) * 2020-08-29 2021-01-05 大连理工大学 A Spline-based Topology Optimization Geometric Model Modeling Method
CN112329228A (en) * 2020-11-03 2021-02-05 四川大学 Assembly-oriented structural topology optimization method
CN112583004A (en) * 2020-11-20 2021-03-30 北京市腾河智慧能源科技有限公司 Method and system for identifying circuit topology based on voltage discreteness and storage medium
CN113239480A (en) * 2021-04-20 2021-08-10 江苏大学 Structural topology optimization method based on comparative analysis
CN113821889A (en) * 2021-09-24 2021-12-21 西南交通大学 A bionic design method of sieves based on the structural characteristics of pigeon wings

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100170114A1 (en) * 2007-02-07 2010-07-08 Societe De Technologie Michelin High-Performance Sports Shoe
CN105740515A (en) * 2016-01-22 2016-07-06 电子科技大学 Hybrid topology optimization method based on sensitivity analysis
CN110069800A (en) * 2018-11-17 2019-07-30 华中科技大学 Three-dimensional structure method of topological optimization design and equipment with smooth boundary expression
CN111027110A (en) * 2019-11-27 2020-04-17 中国科学院光电技术研究所 A comprehensive optimization method of topology and shape size of continuum structure

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100170114A1 (en) * 2007-02-07 2010-07-08 Societe De Technologie Michelin High-Performance Sports Shoe
CN105740515A (en) * 2016-01-22 2016-07-06 电子科技大学 Hybrid topology optimization method based on sensitivity analysis
CN110069800A (en) * 2018-11-17 2019-07-30 华中科技大学 Three-dimensional structure method of topological optimization design and equipment with smooth boundary expression
CN111027110A (en) * 2019-11-27 2020-04-17 中国科学院光电技术研究所 A comprehensive optimization method of topology and shape size of continuum structure

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
周克民,胡云昌: "结合拓扑分析进行平面连续体拓扑优化", 天津大学学报(自然科学与工程技术版) *
沈大勇,毛善君,马蔼乃: "基于格网数据的开曲线连通区域扩展算法", 计算机工程 *
牛小铁;李兆坤;张宪民;史利娟;: "柔顺机构拓扑图提取", 机械设计与研究 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112182794A (en) * 2020-08-29 2021-01-05 大连理工大学 A Spline-based Topology Optimization Geometric Model Modeling Method
CN112329228A (en) * 2020-11-03 2021-02-05 四川大学 Assembly-oriented structural topology optimization method
CN112583004A (en) * 2020-11-20 2021-03-30 北京市腾河智慧能源科技有限公司 Method and system for identifying circuit topology based on voltage discreteness and storage medium
CN112583004B (en) * 2020-11-20 2022-08-26 北京市腾河智慧能源科技有限公司 Method and system for identifying circuit topology based on voltage discreteness and storage medium
CN113239480A (en) * 2021-04-20 2021-08-10 江苏大学 Structural topology optimization method based on comparative analysis
CN113239480B (en) * 2021-04-20 2024-06-07 江苏大学 Structural topology optimization method based on comparative analysis
CN113821889A (en) * 2021-09-24 2021-12-21 西南交通大学 A bionic design method of sieves based on the structural characteristics of pigeon wings
CN113821889B (en) * 2021-09-24 2023-11-21 西南交通大学 Screen piece bionic design method based on pigeon wing structural characteristics

Also Published As

Publication number Publication date
CN111523270B (en) 2023-08-04

Similar Documents

Publication Publication Date Title
CN111523270A (en) An improved post-processing method for topology optimization of continuum structures
CN110069800B (en) Method and equipment for topology optimization design of three-dimensional structure with smooth boundary expression
CN109670200B (en) Topological optimization method for isogeometric material density field structure
CN112699623B (en) High-precision heat flow calculation method based on unstructured grid regularized reconstruction technology
CN102043883B (en) Material breakage constraint-based continuum structure topology design modeling and optimization design method
CN108399290B (en) MODFLOW Simulation Method of Fracture Flow Based on Fracture Network Connectivity
CN113204906B (en) A topology optimization design method and system for multiphase materials considering structural stability
CN106384384B (en) Shape optimization method of three-dimensional product model
CN114861500B (en) Method and system for automatically generating finite element model of tunnel structure based on three-dimensional point cloud
CN109783950A (en) A topology optimization design method for connected structures in additive manufacturing
CN115481497A (en) Volume parameterization modeling method based on feature framework
CN107038308B (en) A Regular Grid Terrain Modeling Method Based on Linear Interpolation
CN106529044B (en) method for extracting 0-1 variable-configuration topological graph of compliant mechanism
CN117993251A (en) A high-fidelity stress calculation method for structural topology optimization under fixed grid
CN114707388A (en) A 3D CAD reconstruction method for pixel-based topology optimization results
CN117708904A (en) Hybrid element mesh generation method for semiconductor numerical simulation
CN110084865A (en) A kind of method of discrete point classification weighted fitting regular grid
CN111339617A (en) A multi-material topology optimization design method for additive manufacturing
CN115203997A (en) A topology optimization method for lattice-solid composite structures based on multivariable design
CN106780747B (en) A Fast Method of Segmenting CFD Computational Grids
CN111079326A (en) Two-dimensional anisotropic grid cell metric tensor field smoothing method
CN112597649B (en) A Numerical Calculation Method of Meshless Electrostatic Field with Strong and Weak Coupling
CN118779939A (en) A mesh quality adjustment method and system based on geometry optimization and topology optimization
CN111274624A (en) A topology optimization design method for multi-condition special-shaped nodes based on RBF surrogate model
CN114861497B (en) Porous structure design method based on multi-microstructure prototype and multi-scale finite element

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
GR01 Patent grant
GR01 Patent grant