Next Article in Journal
Bounds of Eigenvalues for Complex q-Sturm–Liouville Problem
Previous Article in Journal
Generalized Federated Learning via Gradient Norm-Aware Minimization and Control Variables
Previous Article in Special Issue
A Path-Conservative ADER Discontinuous Galerkin Method for Non-Conservative Hyperbolic Systems: Applications to Shallow Water Equations
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Hole Appearance Constraint Method in 2D Structural Topology Optimization

1
Changchun Institute of Optics, Fine Mechanics and Physics (CIOMP), Chinese Academy of Sciences, Changchun 130033, China
2
School of Optoelectronics, University of Chinese Academy of Sciences, Beijing 100049, China
*
Author to whom correspondence should be addressed.
Mathematics 2024, 12(17), 2645; https://doi.org/10.3390/math12172645
Submission received: 25 July 2024 / Revised: 21 August 2024 / Accepted: 24 August 2024 / Published: 26 August 2024

Abstract

:
A 2D topology optimization algorithm is proposed, which integrates the control of hole shape, hole number, and the minimum scale between holes through the utilization of an appearance target image. The distance between the structure and the appearance target image is defined as the hole appearance constraint. The appearance constraint is organized as inequality constraints to control the performance of the structure in an iterative optimization. Specifically, hole shapes are controlled by matching adaptable equivalent shape templates, the minimum scales between holes are controlled by a hole shrinkage strategy, and the hole number is controlled by a hole number calculation and filling method. Based on the SIMP interpolation topology optimization model, the effectiveness of the proposed method is verified through numerical examples.

1. Introduction

Topology optimization [1,2] is regarded as an effective conceptual design approach, enabling the identification of the optimal material distribution within a specified design domain. It has been successfully applied in various fields such as advanced structures and materials, the automotive industry, aerospace, and architecture in the past 30 years [3,4,5,6,7]. Among other factors, precise control of holes is essential for the designed structure, considering aspects such as manufacturing, functionality, and aesthetics [8]. The performance of a structure is determined by detailed information about the holes, such as their location, number, shape, and size. Therefore, precise control over the structural topology allows designers to create structures with well-defined features and exceptional performance. For example, avoiding complex structural topology can ensure that the optimization results are easily manufacturable [9,10]. In optimizing systems with embedded components, it becomes necessary to incorporate a certain number of holes with specific sizes and shapes to facilitate further assembly of functional devices [11]. The hole control in additive manufacturing can affect the manufacturability of structures, such as hole shape control in the design of self-supporting structures [12] and unclosed hole control in selective laser sintering [13].
In general, controlling the number of holes aims to limit the total number of holes within a structure. Current techniques for controlling the hole number in the structure can be categorized into implicit and explicit methods. Implicit methods do not directly quantify the hole number in the structure, for instance, sensitivity filtering methods [14], Heaviside projection-based methods [15,16], and structural skeleton-based methods [17,18]. By using explicit methods, designers can establish a direct relationship between hole quantities and design variables [19,20,21,22].
Hole shape control aims to achieve regularization of hole shapes in structures after topology optimization. A method utilizing shape templates to represent internal holes was proposed, aiming to simplify the structural model by using shape and size parameters [23,24]. Subsequently, a structure optimization system was proposed, which used image interpretation technology to describe complex hole shapes [25,26]. As these methods traditionally performed topology optimization and shape optimization separately, with shape optimization as a post-processing step, this approach could, in some cases, reduce the mechanical performance of the resulting structure. It was important to mitigate this effect by carrying out topology optimization and shape constraints in parallel. The integration of structural shape features and topology optimization has drawn significant attention [27]. The feature-based topology optimization method resulted in a structure composed of only simplified geometric primitives [28]. The flexible void regions method simultaneously optimized the structural performance, shapes, and positions of void regions using penalties based on inertia moments and centroid positions [11]. Various methods for explicit geometric topology optimization have been proposed, such as moving morphable components (MMC) [29] and moving morphable voids (MMV) [30]. Based on the level-set method, a comprehensive study was conducted on hole control using hole features as design primitives [8].
In general, while the aforementioned methods for controlling holes each have their merits, there are several significant issues that still require further exploration. The first challenge is the selection of characteristic shape templates and the measurement of complex hole shapes. The gap between the template and the hole shape cannot be too large; otherwise, the mechanical performance of the design may be greatly reduced. This is usually solved by selecting more templates, but this also increases the difficulty of the hole template matching problem. The second challenge is that the optimization process needs to consider both the mechanical performance of the structure and the hole number, shape, and spacing.
Appearance constraint is the distance between a 2D design and a 2D image composed of predefined pattern matching [31,32]. Inspired by this approach of measuring appearance constraint, this paper integrates the control of hole shapes, hole number, and the minimum scale between holes as an appearance constraint. By adopting three adaptable equivalent shape templates, including isosceles triangles, rectangles, and ellipses [33,34], more flexible hole shapes can be adapted through certain deformations while keeping the number of shape templates small. This paper introduces corresponding appearance target images based on the original 2D design, optimized by replacing hole shapes with matching equivalent shapes and filling redundant holes. Simultaneously, appearance constraint is defined as the distance between the 2D design and these appearance target images, enabling control over structural appearance features during the optimization process. In summary, a flexible implementation of the implicit constraint to control holes is proposed in this paper.
The structure of this paper is organized as follows: Section 2 primarily introduces the structural optimization framework. Section 3 describes the information extraction of holes in the structure and the best equivalent shape matching of hole shape. Section 4 gives the method of controlling the number of holes. Section 5 discusses the solving of hole interference problems and the calculation of corresponding appearance target image and appearance constraints. Section 6 uses multiple 2D examples to show the effect of the algorithm proposed. The summary of this study is in Section 7.

2. Implementation of Topology Optimization

2.1. The Topological Optimization Model

