Stress-Constrained Topology Optimization for Commercial Software: A Python Implementation for ABAQUS®
간접 관련 엔지니어링 플라스틱 · (23) 컴파운드 (3) 자동차 인테리어 소재(4) 카시트 모듈(9) 타이어코드
기본 정보
- 저자
- DOI
- 10.3390/app132312916
- 저널
- Applied Sciences
- 발행년도
- 2023
- 발행기관
- Multidisciplinary Digital Publishing Institute
- 피인용수
- 11
- 라이선스
- cc-by
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.3390/app132312916
- 토픽
- Composite Structure Analysis and Optimization
- OpenAlex ID
- W4389264007
평가 내용
- 관련도
- 간접 관련
- 사업분야
- 엔지니어링 플라스틱 · (23) 컴파운드
- 부 분야
- (3) 자동차 인테리어 소재, (4) 카시트 모듈, (9) 타이어코드
- R&D 측면
- 분석·모델링
- 확신도
- 0.70
- 근거 용어
- Topology optimization, Stress-constrained, Finite element method (FEM), ABAQUS, Structural optimization
- 판단 근거
- 본 논문은 상용 소프트웨어(ABAQUS)를 활용한 구조 최적화(위상 최적화) 알고리즘 및 Python 구현에 관한 연구입니다. 이는 코오롱인더스트리의 직접적인 제품 연구는 아니나, 경량화 및 강도 최적화가 필수적인 컴파운드(23) 부품 설계, 자동차 인테리어(3) 및 카시트(4) 모듈 설계, 타이어코드(9) 보강 구조 설계 등의 R&D 과정에서 해석 및 설계 방법론으로 활용될 수 있습니다.
- R&D 활용 포인트
- 자동차 부품, 경량 복합소재(컴파운드) 및 산업용 구조물의 무게를 줄이면서도 응력 집중을 최소화하는 최적 설계 및 시뮬레이션 프로세스 고도화에 활용 가능합니다.
- 평가 입력
- 섹션 본문 69,213자 중 30,032자 발췌
초록
본문 72,387자
본문 펼치기
섹션 본문 204문단 · 67,079자
(제목 없음)
1Topology optimization has evidenced its capacity to provide new optimal designs in many different disciplines.However, most novel methods are difficult to apply in commercial software, limiting their use in the academic field and hindering their application in the industry.This article presents a new open methodology for solving geometrically complex non-self-adjoint topology optimization problems, including stress-constrained and stress minimization formulations, using validated FEM commercial software.The methodology was validated by comparing the sensitivity analysis with the results obtained through finite differences and solving two benchmark problems with the following optimizers: Optimality Criteria, Method of Moving Asymptotes, Sequential Least-Squares Quadratic Programming (SLSQP), and Trust-constr optimization algorithms.The SLSQP and Trust-constr optimization algorithms obtained better results in stress-minimization problem statements than the methodology available in ABAQUS ® .A Python implementation of this methodology is proposed, working in conjunction with the commercial software ABAQUS ® 2023 to allow a straightforward application to new problems while benefiting from a graphic user interface and validated finite element solver.
Introduction
2Originally described by Bendsøe and Kikuchi in 1988 [1], topology optimization is one of the three sub-fields of structural optimization, amongst size and shape optimization.Usually applied in the early stage of structural design, its purpose is to find the optimal distribution of material when certain load conditions are applied [2,3].The design region is usually represented with density based or level-set functions, which are optimized according to a certain objective function and constraints, defining which regions should have material and which should not [4].
3The popularity of topology optimization has led to the publishing of several educational articles [5].These include the MATLAB codes written by Ole Sigmund [6], later revisited by Andreassen et al. [7], and an equivalent implementation for 3D problems by Liu [8], all of them using the Solid Isotropic Material with Penalization (SIMP) method [9,10] to define the material properties and the Optimality Criteria (OCs) [11] to determine the optimal design variables.Other publications include the MATLAB implementation of the level-set method [12,13] by Challis [14] and the implementations of the Bi-directional Evolutionary Structural Optimization (BESO) method [15] in MATLAB and Python by Huang and Xie [16] and Zuo and Xie [17], respectively.Table 1 compiles the publications on the development and implementation of topology optimization methods, sorted by the problem statement addressed, highlighting:
•
4The optimization algorithm used; • If the publication provides the code implementation; • If the method considers more constraints than just a mass or volume limit; • If the method is suitable for complex geometries, allowing an easy application to case studies with intricate design spaces or the interaction with CAD models; • If the method is based on commercial solvers.Cai and Zhang [40] Level-set method •
5Troya and Tortorelli [41] MMA • Suresh and Takalloozadeh [42] Level-set method [72] Level-set method • • • Miyajima et al. [73] Level-set method • Stress-constrained compliance maximization Emmendoerfer et al. [74] Level-set method •
6Review article or complementary method BendsØe and Sigmund [75] OC, MMA, SLP, and level-set method [6,7,14,17,[22][23][24][25][26][27][28][29][30][31][32]34].However, only four publications provide implementations of topology optimization methods compatible with stress-constrained compliance-minimization problems [36,46,47,64].Regarding these three publications, Biyikli et al. [46] proposed a non-sensitivity method and Amir [47] proposed a method based on inexact sensitivities, leaving the MATLAB implementations proposed by Londoño and Paulino [36] and by Deng et al. [64] as the only publications providing a non-approximated solution to the stress-constrained complianceminimization problem.On top of the reduced number of publications providing open access solutions with non-approximated methods to this problem statement, there are additional points of improvement that could be addressed to promote the research and application of topology optimization methods in the industry: including the compatibility with complex design spaces and geometries, as well as the interaction with commercially available and validated solvers.Finally, it is also relevant to consider that the topology optimization methods available in commercial software, such as ABAQUS ® 2023 and ANSYS ® 2023, operate on an opaque black-box system, limiting the access to relevant information and hindering their extension to a new feature of interest, such as reliability-based topology optimization [90-92] and robust topology optimization considering uncertainties [93].
7To address this issue, the present article contributes with a methodology capable of solving non-self-adjoint problems in commercial software, including stress-constrained compliance minimization and stress-minimization problem statements, defined in a complex geometrical space.This methodology has been validated, evaluating the sensitivity analysis with finite differences and solving two benchmark problems with the following optimizers: Optimality Criteria, Method of Moving Asymptotes, Sequential Least-Squares Quadratic Programming, and Trust-constr optimization algorithms.In complianceminimization problems and stress-constrained compliance-minimization problems, the methodology herein implemented achieved a performance equal to ABAQUS ® in terms of the objective function.In stress-minimization problems, the methodology herein implemented allowed a stress reduction 35% superior to the one obtained with ABAQUS ® .
8To allow straightforward use even in an industrial field, a Python implementation is provided as Supplementary Material.This implementation works in conjunction with ABAQUS ® , allowing a direct application to new problems, providing a graphic user interface and access to a commercially validated finite-element solver.The implementation can also be downloaded in digital format from the following Dataset [94] or repository: https://github.com/pnfernandes/Python-Code-for-Stress-Constrained-Topology-Optimization-in-ABAQUS.
9The following sections of the article are organized as follows.Sections 2 and 3 formulate the topology optimization problem statements and deduce the necessary function derivatives in both continuous and discrete formulations, respectively.Section 4 describes the filter technique to void numerical instabilities.Section 5 overviews the optimization algorithms available in the provided code.Section 6 summarizes the most-relevant aspects of the Python code implementation, while in Section 7, the benchmark problems considered are presented.Section 8 demonstrates the suitability of the code implementation to solve the problems proposed.The results of the topology optimization processes are presented in Section 9. Finally, Section 10 summarizes the main conclusions of the present work.
Continuous Formulation of Topology Optimization Problem Statements and Sensitivities
10In this section, the theoretical part of the topology optimization problem statement and the sensitivity analysis are defined in their continuous versions.Its practical counterpart, the discrete formulation, is presented in Section 3, which may allow an easier understanding of both the theoretical and implementation fundamentals of the topology optimization method.
Topology Optimization Problem
11Consider the formulation of a generic topology optimization problem, defined as finding ρ ∈ L ∞ (Ω) such that: min
12subject to:
13where Ω is the domain of the topology optimization problem, L ∞ (Ω) is the space of bounded functions, and the density ρ represents the design variables, which can vary within the interval [ρ min , 1].J represents a generic objective or cost function; ρ dx represents a generic volume constraint function, where V * is its maximum allowable value; u(ρ) are the displacement solutions of the standard equilibrium equation presented as finding u ∈ H 1 0 (Ω) such that:
14where a(ρ, u, v) is the constitutive function of the equilibrium equation, l(ρ, v) are the external forces, and H 1 0 (Ω) is the space of functions with square integrable derivatives and homogeneous values on the boundary and domain
15with the external forces l(ρ, v) written as:
16Here, s represents a symmetric gradient and C(ρ) is the constitutive tensor, and thus, the strains ξ(u) = s u are in accordance with linear elasticity.v is the corresponding test function; f (ρ) is a generic volumetric load function; t indicates the applied boundary forces, if they exist; n is the normal direction pointing outwards of the boundary ∂Ω of v.It is important to note that this material constraint can be applied to either the volume or mass of the structure, following the same expressions.The volume constraint is preferred and used in this article to conform with the most-used term in the literature.
17When considering a maximum stress constraint, the problem statement is also subject to:
18where Ω σ V M a (ρ, u(ρ)) dx represents the stress constraint with a maximum allowable value σ * .In particular, σ V M a is the penalized von Mises stress, as described in the following subsection.
Regularization and Penalization
19Regarding this particular work and implementation, it is important to note two adopted considerations.The first one is using two penalization factors applied to the material stiffness and stress.These factors aim at making intermediate design solutions uncompetitive and, in turn, promoting black-and-white solutions.
20The material stiffness is penalized by the SIMP penalization parameter P = 3.0, in accordance with [80], when using continuous design variables (Equation ( 8)).In this implementation, this factor is also applied to the other material properties, as:
21where C 0 is the material stiffness of a fully solid element.Note that C (ρ) = Pρ P−1 C 0 for this type of stiffness penalization.The stress is also penalized according to a factor equal to ρ β , with β = 1 2 , as adopted in [53], following the initial proposal by Bruggi et al. [95] with the exponent suggested in [96].This penalization leads to a non-physical stress for intermediate design densities, but not for black-and-white solutions, and tends towards 0 when the design density decreases, avoiding singularity problems [53].Thus, σ a is defined as the amplified stress, described by the following expression:
22with:
23where σ(ρ) is the stress vector, written in Voigt notation.Therefore, the von Mises amplified stress norm is
24, with M being the von Mises matrix operator.The second consideration is the use of a regularization approach, where removed or void elements will maintain a minimum design density, ρ min = 0.01 by default, which contrasts with the complete element removal.In the literature, these regularization techniques may be referred to as "soft-kill" and "hard-kill" approaches [17].The regularization approach was introduced in the code implementation to avoid the stiffness matrix becoming singular, as well as allowing a constant mesh in the finite-element model during the topology optimization loop [17,53].
Sensitivity Analysis
25The derivative of the cost function in the direction ρ ∈ L ∞ (Ω) is then defined as:
26Taking the derivative in the equilibrium equation, in order to find D u J(ρ, u(ρ)) D ρ u(ρ) ρ, leads to:
27Since a(ρ, u(ρ), v) is linear, it can be rewritten as:
28therefore, Equation ( 12) can be rewritten as follows:
29Solving Equation ( 14) for all values of ρ would be too expensive.For this reason, the use of the adjoint method is preferred.To do so, the adjoint variable λ is defined, the solution of:
30Then, taking w = D ρ u(ρ) ρ in Equation (15):
31where the self-adjoint property of a(ρ, λ, w) and Equation ( 12) are applied.The generic optimization process, which can be defined in four main steps, is proposed as follows:
32Update the design variables using the gradient information.
33The first two steps correspond to solving the state and adjoint problems, respectively.The third step is the gradient calculation, which is defined in terms of the state and adjoint variables.The fourth and final step consists of using the gradient to determine the next value of the design variables, which can be performed by any suitable optimization algorithm (such as the algorithms described in Section 5).
Compliance Functional
34In the particular problem statement of compliance minimization, the objective function can be rewritten as:
35and its derivative in the direction w ∈ H 1 0 (Ω) is then:
36Notice that, in the particular case of compliance-minimization problem statements, it is commonly assumed in the literature that the external loads do not depend on ρ.Therefore:
37In this particular case, the adjoint variable leads to the same expression shown in Equation (15), and introducing Equation (4), it is implied that:
38Note that Equation (20), which describes the adjoint problem of the complianceminimization problem statement, returns the definition of the state problem, setting them equal to each other.Functionals that are "self-adjoint" lead to clear computational benefits since Equations ( 4) and (15) can be solved with the same computation, a single FEA in the case of the code provided.
39Since l(v) and l(w) do not depend on ρ, the terms D ρ J(ρ, u(ρ)) ρ = D ρ l(w) ρ = D ρ l(v) ρ = 0, and thus, the derivative is just:
40Following the definition of the compliance, the derivative of the bilinear form is:
41Finally, considering the stiffness penalization used, Equation ( 22) can be introduced into (21), obtaining:
42where g is the gradient of the compliance objective function, thus obtained as g = s u (Pρ P−1 C 0 ) s u.For this particular case, the first three optimization steps can be rewrit- ten as:
Stress Functional
43In the stress-minimization or stress-constrained compliance-minimization problem statements, the derivative of the stress norm functional should also be taken.Here, the maximum function is approximated by means of a modified p-norm function.This approximation is necessary to provide a derivable function that approximates the maximum function, which is non-differentiable.Adopting the modified p-norm approximation proposed in [53], the maximum function represented in Equation ( 7) can be redefined as:
44where q is the exponential factor, and the von Mises amplified stress norm is σ V M a = (σ a Mσ a ) 1 2 , with M being the von Mises matrix operator.Note that, although unconventional, this manuscript adopted q as the exponential factor of the p-norm approximation to improve the readability of the equation and to avoid confusion with the design density symbol ρ and the SIMP exponential factor P. Furthermore, it is relevant to highlight that, by adopting the use of this approximation, a global approach is selected, instead of local enforcement at each integration point.This option was preferred for providing better scaling with the mesh refinement, reducing the computational cost, and for its simplicity.However, the use of augmented Lagrangian methods could be seen as an alternative [57].
45The term D ρ J(ρ, u(ρ))( ρ) is defined as:
46where:
47The derivative in the direction w, which allows us to define the adjoint problem, is:
48where:
49with:
50Finally, before determining the value of DJ(ρ, u(ρ)) ρ, it is required to find D ρ a(ρ, u(ρ), λ) as follows:
51As stated previously, note that s λ and s u represent the strains of the adjoint and state problems, respectively.Therefore, in the provided code implementation, these terms are obtained directly from the ABAQUS ® FEA.Also, note that, for the stress functional, D ρ l(λ) = 0. Finally, the first three optimization steps can then be rewritten as:
52Note that this functional is not self-adjoint, leading to a different procedure than the one shown in the previous section;
Discrete Formulation of Topology Optimization Problem Statements and Sensitivities
53In this section, the topology optimization problem statement and sensitivity analysis defined in Section 2 are now presented in their discretized versions.This information is included here to bridge the gap between the continuous framework shown in Section 2 and the implementation used in the code provided with this work, allowing an easier understanding of both the theoretical and implementation fundamentals of a topology optimization method.
Topology Optimization Problem
54The discrete version of Problem (1) results in:
55subject to:
56where, as previously defined, J(ρ) is the cost function, the density ρ represents the design variables, which can vary within the interval [ρ min , 1], V(ρ) is the total volume, with v e representing the volume of element e when the design density ρ = 1, V * is the maximum value of the volume constraint, and u(ρ) is the solution displacement vector of the state problem:
57The stiffness matrix K(ρ) and force vector F are defined as, respectively:
58where B a is the strain-displacement matrix in the evaluation point a, N a linear shape function, and f a generic load function, while t indicates the applied boundary forces, if they exist, and n is the normal direction pointing outwards of the boundary ∂Ω.
59When considering a maximum stress constraint, the problem statement is also subject to:
60where σ PN (ρ) represents the maximum stress and σ * its the maximum allowable value.Note that the penalization factors and regularization process described in Section 2.2 are not changed.
Sensitivity Analysis
61The gradient of the cost function can be defined as:
62In order to find ∂J ∂u , it is possible to reorganize the state equation, multiply it for a generic vector v, and derive the expression, leading to:
63As stated in Section 2, solving Equation ( 40) for all values of ρ would be too expensive, motivating the use of the adjoint method.Defining the adjoint variable as λ = v such that K T (ρ)λ = − ∂J ∂u leads to:
64Thus, the gradient can finally be rewritten as:
65With this information, the equivalent three-step process described in Section 2.3 can be rewritten as:
Compliance Functional
66The compliance can be defined as C(ρ) = F u(ρ), and its sensitivity can be determined as follows [97][98][99]:
67Considering that K = A Ω e B T a CB a dx, with A being the assembly operator, and that ρ is constant in Ω e , ∂K ∂ρ can be rewritten as follows:
68Introducing Equation ( 45) into (44) leads to:
69where u e and K 0 are the elemental displacement vector and stiffness matrix of a fully solid element (i.e., ρ = 1.0).The term ρ P u T e K 0 u e is the strain energy (E e ), missing only the 1 2 constant.However, because this constant is applied to all elements, it can be neglected, and set the term ρ P u T e K 0 u e equal to the strain energy (E e ) automatically calculated in ABAQUS ® .In this particular case, the first three steps of the generic optimization process can be simplified and rewritten as follows:
70• Find u such that: K(ρ)u = F(ρ).This procedure can be performed using an ABAQUS ® FEA;
71Note that E e can be obtained from the ABAQUS ® FEA executed in the first step.This information is included to allow an easier understanding of the code implementation and its correlation with the formal mathematical formulation.
Stress Functional
72The maximum function is approximated by means of a modified p-norm function.This approximation is necessary to provide a derivable function that approximates the maximum function, which is non-differentiable.This implementation adopts the modified p-norm approximation proposed in [53]:
73where q is the exponential factor, Ω is the set of stress evaluation points in the topology optimization problem, and σ vM a is the value of the amplified von Mises stress in point a.Note that, although unconventional, this manuscript adopted q as the exponential factor of the p-norm approximation to improve the readability of the equation and avoid confusion with the design density symbol ρ and the SIMP exponential factor P. Furthermore, it is relevant to highlight that, by adopting the use of this approximation, a global approach is selected, instead of local enforcement at each integration point.This option was preferred for providing better scaling with the mesh refinement, reducing the computational cost, and for its simplicity.However, the use of augmented Lagrangian methods could be seen as an alternative [57].
74The derivative of the p-norm approximation with respect to the design density of an element can be obtained by the chain-rule, multiplying three intermediate terms.The first term is the derivative of the p-norm approximation with respect to the amplified von Mises stress:
75The second term is the derivative of σ vM a with respect to the stress vector in point a.
76Since σ vM a can be written in matrix form as σ vM a = (σ a Mσ a )
771 2 , its derivative becomes:
78The third and last terms are the derivative of the stress vector σ a with respect to the design density.Considering Equations ( 9) and ( 10):
79The term
80∂ρ is obtained from the state Equation (34):
81and, therefore, with β = 1 2 :
82Note that it was assumed that
83This assumption is valid for static-load-driven problems, where the load is considered to be constant and independent of the material distribution.For displacement-driven problems, this assumption is not valid, as the forces resulting from the displacement applied will change depending on the material distribution.
84With Equations ( 48) through (51) and applying the chain rule, it is possible to define ∂σ PN (ρ) ∂ρ as:
85Renaming these two terms as ∂σ PN sp f (ρ) (Equation ( 54)), referring to the component of the derivative that is dependent on the stress penalization factor, and ∂σ PN u (ρ) (Equation ( 55)), referring to the component of the derivative that is dependent on the nodal displacement:
86Notice that ∂σ PN sp f (ρ) can be easily determined, since the only information required is the stress vector ( σa (ρ) = C 0 B a u(ρ)) and the design densities.∂σ PN (ρ) ∂σ vM a can be determined with a simple summation and
87through the product of two vectors and a matrix.
88The term ∂σ PN u (ρ), on the other hand, requires the explicit definition of the matrices B a , K −1 (ρ), and ∂K(ρ) ∂ρ , which are dependent on the element formulation used in the numerical model.Furthermore, for topology optimization problems where the number of design variables is larger than the number of constraints, the most-efficient way to determine ∂σ PN u (ρ) is using an adjoint model, defining the adjoint variable as:
89Therefore, the adjoint variable can be extracted from a finite element analysis, where the load applied on each node is equal to
90∂σ a C 0 B a , and λ is equal to the node displacement.Introducing the adjoint variable in Equation (54) then leads to:
91Finally, since K can be defined as K = AB T a C(ρ)B a , since B a λ and B a u are equal to the deformation vectors of the adjoint and state models (ξ adj and ξ s , respectively), Equation ( 57) can be simplified to:
92With this information, the first three steps of the generic optimization process can be rewritten as follows:
93• Find u such that: K(ρ)u = F(ρ).This procedure can be performed through an ABAQUS ® FEA; • Find λ such that:
94As demonstrated in Equation ( 55) through (58), determining ∂σ PN u (ρ) is significantly more complex and computationally expensive, due to the necessity of using the adjoint model.Some researchers [100] have proposed approximating this term as ∂σ PN u (ρ) = 0, in an attempt to reduce the complexity and computational cost of stress-dependent topology optimization problems.While doing so does have evident advantages, the results obtained for each element of the benchmark problem described in Section 7.2 show that, on average,
95As a result, assuming that ∂σ PN u (ρ) = 0 would lead to an average error greater than 50% in the calculation of the maximum stress sensitivity, at least for the particular case of the benchmark problem described in Section 7.2.The error in this approximation is aggravated by the fact that ∂σ PN u (ρ) has a negative sign from Equation ( 53), and as a consequence, ignoring this term could potentially point the optimization algorithm in the opposite direction of the gradient.Therefore, the simplification proposed in [100] was not adopted in this work.
Volume Constraint
96The value of the sensitivity of the volume constraint to changes in the design density of each element is equal to the value of its volume, as defined in Equation (59).Note that the equivalent sensitivity can be obtained for a mass constraint, replacing the volume of the element with its mass.
Mesh Dependency and Data Filtering
97In order to obtain a mesh-independent solution and avoid the "checkerboard" instability, the raw sensitivities and/or design densities are processed with a blurring filter [6,101].This article adopted the filter scheme used in [17], which is a simplification of the scheme proposed by Huang and Xie [102], described as follows:
98where the value of w(r ej ) is equal to the difference between the maximum range of the filter (r max ) and the actual distance between the central element e and the j elements in its neighborhood (r ej ), defined as follows:
99This parameter can be interpreted as a pondered measurement of how close the two elements are.Note that the code implementation provided allows the user to select if the blurring filter should be applied to the sensitivities (excluding the volume constraint sensitivities, or equivalent), the design densities, or both.
100It is relevant to note that, although not implemented in the methodology herein proposed, it is common to couple filtering techniques with projection methods [103] in order to obtain a better geometry definition in the final solution.Doing so may eliminate residual grey areas, which is particularly relevant in stress-constrained problems, where a smoother geometry may avoid the creation of stress concentration points.
Optimality Criteria
101The OC method implemented in this article follows the approach proposed by Bendsøe [99] and implemented by Sigmund in [6].It is usually applied to problems of compliance minimization with a volume constraint.According to this procedure, the design variables can be updated according to the following expression:
102where ρ lower and ρ upper represent the design densities' move limits imposed by the parameter δρ.η is a numerical damping coefficient set equal to 0.5 in accordance with [6].B e is a parameter obtained from the optimality condition, described as the ratio between the gradient of the objective and constraint functions divided by the Lagrangian multiplier (ψ), as follows:
103The Lagrangian multiplier ψ can be found using a bisection method, updating its value until the volume of the solution meets the imposed constraint.
104This method can also be simplified in order to obtain an equivalent version suitable for discrete design variables.This simplification corresponds to the approach used by Zuo and Xie in [17].For the current iteration, the code determines the sensitivities of all elements.Then, a bisection method is used to determine a threshold sensitivity.All elements with a sensitivity greater than the threshold become solid (i.e., ρ = 1.0), while the other elements are removed according to the "soft-kill" approach (i.e., ρ = ρ min ).Similar to the continuous version, the value of the sensitivity threshold is updated until the mass or volume of the structure meets the volume constraint imposed.
105When using the OC method, especially the discrete version, it is usual to consider a fully solid design for the initial iteration and gradually reduce the volume constraint in each iteration until the target value is reached.This procedure is adopted to obtain a convergent solution and can be defined through the following equation:
106where k is the number of the current iteration and e vol is the ratio at which the volume constraint decreases in each iteration, until the target volume constraint (V * ) is reached.Nonetheless, it is important to understand that this discrete version should be regarded as a heuristic, which was observed to work well when solving compliance-minimization problems.However, this procedure can be criticized from an optimization perspective, as there is no mathematical guarantee that the objective function will decrease during each iteration.
Method of Moving Asymptotes
107The Method of Moving Asymptotes (MMA) is a nonlinear programming method that can be applied to structural optimization problems.Its functioning is based on an iterative process, generating a series of strictly convex approximating sub-problems.As an input to generate the sub-problem approximation, the MMA takes the value of the objective function, the value of the constraints, and the respective gradients as the inputs.Then, using dual-methods such as [104,105], the sub-problem is solved and the solution is taken as the value of the design variables in the next iteration of the main optimization problem [82].
108The popularity of the application of the MMA to topology optimization problems is justified by several factors.From a computational point of view, the use of an approximation sub-problem and gradient information provides a means to reduce the number of structural problems solved, which are usually expensive.Furthermore, the versatility of the method and capability of handling multiple types of constraints make it suitable and applicable to a wide range of cases, from simple compliance-minimization problems with a single volume constraint, to cases where multiple constraints with different natures are applied.Its stability is also a positive characteristic, even for initial non-fully solid designs.Due to its extension and complexity, the interested reader is referred to [82] for a detailed explanation of this method.
109The present code establishes a connection between ABAQUS ® and the implementation of the MMA created by Deetman [106] ("mmasub" and "subsolve" functions of the code provided), which is a Python version of the MATLAB code created by Svanberg [107].
Sequential Least-Squares Programming
110Sequential Least-Squares Programming (SLSQP) is a Sequential Least-Squares Programming algorithm that utilizes the Quasi-Newton method to obtain an optimal solution.The strategy behind this algorithm consists of approximating the objective function with a quadratic equation and using the minimum of the approximation function as a possible solution in the next iteration.To improve the efficiency, the SLSQP can use Quasi-Newton methods to approximate the objective Hessian function.
111The code provided uses the SLSQP implementation available in the SciPy module [108], which is a library of numerical routines for the Python programming language, which provides the fundamental building blocks for modeling and solving scientific problems.
Trust-Constr
112Trust-constr is a trust region algorithm for constrained optimization, available in the SciPy module [108].Both line search methods and trust region methods generate steps with the help of a quadratic model of the objective function.However, while line search methods use a step length along a given search direction, trust region methods define a region around the current iteration, within which they trust that the quadratic model is an accurate approximation [109].
113This algorithm utilizes the trust region interior point method described in [110] to solve the inequality constraints imposed in the topology optimization problem statement.The strategy behind this interior point method [110] consists of solving inequality constraints by introducing slack variables.Then, the process is repeated for a sequence of equalityconstrained barrier problems with progressively smaller values of the barrier parameter.
Python Implementation and Usage
114The following subsections present a brief guide on how to use the Python code provided with the following Dataset [94] or repository: https://github.com/pnfernandes/Python-Code-for-Stress-Constrained-Topology-Optimization-in-ABAQUS.A brief overview of the most-important details of the main code classes and functions is also included in these subsections.The detailed information of each class and function can be found in their respective doc-string.The sequence of operations performed by this code implementation is described in Figure 1.This code can be called in ABAQUS ® using the Run Script command in the File tab or by copying it into the command line.Note that the Run Script command loads the code faster, but automatically assumes that the user intends to solve the topology optimization in its totality.Copying it into the command line leads to a slower input, but allows a line-by-line execution, which may be useful for understanding the functioning of the code implementation.
115The PEP8 [111] Python style guide was followed as closely as possible.However, the interested reader is warned that some exceptions exist, caused by compatibility constraints with the data structures and pre-defined variables existing in ABAQUS ® .An example of these exceptions includes the naming of constant material properties without all capital letters, since these names are already used by ABAQUS ® in a different data structure.
Code Usage
116Upon executing the code, ABAQUS ® will create a series of prompt dialogue boxes.This allows the user to select the model database file (.cae), structural part, material, problem statement, optimization algorithm, and internal parameters to be considered during the topology optimization.
117Besides being fully functional, the ABAQUS ® model does not require any specific formatting, except for the following considerations:
118• Within the same part, the user can define specific elements to be optimized, dividing the part into two regions: one with editable elements and another with elements that should not be included in the optimization process (i.e., passive elements, from this point onward referred to as "frozen region" or "frozen elements").To do so, the user should create a set named "editable_elements", containing the elements to be edited.If this set does not exist, the whole part will be optimized.Note that the name "editable_elements" is case sensitive.This is performed in order to promote the optimization only of the targeted area and also to reduce the computational cost.
•
119The region to be optimized should not have a material section assigned to it, as the code will automatically assign the material properties and sections directly to the elements.Therefore, if the user defined a set with the editable elements, only the elements not included (frozen elements) should have a material section assigned to them.
120It is possible to allow the frozen elements to be considered during the filtering operations.To do so, the user should create a second element set with the case-sensitive name "neighbouring_region".
121If multiple copies of the part to be optimized are included in the model assembly, only the first copy will be optimized.
Model Formatting, Job Submission, and Sensitivities (Lines 28-3452)
122The ModelPreparation class modifies the ABAQUS ® model file (.cae) in order to allow the assignment of material properties and material sections to each individual element, as well as the property update during each iteration.Furthermore, this class requests the output of the strain energies, external work, and node strains if solving a stress-dependent problem.In ABAQUS ® , the strain energies of geometrically nonlinear problems are stored in the variables "SENER" and "PENER", respectively, for the elastic and plastic strain components.Note that, according to the literature [14,17,98,102,112], the sensitivity of each element in a geometrically nonlinear compliance-minimization problem is given by the sum of the elastic strain (E e e ) and plastic strain components (E p e ), as described in Equation ( 67).However, for geometrically linear problems, the plastic strain component is zero, and ABAQUS ® stores the strain energies in the variable "ESEDEN".The external work is only requested for a critical analysis of the result, as it should be equal to the objective function considering no energy dissipation.
123The submission of the FEA simulations for the state and adjoint models is managed by the classes ABAQUSFEA and AdjointModel, respectively.ABAQUSFEA is also responsible for determining the sensitivity of the compliance objective function ∂C ∂ρ , which is stored as the class attribute "ae".On the other hand, the AdjointModel class also applies the adjoint loads and determines the stress sensitivity.The stress sensitivity ∂σ PN (ρ) ∂ρ
124, and its most-relevant intermediate terms (∂σ PN sp f (ρ) and ∂σ PN u (ρ)) are stored as attributes of this class, along with the stress and strain vectors.In particular:
125• "elmt_stress_sensitivity_continuous" stores the values of ∂σ PN (ρ) ∂ρ in a mesh-independent and mesh-independent form, making the comparison of the value of this derivative more suitable for the results obtained through finite differences.
126• "elmt_stress_sensitivity_discrete" stores the values of ∂σ PN (ρ) ∂ρ in a mesh-dependent form, which is more suitable to be used as an input to the optimization algorithms, since they generally do not have access to the information of the mesh used in the FEA model.The difference between discrete and continuous element stress sensitivity is the multiplication by the determinant of the Jacobian matrix.
127• "d_pnorm_spf" stores the values of ∂σ PN sp f (ρ).• "d_pnorm_displacement" stores the values of ∂σ PN u (ρ).• "stress_vector" and "stress_vector_int" store the stress vectors determined at the element nodes and integration points.• "deformation_vector" and "deformation_vector_int" store the strain vectors determined at the element nodes and integration points.
128The sensitivity of the material constraint is determined by the material_constraint_sensitivity function, accounting for the possibility of having a non-uniform mesh with elements of different sizes and the use of either a volume or mass constraint.
Material and Stress Constraints (Lines 3453-3607)
129The values of the material and maximum stress constraints are determined by the MaterialConstraint class and the stress_constraint_evaluation function, respectively.The maximum stress value is approximated with the modified p-norm function described in Equation ( 47), which is determined by the p_norm_approximation function.
Data Filtering (Lines 3608-3846)
130The blurring filter is defined by the DataFilter class, which determines how each element is influenced by its neighborhood.The neighborhood of each element is defined by the elements that are fully within a maximum search radius defined by the user.The code Lines 3760-3762, intentionally left commented to reduce computational cost, generate element sets that allow an easy visual interpretation of the neighborhood of each element.The present code provides five optimization algorithms, described in Section 5, which can be used to solve the topology optimization problem.
131The discrete and continuous versions of the OC algorithm, implemented in the functions oc_discrete and oc_continuous, are only suitable for compliance-minimization problems.The remaining optimization algorithms are suitable for all problem statements included.
132The mma function is a decorator that links ABAQUS ® to the mmasub and subsolv functions implemented by Arjen Deetman [106].Therefore, the main purpose of the mma function is the processing of the inputs necessary to apply the MMA [107] as a function of the problem statement selected by the user.
133The functioning of the oc_discrete, oc_continuous, and mma functions is managed by the main program loop, described in Section 6.11.However, this is not the case for the SLSQP and Trust-constr algorithms available in this code, as they belong to the SciPy module [108].To be fully functional, the SLSQP and Trust-constr algorithms require the additional freedom to decide when and how many times to call the objective, sensitivity, and constraint functions.Furthermore, the problem statement must be defined using unique data structures.For these reasons, class SciPyOptimizer is responsible for:
•
134Calling the SLSQP and Trust-constr methods from the SciPy module [108].
135Re-defining the problem statement with the correct data structure required by the algorithm selected.
136Providing the freedom for these algorithms to call the objective, sensitivity, and constraint functions as many times and in any given order necessary.
137• Trying to record the data of each iteration as accurately as possible.However, it is to be expected that the data recorded may include information from intermediate evaluation points.
138Finally, there are two details that should be considered before using the SLSQP and Trust-constr algorithms.One is that both have internal convergence criteria.To change them, the user may be required to edit the code provided with this article.The second detail is that the initial solution must be feasible; otherwise, the optimization process will stop.This is particularly relevant when defining the initial material distribution and/or when using a p-norm continuation approach (described in Section 6.11).The OC and MMA methods implemented do not have these restrictions for the initial guess.
1396.6.Display Definition (Lines 5623-6207) 6.7.Data Recording (Lines 6208-6349) At the end of each iteration, the save_data function will create a text file that records the values of all variables necessary to describe the current solution, as well as the internal parameters selected by the user.
140This text file can also be used to restart the topology optimization process, starting from any iteration.However, as mentioned in Section 6.5, note that the algorithms SLSQP and Trust-constr may require the current iteration to be feasible with respect to the constraints imposed.
141At the end of the optimization process, save_mdb will create a separate ABAQUS ® .caefile with the final solution obtained and a record of the objective function and material constraint values.
Element Formulation and Stiffness Matrix (Lines 6350-7283)
142To solve stress-dependent problems, it is necessary to have access to information that depends on the element formulation (as shown in Section 3.4), such as B a , K, C, and the Jacobian matrix, as well as the definition of the element shape functions and their derivatives.The code provided includes the information required to use one 2D element with 4 nodes and one 3D element with 8 nodes.The 2D element is referred in ABAQUS ® by the code 2DQ4 and, more specifically, as CPS4 or CPE4 for the plane-stress and planestrain cases, respectively.The 3D element is referred in ABAQUS ® by the code C3D8.The information of these elements is included in the ElementFormulation class, while the stiffness matrix C is created by the c_matrix_function function.
143Although not used in the present article, the ElementFormulation class also includes the formulation of a shell element (referenced by the code S4 in ABAQUS ® ).This information was included in order to promote the development of topology optimization methodologies suitable to this particular type of element.
Parameter Input Request, Domain Definition, and Variable Generation (Lines 7284-8854)
144The ParameterInput class generates the prompt boxes that appear when running the code.The information introduced by the user is then used to create the global variables required for the code.A detailed list of these variables and their purpose can be found in Lines 8366-8461.
145This information is then used by the EditableDomain class, to define the design space of the topology optimization problem, and by the VariableGenerator class, to create the lists and dictionaries that record the relevant data gathered during the topology optimization process.For a detailed description of these variables, please refer to the code Lines 8721-8827.
Auxiliary Functions (Lines 8855-9013)
146Finally, there are four auxiliary functions to be briefly mentioned:
147• average_ae outputs the average of the compliance sensitivity of each element over the last three iterations.This leads to an easier convergence of the OC algorithms, especially when considering discrete variables.
•
148The update_past_info function updates the variables that record the design variables and compliance sensitivity used in the previous two iterations.
149The evaluate_change function creates a ratio that describes how the objective function has changed over the last 10 iterations, which is used as convergence criteria in the implementation provided.
150The remove_files function will allow an automatic removal of the temporary files created by ABAQUS ® after each FEA.
Main Program (Lines 9014-9307)
151The main program is divided in two phases.Between Lines 9014 and 9110, the code creates the classes required for the problem statement selected and prepares the ABAQUS ® model accordingly.The optimization process and the convergence criteria are defined in Lines 9111-9307.
152The optimization process considers two loops.The first is applicable for stressdependent problems, allowing a continuous increase of the p-norm exponential factor between Qi and QF.This functionality, here referred to as the "p-norm continuation approach", allows the stress constraint to be applied gradually and may be useful to improve the convergence of the algorithm.The continuation approach contrasts with the constant approach, which only considers one constant value for the p-normfactor.Note that for stress-independent problems (where Qi is not used, but set to 1.0) and when using the constant approach, Qi = QF, leading to a single loop.
153The second loop represents the convergence criteria.The code assumes that the algorithm has converged if the objective function has not changed more than 0.1 % over the last 10 iterations.It was selected as the default convergence criteria to allow an easy and relatively fast recreation of the results detailed in this article, as well as for being similar to the criteria adopted in [17].The interested user is reminded that these criteria do not apply to the SLSQP and Trust-constr algorithms (as mentioned in Section 6.5) and is encouraged to create convergence criteria adapted to the topology optimization problem analyzed.
Cantilever Beam
154The purpose of including this problem was to validate the functioning of the compliance objective function and volume constraint implemented in the code provided, before addressing more-complex stress-dependent problems, such as the L-bracket detailed in Section 7.2.
155This problem was modeled using a regular mesh with an element size of 5.0 mm and the element type CPS4.The load F was equal to 100.0 N, applied to a single node, in the corner represented in Figure 2. The problem was solved using an implicit analysis and considering a material with a 70.000MPa Young's modulus, a 0.33 Poisson's ratio, and a material density of 2.7 × 10 −9 t/mm 3 .The ABAQUS ® models necessary to reproduce all the results described in this work are available in the Dataset [94].
L-Bracket
156The L-bracket was chosen as a more-challenging benchmark problem [53,113,114], characterized by its initial geometry containing a stress-concentration point in the internal corner.Unconstrained compliance-minimization problems tend to ignore the stress concentration point, leading to an angular shape.On the other hand, stress-minimization or stress-constrained compliance-minimization problems tend to create rounded shapes that avoid the stress concentration.For these reasons, the L-bracket problem will be used in this research to validate and demonstrate the functioning of the code implemented when solving stress-dependent topology optimization problems.Furthermore, the strain and stress state generated by this L-bracket geometry is used in Section 8 to validate the correct implementation of the element formulations and maximum stress differentiation process.
157The dimensions and boundary conditions considered are represented in Figure 3. Unless stated otherwise, this problem was modeled using a regular mesh with an element size of 3.0 mm and the element type CPS4.The load F was equal to 1500.0 N, with this value being distributed over the nodes included in the 12.0 × 12.0 corner represented in Figure 3.The elements within the 12.0 × 12.0 corner are not editable during the optimization process.The problem was solved using an implicit analysis and considering a material with a 70.000MPa Young's modulus, a 0.33 Poisson's ratio, and a material density of 2.7 × 10 −9 ton/mm 3 .
Bonded Support
158The problem described in Figure 4 was selected to provide a three-dimensional case study that is more representative of the complex geometries that can be found in engineering design problems.The design space was modeled using an irregular mesh with an average element size of 1.25 mm and hexahedral C3D10, leading to an approximate total of 370.000 elements.A unit load was applied at a reference point attached to the connection region of the structure, while the surface of the adhesive joint was considered fixed.To minimize the computational cost, two planes of symmetry were considered along the XY and YZ planes, reducing the total number of elements.The problem was solved using an implicit analysis considering a material with: a 70.000MPa Young's modulus, a 0.33 Poisson's ratio, and a material density of 2.7 × 10 −9 ton/mm 3 .The problem also considered a simplified representation of an adhesive bond, accounting only for the elastic properties (a 1.500 MPa Young's modulus and a 0.3 Poisson's ratio).Due to the complexity of the design, the interested reader is referred to the Mendeley Dataset [94] for the complete description of the geometry considered in this case study and shown in Figure 4.
159The material elements representing the adhesive bond are identified as "frozen elements".This excludes the possibility of editing the material distribution in this region, which would influence the resistance of the joint due to the reduction of the bonded area and excludes the contribution of these elements during the use of the blurring filter, which would be physically unreasonable as the adhesive and substrate are made of different materials.On the other hand, the first layer of elements of the support in contact with the adhesive was identified as a "neighboring region", which does not allow changes in the material distribution of these elements, but allows the consideration of their influence in the determination of the gradients.However, unlike the previous case, the elements in this region were considered during the filtering process, as the material is the same as the one assigned to the editable region of the topology optimization process.The "frozen elements" and "neighboring region" are shown in Figure 4 in red and blue, respectively.
160The ABAQUS ® models necessary to reproduce all the results described in this work are available in the Dataset [94].
Code Validation
161The data necessary to solve compliance-minimization problems can be directly obtained from ABAQUS ® , which is a commercially certified software.However, stressdependent problems require the explicit programming of the element formulation and of the derivation process of the maximum stress function.The purpose of the following subsections is to present a brief validation of the code implementation.Section 8.1 validates the element formulations implemented, comparing the strains and stresses determined by the code and by ABAQUS ® at each integration point.Section 8.2 compares the derivative of the maximum stress determined by the code with the derivative obtained through finite differences.
162In this section, the L-bracket benchmark problem described in Section 7.2 is used.The reason behind this choice is that the L-bracket problem leads to a complex strain and stress state, allowing a more-challenging and -generic testing of elements over a wider variety of loading conditions than the Cantilever beam problem.
Validation of the Element Formulation
163The analysis of the element formulation is based on the measurement of a pondered error, described as follows:
164where E i rr is the pondered error determined for the component i of a generic vector γ and δγ i is the difference between the component determined by ABAQUS ® and its code counterpart.E i rr is determined as the product of δγ i by the ratio between the component γ i and the magnitude of the vector γ.
165This metric is preferred over the direct comparison of δγ i , since the latter is highly influenced by floating point errors.One of the reasons for this influence is that, while ABAQUS ® operates internally with double-precision, the output received by the code is in a single-precision format.This difference reduces the number of decimal places considered in each value and could lead to disproportional artificial errors in the vector components that contribute the least to the magnitude of the vector or in vectors whose magnitude tends towards zero.The second reason is that δγ i tends to estimate large error values for vector components that have a significantly smaller magnitude when compared to the magnitude of the vector.
166Table 2 summarizes the average pondered error observed for each integration point of four variants of the L-bracket numerical model described in Section 7.2, each with a different element type.For the particular case of using a 3D element (element type C3D8 in ABAQUS ® ), a thickness of 1.0 mm was considered for the L-bracket geometry.Since the largest average pondered error observed is equal to 2.0%, it can be concluded that the element formulations included in the code provided were implemented successfully for the case selected.Furthermore, for each element type, the table indicates the percentage of integration points with a pondered error less than 1.0%.Although not included in the present work due to its extension, the interested reader is informed that the Dataset [94] associated with this research includes a detailed comparison of every integration point, considering both the pondered and regular error measurements.
Validation of the Maximum Stress Derivative
167To validate the stress norm derivative of the code provided, its result was compared with the derivative obtained through finite differences.To do so, the design density of the elements located at points A, B, and C (shown in Figure 3) were changed individually, and the value of the maximum stress approximation was used to apply the finite differences.This procedure was repeated for the three elements, considering three different mesh sizes of 3.0 mm, 1.0 mm, and 0.5 mm, each increasing the order of magnitude of the total number of elements by 1, and different design density changes of 0.1, and 0.01.These density changes were chosen to conform with the maximum stiffness element difference allowable by ABAQUS ® .The results obtained are summarized in Table 3.
168It can be observed that the results obtained through finite differences are in good agreement with the derivative obtained by the Python code implemented, especially when the mesh size and the design density decrease.and its components ∂σ PN sp f (ρ) and ∂σ PN u (ρ) observed in the L-bracket model as a function of the element mesh size and design density.These data indicated that the approximation proposed in [100] (described at the end of Section 3.4) should not be adopted for the present problem.
Topology Optimization Results
169Figure 5 summarizes the results obtained for the compliance minimization of the Cantilever beam. Figure 6 summarizes the results obtained for the topology optimization of the L-bracket considering the different problem statements, plotting the objective function at each iteration and illustrating one of the final geometries obtained.Finally, Figure 7 shows the topology-optimized geometry of the bonded support.The color code adopted here displays elements with ρ = 0 in white, intermediate densities in grey, and elements with ρ = 1.0 in black.These results were not adimensionalized.
170The results obtained for each problem statement and any particular choice of parameters are discussed in the following subsections.In common, these examples share the volume constraint V * = 0.5.In the particular case of the solution "OC-Discrete and decreasing", the initial density was set to 1.0 and gradually reduced by a factor of e vol = 0.05, while the remaining cases considered an initial density equal to 0.5.The maximum move limit was equal to 0.2 for the OC or MMA algorithms and 1.0 for the SciPy algorithms SLSQP or Trust-constr, corresponding to their pre-default values.The blurring filter was applied to both the sensitivity and design densities with a maximum search radius of 8.0 mm for the L-bracket, 12.0 mm for the Cantilever beam, and 3.5 mm for the bonded support, except for the discrete version of the OC, which only applied the blurring filter to the sensitivity.The influence of the frozen elements was also considered during the application of the blurring filter.For stress-dependent problem statements, a p-norm exponential factor Qi = 8.0 was used.
171Overall, the Trust-constr and SLSQP algorithms tended to require a larger number of iterations to reach convergence.The reason for this difference was justified by their internal convergence criteria, as described in Section 6.11.
172In the results shown, the existence of few elements with intermediate design densities is, generally, to be expected for two reasons.First, applying a blurring filter will cause a gradual transition between the solid and void regions, avoiding a full "black-and-white" solution.Second, as described in Section 6.11, the convergence criterion depends only on the values of the objective function and does not impose a strict restriction on the final solution being constituted only by solid elements.These two factors justify the apparent better performance of the discrete version of the OC algorithm, since it only uses solid elements and does not have a blurring filter applied to the element densities.However, it is most likely that this optimization method converged to a better local minimum.
173It is also relevant to note that the mesh size had an influence on the use of elements with intermediate design densities.To completely avoid the existence of residual grey areas, it is recommended to implement projection methods [103], to define the final contour of the geometry, or to apply a final threshold filter to the design densities of each element.However, despite the potential influence of internal parameters, such as the filtering approach, mesh refinement, and the choice of the optimization algorithm and its hyperparameters, the results presented in both case studies are in line with the information reported in previous publications [53].
174Regarding the computational efficiency of the implementation proposed here, it was seen that it requires an average of 50 s per iteration when executed with an Intel ® Core TM i7-8750H CPU @ 2.20 GHz.However, the use of external packages, to apply the SLSQP and Trust-constr algorithms available in Python, led to an increase of this value to an average of 380 s per iteration.These values include the whole process required to perform an iteration, including: the update of the material properties, the preparation of the ABAQUS ® input file, model execution, data extraction from the FEA solution, the calculation of gradients, the application of the optimization process to update the design densities, and the plot of the new material distribution.
175Finally, the Cantilever beam and L-bracket problems solved in these sections could also be replicated in 3D space.This is possible as the code provided includes the implementation of a 3D element (C3D8 in ABAQUS ® ) and as the problem solving process does not require any particular adaptation when being converted to 3D space.
176The interested reader is informed that the Dataset [94] contains all the solutions obtained by each optimization algorithm, at each iteration.Due to its large extension, the information presented in this section is limited to the most-relevant solutions.
Cantilever Beam: Compliance Minimization Results
177The objective functions obtained by each of the different optimization algorithms were in good agreement, converging towards an approximately equal value of compliance.However, a different trend can be observed for the "OC-discrete and decreasing" case.In this particular case, the initial solution considers a fully solid design that must gradually reduce its mass to meet the volume constraint, causing a consequent reduction of the structural stiffness and an increase of the compliance value.This observation is also in line with the volume constraint graphic, which shows a gradual decrease until the value 0.5 is reached.On the other hand, the remaining algorithms maintained the volume constraint within a feasible domain.
178The final Cantilever geometry obtained was similar across all cases considered and illustrated, in Figure 5, with the solution found by the MMA.In this particular case, the elements with intermediate densities may also be the result of using a coarser mesh.
L-Bracket: Compliance Minimization Results
179The solutions obtained for the compliance-minimization problem were similar across all the algorithms used, differing only in the use of intermediate design densities in some elements.The solution obtained by the continuous version of the OC is shown in Figure 6A as an example of this geometry.
180The volume constraint was respected across all iterations.This behavior was also observed for the problem statements presented in Sections 9.3 and 9.4.For this reason, the graphic representation of the constraints was not included in these sections.
L-Bracket: Stress-Constrained Compliance Minimization Results
181The stress-constrained compliance-minimization problem statement considered a maximum allowable stress σ * = 200.0MPa.Imposing this constraint caused the MMA to converge towards a curved geometry, shown in Figure 6B, avoiding the creation of a stress concentration point in the inner corner of the L-bracket.This transition is in agreement with the results presented in [53].
182It is important to note that the transition from an angular geometry to a curved geometry (from case A to B of Figure 6) is dependent on several factors and not guaranteed to occur.First, the use of the modified p-norm approximation (Equation (47) proposed in [53]) may lead to an underestimate of the maximum stress installed.This fact may cause the optimization algorithm to overlook the influence of the stress concentration point and justifies the selection of σ * = 200.0MPa, a relatively low maximum value for the stress constraint.Second, the algorithm selected may adopt a strategy that is more or less prone to explore and accept solutions that do not respect the imposed constraints.The solution obtained by the SLSQP algorithm had a slightly curved shape closer to the region where the load was applied, but did not avoid the internal angular geometry.The solution obtained by the Trust-constr region was equal to the one obtained in the compliance-minimization problem statement, as the implementation available in SciPy only determined the maximum stress sensitivity for the first iteration.Although this strategy reduced the computational cost, it did not allow a rigorous evaluation of the influence of each element in the maximum stress.
183Finally, it is also important to note that the p-norm exponential factor had a significant influence on the result obtained, especially in the use of elements with intermediate densities.
L-Bracket: Stress Minimization Results
184Defining a stress-minimization problem statement may also lead to a transition from an angular to a curved geometry.This is particularly evident in the solution obtained by the SLSQP algorithm, shown in Figure 6C.However, this transition did not occur with the method available in ABAQUS ® .As a result, the SLSQP and Trust-constr algorithms converged to solutions with maximum stresses of 315 MPa and 330 MPa, respectively, representing a 35% reduction when compared to the 518 MPa installed in the solution obtained with ABAQUS ® .
185The data obtained with the SLSQP indicated an unstable behavior with large variability in the objective function.To improve readability, only the cumulative best solution obtained with this method was included in the plots referring to this problem statement.This variability indicates that the SLSQP was more likely to perform larger density redistributions, which may be a result of the strategy adopted by the SciPy implementation of this algorithm, and a result of the influence of their internal parameters, which largely affect the solutions obtained.
186Similar to the previous problem statement, the p-norm exponential factor had a significant influence on the result obtained, especially in the use of elements with intermediate densities.Also, although the MMA algorithm was removing material from the stress concentration area, further research should be performed to find appropriate tolerance parameters.
Bonded Support: Compliance Minimization Results
187The application of the compliance-minimization problem statement to the bonded support allows the removal of material in the central region, leaving material in the connection between the adhesive joint and the elements sustaining the external loads and in the lower surface of the design domain.To improve the readability and comprehension of the geometry obtained, Figure 7 only displays the elements where ρ = 1.0.The results herein shown also included the deformations installed in the topology-optimized design and the complete geometry obtained by mirroring the initial model along the XY and YZ planes.
Figure 1 .
188Figure 1.Sequence of operations performed by the topology optimization code implemented in this manuscript.
6. 5 .
189Optimization Algorithms: Optimality Criteria, Method of Moving Asymptotes, Sequential Least-Squares Quadratic Programming, and Trust-Constr (Lines 3847-5622)
Figure 2 .
190Figure 2. Dimensions and boundary conditions of the Cantilever beam numerical model.
Figure 3 .
191Figure 3. Dimensions and boundary conditions of the L-bracket numerical model.
Figure 4 .
192Figure 4. Complete three-dimensional representation of the geometry considered for the bonded support and its boundary conditions.The exterior surface of the region shown in red is considered fixed.The complete geometry is provided in the Mendeley Dataset [94].(a) Detailed view of the bonded region.(b) Detailed view of the loads applied in the lower surface.
Figure 5 .
193Figure 5. Graphic representation of the objective function and volume constraint obtained for the compliance minimization of the Cantilever beam.The geometry displayed represents the final solution obtained by the MMA algorithm.
Figure 6 .
194Figure 6.Graphic representation of the objective function obtained for each optimization algorithm and problem statement.The geometries displayed represent the final solution obtained by the algorithms: (A) OC-Continuous, (B) MMA, (C) SciPy SLSQP.
Figure 7 .
195Figure 7. Graphic representation of the topology optimized geometry, objective function, and material constraint obtained during the compliance minimization of the bonded support.The geometry displayed represents the final solution obtained by the OC-Continuous algorithm.The image shown only includes elements with a design density ρ = 1.0 to improve the readability and comprehension of the solution obtained.
Table 1 .
196Literature review summary table, including scientific articles referred to in the ABAQUS ® and ANSYS ® documentation, sorted by scope.The black dots indicate an affirmative answer to the questions posed in each column.OC •
197Cont.
198Cont.
199Cont.
Table 1
200includes several publications with open access implementations of topology optimization methods suitable for compliance-minimization problems
Table 2 .
201Average pondered error between the elements implemented in the code and the ABAQUS ® output.The dimensions are represented in millimeters.
Table 3 .
202Analysis of the continuous maximum stress derivative determined by the Python code and the derivative obtained through finite differences.
Table 4 .
203Average value of the stress derivative, and its components, observed in the L-bracket model at different design density values, considering three different mesh sizes.
204Space of functions with square integrable derivatives and homogeneous boundary values J
참고문헌 105건
- Global and clustered approaches for stress constrained topology optimization and deactivation of design variables 2013
- Optimization of Structural Topology, Shape, and Material Springer eBooks · Springer Nature · 1995 10.1007/978-3-662-03115-5
- Stress-constrained topology optimization for compliant mechanism design Structural and Multidisciplinary Optimization · Springer Science+Business Media · 2015 10.1007/s00158-015-1279-z
- Design of materials using topology optimization and energy-based homogenization approach in Matlab Structural and Multidisciplinary Optimization · Springer Science+Business Media · 2015 10.1007/s00158-015-1294-0
- Proportional Topology Optimization: A New Non-Sensitivity Method for Solving Stress Constrained and Minimum Compliance Problems and Its Implementation in MATLAB PLoS ONE · Public Library of Science · 2015 10.1371/journal.pone.0145041
- A review of optimization of cast parts using topology optimization Structural and Multidisciplinary Optimization · Springer Science+Business Media · 2005 10.1007/s00158-005-0554-9
- Stress constrained topology optimization with free-form design domains Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2015 10.1016/j.cma.2015.02.012
- An Interior Point Algorithm for Large-Scale Nonlinear Programming SIAM Journal on Optimization · Society for Industrial and Applied Mathematics · 1999 10.1137/s1052623497325107
- Topology optimization of free vibrations of fiber laser packages Structural and Multidisciplinary Optimization · Springer Science+Business Media · 2005 10.1007/s00158-004-0495-8
- Stiffness design of geometrically nonlinear structures using topology optimization Structural and Multidisciplinary Optimization · Springer Science+Business Media · 2000 10.1007/s001580050089
- A method for treating damage related criteria in optimal topology design of continuum structures Structural Optimization · Springer Nature · 1998 10.1007/bf01202821
- Design of one-dimensional optical pulse-shaping filters by time-domain topology optimization Applied Physics Letters · American Institute of Physics · 2009 10.1063/1.3278595
- Multi-constrained topology optimization via the topological sensitivity Structural and Multidisciplinary Optimization · Springer Science+Business Media · 2014 10.1007/s00158-014-1188-6
- Phase‐Field Relaxation of Topology Optimization with Local Stress Constraints SIAM Journal on Control and Optimization · Society for Industrial and Applied Mathematics · 2006 10.1137/05062723x
- Structural weight optimization by dual methods of convex programming International Journal for Numerical Methods in Engineering · Wiley · 1979 10.1002/nme.1620141203
- Topological derivative-based topology optimization of structures subject to Drucker–Prager stress constraints Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2012 10.1016/j.cma.2012.04.004
- Stress-based topology optimization for continua Structural and Multidisciplinary Optimization · Springer Science+Business Media · 2009 10.1007/s00158-009-0440-y
- Fronts propagating with curvature-dependent speed: Algorithms based on Hamilton-Jacobi formulations Journal of Computational Physics · Elsevier BV · 1988 10.1016/0021-9991(88)90002-2
- Stress constraints sensitivity analysis in structural topology optimization Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2010 10.1016/j.cma.2010.03.010
- A simple and compact Python code for complex 3D topology optimization Advances in Engineering Software · Elsevier BV · 2015 10.1016/j.advengsoft.2015.02.006
- Bi-directional evolutionary topology optimization of continuum structures with one or multiple materials Computational Mechanics · Springer Science+Business Media · 2008 10.1007/s00466-008-0312-0
- New optimality criteria methods: Forcing uniqueness of the adjoint strains by corner-rounding at constraint intersections Structural Optimization · Springer Nature · 1992 10.1007/bf01742752
- Stress constrained topology optimization Structural and Multidisciplinary Optimization · Springer Science+Business Media · 2013 10.1007/s00158-012-0880-7
- On an alternative approach to stress constraints relaxation in topology optimization Structural and Multidisciplinary Optimization · Springer Science+Business Media · 2008 10.1007/s00158-007-0203-6
- The COC algorithm, Part II: Topological, geometrical and generalized shape optimization Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 1991 10.1016/0045-7825(91)90046-9
- Systematic design of phononic band–gap materials and structures by topology optimization Philosophical Transactions of the Royal Society A Mathematical Physical and Engineering Sciences · Royal Society · 2003 10.1098/rsta.2003.1177
- An enhanced aggregation method for topology optimization with local stress constraints Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2012 10.1016/j.cma.2012.10.019
- 3D and multiple load case bi-directional evolutionary structural optimization (BESO) Structural Optimization · Springer Nature · 1999 10.1007/bf01195993
- Some aspects of the genesis of structures Structural Optimization · Springer Nature · 1992 10.1007/bf01744697
- PolyTop: a Matlab implementation of a general topology optimization framework using unstructured polygonal finite element meshes Structural and Multidisciplinary Optimization · Springer Science+Business Media · 2012 10.1007/s00158-011-0696-x
- Stress-constrained topology optimization: a topological level-set approach Structural and Multidisciplinary Optimization · Springer Science+Business Media · 2013 10.1007/s00158-013-0899-4
- Parallel computing in topology optimization of structures with stress constraints Computers & Structures · Elsevier BV · 2013 10.1016/j.compstruc.2013.04.016
- Topology optimization of thermoelastic structures: mean compliance minimization or elastic strain energy minimization Structural and Multidisciplinary Optimization · Springer Science+Business Media · 2013 10.1007/s00158-013-0991-9
- A further review of ESO type methods for topology optimization Structural and Multidisciplinary Optimization · Springer Science+Business Media · 2010 10.1007/s00158-010-0487-9
- An efficient 3D topology optimization code written in Matlab Structural and Multidisciplinary Optimization · Springer Science+Business Media · 2014 10.1007/s00158-014-1107-x
- Optimal Bearing Housing Designing Using Topology Optimization Journal of Tribology · ASM International · 2012 10.1115/1.4005951
- Convergent and mesh-independent solutions for the bi-directional evolutionary structural optimization method Finite Elements in Analysis and Design · Elsevier BV · 2007 10.1016/j.finel.2007.06.006
- Topology optimization of continuum structures with local and global stress constraints Structural and Multidisciplinary Optimization · Springer Science+Business Media · 2008 10.1007/s00158-008-0336-2
- Stress-constrained topology optimization with design-dependent loading Structural and Multidisciplinary Optimization · Springer Science+Business Media · 2012 10.1007/s00158-012-0780-x
- Topology optimization for minimum weight with compliance and stress constraints Structural and Multidisciplinary Optimization · Springer Science+Business Media · 2012 10.1007/s00158-012-0759-7
- On the usefulness of non-gradient approaches in topology optimization Structural and Multidisciplinary Optimization · Springer Science+Business Media · 2011 10.1007/s00158-011-0638-7
- On projection methods, convergence and robust formulations in topology optimization Structural and Multidisciplinary Optimization · Springer Science+Business Media · 2010 10.1007/s00158-010-0602-y
- The method of moving asymptotes—a new method for structural optimization International Journal for Numerical Methods in Engineering · Wiley · 1987 10.1002/nme.1620240207
- Generating optimal topologies in structural design using a homogenization method Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 1988 10.1016/0045-7825(88)90086-2
- A discrete level-set topology optimization code written in Matlab Structural and Multidisciplinary Optimization · Springer Science+Business Media · 2009 10.1007/s00158-009-0430-0
- Applied topology optimization of vibro-acoustic hearing instrument models Journal of Sound and Vibration · Elsevier BV · 2013 10.1016/j.jsv.2013.09.029
- Topology optimization using PETSc: An easy-to-use, fully parallel, open source topology optimization framework Structural and Multidisciplinary Optimization · Springer Science+Business Media · 2014 10.1007/s00158-014-1157-0
- Designing for damage tolerance in aerospace: A hybrid material technology Materials & Design (1980-2015) · Elsevier BV · 2014 10.1016/j.matdes.2014.06.068
- TOPOLOGY DESIGN OF STRUCTURES SUBJECTED TO PERIODIC LOADING Journal of Sound and Vibration · Elsevier BV · 2002 10.1006/jsvi.2001.4075
- An alternative interpolation scheme for minimum compliance topology optimization Structural and Multidisciplinary Optimization · Springer Science+Business Media · 2001 10.1007/s001580100129
- A 199-line Matlab code for Pareto-optimal tracing in topology optimization Structural and Multidisciplinary Optimization · Springer Science+Business Media · 2010 10.1007/s00158-010-0534-6
- Optimal shape design as a material distribution problem Structural and Multidisciplinary Optimization · Springer Science+Business Media · 1989 10.1007/bf01650949
- A mixed FEM approach to stress‐constrained topology optimization International Journal for Numerical Methods in Engineering · Wiley · 2007 10.1002/nme.2138
- Topology optimization of resonating structures using SIMP method International Journal for Numerical Methods in Engineering · Wiley · 2002 10.1002/nme.484
- New developments in handling stress constraints in optimal material distribution 7th AIAA/USAF/NASA/ISSMO Symposium on Multidisciplinary Analysis and Optimization · 1998 10.2514/6.1998-4906
- Fatigue constrained topology optimization Structural and Multidisciplinary Optimization · Springer Science+Business Media · 2014 10.1007/s00158-014-1054-6
- Material interpolation schemes in topology optimization Archive of Applied Mechanics · Springer Science+Business Media · 1999 10.1007/s004190050248
- A level set method for structural topology optimization Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2002 10.1016/s0045-7825(02)00559-5
- A 99 line topology optimization code written in Matlab Structural and Multidisciplinary Optimization · Springer Science+Business Media · 2001 10.1007/s001580050176
- Efficient topology optimization in MATLAB using 88 lines of code Structural and Multidisciplinary Optimization · Springer Science+Business Media · 2010 10.1007/s00158-010-0594-7
- Matlab code for a level set-based topology optimization method using a reaction diffusion equation Structural and Multidisciplinary Optimization · Springer Science+Business Media · 2014 10.1007/s00158-014-1190-z
- Numerical instabilities in topology optimization: A survey on procedures dealing with checkerboards, mesh-dependencies and local minima Structural Optimization · Springer Nature · 1998 10.1007/bf01214002
- Topology optimization approaches Structural and Multidisciplinary Optimization · Springer Science+Business Media · 2013 10.1007/s00158-013-0978-6
- A New Approach for Sizing, Shape and Topology Optimization SAE technical papers on CD-ROM/SAE technical paper series · 1996 10.4271/960814
- Topology Optimization with Different Stress Limit in Tension and Compression Open Repository and Bibliography (University of Liège) · University of Liège · 1999
- Topology optimization for minimum weight with compliance and simplified nominal stress constraints for fatigue resistance Structural and Multidisciplinary Optimization · Springer Science+Business Media · 2016 10.1007/s00158-016-1510-6
- Support structure constrained topology optimization for additive manufacturing Computer-Aided Design · Elsevier BV · 2016 10.1016/j.cad.2016.08.006
- Topology optimization and additive manufacturing: Comparison of conception methods using industrial codes Journal of Manufacturing Systems · Elsevier BV · 2017 10.1016/j.jmsy.2017.03.006
- A new method based on adaptive volume constraint and stress penalty for stress-constrained topology optimization Structural and Multidisciplinary Optimization · Springer Science+Business Media · 2017 10.1007/s00158-017-1803-4
- Stress-constrained topology optimization based on maximum stress measures Computers & Structures · Elsevier BV · 2018 10.1016/j.compstruc.2018.01.008
- Achieving stress-constrained topological design via length scale control Structural and Multidisciplinary Optimization · Springer Science+Business Media · 2018 10.1007/s00158-018-2019-y
- Adaptive conjugate single-loop method for efficient reliability-based design and topology optimization Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2018 10.1016/j.cma.2018.10.009
- Adaptive mesh refinement in stress-constrained topology optimization Structural and Multidisciplinary Optimization · Springer Science+Business Media · 2018 10.1007/s00158-018-2084-2
- Functionally graded lattice structure topology optimization for the design of additive manufactured components with stress constraints Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2018 10.1016/j.cma.2018.10.010
- PolyMat: an efficient Matlab code for multi-material topology optimization Structural and Multidisciplinary Optimization · Springer Science+Business Media · 2018 10.1007/s00158-018-2094-0
- A 213-line topology optimization code for geometrically nonlinear structures Structural and Multidisciplinary Optimization · Springer Science+Business Media · 2018 10.1007/s00158-018-2138-5
- Stress-constrained topology optimization of continuum structures subjected to harmonic force excitation using sequential quadratic programming Structural and Multidisciplinary Optimization · Springer Science+Business Media · 2018 10.1007/s00158-018-2159-0
- Topology Optimization of Composite Self-Deployable Thin Shells with Cutouts AIAA SCITECH 2022 Forum · 2019 10.2514/6.2019-1524
- From Topology Optimization Design to Additive Manufacturing: Today’s Success and Tomorrow’s Roadmap Archives of Computational Methods in Engineering · Springer Science+Business Media · 2019 10.1007/s11831-019-09331-1
- Concurrent topology optimization of multiscale composite structures in Matlab Structural and Multidisciplinary Optimization · Springer Science+Business Media · 2019 10.1007/s00158-019-02323-6
- Topology optimization of stress-constrained structural elements using risk-factor approach Computers & Structures · Elsevier BV · 2019 10.1016/j.compstruc.2019.106104
- Design of compliant mechanisms using continuum topology optimization: A review Mechanism and Machine Theory · Elsevier BV · 2019 10.1016/j.mechmachtheory.2019.103622
- Topology optimization of fibers orientation in hyperelastic composite material Composite Structures · Elsevier BV · 2019 10.1016/j.compstruct.2019.111488
- Conceptual design of structural systems based on topology optimization and prefabricated components Computers & Structures · Elsevier BV · 2019 10.1016/j.compstruc.2019.106136
- Further elaborations on topology optimization via sequential integer programming and Canonical relaxation algorithm and 128-line MATLAB code Structural and Multidisciplinary Optimization · Springer Science+Business Media · 2019 10.1007/s00158-019-02396-3
- SciPy 1.0: fundamental algorithms for scientific computing in Python Nature Methods · Nature Portfolio · 2020 10.1038/s41592-019-0686-2
- Stress-constrained level set topology optimization for compliant mechanisms Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2020 10.1016/j.cma.2019.112777
- New hybrid reliability-based topology optimization method combining fuzzy and probabilistic models for handling epistemic and aleatory uncertainties Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2020 10.1016/j.cma.2020.112886
- A MATLAB code for topology optimization using the geometry projection method Structural and Multidisciplinary Optimization · Springer Science+Business Media · 2020 10.1007/s00158-020-02552-0
- Topology optimization with local stress constraints: a stress aggregation-free approach Structural and Multidisciplinary Optimization · Springer Science+Business Media · 2020 10.1007/s00158-020-02573-9
- A new generation 99 line Matlab code for compliance topology optimization and its extension to 3D Structural and Multidisciplinary Optimization · Springer Science+Business Media · 2020 10.1007/s00158-020-02629-w
- A 101-line MATLAB code for topology optimization using binary variables and integer programming Structural and Multidisciplinary Optimization · Springer Science+Business Media · 2020 10.1007/s00158-020-02719-9
- Robust topology optimization methodology for continuum structures under probabilistic and fuzzy uncertainties International Journal for Numerical Methods in Engineering · Wiley · 2020 10.1002/nme.6616
- PolyStress: a Matlab implementation for local stress-constrained topology optimization using the augmented Lagrangian method Structural and Multidisciplinary Optimization · Springer Science+Business Media · 2021 10.1007/s00158-020-02760-8
- Efficient stress‐constrained topology optimization using inexact design sensitivities International Journal for Numerical Methods in Engineering · Wiley · 2021 10.1002/nme.6662
- An efficient 146-line 3D sensitivity analysis code of stress-based topology optimization written in MATLAB Optimization and Engineering · Springer Science+Business Media · 2021 10.1007/s11081-021-09675-3
- Local stress constraints in topology optimization of structures subjected to arbitrary dynamic loads: a stress aggregation-free approach Structural and Multidisciplinary Optimization · Springer Science+Business Media · 2021 10.1007/s00158-021-02954-8
- A comprehensive review of educational articles on structural and multidisciplinary optimization Structural and Multidisciplinary Optimization · Springer Science+Business Media · 2021 10.1007/s00158-021-03050-7
- Stress constrained topology optimization simultaneously considering the uncertainty of load positions International Journal for Numerical Methods in Engineering · Wiley · 2021 10.1002/nme.6858
- An efficient and easy-to-extend Matlab code of the Moving Morphable Component (MMC) method for three-dimensional topology optimization Structural and Multidisciplinary Optimization · Springer Science+Business Media · 2022 10.1007/s00158-022-03239-4
- Reliability‐based topology optimization of continuum structure under buckling and compliance constraints International Journal for Numerical Methods in Engineering · Wiley · 2022 10.1002/nme.6997
- Optimal design of compliant displacement magnification mechanisms using stress-constrained topology optimization based on effective energy Finite Elements in Analysis and Design · Elsevier BV · 2022 10.1016/j.finel.2022.103892
- A maximum-rectifier-function approach to stress-constrained topology optimization Structural and Multidisciplinary Optimization · Springer Science+Business Media · 2022 10.1007/s00158-022-03357-z
- Stress‐constrained topology optimization of structures subjected to nonproportional loading International Journal for Numerical Methods in Engineering · Wiley · 2023 10.1002/nme.7230
- Python Code for Stress Constrained Topology Optimization in ABAQUS 2023 10.17632/d347zjsk27.2