The purpose of topology optimization is to find the optimal distribution of materials in a given design domain according to a set of objectives and constraints. Our approach utilizes a comprehensive framework that includes SIMP interpolation and the method of moving asymptotes (MMA) optimization algorithm [35] to achieve structural optimization, as it effectively handles complex physical problems with multiple constraints. We take the minimization of compliance as the objective function and the appearance function and volume as design constraints. The design domain Ω is divided into n finite element meshes in 2D. For a fixed external load F and the resulting displacement U, the optimization problem can be defined as follows:
M i n : c ( ρ ) = F T U = e = 1 n ρ e   p u e   T k 0 u e s . t . : V ( ρ e ) V K U = F 0 < ρ m i n ρ e 1 A ρ e A
For each element e , the effective Young’s modulus Y is determined by the power-law functions E ρ e = ρ e p E 0 of the specified isotropic material E 0 , where the penalty coefficient p = 3 . K is the global stiffness matrix, ρ e is the density of the e -th element, ρ m i n is the lower bound of the element design variables, and V ( ρ e ) is subject to the constraint V * . The appearance function A ρ e is defined by appearance target graph with the scalar constraint value of A*. The specific expression of A ρ e can be found in Section 5.2.

2.2. Workflow

The proposed topological optimization algorithm with appearance function constraints integrates image processing techniques, equivalent shape measurement matching algorithms, hole interference handling methods, hole filling strategies, and appearance function constraints simultaneously. The flowchart of the hole appearance constraint method proposed in this paper is depicted in Figure 1. The proposed algorithm takes the classical topology optimization approach with the judgment of the hole number as the first stage of optimization and the optimization process with the appearance function constraint as the second stage, in which the gray image of the 2D design obtained in the first stage is the initial value of the second stage of optimization.

3. Hole Extraction and Feature Shape Measurement Algorithm

3.1. Extraction of Hole Shape Information

In a two-dimensional design domain, a hole is conceptually a region encircled by solid material, with its shape defined by the binary image of the structure. The classic SIMP method involves relaxing the intermediate density of design variables, resulting in the presence of grayscale elements in each iteration of the optimization process. Therefore, in order to extract the shape information of holes, we first need to define a binarization method to project the design variables to 0 or 1 to obtain a binary image of the structure.
There are many algorithms that can achieve projection operations, in order to convert grayscale images to binary images with equal volume. In this article, we choose the volume-preserving projection method [36], where the threshold ρ ¯ is calculated by the classical optimality criteria (OC) updated equal division method under the assumption of volume equivalence. Then, the design variables ρ e with density less than ρ ¯ are defined as 0, while the design variables ρ e with density greater than ρ ¯ are defined as 1. The volume-preserving projection method applies a specific threshold to convert the gray image obtained at each iteration as shown in Figure 2a into a binary image as shown in Figure 2b. The variable can be defined by the Equation (2).
ρ i   ˜ = 1 , ρ i > ρ ¯ 0 , ρ i ρ ¯ ρ i ˜ v i = ρ i v i
This paper employs the fire-burning method (FBM) [20,36] to extract information about the holes from the binary image, including the hole number and the element set of each hole. The FBM can obtain multiple subdomains from a discrete design domain based on element adjacency information and properties (the density of elements), with each subdomain containing elements of the same density and each subdomain singly connected. The specific steps are as follows: Identify all elements with a density of 0 within the design domain Ω, and then divide all void elements into multiple void subdomains based on adjacency relationships (four adjacency). Subsequently, all hole subdomain information is obtained by eliminating the void subdomains adjacent to the design domain boundary. We use H j , j = 1,2 , m to represent the element set of all holes, where m represents the hole number. The Figure 2c shows the information of the number of holes and all elements contained in each hole in the structure extracted by the FBM, including three holes represented by H j , where j = 1,2 , 3 .
To extract the set B of boundary elements for an enclosed solid region as shown in Figure 2d, the Laplacian operator is employed to extract the boundary. The enclosed solid regions obtained after hole filling are subjected to convolution with the Laplacian operator. The four neighbor template H of the Laplacian operator is shown below:
H = 0 1 0 1 4 1 0 1 0
The element ρ e does not belong to the boundary set B if the result of the convolution operation is ρ e ' = 0 ; otherwise, it belongs to the boundary set B . In order to judge the elements on the boundary of the design domain, this paper uses a 0 element to expand the design domain, and finally obtains the boundary of the closed solid area, which is represented by the red element in Figure 2d.
Each pixel in the image corresponds to each element in the finite element grid. In this article, the terms unit and pixel refer to the same square design unit, as the design domain is discretized by the units of the square. To obtain positional information for each element within the holes, in the following context, we assume a finite element grid with n finite elements, and the corresponding centroid coordinates C R n × 2 are defined as:
C = x 1 y 1 x n y n
then the coordinates H C j corresponding to the elements contained in each hole H j are defined as:
H C j = x 1 y 1 x m j y m j
where m j represents the total number of elements contained in the hole H j .

3.2. Calculating the Area and Centroid of Holes

Holes in binary images usually have complex geometries. In order to regularize the shape of holes, we first obtain the basic geometric information of the hole shape, which includes the area, centroid, and elongation of each hole. We define the area of each pixel as 1, then the area S H j of the j -th hole H j is the total number of elements contained in H j , and the centroid coordinates ( x c , y c ) of the hole H j are determined by the following equation:
S H j = m j x c = 1 m j = 1 m x j y c = 1 m j = 1 m y j

3.3. Calculating the Elongation of Holes

We utilize the minimum bounding rectangle (MBR) algorithm [37] to obtain the MBR of the hole shape. This method relies on the following principle: if a rectangle is the MBR of a convex polygon, then this rectangle is collinear with one edge of the convex polygon. By employing this algorithm, we can obtain the MBR for each hole, as indicated by the red line in Figure 3. By inputting the coordinate information of the hole element H C j into the algorithm, it will provide us with the coordinates of the four vertices of the MBR X r , Y r . The length l and the width h of the rectangle can be calculated through the coordinates of the four vertices of the minimum bounding rectangle.
X r , Y r = x 1 x 2 x 3 x 4 y 1 y 2 y 3 y 4 T l = max x 1 x 2 2 + y 1 y 2 2 , x 2 x 3 2 + y 2 y 3 2 h = min x 1 x 2 2 + y 1 y 2 2 , x 2 x 3 2 + y 2 y 3 2
The elongation rate ε = l / h of the hole shape is the ratio of the long axis l to the short axis h .

3.4. Best Equivalent Shape Matching

We discovered that although the shapes of the internal holes in the resulting structure are irregular, the majority of shapes are close to triangular or quadrilateral. Considering these findings, we only chose deformable shape feature templates, namely ellipses, rectangles, and isosceles triangles in this paper. These templates possess the ability to adapt to more intricate hole shapes by adjusting their elongation ratios. Due to the discrete nature of digital images, all digital images are sensitive to image resolution, making it more challenging to describe the shapes of objects with low resolutions. In our process of measuring hole shapes, as the area of the hole decreases, the resolution of the hole’s shape reduces. Consequently, the error in measuring the hole’s shape increases. Therefore, in practical operations, the number of grids in the design domain should not be too small. This article suggests that the area of holes should not be less than 20 units.

3.4.1. Measurement Method for Shape Similarity of Equivalent Shapes

Methods for measuring the similarity of simple regular shapes have been proposed [33,38], which involve assessing the ratio between an object’s area and the area of a regular shape. For instance, rectangularity is a value reflecting how closely a shape resembles a rectangle. A traditional approach to measuring rectangularity involves comparing the shape’s area with its MBR. To avoid the influence of prominent boundaries on the MBR, we combine the concept of an equivalent rectangle, replacing the MBR with the equivalent rectangle of the object. The ratio of the overlapped area to the original shape area is termed as rectangularity.
  • Rectangularity Measurement
Rectangularity R e is defined as the ratio of the overlap area between the original hole shape and its equivalent rectangle to the area of the original hole shape as:
R e = A R A O A O
where the area of the hole shape is represented by A O , as depicted in Figure 4a. A R refers to the area of the equivalent rectangle, shown as the red region in Figure 4b. The overlapping area between the hole shape and its equivalent rectangle is illustrated by the black portion in Figure 4b.
  • Isosceles Triangle Measurement
The isosceles triangle measurement T r reflects the degree to which the shape approximates an isosceles triangle. The definition of T r is similar to that of rectangularity, as follows:
T r = A T A O A O
where A T represents the area of the equivalent isosceles triangle as depicted in Figure 4 d in the red region; the overlapping area between the original shape and its equivalent isosceles triangle is illustrated in Figure 4d by the black section.
  • Ellipticity Measurement
The ellipticity of the shape, E l , reflects the degree to which the shape approximates an ellipse. The definition of ellipticity can be defined as:
E l = A E A O A O
where A E denotes the area of the equivalent ellipse as shown in Figure 4c in the red region; the overlapping area between the original shape and its equivalent ellipse is represented in Figure 4c by the black section.

3.4.2. Method for Calculating Equivalent Shapes

A method for determining an equivalent rectangle has recently been proposed [34,38], which derives the equivalent rectangle of a target shape by obtaining its geometric parameters. We have expanded upon this concept by introducing the concepts of equivalent isosceles triangles and equivalent ellipses. The derived equivalent shapes of the target shape are expected to adhere to the following assumptions:
  • The centroids of the two shapes should coincide;
  • The areas of the two shapes should be identical;
  • The two shapes should possess equivalent aspect ratios;
  • The two shapes should have the maximum possible overlapping area.
To obtain the equivalent characteristic shapes of the target, such as rectangles, isosceles triangles, and ellipses, it is necessary to extract the geometric parameters of the target’s hole shape. This requires an initial computation of the hole shape’s centroid, area, and elongation ratio. To ensure that the elongation ratio of the shape of the hole computed using the MBR matches that of the equivalent regular shapes, it becomes essential to establish the relationship between the elongation ratio of the shape and the shape parameters of the equivalent forms (such as the length and width of a rectangle, the long and short axes of an ellipse, and the base and height of an isosceles triangle).
As shown in Figure 5a, the length of the equivalent rectangle is equal to the long axis l of the minimum bounding rectangle of the hole, and the width of the equivalent rectangle is equal to the short axis h of the MBR. As shown in Figure 5b, the long axis of the equivalent ellipse is l / 2 , and the short axis is h / 2 .
Note that when using the minimum bounding rectangle method to calculate the elongation ratio of a shape, the shape parameters of both the equivalent rectangle and ellipse can be uniquely determined, while there are two cases for the isosceles triangle. The first case is that the base of the isosceles triangle coincides with one side of the MBR as shown in Figure 5c; the relationship between them can be expressed as follows:
a = h b = l
The second case is that the waist of the isosceles triangle coincides with one side of the MBR as shown in Figure 5d; their relationship can be mathematically expressed as follows:
a = l 2 b 2 2 b = l l 2 h 2 2 + h 2
where b is the length of the base of the isosceles triangle, and a is the height of the isosceles triangle.
After obtaining the ratio of the geometric parameters of the equivalent shape, we can determine the size of the shape parameters according to the principle that the area of the hole is the same as the area of the equivalent shape (Equation (13)). The method to determine the position of the equivalent shape involves aligning the centroid position of the equivalent shape with the computed hole position.
A R = A T = A E = A 0 A R = a R b R A T = 1 2 a T b T A E = π a E b E
By calculating the overlap area between the equivalent shape E S θ and the original shape S 0 at various directions θ , the orientation θ ^ of the equivalent shape is determined as the direction that maximizes the overlapping area, as illustrated in Figure 6. Therefore, the direction of the equivalent shape θ ^ can be obtained using the following formula:
θ ^ = max S 0 E S θ , θ 0 , 2 π
For the two equivalent isosceles triangles obtained, the one with a larger overlap area with the original shape is the final equivalent isosceles triangle. The matching equivalent shape (MES) for each hole is the one corresponding to the maximum value among the rectangle degree, isosceles triangle degree, and ellipse degree of the hole. Therefore, the MES can be obtained using the following formula:
M E S = max ( R e , T r , E l )
The MES is shown in Figure 7, which calculates the values of T r , R e , and E l for several examples of hole shapes. The specific algorithm for obtaining the MES is detailed in Algorithm 1.
Algorithm 1: Algorithm to obtain the MES of a hole.
  • Input the coordinates of hole elements H C j .
  • Calculate the hole centroid coordinates ( x c , y c ), area S H j , and elongation ε .
  • Determine the proportion of shape parameters for isosceles triangles, rectangles, and ellipses based on the relationship shown in Figure 5. Then, determine the shape parameters according to Equation (13).
  • Align the centroid of the equivalent shape with that of the hole. Subsequently, compute the coordinates of the shape (such as vertices for isosceles triangles, vertices for rectangles, boundary coordinates for ellipses) based on the parameters of the equivalent shape. Employ a binary mapping method to identify elements encompassed by the equivalent shape (as discussed in Section 5.1).
  • Determine the angle θ ^ of the equivalent shape according to Equation (14).
  • Calculate the R e , T r   a n d   E l according to Equations (8)–(10).
  • Obtain MES according to Equation (15).
  • End

4. Hole Number Control

Changing the number of holes within the appearance target image can control the quantity of holes while regulating their shapes. When determining the appearance target image, we can employ a method that involves filling redundant holes to guide the desired number of holes in the optimized structure. With m as the current number of holes within the structure, we set a limit on the maximum hole count as m ¯ which is defined as m   m ¯ . After binarizing the gray image of the structure, we judge the relationship between the number of holes m and our desired hole number m ¯ . If m >   m ¯ , we fill one of the smallest area holes in the binary image with a solid object. It should be emphasized that no matter how large the gap between m and m ¯ is, we only fill one hole at a time. For example, we define m ¯ = 1 . By filling the smallest hole in Figure 8a, we obtain the appearance target image as shown in Figure 8b. If the number of holes meets the specified criteria, the hole filling operation is not required. By gradually filling holes, we can ultimately achieve control over the number of holes in the structure.

5. Appearance Target Image and Minimum Scale between Holes Control

5.1. Generate Appearance Target Image

The method involves mapping geometric characteristic shapes onto a fixed grid using a binary density-based mapping approach. This technique uses a fixed grid for analysis, thus avoiding the need for re-meshing. The mapping of geometric characteristic shapes onto the fixed grid involves determining if an element lies within the interior of the characteristic shape. If the centroid of an element is within the characteristic shape’s interior, it is considered part of the characteristic shape; otherwise, it is not. As illustrated in Figure 9a, the MES for each hole is determined. The application of the above method involves mapping the matched equivalent shapes onto the binary image after hole filling, shown in Figure 9b, to obtain the appearance target image as depicted in Figure 9c.
However, it is crucial to consider interference between holes in the appearance target image, as demonstrated in Figure 10d. We address this issue by employing a hole shrinking strategy. By reducing the hole’s area and consequently diminishing the equivalent shape’s area, we successfully avoid interference among equivalent shapes in the appearance target image. Similarly, we also utilize a hole shrinking strategy to solve interference between holes and the boundaries of solid elements in the appearance target image. Additionally, this strategy enables us to control the minimum scale between holes.
The specific operational steps for the hole shrinking strategy are outlined as follows:
  • Obtain the grayscale image, as depicted in Figure 10a, using classical topology optimization methods.
  • Process the obtained image through binarization to achieve Figure 10b.
  • Fill the redundant holes. At this point, we defined m ¯ = 6 .
  • After determining the MES for all holes, obtain the results depicted in Figure 10c.
  • Map the MES onto the binary image to obtain the appearance target image, as shown in Figure 10d, where interference between holes becomes apparent.
  • Before performing hole shrinking on interfering holes, expand the holes in the appearance target image by k pixels using morphological dilation operations to generate an interference assessment map, as illustrated in Figure 10e. This step aims to prevent the holes being too close to or touching each other.
  • Identify all interfering holes based on the interference assessment map and replace the equivalent shapes of interfering holes in the appearance target image with their original hole shapes. Use morphological erosion operations to reduce the size of the holes by one pixel. This process results in an updated appearance target image shown in Figure 10f.

5.2. Appearance Constraints

After obtaining the final target appearance map, we define the distance between the grayscale image of the current design domain and the appearance target image as the appearance constraint A   ( ρ ) . Specifically, the target for each element within the design domain is the corresponding element density on the appearance target image. The distance between each element and its corresponding target is defined as d ρ i , ρ m i . To improve convergence, the constraints on the boundary elements are relaxed. A simple sum aggregation function is used to ensure a well-defined first-order derivative, resulting in the appearance function. This appearance function measures the distance between all elements in the design domain and the appearance target. Guided by the appearance target image, the number, shape, and spacing of the holes in the structure can be controlled. In each iteration, the appearance target image is updated based on the grayscale image, ultimately achieving a balance between structural compliance and the appearance target. A   ( ρ ) is defined as follows:
A ( ρ ) = 1 n d ρ i , ρ m i , i B 0 , i B d ρ i , ρ m i = ρ i ρ m i 2
where ρ i represents the gray density of the   i -th element in the gray image, and ρ m i represents the corresponding gray density of the i -th element in the appearance target image.
The derivative of the appearance constraints concerning gray density is defined as follows:
A ρ ρ i = 2 ρ i ρ m i n , i B 0 , i B

6. Results and Discussion

In this section, the optimization model minimizes the structural compliance under volume constraints and hole appearance constraints. The templates used to control the regularity of holes include rectangles, isosceles triangles, and ellipses. The convergence criterion adopted in this paper is consistent with the convergence criterion of the classical topology optimization algorithm [39], and the maximum number of iterations is set to 300. The elastic material is set to a Young’s modulus and a Poisson’s ratio of 1 and 0.3, respectively.

6.1. Example 1

The cantilever beam problem illustrated in Figure 11a uses a design domain divided into 160 × 100 elements; the final design volume fraction is constrained to 0.5, with a filter radius of 3. The left edge of the design domain is completely fixed, and an external force is applied at the midpoint of the right edge. The control parameter k for the minimum distance between holes is set to 1, and there is no constraint on the maximum number of holes, with m ¯ set to a large value (for example, m ¯ = 100 ). The appearance constraint A * is set to 10 %   A 0 , where A 0 corresponds to the appearance function associated with the structure in Figure 11b.
Figure 11b illustrates the structure obtained in the first phase of our optimization algorithm without appearance function constraints. In the absence of constraints on the hole number, the structure from the first phase aligns with that of classical topological optimization. In the second phase, under the influence of the appearance constraints, the final optimized result is generated, as shown in Figure 12c. The variation of the objective function, the compliance, during the optimization process is displayed in Figure 13a. Classical topological optimization converges by the 81st iteration, following which the appearance constraint is introduced. During subsequent iterations, it can be observed that the objective function c rapidly increases initially, then gradually decreases until convergence. Simultaneously, the variation of the appearance constraint A throughout the iterations is represented by the blue line in Figure 13b, while the change in volume fraction is depicted by the orange line in Figure 13b. Overall, after the regularization of the shapes of the three holes in the structure, the structural flexibility increases from 39.24 to 39.71. The optimization results for when the appearance constraints A * are set at 50 %   A 0 and 25 %   A 0 are illustrated in Figure 12a,b, respectively.
For different structural features of hole shapes, we can choose various equivalent shape templates to better fit the hole shapes. These templates can be simple regular shapes or complex shapes. We can also increase or decrease the number of templates. By selecting different combinations of templates, we can flexibly handle the hole shape optimization problem in topological optimization. For example, under the initialization conditions of example 1, we separately used equilateral triangles, rectangles, and ellipses as the shape templates to constrain the regularization of the holes, resulting in the optimization results shown in Figure 14a–c, respectively.

6.2. Example 2

As shown in Figure 15a, the classic short cantilever beam problem involves a design domain discretized into 160 × 100 elements, with a final design volume fraction constrained to 0.5 and a filtering radius of 3. The left edge of the design domain is completely fixed, and an external force is applied to the bottom right corner of the cantilever beam. The minimum distance control parameter between holes k is set to 1, and there is no control over the maximum number of holes. The appearance constraint A * is set to 10 %   A 0 . Figure 15b shows the structure obtained in the first stage of our optimization algorithm under the aforementioned conditions. Figure 16b displays the final optimized result.
Next, we take k = 0 ,   1 ,   2 ,   3 to demonstrate the control effect of the minimum distance between holes. From Figure 16, it can be observed that using the hole shrinking strategy proposed in this paper can effectively resolve the interference between holes and control the minimum distance between them. The changes in compliance, volume fraction, and appearance constraint during the iteration process under different k values are shown in Figure 17. In the early stages, the appearance constraints A rapidly oscillate with iterations, reflecting the gradual resolution of interference between holes in the appearance target image through the hole shrinking strategy.
To verify the effect of hole number constraints, we added a hole number constraint and took k = 1 and m ¯ = 0,1 , 2,3 , 4,5 , 6 . The optimized results under different hole quantity constraints are shown in Figure 18. Figure 19 show the changes in volume fraction and appearance constraint during the optimization process for m ¯ = 2 .

6.3. Example 3

This example concerns the MBB beam, a widely used benchmark example in topology optimization. Due to the symmetry of the MBB beam, research typically analyzes only half of the beam. However, in order to regularize the shape of the holes, the entirety of the beam was chosen as the design domain in this study. The design domain was divided into 240 × 40 elements, with a filter radius of 3. The volume fraction was limited to 0.5, and the boundary conditions and loads are shown in Figure 20a.
The classical topology optimization results are displayed in Figure 20b. After introducing an appearance constraint represented by   A * = 10 %   A 0 , the optimized results are depicted in Figure 20c. In this example concerning the MBB beam, when calculating the shape appearance target image, we applied a hole interference control strategy too. We set the control parameter for the minimum distance between holes as k = 1. The hole interference control strategy to address the interference between holes led to gradual filling of the holes at the bottom-left and bottom-right corners during the optimization process.

7. Conclusions

In this work, three adaptable equivalent geometric templates are constructed to measure and match hole shapes. Additionally, the control of hole shape, hole number, and the minimum scale between holes has been integrated through the utilization of an appearance target image. Numerical examples demonstrate the effectiveness of the proposed method. This method can obtain high-performance structures with specified constraints on hole shape, number, and spacing. Nevertheless, it is concluded that controlling holes often results in compromised structural performance. The appearance constraints can be extended to three-dimensional cases where the user-desired appearance target model needs to be researched further.

Author Contributions

Conceptualization, L.Z. and Z.L.; Formal analysis, Z.L.; Investigation, L.Z.; Methodology, L.Z., T.Z. and C.W.; Project administration, Z.L.; Resources, Z.L.; Software, L.Z. and T.Z.; Supervision, Z.L.; Validation, Q.W., Z.Y. and Z.L.; Visualization, L.Z.; Writing—original draft, L.Z. and Z.Y.; Writing—review & editing, L.Z. and Z.L. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

Dataset available on request from the authors.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Bendsøe, M.P.; Kikuchi, N. Generating Optimal Topologies in Structural Design Using a Homogenization Method. Comput. Methods Appl. Mech. Eng. 1988, 71, 197–224. [Google Scholar] [CrossRef]
  2. Sigmund, O.; Maute, K. Topology Optimization Approaches: A Comparative Review. Struct. Multidiscip. Optim. 2013, 48, 1031–1055. [Google Scholar] [CrossRef]
  3. Sobieszczanski-Sobieski, J.; Haftka, R.T. Multidisciplinary Aerospace Design Optimization: Survey of Recent Developments. Struct. Optim. 1997, 14, 1–23. [Google Scholar] [CrossRef]
  4. Eschenauer, H.A.; Olhoff, N. Topology Optimization of Continuum Structures: A Review. Appl. Mech. Rev. 2001, 54, 331–390. [Google Scholar] [CrossRef]
  5. Bendsøe, M.P. Topology Optimization—Broadening the Areas of Application. In Proc. 1. Konferenz für Angewandte Optimierung; FE-Design: Karlsruhe, Germany, 2006. [Google Scholar]
  6. Nomura, T.; Nishiwaki, S.; Sato, K.; Hirayama, K. Topology Optimization for the Design of Periodic Microstructures Composed of Electromagnetic Materials. Finite Elem. Anal. Des. 2009, 45, 210–226. [Google Scholar] [CrossRef]
  7. Zhang, J.; Zhang, W.H.; Zhu, J.H.; Xia, L. Integrated Layout Design of Multi-Component Systems Using XFEM and Analytical Sensitivity Analysis. Comput. Methods Appl. Mech. Eng. 2012, 245–246, 75–89. [Google Scholar] [CrossRef]
  8. Zhou, L.; Gao, T.; Zhang, W. Hole Control Methods in Feature-Driven Topology Optimization. Comput. Methods Appl. Mech. Eng. 2023, 417, 116447. [Google Scholar] [CrossRef]
  9. Zhang, W.; Zhong, W.; Guo, X. Explicit Layout Control in Optimal Design of Structural Systems with Multiple Embedding Components. Comput. Methods Appl. Mech. Eng. 2015, 290, 290–313. [Google Scholar] [CrossRef]
  10. Yan, X.; Chen, J.; Hua, H.; Zhang, Y.; Huang, X. Smooth Topological Design of Structures with Minimum Length Scale and Chamfer/Round Controls. Comput. Methods Appl. Mech. Eng. 2021, 383, 113939. [Google Scholar] [CrossRef]
  11. Clausen, A.; Aage, N.; Sigmund, O. Topology Optimization with Flexible Void Area. Struct. Multidiscip. Optim. 2014, 50, 927–943. [Google Scholar] [CrossRef]
  12. Johnson, T.E.; Gaynor, A.T. Three-Dimensional Projection-Based Topology Optimization for Prescribed-Angle Self-Supporting Additively Manufactured Structures. Addit. Manuf. 2018, 24, 667–686. [Google Scholar] [CrossRef]
  13. Kruth, J.; Mercelis, P.; Van Vaerenbergh, J.; Froyen, L.; Rombouts, M. Binding Mechanisms in Selective Laser Sintering and Selective Laser Melting. Rapid Prototyp. J. 2005, 11, 26–36. [Google Scholar] [CrossRef]
  14. Xia, L.; Breitkopf, P. Design of Materials Using Topology Optimization and Energy-Based Homogenization Approach in Matlab. Struct. Multidiscip. Optim. 2015, 52, 1229–1241. [Google Scholar] [CrossRef]
  15. Guest, J.K.; Prévost, J.H.; Belytschko, T. Achieving Minimum Length Scale in Topology Optimization Using Nodal Design Variables and Projection Functions. Int. J. Numer. Methods Eng. 2004, 61, 238–254. [Google Scholar] [CrossRef]
  16. Guest, J.K. Imposing Maximum Length Scale in Topology Optimization. Struct. Multidiscip. Optim. 2009, 37, 463–473. [Google Scholar] [CrossRef]
  17. Guo, X.; Zhang, W.; Zhong, W. Explicit Feature Control in Structural Topology Optimization via Level Set Method. Comput. Methods Appl. Mech. Eng. 2014, 272, 354–378. [Google Scholar] [CrossRef]
  18. Xia, Q.; Shi, T. Constraints of Distance from Boundary to Skeleton: For the Control of Length Scale in Level Set Based Structural Topology Optimization. Comput. Methods Appl. Mech. Eng. 2015, 295, 525–542. [Google Scholar] [CrossRef]
  19. Zhao, Z.-L.; Zhou, S.; Cai, K.; Min Xie, Y. A Direct Approach to Controlling the Topology in Structural Optimization. Comput. Struct. 2020, 227, 106141. [Google Scholar] [CrossRef]
  20. Han, H.; Guo, Y.; Chen, S.; Liu, Z. Topological Constraints in 2D Structural Topology Optimization. Struct. Multidiscip. Optim. 2021, 63, 39–58. [Google Scholar] [CrossRef]
  21. Liang, Y.; Yan, X.; Cheng, G. Explicit Control of 2D and 3D Structural Complexity by Discrete Variable Topology Optimization Method. Comput. Methods Appl. Mech. Eng. 2022, 389, 114302. [Google Scholar] [CrossRef]
  22. Zuo, T.; Wang, C.; Han, H.; Wang, Q.; Liu, Z. Explicit 2D Topological Control Using SIMP and MMA in Structural Topology Optimization. Struct. Multidiscip. Optim. 2022, 65, 293. [Google Scholar] [CrossRef]
  23. Rosen, D.W.; Grosse, I.R. A Feature Based Shape Optimization Technique for the Configuration and Parametric Design of Flat Plates. Eng. Comput. 1992, 8, 81–91. [Google Scholar] [CrossRef]
  24. Lin, C.-Y.; Lin, S.-H. Artificial Neural Network Based Hole Image Interpretation Techniques for Integrated Topology and Shape Optimization. Comput. Methods Appl. Mech. Eng. 2005, 194, 3817–3837. [Google Scholar] [CrossRef]
  25. Lin, C.; Chou, Y. Automated Structural Optimization System for Integrated Topology and Shape Optimization. J. Chin. Inst. Eng. 2008, 31, 745–756. [Google Scholar] [CrossRef]
  26. Chou, Y.-H.; Lin, C.-Y. Improved Image Interpreting and Modeling Technique for Automated Structural Optimization System. Struct. Multidiscip. Optim. 2010, 40, 215–226. [Google Scholar] [CrossRef]
  27. Wein, F.; Dunning, P.D.; Norato, J.A. A Review on Feature-Mapping Methods for Structural Optimization. Struct. Multidiscip. Optim. 2020, 62, 1597–1638. [Google Scholar] [CrossRef]
  28. Mei, Y.; Wang, X.; Cheng, G. A Feature-Based Topological Optimization for Structure Design. Adv. Eng. Softw. 2008, 39, 71–87. [Google Scholar] [CrossRef]
  29. Zhang, W.; Zhou, J.; Zhu, Y.; Guo, X. Structural Complexity Control in Topology Optimization via Moving Morphable Component (MMC) Approach. Struct. Multidiscip. Optim. 2017, 56, 535–552. [Google Scholar] [CrossRef]
  30. Zhang, W.; Chen, J.; Zhu, X.; Zhou, J.; Xue, D.; Lei, X.; Guo, X. Explicit Three Dimensional Topology Optimization via Moving Morphable Void (MMV) Approach. Comput. Methods Appl. Mech. Eng. 2017, 322, 590–614. [Google Scholar] [CrossRef]
  31. Martínez, J.; Dumas, J.; Lefebvre, S.; Wei, L.-Y. Structure and Appearance Optimization for Controllable Shape Design. ACM Trans. Graph. 2015, 34, 229:1–229:11. [Google Scholar] [CrossRef]
  32. Navez, T.; Schmidt, M.-P.; Sigmund, O.; Pedersen, C.B.W. Topology Optimization Guided by a Geometrical Pattern Library. Struct. Multidiscip. Optim. 2022, 65, 108. [Google Scholar] [CrossRef]
  33. Sun, Z.; Fang, H.; Deng, M.; Chen, A.; Yue, P.; Di, L. Regular Shape Similarity Index: A Novel Index for Accurate Extraction of Regular Objects From Remote Sensing Images. IEEE Trans. Geosci. Remote Sens. 2015, 53, 3737–3748. [Google Scholar] [CrossRef]
  34. Kwinta, A.; Gniadek, J. The Description of Parcel Geometry and Its Application in Terms of Land Consolidation Planning. Comput. Electron. Agric. 2017, 136, 117–124. [Google Scholar] [CrossRef]
  35. Svanberg, K. The Method of Moving Asymptotes—A New Method for Structural Optimization. Int. J. Numer. Methods Eng. 1987, 24, 359–373. [Google Scholar] [CrossRef]
  36. Wang, Q.; Han, H.; Wang, C.; Liu, Z. Topological Control for 2D Minimum Compliance Topology Optimization Using SIMP Method. Struct. Multidiscip. Optim. 2022, 65, 38. [Google Scholar] [CrossRef]
  37. Freeman, H.; Shapira, R. Determining the Minimum-Area Encasing Rectangle for an Arbitrary Closed Curve. Commun. ACM 1975, 18, 409–413. [Google Scholar] [CrossRef]
  38. Kwinta, A.; Bac-Bronowicz, J. Simplification of 2D Shapes with Equivalent Rectangles. Adv. Geod. Geoinf. 2022, 71, e14. [Google Scholar] [CrossRef]
  39. Bendsøe, M.P.; Sigmund, O. Material Interpolation Schemes in Topology Optimization. Arch. Appl. Mech. 1999, 69, 635–654. [Google Scholar] [CrossRef]
Figure 1. Optimization algorithm flowchart for hole appearance constraints.
Figure 1. Optimization algorithm flowchart for hole appearance constraints.
Mathematics 12 02645 g001
Figure 2. Image processing and hole information extraction. (a) Grayscale Image. (b) Binary Image. (c) Hole Information Image. (d) Enclosed Solid Regions. (e) Boundary Image of Solid Regions.
Figure 2. Image processing and hole information extraction. (a) Grayscale Image. (b) Binary Image. (c) Hole Information Image. (d) Enclosed Solid Regions. (e) Boundary Image of Solid Regions.
Mathematics 12 02645 g002
Figure 3. Effectiveness of the MBR algorithm for holes. The red box represents the MBR of each hole.
Figure 3. Effectiveness of the MBR algorithm for holes. The red box represents the MBR of each hole.
Mathematics 12 02645 g003
Figure 4. Example of similarity measurement methods for three equivalent shapes of holes. (a) Hole shape. (b) Rectangularity measurement method. (c) Ellipticity measurement method. (d) Isosceles triangle measurement method.
Figure 4. Example of similarity measurement methods for three equivalent shapes of holes. (a) Hole shape. (b) Rectangularity measurement method. (c) Ellipticity measurement method. (d) Isosceles triangle measurement method.
Mathematics 12 02645 g004
Figure 5. Relationship between shape parameters of equivalent shapes and aspect ratio. The red box represents the the MBR of equivalent shape. (a) The relationship between the parameters of a rectangle and its aspect ratio. (b) The Relationship between Elliptical Parameters and Aspect Ratio. (c,d) The two relationships between the parameters and aspect ratio of isosceles triangles.
Figure 5. Relationship between shape parameters of equivalent shapes and aspect ratio. The red box represents the the MBR of equivalent shape. (a) The relationship between the parameters of a rectangle and its aspect ratio. (b) The Relationship between Elliptical Parameters and Aspect Ratio. (c,d) The two relationships between the parameters and aspect ratio of isosceles triangles.
Mathematics 12 02645 g005
Figure 6. Method for determining the angle θ ^ of the equivalent shape. The red box represents the equivalent rectangle of the shape.
Figure 6. Method for determining the angle θ ^ of the equivalent shape. The red box represents the equivalent rectangle of the shape.
Mathematics 12 02645 g006
Figure 7. Example of hole shapes and their T r , R e , E l values. The red box represents the equivalent shape.
Figure 7. Example of hole shapes and their T r , R e , E l values. The red box represents the equivalent shape.
Mathematics 12 02645 g007
Figure 8. Hole filling method. (a) Binary image of structure. (b) The appearance target image obtained by filling an extra hole.
Figure 8. Hole filling method. (a) Binary image of structure. (b) The appearance target image obtained by filling an extra hole.
Mathematics 12 02645 g008
Figure 9. Generating appearance targets through mapping equivalent shapes to a fixed grid. (a) The MES of each hole. The red box represents the equivalent shape of each hole. (b) Solid region after hole filling. (c) Visual representation of the target image. The red box represents the equivalent shape of the hole corresponding to the structure in (a).
Figure 9. Generating appearance targets through mapping equivalent shapes to a fixed grid. (a) The MES of each hole. The red box represents the equivalent shape of each hole. (b) Solid region after hole filling. (c) Visual representation of the target image. The red box represents the equivalent shape of the hole corresponding to the structure in (a).
Mathematics 12 02645 g009
Figure 10. Schematic diagram of mitigating hole interference and minimum distance between cavities using hole shrinking strategy. (a) The grayscale image. (b) Binary image of structure. (c) The MES of each hole. The red box represents the equivalent shape of each hole. (d) The appearance target image. (e) Expand the holes in the appearance target image. (f) Updated appearance target image by hole shrinking strategy.
Figure 10. Schematic diagram of mitigating hole interference and minimum distance between cavities using hole shrinking strategy. (a) The grayscale image. (b) Binary image of structure. (c) The MES of each hole. The red box represents the equivalent shape of each hole. (d) The appearance target image. (e) Expand the holes in the appearance target image. (f) Updated appearance target image by hole shrinking strategy.
Mathematics 12 02645 g010
Figure 11. Design domain and optimization results. (a) Design domain. (b) The structure obtained in the first phase of our optimization algorithm.
Figure 11. Design domain and optimization results. (a) Design domain. (b) The structure obtained in the first phase of our optimization algorithm.
Mathematics 12 02645 g011
Figure 12. Results of hole regularization for different values of A * .
Figure 12. Results of hole regularization for different values of A * .
Mathematics 12 02645 g012
Figure 13. The change in compliance, volume fraction, and appearance constraint during the iteration process. (a) The change in compliance changes during the iteration process. (b) The change in volume fraction and appearance constraint during the iteration process. The blue line represents the volume fraction, and the orange line represents the appearance constraint.
Figure 13. The change in compliance, volume fraction, and appearance constraint during the iteration process. (a) The change in compliance changes during the iteration process. (b) The change in volume fraction and appearance constraint during the iteration process. The blue line represents the volume fraction, and the orange line represents the appearance constraint.
Mathematics 12 02645 g013
Figure 14. Optimization results using single shape templates. (a) Isosceles triangle template. (b) Rectangle template. (c) Ellipse template.
Figure 14. Optimization results using single shape templates. (a) Isosceles triangle template. (b) Rectangle template. (c) Ellipse template.
Mathematics 12 02645 g014
Figure 15. Design domain and optimization results. (a) Design domain. (b) Structure gray image.
Figure 15. Design domain and optimization results. (a) Design domain. (b) Structure gray image.
Mathematics 12 02645 g015
Figure 16. Effects of different minimum distance constraints between holes. The structure within the large red circle represents the enlarged structure within the small red circle.
Figure 16. Effects of different minimum distance constraints between holes. The structure within the large red circle represents the enlarged structure within the small red circle.
Mathematics 12 02645 g016
Figure 17. The change in compliance, volume fraction, and appearance constraints during the iteration process. (a) The change in compliance during the iteration process when k takes different values. (b) The change in volume fraction during the iteration process when k takes different values. (c) The change in appearance constraints during the iteration process when k takes different values.
Figure 17. The change in compliance, volume fraction, and appearance constraints during the iteration process. (a) The change in compliance during the iteration process when k takes different values. (b) The change in volume fraction during the iteration process when k takes different values. (c) The change in appearance constraints during the iteration process when k takes different values.
Mathematics 12 02645 g017
Figure 18. The effect of hole regularization under different hole quantity constraints.
Figure 18. The effect of hole regularization under different hole quantity constraints.
Mathematics 12 02645 g018
Figure 19. Volume fraction and appearance constraint during the iteration process for m ¯ = 2 . At the 33rd iteration, the number of holes reaches 4, and the optimization process transitions into the second stage, where appearance constraint is applied. The blue line represents the volume fraction, and the orange line represents the appearance con-straint.
Figure 19. Volume fraction and appearance constraint during the iteration process for m ¯ = 2 . At the 33rd iteration, the number of holes reaches 4, and the optimization process transitions into the second stage, where appearance constraint is applied. The blue line represents the volume fraction, and the orange line represents the appearance con-straint.
Mathematics 12 02645 g019
Figure 20. The optimization outcomes for the MBB beam case study.
Figure 20. The optimization outcomes for the MBB beam case study.
Mathematics 12 02645 g020
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Zhu, L.; Zuo, T.; Wang, C.; Wang, Q.; Yu, Z.; Liu, Z. Hole Appearance Constraint Method in 2D Structural Topology Optimization. Mathematics 2024, 12, 2645. https://doi.org/10.3390/math12172645

AMA Style

Zhu L, Zuo T, Wang C, Wang Q, Yu Z, Liu Z. Hole Appearance Constraint Method in 2D Structural Topology Optimization. Mathematics. 2024; 12(17):2645. https://doi.org/10.3390/math12172645

Chicago/Turabian Style

Zhu, Lei, Tongxing Zuo, Chong Wang, Qianglong Wang, Zhengdong Yu, and Zhenyu Liu. 2024. "Hole Appearance Constraint Method in 2D Structural Topology Optimization" Mathematics 12, no. 17: 2645. https://doi.org/10.3390/math12172645

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop