Manuscript Offprint
arXiv:2609.07337Elastoplastic inherent strain-based topology optimization for residual stress reduction in metal additive manufacturing
ARTICLE INFO
Keywords:
Topology optimization
Laser powder bed fusion (metal additive manufacturing)
Design for additive manufacturing
Inherent strain method
Elastoplasticity
Adjoint sensitivity analysis
ABSTRACT
This paper proposes a topology optimization method for reducing the residual stress arising in the building process of metal additive manufacturing. First, a layer-by-layer process analysis model based on an elastoplastic inherent strain method is introduced. In this model, the incremental displacement is solved anew at each layer step, and the stress history is explicitly incorporated into the constitutive equation as the stress accumulated up to the previous step, which guarantees the stress continuity across layer interfaces without introducing activation strains. Next, the design sensitivity of this analysis model is derived based on the adjoint method. Taking the pair of the stress and the equivalent plastic strain as the state variables reduces the dependency between layer steps to a one-step recurrence, and the adjoint fields are constructed as a layer-by-layer reverse sweep that reuses the coefficient tensors obtained in the forward analysis. Consequently, the cost of the sensitivity analysis scales linearly with the number of layers and remains of the same order as that of the forward analysis. An optimization problem is then formulated based on the density method to minimize the P-norm of the residual stress at the completion of the building process under the volume and final-use compliance constraints, and the derived sensitivities are verified by comparison with central finite differences. Finally, the proposed method is demonstrated through two- and three-dimensional examples of residual stress minimization under a compliance constraint. The results clarify that, under the elastoplastic analysis, the maximum residual stress is bounded by the yield surface, and the optimization therefore reduces the extent of the yielded and plastic strain accumulating regions rather than the peak stress value.
Metal additive manufacturing (AM) has emerged as a promising solution to this issue. In particular, laser powder bed fusion (LPBF) is the most widely used process for metal AM and is expected to enable the fabrication of the complex structures obtained by topology optimization. The integration of topology optimization and AM enables a consistent optimization from design to manufacturing, and the creation of lightweight high-performance components, improvements in manufacturing efficiency, and reductions in cost and energy consumption have been reported in industrial fields such as aerospace, automotive, energy, and heat exchangers [3, 4].
Metal AM, and LPBF in particular, nevertheless involves several manufacturing issues that restrict the freedom of design and fabrication. A representative issue is the residual stress accumulated during the building process and the resulting process-induced distortion. In LPBF, local melting by a laser and rapid solidification of metal powder are
Corresponding author.
mikit@orist.jp (T. Miki)
ORCID(s):
T. Miki et al.: Preprint submitted to Elsevier
Page 1 of 34 repeated layer by layer. In this layer-wise building process, nonuniform strains caused by phase transformation and by the thermal expansion and contraction that accompany local temperature changes accumulate under the constraint of the underlying layers and surrounding regions, and a residual stress field is formed accompanied by plastic deformation. As a result, warpage, distortion, and even cracking may occur, which can severely degrade the dimensional accuracy and reliability of the fabricated parts.
Another important restriction is the limitation on the build angle, that is, the overhang. In LPBF, since the powder beneath a layer remains unmelted, downward-facing surfaces close to horizontal are not self-supporting, and support structures become inevitable. This not only restricts the design freedom but also increases the burden and cost of post-processing for support removal. In addition, for structures with complex internal cavities and channels, unmelted powder remains after fabrication, and powder removal itself becomes a design constraint. Metal AM thus involves both physical issues inherent in the thermo-mechanical process and geometric or post-processing constraints, and design and optimization methods that account for them are required.
Against this background, topology optimization considering the manufacturability of AM has been actively studied. In particular, geometric constraint approaches incorporating overhang constraints have been widely investigated [5, 6, 7, 8]. These methods evaluate the overhang angle, that is, the angle between the surface normal and the building direction, and ensure that the structure is self-supporting through smooth boundary control in level set-based methods or through gradient-based constraints in density-based methods, thereby contributing to the reduction of support material and post-processing cost. However, geometric constraint approaches alone cannot address the physical manufacturing issues such as residual stress and distortion.
In parallel, studies that integrate process analysis models of AM with optimization methods have been conducted to suppress residual stress and distortion at the design stage. Representative approaches include thermo-mechanical coupled analysis [9] and the inherent strain method [10, 11, 12, 13], which have been applied to topology optimization problems considering residual stress distributions and distortion. The former requires coupled nonlinear analyses and is computationally expensive, whereas the latter is an elastic or elastoplastic analysis that employs strain fields identified by experiments or high-fidelity analyses and can predict part-scale residual stress and distortion at low cost. For example, Xu et al. [14] evaluated the layer-wise stress field by a simplified inherent strain model and proposed a density-based optimization method that simultaneously considers residual stress and overhang constraints. Miki and Yamada [15] and Miki [16] constructed level set-based topology optimization methods that simultaneously consider overhang constraints and AM-induced distortion, and verified their effectiveness with two- and three-dimensional numerical examples.
Although these previous studies have enabled structural designs that account for the physical issues specific to AM to some extent, the analysis models employed are simplified elastic analyses, and the influence of plastic deformation, which is dominant in the actual LPBF process, has not been fully evaluated.
Outside the context of AM, topology optimization with elastoplastic constitutive laws has been studied since the late 1990s [17, 18]. It has since been applied to energy absorption and dissipation [19, 20, 21], to stress constraints [22], and to large-scale problems [23]. Because the response of such structures is path dependent, the design sensitivity cannot be recovered from the terminal state alone. It is instead evaluated by an adjoint scheme that runs backward through the load steps, and general formulations of this path-dependent sensitivity analysis are now well established [24, 25, 26]. Approximations that avoid the path dependence altogether have also been proposed [27]. The same history dependence arises in the layer-by-layer building process of AM, where the layer index plays the role of the load step.
Dugast and To [28] introduced an analysis model based on an elastoplastic constitutive law capable of representing plastic deformation and proposed a method for optimizing support structures. However, since their analysis model is based on activation strains, the displacement field at the moment of element activation is carried over into the constitutive equation as the activation strain, which introduces additional dependencies between layer steps; the sensitivity analysis therefore becomes complicated and the computational cost increases. This limits its applicability to the optimization of high-resolution three-dimensional models with product performance constraints. Consequently, an optimization method that introduces an elastoplastic constitutive law to represent plastic deformation while retaining the overall computational efficiency including the sensitivity analysis is strongly demanded.
To resolve the above issues, in this study we construct an elastoplastic topology optimization method aimed at reducing the residual stress arising in metal AM. First, to accurately evaluate the plastic deformation accumulated in a part during the building process, we introduce a layer-by-layer process analysis model that is based on an elastoplastic constitutive law and does not use activation strains. The state fields of each layer are constructed recursively by explicitly incorporating the stress accumulated up to the previous layers into the constitutive equation, which guarantees the stress
T. Miki et al.: Preprint submitted to Elsevier
Page 2 of 34 continuity across layer interfaces. This allows the history-dependent stress distribution and the accumulation of plastic strain, which cannot be captured by conventional elastic models, to be reproduced accurately. Next, as the sensitivity analysis, we propose an adjoint analysis method in which the adjoint variables are carried over layer by layer in the reverse order of the building sequence. Owing to the formulation without activation strains, the reverse update of the adjoint fields can be constructed by reusing the coefficient tensors obtained in the return mapping of the forward analysis. That is, the adjoint fields can be constructed with the same layer-by-layer structure as the physical fields, so that the implementation of the adjoint analysis becomes analogous to that of the forward analysis, and the memory usage and implementation effort are substantially reduced. The derived sensitivities are verified by comparison with finite differences, and the effectiveness of the proposed method is demonstrated by two- and three-dimensional numerical examples that minimize the residual stress under a compliance constraint.
By integrating the elastoplastic layer-by-layer process analysis model with the adjoint sensitivity analysis that exploits the layer-by-layer structure of the building process, the proposed method realizes a high-fidelity structural optimization that faithfully reflects the manufacturing process, thereby aiming to improve product reliability while ensuring product performance.
The remainder of this paper is organized as follows. Section 2 presents the layer-by-layer AM process analysis model based on the elastoplastic inherent strain method and confirms its behavior with a numerical example. Section 3 formulates the topology optimization problem that minimizes the residual stress under a compliance constraint based on the density method. Section 4 derives the design sensitivities using the adjoint method. Section 5 describes the implementation of the optimization algorithm and the verification of the sensitivities by finite differences. Section 6 presents two- and three-dimensional numerical examples to validate the effectiveness of the proposed method. Finally, Section 7 provides the conclusions of this paper.
2. Layer-by-layer AM process analysis model based on the elastoplastic inherent strain method
In this section, we formulate a layer-by-layer process analysis model based on the elastoplastic inherent strain method for evaluating the residual stress and plastic strain accumulated in a part during the layer-wise building process of metal AM. Section 2.1 outlines the basic concept of the inherent strain method, its extension to layer-by-layer AM analysis, and the lineage of its elastoplastic variants. Section 2.2 introduces the quiet element method for modeling layer activation and describes the modeling strategy of this study, which does not use activation strains. Section 2.3 formulates the elastoplastic constitutive equation that explicitly incorporates the carry-over of the accumulated stress and clarifies the recursive structure of the state fields. Section 2.4 presents the weak form of the governing equations and the layer-by-layer analysis algorithm, and Section 2.5 confirms the behavior of the analysis model with a numerical example.
2.1. Inherent strain method
The inherent strain method was proposed by Ueda et al. [10] as an efficient technique for predicting the residual stress and distortion caused by welding processes. Residual stress originates from inelastic strains, such as plastic and thermal strains, generated in the process of local melting and solidification of metallic materials. The inherent strain method identifies the total of these inelastic strains as the inherent strain and applies it as an initial strain in a static mechanical analysis at room temperature, thereby reproducing the residual stress and distortion without performing a transient thermo-mechanical coupled analysis [13]. Decomposing the total strain after cooling into elastic, plastic, and thermal components, the inherent strain is defined as
where , , and represent the elastic strain, the plastic strain, and the thermal strain, respectively; may include volume changes originating from phase transformation.
Since the building process of AM can be regarded as a repetition of welding processes, the inherent strain method has been extended to metal AM by way of its application to multi-pass welding [11]: the part is divided into multiple layers along the building direction, and the mechanical equilibrium at room temperature is solved sequentially while the inherent strain is applied to each newly added layer, which predicts the part-scale accumulation of residual stress and distortion at low cost. The early inherent strain methods were based on a linear elastic constitutive law, in which the stress grows beyond the yield stress without control and the residual stress is severely overestimated [13];
T. Miki et al.: Preprint submitted to Elsevier
Page 3 of 34 nonlinear variants employing an elastoplastic constitutive law have therefore been proposed [29, 28]. The analysis model formulated in this section belongs to this elastoplastic lineage.
The inherent strain is identified either by high-fidelity analyses resolving the scanning process, such as the modified inherent strain method [12, 13], or by experiments in which a cantilever-shaped specimen is partially cut and its deflection is measured [15]. The identification itself is beyond the scope of this study; hereafter, following the common practice in previous studies [14, 28], an identified uniform constant tensor is applied at the moment of activation of each macro-layer, an analysis layer thicker than the actual powder layers, into which the part is divided along the building direction.
2.2. Layer activation and quiet element formulation
To apply the inherent strain method to the building process of AM, the fixed domain ( ) occupied by the manufactured part is divided into macro-layers of constant thickness along the building direction (Fig. 1):
The building process is represented by layer steps, where exactly one macro-layer is activated per step, that is, layer is newly activated and analyzed at step (one step per layer). At each step, is partitioned into the following three subdomains (Fig. 1):
where is the activated domain that has already been built, is the layer that is activated and subjected to the inherent strain at the current step, and is the inactive domain. To describe them analytically, we introduce the indicator function of layer ,
and the activation indicator function that indicates the domain contributing to the stiffness at the end of step n,
with for and for .
For the numerical treatment of the inactive domain, two approaches are commonly used: the inactive element method and the quiet element method [30]. The former excludes the inactive elements from the finite element assembly, whereas the latter keeps all the elements in the assembly and assigns very small material properties to the inactive elements. In this study, we adopt the quiet element method and assign a Young's modulus , which is sufficiently smaller than that of the solid material, to the inactive domain , so that the layer activation is represented on a fixed mesh. The small but nonzero Young's modulus is introduced to avoid the rank deficiency of the global stiffness matrix that would arise if the stiffness of the inactive elements vanished while they are kept in the assembly; it is chosen sufficiently small that it does not affect the response of the activated domain.
Here, we describe the strategy of this study for modeling the layer activation. Previous studies using the quiet element method [31, 14, 28] adopt formulations in which the displacement is accumulated over the entire building history; when a new layer is activated, the deformation accumulated up to that moment, , is inherited by the new layer, and a spurious initial stress arises. To cancel it, an activation strain must be introduced into the constitutive equation so that the new layer is activated without this spurious initial stress. However, the activation strain carries the displacement field at the moment of element activation over into the constitutive equation, which introduces additional dependencies between layer steps; in elastoplastic analyses in particular, this complicates the sensitivity analysis and increases the computational cost [28]. In contrast, in this study, the incremental displacement
T. Miki et al.: Preprint submitted to Elsevier
Page 4 of 34

Figure 1: Concept of layer activation and domain decomposition. At step , the fixed domain is partitioned into the activated domain that has already been built, the layer that is activated at this step and subjected to the inherent strain , and the inactive domain . The inactive domain is treated as quiet elements with a very small Young's modulus .
is solved anew at each step, and the stress history is carried over by explicitly incorporating the stress accumulated up to the previous step into the constitutive equation (Section 2.3). In this formulation, a new layer is activated with zero plastic history and zero stress history, so that no spurious initial stress arises in the new layer and no correction term such as the activation strain is needed; in the domain that has already been built, the accumulated stress is preserved so that the stress continuity across layer interfaces is guaranteed.
2.3. Elastoplastic constitutive equations
2.3.1. Strain decomposition and accumulated form of the stress update
Under the small strain assumption, the total strain at step is decomposed into the elastic strain, the plastic strain, and the inherent strain:
Here, the accumulated inherent strain is the sum of the inherent strains applied to the activated layers,
Since each point is activated at most once, only one term of this sum is nonzero.
In this study, the incremental displacement , that is, the response to the inherent strain loading and the layer activation of the current step, is solved anew at each step. Using the symmetric gradient operator , the total strain increment of step is written as , and the cumulative total strain is its sum over the steps, . Substituting the strain decomposition (6) into the linear elastic relation between the elastic strain and the stress, , then gives the stress accumulated up to step ; in the inactive domain, the elasticity tensor is the quiet tensor , and the inherent strain term is absent because no inherent strain has been applied there :
where is the elasticity tensor with bulk modulus and shear modulus , and is the quiet elasticity tensor constructed from the small Young's modulus with the Poisson's ratio unchanged (Section 2.2). At the first step, all the history fields vanish, and the first branch of (8) reads ; at the second step, subtracting the expression of from (8) with leaves only the quantities of step 2 in the bracket.
T. Miki et al.: Preprint submitted to Elsevier
Page 5 of 34
In general, taking the difference of each branch of (8) between two consecutive steps and using (7), the stress update closes in the following incremental form:
where is the plastic strain increment, and is the inherent strain increment newly applied at the current step. The accumulated stress denotes the stress accumulated up to the previous step, defined recursively by (9) itself from the initial state . Note that the plastic strains generated in the preceding steps do not appear explicitly in (9): as is evident from the accumulated form (8), they are already contained in the accumulated stress , and only the increment of the current step enters the update.
Equation (9) is the core of the present analysis model. The stress history up to the previous step is explicitly incorporated into the constitutive equation as the accumulated stress and acts as an initial stress in the activated domain. On the other hand, the new layer carries no history of the preceding steps, as described in Section 2.2, and hence the accumulated stress vanishes there, ; the new layer is thus activated without any spurious initial stress.
Although the plastic evolution is formally retained in the second branch of (9), the stress level in the quiet state is smaller than that of the built material by the factor , where denotes the Young’s modulus of the solid material, and remains far inside the yield surface, so that there in practice. The quiet stress accumulated by the second branch of (9) is an artifact of the numerical realization of the layer activation; as described in Section 2.4, it is discarded at the moment of activation and never enters the history of the built material. The incremental structure of the update at step , that is, the carry-over of as an initial stress in the built layers and the activation of the new layer with zero stress history, is illustrated in Fig. 2.

(a)

(b)
Figure 2: Incremental structure of the stress update at layer step . (a) At the end of step , the built layers store the accumulated stress , and the layers above remain quiet. (b) At step , the layer is activated with zero stress history, , and subjected to the inherent strain , while the accumulated stress acts as an initial stress in the built layers; the incremental displacement is solved anew on the entire domain, and the stress is updated by (9).
2.3.2. Yield function and linear isotropic hardening
The plastic behavior is modeled by plasticity with the von Mises yield function and the associated flow rule. The yield function is given by
where is the von Mises equivalent stress of the deviatoric stress , is the equivalent plastic strain, is the initial yield stress, and is the linear isotropic hardening modulus.
The plastic evolution follows the associated flow rule, and the loading/unloading at each step is governed by the incremental Karush–Kuhn–Tucker (KKT) conditions [32, 23]:
T. Miki et al.: Preprint submitted to Elsevier
Page 6 of 34
That is, in the elastic state ( ) the state remains inside the yield surface, and in the plastic state ( ) the updated state is required to lie on the yield surface, f=0; this is the consistency condition.
2.3.3. Closed-form update by radial return and the recursive structure of the state
The stress update at each step, that is, the determination of the state satisfying the KKT conditions (11), can be written in closed form by the standard predictor-corrector scheme, that is, the radial return [32]. First, the elastic trial stress obtained by assuming a zero plastic increment at the current step is defined as
For linear isotropic hardening, the KKT conditions (11) are solved in closed form, and the equivalent plastic strain increment is given by
where the Macaulay bracket appears as the closed-form solution of the complementarity condition in (11) and represents the branch between the elastic and plastic states. The updated stress is written as a radial scaling of the trial deviatoric stress:
(14)
In the elastic state , and , and (14) reduces to . The plastic strain increment follows from the associated flow rule as with , and substituting it into (9) recovers (14).
Taking the pair of the accumulated stress and the equivalent plastic strain as the state at each material point (at each Gauss point in the finite element implementation), the above update rule closes as a one-step recurrence, that is, an update mapping that depends only on the state of the previous step and the displacement of the current step:
Here, the scalar update mapping denotes the closed-form update (13) of the equivalent plastic strain, and the tensor update mapping denotes the radial return (14) combined with the trial stress (12). Since the plastic strain is absorbed into the accumulated stress , it need not be retained as an independent state variable. This choice of the state and the recursive structure form the basis of the adjoint sensitivity analysis derived in Section 4. Moreover, since the elastic/plastic branch is determined by whether holds in the KKT conditions (11) of the forward analysis, this active set directly provides the gate of the plastic terms in the adjoint equations in Section 4.
Furthermore, the derivatives of the update mappings (14) and (15) are also obtained in closed form. The derivative of the stress update mapping with respect to the trial stress is given by the return-mapping projection tensor
with in the elastic state. Using this tensor, the algorithmic tangent stiffness, also called the consistent tangent, of the stress with respect to the strain increment at step n is expressed as
is used in the Newton iteration of the equilibrium equation (Section 2.4). We emphasize that, as shown in Section 4, the same coefficient tensors and are reused as they are in the reverse update of the adjoint fields. In the elastic limit, , which coincides with the stiffness of the linear elastic AM model.
T. Miki et al.: Preprint submitted to Elsevier
Page 7 of 34
Algorithm 1 Layer-by-layer analysis based on the elastoplastic inherent strain method
1: Initialize: ,
2: for do
3: Activate layer : keep the Young's modulus of at and assign the solid material properties to
4: Initialize the state history within layer :
5: Apply the inherent strain and solve the equilibrium equation (19) by Newton iterations to obtain , executing the return mapping (12)–(14) at each Gauss point
6: Update and store the state:
7: end for
8: Output: final residual stress field and equivalent plastic strain field
2.4. Governing equations and the layer-by-layer analysis algorithm
The bottom surface of the part is clamped to the build plate, and the other boundaries are traction-free. The admissible displacement space with the displacement constrained on is defined as
The displacement field at step is governed by the weak form of the quasi-static equilibrium without external loads:
where is an arbitrary test function, that is, a virtual displacement, and denotes its symmetric gradient. The above equation is solved sequentially for all indices . No external load acts during the building process, and the stress is generated only by the application of the inherent strain. Since is a nonlinear mapping of that includes the return mapping (12)–(14), Equation (19) is solved by the Newton method with the algorithmic tangent stiffness in (17).
Equation (19) is the sharp form in which the inactive domain is excluded by the activation indicator . In the finite element computation, all the elements are kept in the assembly by the quiet element method (Section 2.2), and the equilibrium actually solved is assembled over the entire fixed domain:
where is given by the two branches of (9). Since the contribution of is of the order of , Equation (20) reduces to (19) in the limit ; the formulation and the sensitivity analysis in the subsequent sections are developed on the basis of the sharp form (19).
The initial conditions are
and, at the activation of a new layer , the state history within the layer is initialized as
(this initialization discards the quiet stress accumulated by the second branch of (9), which is negligible as noted in Section 2.3.1). The layer-by-layer analysis procedure is summarized in Algorithm 1.
The computation at each step of Algorithm 1 is a static elastoplastic analysis whose only input is the state of the previous step, , and the total analysis cost of the steps is bounded by times that of a single elastoplastic analysis. The final field gives the residual stress at the completion of the building process and is used to evaluate the objective function of the optimization problem formulated in Section 3.
T. Miki et al.: Preprint submitted to Elsevier
Page 8 of 34
2.5. Numerical example
In this section, we confirm the behavior of the proposed elastoplastic layer-by-layer analysis model and demonstrate the necessity of considering plasticity through a comparison with a linear elastic analysis model.
2.5.1. Problem settings
The analysis domain is the two-dimensional rectangular domain of width 100 mm and height 50 mm shown in Fig. 3, which is entirely filled with the solid material and analyzed under plane stress. The bottom surface of the part is fixed to the build plate. The domain is divided into layers of thickness mm along the building direction, and the layer-by-layer analysis is performed by Algorithm 1. An aluminum alloy is assumed as the material, with Young's modulus GPa, Poisson's ratio , initial yield stress MPa, and linear hardening modulus GPa. Following the common practice [14], the inherent strain tensor is prescribed as the uniaxial constant tensor in Voigt notation, in which only the in-plane normal component is nonzero and the building-direction and shear components are omitted. In this example, . The analysis conditions are summarized in Table 1.

Figure 3: Analysis model of Section 2.5. The fully solid mm rectangular domain (plane stress) is divided into layers of thickness mm. The bottom surface is fixed to the build plate, and the inherent strain is applied to the newly activated layer at each step (no external load).
Table 1
Material and process parameters used in Section 2.5
| Category | Symbol (definition) | Value |
|---|---|---|
| Material | Young's modulus | 72 GPa |
| Poisson's ratio | 0.3 | |
| Initial yield stress (10) | 243 MPa | |
| Linear hardening modulus (10) | 2.171 GPa | |
| Process | Inherent strain | |
| Layer thickness / number of layers | 2 mm / 25 | |
| Young's modulus of quiet elements (Section 2.2) | 1 kPa |
The domain is discretized with a structured grid of mm elements, and each layer corresponds to one row of elements. Quadrilateral elements with quadratic interpolation are used for the displacement, and the stress and the plastic state variables are stored at the Gauss points of each element.
As the comparison target, we employ the linear elastic AM model in which the plasticity is disabled under the identical layer division, quiet element treatment, and inherent strain loading, that is, the accumulated-form elastic analysis obtained by setting in (9) [14]. Since the two models differ only in the constitutive law, their comparison directly shows the influence of plastic deformation on the residual stress prediction.
T. Miki et al.: Preprint submitted to Elsevier
Page 9 of 34
2.5.2. Results
The distribution of the von Mises residual stress at the completion of the building process is shown in Fig. 4, and that of the equivalent plastic strain in the elastoplastic model is shown in Fig. 5.

(a)
(b)
Figure 4: Distributions of the von Mises residual stress at the completion of the building process. (a) Elastoplastic model. (b) Linear elastic model. The color range 0–400 MPa is common to both (values above the upper limit are saturated). The maximum value of the linear elastic model, 1730.9 MPa, greatly exceeds this range.

Figure 5: Distribution of the equivalent plastic strain at the completion of the building process in the elastoplastic model (blue: ).
In the elastoplastic model (Fig. 4(a)), the maximum stress of 380.0 MPa occurs at the junction with the build plate and remains 1.56 times the initial yield stress. Since the stress cannot exceed the yield surface , this excess corresponds to the expansion of the yield surface by linear isotropic hardening. Indeed, substituting the maximum equivalent plastic strain into the hardening law yields MPa, which agrees with the maximum stress. Outside the bottom layer, the highly stressed regions are limited to bands near the side surfaces, and the stress level there is bounded slightly above the yield stress (250–275 MPa).
The distribution of the equivalent plastic strain (Fig. 5) shows that plastic deformation occurs in the bottom layer adjacent to the build plate and in bands rising along both side surfaces, and little plastic strain remains in the interior. The region where the plastic strain remains at the completion of the building process occupies 12.3% of the whole domain. Layer-wise statistics show that 97% of the Gauss points undergo plastic deformation in the bottom layer, that the ratio decreases monotonically toward the top, and that no plastic deformation occurs in the four topmost layers, that is, above the height of 42 mm. This is because the layers built earlier are repeatedly constrained by the shrinkage of the newly activated layers, whereas the layer activated last has no constraint above it; this reflects the history dependence peculiar to the layer-by-layer analysis.
T. Miki et al.: Preprint submitted to Elsevier
Page 10 of 34
In contrast, in the linear elastic model (Fig. 4(b)), the maximum value reaches 1730.9 MPa, which is 4.6 times that of the elastoplastic model. Meanwhile, the domain averages are 170.6 MPa versus 141.3 MPa, a difference of only 21%. In other words, the overestimation by the linear elastic model concentrates in the highly stressed regions, and the error is larger precisely where the absolute stress value matters. In the regions beyond the yield stress, the stress in the linear elastic model is not bounded by the yield surface and no redistribution by plastic deformation occurs, so the stress predicted there has no physical meaning in either magnitude or distribution.
The present comparison quantitatively confirms, under the analysis model and building conditions of this study, the overestimation by the linear elastic inherent strain method reported in Section 2.1 [13]. In topology optimization that uses the residual stress as the objective function or as a constraint, the stress values themselves drive the design, and hence this overestimation directly impairs the validity of the optimized design. Therefore, the adoption of an analysis model based on the elastoplastic constitutive law is indispensable for the optimization method constructed in the following sections.
In the next section, the present analysis model is incorporated into the framework of density-based topology optimization, and the optimization problem for reducing the residual stress during the building process is formulated.
3. Formulation of the topology optimization problem
In this section, the elastoplastic layer-by-layer analysis model formulated in Section 2 is incorporated into the framework of density-based topology optimization, and an optimization problem that minimizes the residual stress under a compliance constraint is formulated. Section 3.1 introduces the design variable, the filter and projection, and the material interpolation, and makes the analysis model design-dependent. Section 3.2 formulates the minimum mean compliance problem as a reference problem, and Section 3.3 formulates the residual stress minimization problem. Section 3.4 presents the residual stress minimization problem under a compliance constraint, which integrates the two problems.
3.1. Design variable and material interpolation
In density-based topology optimization, the structural geometry is represented by a density field on a fixed design domain [33, 2]. In this and the following sections, the fixed domain analyzed in Section 2 is directly used as the fixed design domain. The material domain of the structure is represented as the region with the physical density in , and the void region with is included in the analysis as a weak material with the residual stiffness described below. This is the so-called ersatz material approximation. Treating the void as a weak material is of the same type as the quiet element treatment of the inactive domain in Section 2.2, and hence the layer-by-layer analysis model of Section 2 is applicable to the whole of without changing the governing equations or the layer division . To the design variable , a density filter of radius [34, 35] is applied in order to avoid numerical instabilities such as checkerboard patterns and to control the minimum member size:
Since the filtered density contains intermediate densities, it is subsequently transformed into the physical density field by the Heaviside projection [36, 37], which promotes clear material/void boundaries:
where is the threshold and is the parameter that controls the sharpness of the projection.
The material properties are made dependent on the physical density . The RAMP interpolation [38] is used for the Young's modulus:
T. Miki et al.: Preprint submitted to Elsevier
Page 11 of 34 where is the Young's modulus of the solid material, is the penalization parameter, and is a residual value for numerical stabilization. Note that this interpolation applies to the activated domain; in the inactive domain, the Young's modulus is kept at the small value by the quiet element method independently of (Section 2.2, Eq. (9)). The reason for adopting the RAMP interpolation is as follows. Since the inherent strain acts as a design-dependent load through the stiffness, as described below, a power law such as SIMP applied to the stiffness causes both the stiffness and the inherent strain load to degenerate simultaneously in the low-density region, so that the sensitivity vanishes and intermediate densities become difficult to eliminate [14]. The RAMP interpolation retains a finite gradient as and avoids this problem.
On the other hand, a power-law interpolation is used for the initial yield stress and the linear hardening modulus:
where and are the values of the solid material and is the exponent. We take ; specifically, the same value as the relaxation exponent of the stress evaluation (Section 3.3) is used. This is because an interpolation in which the yield stress degenerates faster than the stiffness () causes the trial stress to exceed the interpolated yield stress in the low-density region, leading to nonphysical plastic deformation. The residual value is likewise introduced to prevent spurious plastic responses in the void region where the stiffness has almost vanished. It should be noted that the optimization result may depend on the choice of the exponent , as is generally the case for parameter interpolation schemes. The recently proposed extended discrete material optimization (XDMO) framework [39], which interpolates the governing equations of the constituent materials rather than their material parameters, could remove this dependence on ; however, its introduction is beyond the scope of this study.
The inherent strain itself is not made design-dependent. In the constitutive equation of Section 2, the inherent strain contributes to the stress in the form ; the equivalent inherent strain load therefore becomes density-dependent automatically through the stiffness interpolation (25), and the load vanishes together with the stiffness in the void region.
With the above interpolations, the analysis model of Section 2 becomes design-dependent. That is, the elasticity tensor becomes
where and are determined from and the Poisson's ratio , and the layer-by-layer analysis for a design is obtained by replacing , and in (9)–(17) with the interpolated values of (27) and (26).
3.2. Minimum mean compliance problem
First, the standard minimum mean compliance problem is presented as a reference problem. Considering the final use of the part after the completion of the building process, the displacement is constrained on the support boundary , and a traction acts on the boundary . Note that the support condition in the final use generally differs from the build plate constraint in the building process (Section 2.4); to distinguish them from the displacement field and the test function of the building process, the displacement field and the test function of the final use are denoted with a hat. The final-use displacement field on is governed by the weak form of static linear elasticity:
The structural stiffness is evaluated by the mean compliance
T. Miki et al.: Preprint submitted to Elsevier
Page 12 of 34 and the minimum mean compliance problem under a volume constraint is formulated as follows:
(23), (24)
(30)
where is the filter operator of (23) and is the admissible volume fraction.
3.3. Residual stress minimization problem
Next, we formulate the optimization problem aimed at suppressing build failures caused by the residual stress during the building process. The quantity to be evaluated is the residual stress field at the completion of the building process obtained by the layer-by-layer analysis of Section 2.
In density-based topology optimization with a stress objective, the singularity problem is well known: the local stress remains finite in the limit of vanishing density, which produces discontinuities in the vicinity of the optimum [40]. To avoid this problem, we introduce a relaxed stress measure:
Here, corresponds to the local stress amplitude from which the apparent stress reduction due to the interpolated stiffness has been removed, and it remains finite in the limit of vanishing density. Multiplying it by the relaxation coefficient with , the relaxed stress measure smoothly degenerates to zero in the void limit, and the singularity is avoided by this qp relaxation [41]. In addition, since leads to at intermediate densities, the stress is evaluated relatively larger there, which also contributes to the suppression of intermediate densities. The reference stress is used for normalization, and the initial yield stress of the solid material is used in this study.
To handle the suppression of the maximum residual stress in a differentiable form, the P-norm aggregation [42] of is used as the objective function:
where is the aggregation exponent, and approaches the maximum of in the limit . The residual stress minimization problem is formulated as follows:
3.4. Residual stress minimization problem under a compliance constraint
With the residual stress minimization problem (33) alone, structures that are easy to build can be obtained at the cost of the stiffness required for the product. Indeed, since the inherent strain load acts only where material exists, without any constraint the optimization tends to remove material, that is, to degrade the final-use performance. In this study, we therefore consider the following optimization problem, which ensures the product performance by imposing an upper bound on the mean compliance while minimizing the residual stress to enhance the manufacturing reliability:
T. Miki et al.: Preprint submitted to Elsevier
Page 13 of 34
where is the admissible upper bound of the mean compliance, which is set according to the required product stiffness. In the numerical examples of Section 6, it is given on the basis of the compliance of a reference design. A characteristic of problem (34) is that it involves two kinds of state systems: the state equations of the building process, namely the layer-by-layer elastoplastic analysis with N steps, and the state equation of the final use, namely static linear elasticity.
To solve problem (34) by a gradient-based method, the design sensitivity of the objective function J is required. Since J depends on the design variable through the history-dependent elastoplastic analysis of N steps, the efficient and exact evaluation of the sensitivity is an essential challenge. In the next section, the sensitivity analysis based on the adjoint method is formulated.
4. Adjoint sensitivity analysis
In this section, the design sensitivity of the objective function of the optimization problem (34) is derived by the adjoint method. Since depends on the final state of the layer-by-layer elastoplastic analysis of steps, the sensitivity analysis requires a rigorous treatment of the history dependence over all the steps. The core of this section is that the adjoint system associated with the one-step recurrence structure (15) of the state pair presented in Section 2 becomes a reverse recurrence that mirrors the forward analysis. That is, on the adjoint side, an “adjoint pseudo-stress” tensor field is carried over in the reverse order of the building sequence, and the coefficients of its transport and stiffness are all constructed by reusing the return-mapping projection and the algorithmic tangent of the forward analysis (Equations (16) and (17)). Section 4.1 prepares the derivatives of the update mappings and a basic identity, Section 4.2 derives the adjoint equations from a Lagrangian, Section 4.3 presents the reverse chain of the adjoint pseudo-stress as the implementation form, Section 4.4 gives the final form of the design sensitivity, and Section 4.5 discusses the degeneration in the elastic limit.
4.1. Derivatives of the update mappings and a basic identity
The coefficients of the adjoint equations are determined by the derivatives of the update mappings and in (15). The derivative of the stress update with respect to the trial stress is the return-mapping projection in (16), and the remaining derivatives are, in the plastic state ( ),
In the elastic state they are , , and 1, respectively, with . The elastic/plastic branch is determined by the active state of the KKT conditions (11) of the forward analysis. To express this branch concisely in the following equations, we introduce the indicator function of the KKT active set,
in the same manner as the layer indicator in (4) and the activation indicator in (5). Furthermore, the following basic identity holds between and the algorithmic tangent :
T. Miki et al.: Preprint submitted to Elsevier
Page 14 of 34
is symmetric and commutes with because they share the basis , , and . Equation (36) means that “ is the algorithmic tangent measured in elastic units,” and it is used repeatedly in the following derivation.
4.2. Lagrangian and adjoint equations
We treat the objective function as a functional of the physical density and the final stress, , and write its derivative with respect to the final stress as
which is a deviatoric tensor field. For the objective function (32) of Section 3, which is the P-norm of the relaxed stress , it reads
As the adjoint fields, we introduce three multipliers: the global multiplier associated with the equilibrium (19), the symmetric tensor field associated with the stress update, and the scalar field associated with the hardening variable update. The Lagrangian is then defined as
In (39), the state fields and the adjoint fields are all treated as mutually independent fields, following the so-called Céa’s method [43]. Setting the derivatives in the directions of the adjoint fields to zero recovers the constraints of the forward analysis, namely the equilibrium (19) and the state update (15); at the solution of the forward analysis, all the constraints are satisfied and . Setting the derivatives in the directions of the state fields to zero, on the other hand, yields the adjoint equations derived below. What is essential here is that the dependency structure of this formulation is a genuine one-step recurrence: and depend only on , and the equilibrium (19) depends only on .
This one-step structure is a consequence of the choice of the state variables and does not hold for the standard choice. If the state is taken as the pair of the plastic strain and the hardening variable , which is the standard choice for static elastoplastic problems [24, 19, 25, 23], and applied directly to the accumulated form (9), the carried-over stress \sigma^{(n-1)} = \mathbb{D}^e : [\sum_{k \leq n-1} (\varepsilon(\boldsymbol{u}^{(k)}) - \chi_{L_k} \varepsilon_0^*) - \varepsilon^p^{(n-1)}] depends on the displacements of all the steps; the dependency is then no longer a one-step recurrence, and the adjoint equations become coupled over all the steps. By including the accumulated stress itself in the state as in (15), the dependency becomes genuinely one-step, and the reverse recurrences below close.
To derive the adjoint equations, we write down the variation of with respect to the state fields. First, the variations of the trial stress (12) and the update mappings (15) are expressed using (Equation (16)) and the derivatives (35) as
(40)
In particular, since the trial stress depends identically on the stress of the previous step , we have .
Substituting (40) into the variation of (39) and collecting terms for each variation and , we relabel the summation index by shifting the sums containing to n, in order to pick up and appearing in
T. Miki et al.: Preprint submitted to Elsevier
Page 15 of 34 and . This operation is the discrete counterpart of the integration by parts in time in the adjoint derivation of time-continuous systems. After rearrangement, the variation of is organized into the following three groups:
where we set and so that the sums are unified to . In the first group, is the variation of the objective function, which is present only for , is the variation of the equilibrium equation (19), is that of the stress-update equation, and the remaining two terms are the coupling terms transferred from the update mappings of the next step by the index relabeling.
The stationarity condition requires for arbitrary variations of the symmetric tensor field , the scalar field , and . Equivalently, each bracket in (41) must vanish at each step and at each material point. Setting the coefficient of the first group to zero, solving for , and substituting the explicit derivatives (35), we obtain the reverse recurrence for :
Equation (42) is evaluated in the reverse order . Since the plastic gate has already been fixed by the active set of the KKT conditions (11) in the forward analysis, the adjoint system is a linear problem along the path of the forward analysis, and the reverse sweep requires no nonlinear iteration. Similarly, setting the coefficient of the second group of (41) to zero yields the reverse recurrence for :
That is, if step is plastic, the coefficient of the second term becomes , and if it is elastic, the recurrence degenerates to the simple carry-over .
The terminal condition follows naturally: the component of the second group of (41) gives owing to and . This is a consequence of the fact that does not depend explicitly on . Finally, the vanishing of the coefficient of the third group of (41) is equivalent to a weak form for arbitrary . Rewriting the integrand as and using the identity in (36) and , which holds because is deviatoric, we obtain the weak-form equation for :
4.3. Reverse carry-over of the adjoint pseudo-stress
The adjoint system (42)–(44) can be recast into an implementation form having the same structure as the forward analysis, that is, an initial stress plus a state carry-over, by introducing the adjoint pseudo-stress, which converts into a “stress in elastic units”:
Applying to (42) and using the commutativity in (36) and , we obtain
(46)
T. Miki et al.: Preprint submitted to Elsevier
Page 16 of 34
Algorithm 2 Reverse sweep of the adjoint pseudo-stress
1: 2: for do 3: Construct the adjoint initial stress by (48) and solve the equation (47) to obtain , where both the stiffness and the projection are constructed from the stored quantities of forward step 4: Evaluate by (46) and carry over to the next reverse step 5: end for
Substituting into the equation (44) yields
That is, the equation of each reverse step is a linear elasticity-type problem with the algorithmic tangent of forward step as the stiffness and as the initial stress, and it has the same structure as the forward equilibrium (19). This correspondence is summarized in Table 2.
Table 2 Mirror symmetry between the forward analysis and the adjoint analysis
| Forward analysis () | Adjoint analysis () | |
|---|---|---|
| Global field | ||
| Carried-over stress state | ||
| Carried-over local scalar state | ||
| Driving term | inherent strain (every step) | objective load (final step only) |
| Stiffness within a step | (identical; no transpose is needed owing to the major symmetry of ) | |
| Transport between steps | identity addition to the trial stress (12) | return-mapping projection (48) |
The procedure of the reverse sweep is presented in Algorithm 2.
The essential points of this formulation are as follows. First, the objective load is injected only at the final step, and thereafter the chain of automatically accounts for the transport by the projections. Second, the coefficient tensors , and appearing in the adjoint analysis are all quantities that have already been constructed and stored in the return mapping of the forward analysis, Equations (16) and (17); no new coefficients need to be constructed on the adjoint side. Consequently, the adjoint fields can be constructed with the same layer-by-layer structure as the physical fields, namely an initial stress plus a carry-over of state variables, and the implementation becomes analogous to the forward analysis. This is an extension, to the accumulated form of AM, of the adjoint structure established for static elastoplastic problems, in which the reverse scheme mirrors the forward state update [25, 23].
4.4. Final form of the design sensitivity
4.4.1. Parameterization of the sensitivity
Once the adjoint fields are determined, the design sensitivity is given by collecting the explicit derivatives of with respect to the physical density , that is, the derivatives taken with the state fields held fixed. Care must be
T. Miki et al.: Preprint submitted to Elsevier
Page 17 of 34 taken here because the meaning of “holding the state fields fixed” depends on what the implementation of the forward analysis carries over as the state. The multiplier fields themselves are unique quantities independent of the parameterization, but the split into explicit -derivatives is determined by what is held fixed when is perturbed. The implementation in this study carries over the total strain, the plastic strain, and as the state between steps, and reconstructs the inherited stress at each step as with the current . We refer to this as the strain-state parameterization. A perturbation of therefore propagates into the inherited stress through . This differs, in the explicit -derivatives, from a parameterization that carries over the stress values as fixed; the solutions are identical, but the sensitivity expressions differ. The difference between the two degenerates and is not observable in elastic problems, as shown in Section 4.5, and becomes manifest only in elastoplasticity. The sensitivity expressions derived below correspond to the strain-state parameterization, and the finite difference verification in Section 5 is also performed under this correspondence.
In the strain-state parameterization, the governing equations are expressed in the strain variables, and the multipliers correspond as follows: remains the multiplier of the equilibrium equation (19) and that of the update equation of , and the multiplier of the update equation of the plastic strain, , is given by . The latter can be seen as follows: injecting an offset into the plastic strain in the strain-variable system changes the stress by with the strains held fixed; this is equivalent to an offset to the stress update mapping , and the corresponding change of is . Hence the multiplier of the update equation of is .
4.4.2. Explicit derivatives and the final form
We organize the explicit -derivatives of each quantity in the strain-state parameterization. Since the stress is proportional to in the form ,
where is the derivative of the RAMP interpolation (25). For the plastic increment, using , the update formula (13), and the consistency relation , the terms proportional to cancel, and we obtain
where is the derivative of the power-law interpolation (26). At elastic points the whole expression vanishes because . Note that the flow direction equals the direction of the deviatoric trial strain and does not depend explicitly on because the elastic moduli cancel in the normalization. Hence .
The explicit derivative of the objective function takes a concise form as the logarithmic derivative of the relaxed stress (31). In , the contribution of from (49) and the contribution of the relaxation coefficient combine so that the dependence cancels:
Collecting the above, the final form of the design sensitivity, expressed as a sensitivity density field, is given by
T. Miki et al.: Preprint submitted to Elsevier
Page 18 of 34
The properties of each term are as follows. Term ① is the explicit derivative of the relaxed objective function (32) and is localized in the stress concentration regions of the final state. Term ② originates from the explicit derivative of the equilibrium equation (19) and takes the form of the pair of the accumulated stress and the adjoint strain of the same step. In the inactive domain, this term automatically vanishes because is proportional to the very small stiffness of the quiet elements. Term ③ originates from the explicit derivatives of the update equation of the plastic strain, whose multiplier is as discussed in Section 4.4.1, and of the update equation of , whose multiplier is , and its gate coincides with the active set of the KKT conditions (11).
4.4.3. Chain through the filter and projection, and constraint sensitivities
The sensitivity with respect to the design variable is given by the chain through the projection (24) and the filter (23):
where is the adjoint of the filter operator ; for the normalized cone kernel (23), it acts on the sensitivity field with the same kernel normalized on the evaluation-point side; the discrete form is given in Section 5.
The sensitivities of the constraint functions are standard. The volume constraint has the explicit form , and the compliance constraint, owing to self-adjointness, is given by
where is the solution of the static state (28); the derivation is standard and is omitted. The chain (52) is applied to these sensitivities as well.
4.5. Degeneration in the elastic limit
When all points remain elastic, and , and (46) degenerates to
and the equation (47) reduces to the form using the accumulated adjoint strain :
This coincides exactly with the adjoint equation of the linear elastic AM model. In this limit, the objective load is transported inside without deformation ( ), and hence it appears as a load at every step in (55). When plasticity occurs, is transported while being deformed by the intermediate projections ( ); such a simplification then no longer holds, and the transport by the chain becomes essential.
As for the sensitivity, in the elastic limit , and by the Abel summation-by-parts identity
the sum coincides exactly with the sensitivity of the linear elastic AM model. In the next section, the numerical implementation of the adjoint sensitivity of this section and its verification by finite differences are presented.
5. Numerical implementation and sensitivity verification
In this section, we present the numerical implementation of the adjoint sensitivity derived in Section 4 and its verification by finite differences. Although the formulation up to Section 4 has been written in the continuous weak-form setting, the actual sensitivities are evaluated for the discretized forward analysis. The condition for the two to be
T. Miki et al.: Preprint submitted to Elsevier
Page 19 of 34 consistent, that is, at which evaluation points and with which quadrature rule the adjoint fields and the sensitivity integrands are computed, is of practical importance in determining the accuracy of the sensitivities. Section 5.1 describes the finite element discretization, the discrete forms of the filter and projection, the implementation structure of the adjoint analysis, and the overall optimization algorithm. Section 5.2 verifies the sensitivity expression (51) by direct comparison with central finite differences. Section 5.3 evaluates the computational complexity and discusses the advantage of the proposed method over existing methods.
5.1. Numerical implementation
5.1.1. Discretization and discrete forms of the filter and projection
The fixed design domain is divided by a structured grid and discretized with quadrilateral elements using quadratic interpolation for the displacement field. The design variable takes an element-wise constant value (), and the material interpolation is evaluated at the element centers. The stress and the plastic state variables are stored at the Gauss points of each element.
The discrete form of the density filter (23) is the weighted average with the element centers as the evaluation points:
The weights are symmetric, and the filter operator is represented as a symmetric sparse matrix normalized by the row sums. The physical density is with the projection (24).
Owing to this symmetry, the discrete form of the sensitivity chain (52) becomes
That is, the filter adjoint is the operation of applying the transposed forward weight matrix with the normalization kept on the evaluation-point side , not the transpose of the whole matrix including the normalization. The same chain is applied to the sensitivity of the compliance constraint (53).
A remark on discrete consistency is in order here. The adjoint equation (47) and the sensitivity expression (51) of Section 4 are derived in the continuous setting, but they are meaningful only when the adjoint fields and the sensitivity integrands are computed at the same evaluation points and with the same quadrature rule as the forward analysis. The quantities , , and appearing in the sensitivity expression are all quantities stored by the forward analysis at the Gauss points; if they are evaluated at other points through interpolation or reconstruction, the resulting discrepancy directly appears as a sensitivity error. In the present implementation, the element integrations of the forward state variables, the adjoint variables, and the sensitivities are all aligned to the Gauss points per element. If this alignment is broken, the agreement with finite differences remains at the level of the quadrature error ( ) and does not improve with smaller step sizes. The agreement achieved when the alignment is maintained is shown in Section 5.2.
5.1.2. Implementation structure of the adjoint analysis
Each step of the reverse sweep of Algorithm 2 in Section 4 consists of the following two stages. First, the adjoint pseudo-stress and the hardening multiplier are updated by the recurrence (46); this is an algebraic operation closed at each Gauss point and requires no global solve. Second, the adjoint displacement field is obtained from the linear problem (47).
The coefficient tensor of this linear problem is precisely the algorithmic tangent (Equation (17)) at the converged Newton iteration of the forward analysis, and no new tangent needs to be assembled for the adjoint. In the implementation, is reconstructed from , , and obtained in the forward analysis and supplied as an anisotropic elasticity tensor of a linear elastic analysis. The right-hand side is the adjoint initial stress (48), which can be expressed within the framework of existing finite element formulations by prescribing it as an initial stress. The
T. Miki et al.: Preprint submitted to Elsevier
Page 20 of 34
Algorithm 3 Optimization loop for residual stress minimization
1: Give the initial design ; iteration counter 2: repeat 3: Obtain the physical density by the filter (57) and the projection (24) with parameter 4: Perform the layer-by-layer elastoplastic AM analysis (Algorithm 1) and store 5: Solve the static analysis (28) of the final use to obtain 6: Evaluate the objective function (32) and the constraints and 7: Obtain by the reverse sweep of the adjoint (Algorithm 2) 8: Evaluate the design sensitivities (51) and (53) and transform them into and by the chain (58) 9: Update by the sequential convex approximation 10: Update by continuation up to the upper bound ; 11: until the change of the design variables falls below the convergence tolerance or the maximum number of iterations is reached 12: Output: optimized design
load originating from the objective function, , is injected only at the final step, as indicated by in (46), and is transported to the subsequent steps through the chain of .
As a result, while the forward analysis carries the state pair forward along the building direction, the adjoint analysis carries in the reverse direction, in the identical “initial stress + state variables” structure. This is the implementation consequence of the mirror symmetry shown in Table 2.
Two points require attention in the implementation. First, the plastic gate in the sensitivity expression (51) and the branch of the recurrence must be judged by the increment of the state variables stored by the forward analysis, . A gate that reconstructs the trial stress a posteriori and repeats the yield check overlooks integration points that actually undergo plastic deformation in regions with large plastic deformation; the of such points is then treated as elastic, and the adjoint field is severely disturbed. Second, in the inactive domain , does not depend on the design variable, and hence the explicit derivative with respect to must be zero. The fact that term of the sensitivity expression (51) takes the form of the “pair of the stress and the adjoint strain” automatically satisfies this requirement; in an expression rewritten to divide by the elastic modulus, cancels out and a spurious contribution of arises from the inactive steps.
5.1.3. Optimization algorithm
The optimization problem (34) is solved by a gradient-based method. Once the sensitivities are available, standard sequential convex approximation methods are applicable; in this study, an MMA-type update rule that treats the volume constraint in an equality manner [44, 45] is used. The sharpness of the projection is increased geometrically with the iterations from its initial value to an upper bound. This continuation suppresses both the loss of gradient information in the early iterations and the intermediate densities in the final design. The overall optimization loop is presented in Algorithm 3.
Both the forward analyses on lines 4 and 5 and the adjoint analysis on line 7 are built on the weak-form interface of a general-purpose finite element software, and the filter, projection, sensitivity chain, and design variable update on lines 3, 8, and 9 are driven by external scripts. With the construction of Section 5.1.2, in which the algorithmic tangent is supplied as an anisotropic elasticity tensor and the adjoint initial stress as an initial stress, the adjoint analysis is realized with the functionality of linear elastic analysis alone, and no dedicated adjoint solver needs to be implemented. In this study, COMSOL Multiphysics is used for the finite element analyses, and MATLAB is used to drive the optimization loop through LiveLink for MATLAB.
5.2. Sensitivity verification by finite differences
5.2.1. Verification settings
The validity of the sensitivity expression (51) is verified by directly comparing the sensitivity with respect to the physical density, , with central finite differences. Since the chain (58) through the filter and projection is standard, it is excluded, and the core of the sensitivity, , is verified alone.
The verification model is shown in Fig. 6. A two-dimensional plane stress rectangular domain of m is divided into a structured grid of 50 elements and into N = 5 layers of thickness m along the building
T. Miki et al.: Preprint submitted to Elsevier
Page 21 of 34 direction; that is, each layer corresponds to one row of elements. The elements are numbered from 1 at the left end of the bottom layer, increasing from 1 to 10 in the direction orthogonal to the building direction and then from 11 to 50 toward the upper layers (Fig. 6(b)). The bottom edge is fixed as the build plate, and no external load is applied; the stress originates solely from the inherent strain. The material properties are GPa, , MPa, and GPa, and the floored power-law interpolation (26) is used for the yield stress and the hardening modulus, with the same exponent as in the numerical examples of Section 6. The inherent strain is the design-independent uniaxial tensor with . The objective function is the unrelaxed P-norm with , and the baseline design is a uniform distribution of . When the interpolation exponent of the yield stress is less than one, lower uniform densities remain elastic against the interpolated yield stress, and hence an operating point at which plastic deformation occurs is chosen. Furthermore, at the interpolation renders the yield strain larger than that of the solid material, and the number of layers is small, so that with of Section 2.5 the plastic deformation would localize in the four elements at the edges of the build plate. In this setting, the constraint imposed by the build plate causes all the ten elements of the bottom layer and two elements of the second layer (elements 11 and 20) to undergo plastic deformation; at the final step, 34 of the 450 Gauss points have deformed plastically, and the increment of the equivalent plastic strain is at most . The region in which plastic strain remains at the completion of the build occupies 10.7% of the domain, comparable to the 12.3% of the numerical example of Section 2.5. In this mixed plastic/elastic state, all the path-dependent components of the formulation, namely the plastic term , the reverse chains of and , and the transport by the projections, are active.

| 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 |
|---|---|---|---|---|---|---|---|---|---|
| 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
(a)
(b)
Figure 6: Analysis model used for the sensitivity verification. (a) Geometry, boundary conditions, and layer division (N = 5, m). The inherent strain is applied only to the newly activated layer at each step, and no external load acts. (b) Element numbers ( elements).
The numerical sensitivity used for the comparison is evaluated by the central finite difference with respect to the physical density of each element:
where is the baseline design of uniform , is the unit vector whose -th component alone is 1, and is the perturbation. In (59), the density of one element at a time is perturbed by , and the layer-by-layer elastoplastic analysis of all steps is re-solved each time to evaluate . The comparison over all 50 elements therefore requires forward analyses, whereas the adjoint method provides the sensitivities of all the elements with a single reverse sweep. Since the reliability of finite differences in elastoplastic analyses is governed by the convergence level of the nonlinear solver, the solver tolerance is tightened to . With the default tolerance, the convergence residual remaining in the objective value contaminates the finite differences. As a prerequisite, we confirmed in advance that the objective values of the adjoint model and the finite difference model agree to ten digits.
5.2.2. Results
The element-wise comparison is shown in Fig. 7. The relative error is defined as . As shown in Fig. 7(a), the adjoint sensitivities agree well with the central finite differences for all the
T. Miki et al.: Preprint submitted to Elsevier
Page 22 of 34 elements. The relative error in Fig. 7(b) is below for all the elements, and the agreement does not deteriorate in the plastically deformed elements marked by diamonds. These results demonstrate the correctness of the adjoint sensitivity formulation derived in Section 4.

(a)
(b)
Figure 7: Element-wise comparison between the adjoint sensitivities and the central finite differences (, ). (a) Overlay of the sensitivity distributions (solid line: adjoint; circles: central differences). (b) Relative error (circles: elastic elements; diamonds: plastically deformed elements).
5.3. Computational complexity
The computational cost per step of the adjoint analysis consists of one linear solve for the adjoint displacement field and the algebraic update of at each Gauss point. The former is a linear system with the same sparsity pattern as the Newton iterations of the forward analysis, at a cost of , and the latter is . The total over all the steps is therefore
which is linear in the number of layers . Since the forward analysis also requires steps, the cost of the sensitivity computation remains of the same order as the forward analysis.
This linearity is a consequence of constructing the adjoint while preserving the one-step recurrence structure of the state pair . In contrast, methods that expand the design dependence of the plastic strain explicitly by the chain rule [28] must retain and update intermediate quantities of the form for each pair of steps , resulting in . The difference does not appear for problems with few layers, but this term becomes dominant for AM problems with a practical number of layers. The computation times reported in that reference for a 30-layer scale are interpreted as reflecting this scaling.
In addition to the complexity, we point out an implementation advantage. As described in Section 5.1.2, both the forward and adjoint analyses can be written in the identical structure of “initial stress + carry-over of state variables.” No additional state quantity such as the activation strain needs to be introduced for the adjoint, and no explicit recursion of the chain rule needs to be managed. This keeps the implementation cost low in that the existing finite element infrastructure can be used as it is, and it is also advantageous for parallelization in that the same partitioning strategy as the forward analysis can be applied.
In the next section, numerical examples in which the proposed method is applied to the residual stress minimization of a two-dimensional cantilever are presented.
6. Numerical examples
In this section, the residual stress minimization problem under a compliance constraint (34) formulated in Section 3 is applied to two design problems, a two-dimensional cantilever beam and a three-dimensional MBB beam, to validate
T. Miki et al.: Preprint submitted to Elsevier
Page 23 of 34 the effectiveness of the proposed method. In both examples, as the basis of comparison, we use the optimized design of the minimum mean compliance problem (30), which takes no account of the residual stress during the building process and is hereafter called the reference design. The effect of the residual stress minimization is quantified by evaluating both designs with the identical elastoplastic layer-by-layer analysis of Section 2.
6.1. Two-dimensional cantilever beam
6.1.1. Problem settings
The problem settings are shown in Fig. 8. The fixed design domain is a two-dimensional rectangular domain of width 100 mm and height 50 mm analyzed under plane stress. In the building process of Fig. 8(a), the bottom edge of the domain is fixed as the build plate, the domain is divided into layers of thickness mm along the building direction, and the layer-by-layer elastoplastic analysis of Algorithm 1 is performed. As in the verification of Section 5, the inherent strain is the design-independent uniaxial tensor with , applied only to the newly activated layer at each step. No external load acts. In the final use (Fig. 8(b)), the left edge is fixed as the support boundary , and a downward traction MPa is applied to the segment of height 10 mm at the center of the right edge, which constitutes a cantilever bending problem. Note that the build plate constraint in the building process differs from the support in the final use, that is, the build orientation does not coincide with the final-use orientation.

(a)

(b)
Figure 8: Problem settings of the two-dimensional example. (a) Building process: the bottom edge is fixed to the build plate, and layers of thickness mm are activated sequentially with the inherent strain applied (no external load). (b) Final use: the left edge is fixed, and a downward traction is applied to the segment of height 10 mm at the center of the right edge.
An aluminum alloy is assumed as the material, and the material properties are identical to those in Section 2.5. The analysis and optimization parameters are summarized in Table 3. The same value 0.5 is used for the interpolation exponent of the yield stress and hardening modulus and for the relaxation exponent of the stress evaluation, as required in Sections 3.1 and 3.3, and the initial yield stress of the solid material is used as the normalization stress .
The domain is discretized with a structured grid of mm elements, and each layer corresponds to one row of elements. Elements with quadratic displacement interpolation are used for the layer-by-layer elastoplastic analysis and the adjoint analysis, and elements with linear displacement interpolation are used for the static analysis of the final use. The optimization is performed by Algorithm 3, and the convergence criterion is that the relative change of the objective function is below , the mean change of the design variables is below , and all the constraints are satisfied, for three consecutive iterations after iteration 150.
The upper bound of the compliance constraint is given on the basis of the reference design. First, the minimum mean compliance problem (30) is solved under the identical domain, discretization, filter, and projection schedule to obtain the reference design of Fig. 10(a) and its mean compliance per unit thickness . In the residual stress minimization (34), the upper bound is set to with a margin factor , which is decreased geometrically from 2.5 to 1.2 over 150 iterations with respect to the iteration . This setting relaxes the constraint in the early iterations to secure the freedom of design change, and finally allows a compliance increase of up to 20% relative to the reference design.
T. Miki et al.: Preprint submitted to Elsevier
Page 24 of 34
Table 3
Material, process, and optimization parameters of the two-dimensional example
| Category | Symbol (definition) | Value |
|---|---|---|
| Material | Young's modulus | 72 GPa |
| Poisson's ratio | 0.3 | |
| Initial yield stress | 243 MPa | |
| Process | Linear hardening modulus | 2.171 GPa |
| Inherent strain | ||
| Layer thickness / number of layers | 2 mm / 25 | |
| Interpolation / stress evaluation | Young's modulus of quiet elements (Section 2.2) | 1 kPa |
| RAMP (25): | ||
| Yield interpolation (26): | ||
| Optimization | Stress relaxation (31): / normalization | |
| P-norm (32): | 16 | |
| Filter radius (23): | 6 mm | |
| Projection (24): | (geometric over 150 iterations) | |
| Volume constraint: | 0.5 | |
| Compliance constraint: | (see below) | |
| Initial design / max. iterations | uniform 0.5 / 250 |
6.1.2. Optimization results
The convergence history of the optimization is shown in Fig. 9. The initial uniform design largely violates the compliance constraint at , and the optimization first drives both constraints to feasibility in about 15 iterations. The objective function temporarily increases during this process, then turns to decrease, and reaches its minimum at iteration 70, where denotes the objective value of the initial design. Thereafter, along with the continuation of the projection parameter and the progress of the compliance constraint ramp , which is completed at iteration 151, the objective function turns to increase, settles after the sharpening of the material boundary and the tightening of the constraints are completed, and the convergence criterion is satisfied at iteration 174. The objective of the final design is , and both the volume and compliance constraints are active (, ).
The obtained optimized design is shown in Fig. 10 together with the reference design. While the reference design in Fig. 10(a) is a cantilever truss composed of a few thick members, the design of the proposed method in Fig. 10(b) retains the bottom chord along the build plate and consists of a larger number of thinner diagonals and smaller openings.
6.1.3. Evaluation and discussion of the residual stress
Both designs are evaluated by the identical elastoplastic layer-by-layer analysis, and the residual stresses at the completion of the building process are compared. For the comparison between the designs, the von Mises stress without the relaxation (31), , is evaluated at the Gauss points and aggregated over the solid region . This is because the relaxed stress measure in (31) is amplified at intermediate densities by and is not suitable for comparing designs with different amounts of intermediate density. For the visualization in Figs. 11 and 12, the outlines are aligned with the topology plots of Fig. 10 by using the contour of a Helmholtz-type smoothing of the physical density field with a filter length of 2 mm. The evaluation results are summarized in Table 4.
The following observations are made from Table 4. First, the maximum residual stress hardly differs between the reference design and the proposed method, at 268.6 MPa versus 272.0 MPa. This is a consequence of the elastoplastic analysis model. The von Mises stress cannot exceed the yield surface , and the constrained region near the build plate yields regardless of the design, so that the maximum stress is almost determined by the yield stress and the hardening. Indeed, the maxima of both designs exceed by 10–12%, that is, they lie within the range of the yield surface expansion by hardening.
In contrast, the effect of the optimization clearly appears in the extent of the yielded region. The area fraction of the region subjected to stresses at or above the yield stress decreases from 0.0076 to 0.0021, and the area fraction of
T. Miki et al.: Preprint submitted to Elsevier
Page 25 of 34

Figure 9: Convergence history of the optimization of the two-dimensional example: the objective function ( is the value of the initial design), the volume constraint , and the compliance constraint . Note that the upper bound of the compliance constraint is tightened with the iterations ( is reached at iteration 151).

(a)
(b)
Figure 10: Optimized topologies of the two-dimensional example ( ; black = material). (a) Reference design (minimum mean compliance problem (30)). (b) Proposed method (residual stress minimization (34)).
the plastically deformed region from 0.023 to 0.0067, both reduced by about 70%. The maximum equivalent plastic strain also decreases by 18%. The distributions in Fig. 12 show the same tendency. In the reference design, numerous plastically deformed spots are distributed at the re-entrant corners of the bottom overhang and along the edges of the diagonals, in addition to the band-like zones at both ends of the build plate. In the proposed method, the plastic deformation shrinks to the band at the left end of the build plate and a single small spot at the crossing of the central diagonals; in particular, the bottom re-entrant corner at which the plastic deformation concentrated in the reference design is eliminated together with the structural feature itself. In other words, the optimization with the P-norm objective (32) modifies the design so as to reduce the extent of the highly stressed and plastic strain accumulating regions, rather than the maximum stress value that is bounded by the yield surface. Since the accumulation of plastic strain during the building process is a direct cause of warpage and build failures, this reduction is a meaningful
T. Miki et al.: Preprint submitted to Elsevier
Page 26 of 34
Table 4
Comparison of the residual stress at the completion of the building process in the two-dimensional example (von Mises stress without the relaxation (31), aggregated over the solid region )
| Measure | Reference design (min. compliance) | Proposed method (residual stress min.) |
|---|---|---|
| Maximum [MPa] | 268.6 (1.105 ) | 272.0 (1.119 ) |
| P-norm (p = 16, area-normalized) [MPa] | 199.0 | 194.1 |
| Mean [MPa] | 103.5 | 94.2 |
| Area fraction with | 0.0076 | 0.0021 |
| Area fraction of the plastically deformed region | 0.023 | 0.0067 |
| Maximum equivalent plastic strain | ||
| Mean compliance [N] |

(a)
(b)
Figure 11: Distributions of the von Mises residual stress at the completion of the building process in the two-dimensional example. (a) Reference design. (b) Proposed method. The color range 0–250 MPa is common to both (values above the upper limit are saturated).

(a)
(b)
Figure 12: Distributions of the equivalent plastic strain at the completion of the building process in the two-dimensional example (blue: ). (a) Reference design. (b) Proposed method.
improvement from the viewpoint of manufacturing reliability. Note that the plastic deformation at the ends of the build plate originates from the boundary condition of the clamped foundation and cannot be removed by design changes.
This improvement comes at the price of stiffness. The mean compliance of the proposed method is N = 1.20 , which coincides with the constraint upper bound ( ), and the constraint is active. That is, the residual stress reduction is achieved by using all of the allowed 20% stiffness degradation, which shows that the trade-off between the stiffness and the residual stress reduction is explicitly controlled through the constraint in (34).
T. Miki et al.: Preprint submitted to Elsevier
Page 27 of 34
Finally, we comment on the numerical soundness of the analysis. All the plastically deformed Gauss points of the final design lie in the solid region ( ), and no nonphysical plastic deformation occurs in the void, intermediate-density, or inactive regions. This is the effect of using the mild degradation with and the residual value in the yield stress interpolation (26) (Section 3.1), and it corroborates that the relaxed stress and the plastic response were evaluated consistently throughout the optimization.
6.2. Three-dimensional MBB beam
The second example applies the proposed method to a three-dimensional MBB beam to examine its applicability to three-dimensional problems, in which the inherent strain acts biaxially in the deposition plane and the plastic deformation during the building process is considerably more severe than in the two-dimensional example.
6.2.1. Problem settings
The problem settings are shown in Fig. 13. The fixed design domain of the MBB beam is a box of span 6 m, depth 1 m, and height 1 m. In the building process (Fig. 13(a)), the bottom face of the domain is fixed as the build plate, the domain is divided into layers of thickness m along the building direction, and the layer-by-layer elastoplastic analysis of Algorithm 1 is performed. The inherent strain is the design-independent in-plane biaxial tensor in Voigt notation with , which corresponds to the horizontal deposition plane of the three-dimensional process, applied only to the newly activated layer at each step; no external load acts. In the final use (Fig. 13(b)), a downward line load kN/m is applied along the midspan line of the top face across the depth, and the bottom edges at both ends of the span are supported by vertical rollers (), which constitutes the MBB bending problem. Taking advantage of the two vertical symmetries of the problem, symmetry conditions are imposed on the midspan plane and the mid-depth plane, and only a quarter of the domain, m, is discretized and analyzed in both the building-process and final-use analyses; accordingly, the integral quantities reported below, such as the volume and the mean compliance, refer to the quarter domain.

(a)

(b)
Figure 13: Problem settings of the three-dimensional MBB example (full domain; owing to the two vertical symmetries, only a quarter of the domain is analyzed, see the text). (a) Building process: the bottom face is fixed to the build plate, and N = 10 layers of thickness m are activated sequentially with the in-plane biaxial inherent strain applied (no external load). (b) Final use: a downward line load is applied along the midspan line of the top face, and the bottom edges at both ends are supported by vertical rollers.
The material, the interpolation and stress-relaxation parameters, the P-norm exponent, the projection schedule, the compliance constraint ramp (2.5 1.2 over 150 iterations), and the convergence criterion are identical to those of the two-dimensional example (Table 3). Table 5 summarizes the parameters changed in the three-dimensional example. The quarter domain is discretized with a structured grid of 12,000 cubic elements with edge length 0.05 m, so that each layer corresponds to two element layers. The reference design is obtained by solving the minimum mean compliance problem (30) under the identical discretization and schedules, and its mean compliance is .
6.2.2. Optimization results
The convergence history is shown in Fig. 14. The initial uniform design violates both constraints ( , ), and the optimization drives them to feasibility in about 15 iterations. The objective function reaches its minimum at iteration 67, turns to increase along with the continuation of and the tightening of
T. Miki et al.: Preprint submitted to Elsevier
Page 28 of 34
Table 5 Parameters of the three-dimensional example (only those changed from Table 3)
| Category | Symbol (definition) | Value |
|---|---|---|
| Process | Inherent strain | in-plane biaxial, |
| Layer thickness / number of layers | 0.1 m / 10 | |
| Discretization | Structured grid | (12,000 cubic elements, m) |
| Optimization | Filter radius (23): | 0.15 m |
| Volume constraint: | 0.4 | |
| Compliance constraint: | N·m |
, which is completed at iteration 151, and the convergence criterion is satisfied at iteration 183. The objective of the final design is , and both the volume and compliance constraints are active (, ).

Figure 14: Convergence history of the optimization of the three-dimensional MBB example: the objective function , the volume constraint , and the compliance constraint ( is reached at iteration 151).
The obtained optimized design is shown in Fig. 15 together with the reference design. While the reference design in Fig. 15(a) concentrates the material into a deep arch-like structure with a few large openings, the design of the proposed method in Fig. 15(b) retains a continuous plate along the build plate and organizes the web above it into a larger number of thinner truss-like diagonals with smaller openings, which parallels the tendency observed in the two-dimensional example.
6.2.3. Evaluation and discussion of the residual stress
Both designs are evaluated in the same manner as in Section 6.1.3, with the aggregation over the solid region using the volume weights of the quadrature. The results are summarized in Table 6, and the distributions of the residual stress and the equivalent plastic strain are shown in Figs. 16 and 17.
T. Miki et al.: Preprint submitted to Elsevier
Page 29 of 34 figure to be inserted: fig6_8a_topology_3d_ref.pdf
(a)
figure to be inserted: fig6_8b_topology_3d_opt.pdf
(b)
Figure 15: Optimized topologies of the three-dimensional MBB example (solid region ; the quarter-model solution is mirrored across the symmetry planes and the full geometry is shown). (a) Reference design (minimum mean compliance problem (30)). (b) Proposed method (residual stress minimization (34)).
Table 6
Comparison of the residual stress at the completion of the building process in the three-dimensional MBB example (von Mises stress without the relaxation (31), aggregated over the solid region )
| Measure | Reference design (min. compliance) | Proposed method (residual stress min.) |
|---|---|---|
| Maximum [MPa] | 291.7 (1.200 ) | 272.0 (1.119 ) |
| P-norm (, volume-normalized) [MPa] | 224.1 | 219.9 |
| Mean [MPa] | 174.6 | 138.9 |
| Volume fraction with | 0.127 | 0.093 |
| Volume fraction of the plastically deformed region | 0.301 | 0.203 |
| Maximum equivalent plastic strain | ||
| Mean compliance [N·m] |
figure to be inserted: fig6_9a_mises_3d_ref.pdf
(a)
figure to be inserted: fig6_9b_mises_3d_opt.pdf
(b)
Figure 16: Distributions of the von Mises residual stress at the completion of the building process in the three-dimensional MBB example (full geometry shown as in Fig. 15). (a) Reference design. (b) Proposed method. The color range 0–250 MPa is common to both (values above the upper limit are saturated).
The following observations are made from Table 6. First, the plastic deformation in the three-dimensional example is considerably more severe than in the two-dimensional example: in the reference design, the volume fraction of the plastically deformed region reaches 0.301, more than ten times the corresponding area fraction 0.023 of the two-dimensional reference design. This is due to the in-plane biaxial inherent strain and the fully constrained bottom face, and it indicates that the three-dimensional example represents the severity of realistic building processes more faithfully.
Second, in contrast to the two-dimensional example, the maximum residual stress also decreases visibly, from 291.7 MPa to 272.0 MPa (). This reduction is still governed by the yield surface: for both designs, the maximum value agrees with within rounding, that is, the maximum residual stress is attained at the most hardened point,
T. Miki et al.: Preprint submitted to Elsevier
Page 30 of 34

(a)

(b)
Figure 17: Distributions of the equivalent plastic strain at the completion of the building process in the three-dimensional MBB example (blue: ; full geometry shown as in Fig. 15). (a) Reference design. (b) Proposed method.
and its reduction is a direct consequence of the reduction of the maximum equivalent plastic strain from to ( ). The extent of the highly stressed regions shrinks as in the two-dimensional example, and to a larger degree: the mean stress decreases by 20%, the volume fraction of the region at or above the yield stress by 27%, and the volume fraction of the plastically deformed region by 33%. Fig. 17 shows that the plastic deformation, which spreads over the arch and the bottom band in the reference design, is largely confined to the thin band just above the build plate in the proposed design. The improvement is again purchased by the allowed stiffness degradation: the mean compliance of the proposed method is , exactly at the constraint upper bound ( ).
As in the two-dimensional example, no nonphysical plastic deformation occurs: all the plastically deformed Gauss points of both designs lie in the solid region, and the inactive (quiet) region remains strictly elastic throughout the building process.
In the next section, the conclusions of this paper and future work are presented.
7. Conclusions
In this paper, we constructed a topology optimization method for reducing the residual stress arising in metal additive manufacturing, which integrates a layer-by-layer process analysis model based on the elastoplastic inherent strain method with its exact adjoint sensitivity analysis.
First, in Section 2, a layer-by-layer elastoplastic analysis model without activation strains was presented. In this formulation, the incremental displacement is solved anew at each layer step, and the stress history is carried over by explicitly incorporating the stress accumulated up to the previous step into the constitutive equation. A newly activated layer thus carries no plastic or stress history and enters the analysis without any spurious initial stress, and the stress continuity across layer interfaces is guaranteed in the domain that has already been built. This formulation requires no correction term such as the activation strain that carries the displacement field at the moment of element activation over into the constitutive equation, and hence no additional dependencies between layer steps arise. In Section 2.5, a comparison with the linear elastic inherent strain method, in which only the plasticity is disabled under the identical layer division, quiet element treatment, and inherent strain loading, quantitatively showed that the linear elastic model overestimates the maximum residual stress by a factor of 4.6 while the difference in the domain average remains 21%, that is, the overestimation concentrates in the highly stressed regions.
Subsequently, in Section 3, the topology optimization problem (34) that minimizes the P-norm of the residual stress at the completion of the building process under the volume and final-use compliance constraints was formulated based on the density method, and in Section 4, its design sensitivity was derived by the adjoint method. Taking the state as the pair of the stress and the equivalent plastic strain reduces the dependency between layer steps to a genuine one-step recurrence, and the adjoint fields can also be constructed as a layer-by-layer reverse sweep. Introducing the adjoint pseudo-stress , the adjoint equation of each reverse step reduces to a linear elasticity-type problem (47) with the algorithmic tangent of the forward analysis as the stiffness and as the initial stress, and it has the same structure as the forward equilibrium equation (19). The coefficient tensors obtained in the forward analysis can therefore be reused directly in the adjoint analysis, and neither additional state quantities for the adjoint nor explicit management of chain-rule recursions is needed. As a result, the total cost of the sensitivity computation remains at
T. Miki et al.: Preprint submitted to Elsevier
Page 31 of 34
(60), linear in the number of layers , and of the same order as the forward analysis. This advantage over the existing method with [28], which expands the design dependence of the plastic strain explicitly by the chain rule, becomes more pronounced for problems with a practical number of layers. The derived sensitivities agreed with central finite differences at the level for all the elements in Section 5, which confirmed the correctness of the formulation.
In Section 6, the proposed method was applied to a two-dimensional cantilever design problem and a three-dimensional MBB beam design problem. The two-dimensional optimization converged at iteration 174 with the objective function reduced to 0.536 times that of the initial design, and the three-dimensional optimization, with 12,000 elements and 10 layers, converged at iteration 183 at 0.590 times; in both cases the volume and compliance constraints were active. Evaluating the obtained designs and the reference designs of the minimum mean compliance problem, which takes no account of the residual stress, with the identical elastoplastic layer-by-layer analysis, the maximum residual stress hardly changed in the two-dimensional example, from 268.6 MPa to 272.0 MPa. This is because the von Mises stress cannot exceed the yield surface and the constrained region near the build plate yields regardless of the design. On the other hand, the area fraction of the region subjected to stresses at or above the yield stress was reduced from 0.0076 to 0.0021, and that of the plastically deformed region from 0.023 to 0.0067, both by about 70%, and the maximum equivalent plastic strain also decreased by 18%. In the three-dimensional example, in which the in-plane biaxial inherent strain plastifies 30% of the solid volume of the reference design, the same mechanism appeared more strongly: the maximum equivalent plastic strain decreased by 40%, the volume fraction of the plastically deformed region by 33%, and the maximum residual stress itself decreased from 291.7 MPa to 272.0 MPa in accordance with the reduced hardening. These improvements came at the price of a 20% compliance increase, exactly at the constraint bound. That is, under the elastoplastic analysis model, the effect of the optimization with the stress P-norm objective appears as a reduction of the plastic strain accumulation and of the extent of the highly stressed regions, while the maximum value remains governed by the yield surface. This behavior cannot be captured by linear elastic models, in which the stress is not bounded by the yield surface, and it demonstrates the significance of incorporating the elastoplastic analysis model into the optimization.
Three directions are suggested for future work. The first is the integration with overhang constraints, which were not treated in this paper. Since the necessity of support structures directly affects the design freedom and the post-processing cost, it is desirable to incorporate geometric constraint methods [16] into the present formulation and to extend it to a framework that simultaneously handles the physical manufacturing issue of residual stress and the geometric manufacturing issues. The second is the further scaling to high-resolution three-dimensional problems. The computational cost of the proposed method is linear in the number of layers; however, the computational cost of the three-dimensional elastoplastic layer-by-layer analysis itself remains large, and the combination with layer grouping, model reduction, and parallelization is a practical challenge for finer resolutions and larger numbers of layers. The third is the experimental validation of the analysis model and the optimized designs by comparison with measurements.
CRediT authorship contribution statement
Takao Miki: Conceptualization, Methodology, Software, Validation, Investigation, Visualization, Writing – original draft, Funding acquisition. Jike Han: Methodology, Writing – review & editing. Kazuhiro Izui: Writing – review & editing. Shinji Nishiwaki: Writing – review & editing.
Declaration of competing interest
The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.
Data availability
Data will be made available on request.
Acknowledgments
This work was supported by the Japan Society for the Promotion of Science (JSPS) KAKENHI, Japan Grant Number JP24K07284.
T. Miki et al.: Preprint submitted to Elsevier
Page 32 of 34
Declaration of generative AI and AI-assisted technologies in the manuscript preparation process
During the preparation of this work the authors used Claude (Anthropic) in order to improve the language and readability of the manuscript. After using this tool, the authors reviewed and edited the content as needed and take full responsibility for the content of the published article.
References
[1] M. P. Bendsøe, N. Kikuchi, Generating optimal topologies in structural design using a homogenization method, Computer Methods in Applied Mechanics and Engineering 71 (2) (1988) 197–224.
[2] M. P. Bendsøe, O. Sigmund, Topology Optimization: Theory, Methods, and Applications, Springer, Berlin, 2003.
[3] J.-H. Zhu, W.-H. Zhang, L. Xia, Topology optimization in aircraft and aerospace structures design, Archives of Computational Methods in Engineering 23 (4) (2016) 595–622.
[4] M. Bayat, O. Zinovieva, F. Ferrari, C. Ayas, M. Langelaar, J. Spangenberg, R. Salajeghe, K. Poulios, S. Mohanty, O. Sigmund, J. H. Hattel, Holistic computational design within additive manufacturing through topology optimization combined with multiphysics multi-scale materials and process modelling, Progress in Materials Science 138 (2023) 101129.
[5] A. T. Gaynor, J. K. Guest, Topology optimization considering overhang constraints: eliminating sacrificial support material in additive manufacturing through design, Structural and Multidisciplinary Optimization 54 (5) (2016) 1157–1172.
[6] M. Langelaar, An additive manufacturing filter for topology optimization of print-ready designs, Structural and Multidisciplinary Optimization 55 (3) (2017) 871–883.
[7] X. Qian, Undercut and overhang angle control in topology optimization: a density gradient based integral approach, International Journal for Numerical Methods in Engineering 111 (3) (2017) 247–272.
[8] G. Allaire, C. Dapogny, R. Estevez, A. Faure, G. Michailidis, Structural optimization under overhang constraints imposed by additive manufacturing technologies, Journal of Computational Physics 351 (2017) 295–328.
[9] G. Allaire, L. Jakabcin, Taking into account thermal residual stresses in topology optimization of structures built by additive manufacturing, Mathematical Models and Methods in Applied Sciences 28 (12) (2018) 2313–2366.
[10] Y. Ueda, K. Fukuda, K. Nakacho, S. Endo, A new measuring method of residual stresses with the aid of finite element method and reliability of estimated values, Transactions of JWRI 4 (2) (1975) 123–131.
[11] N. Keller, V. Ploshikhin, New method for fast predictions of residual stress and distortion of AM parts, in: Proceedings of the 25th Annual International Solid Freeform Fabrication Symposium, Austin, TX, 2014, pp. 1229–1237.
[12] X. Liang, L. Cheng, Q. Chen, Q. Yang, A. C. To, A modified method for estimating inherent strains from detailed process simulation for fast residual distortion prediction of single-walled structures fabricated by directed energy deposition, Additive Manufacturing 23 (2018) 471–486.
[13] M. Bellet, J. Keumo Tematio, Y. Zhang, The inherent strain method for simulation of additive manufacturing—A critical assessment based on a new variant of the method, International Journal for Numerical Methods in Engineering 125 (2024) e7378.
[14] S. Xu, J. Liu, Y. Ma, Residual stress constrained self-support topology optimization for metal additive manufacturing, Computer Methods in Applied Mechanics and Engineering 389 (2022) 114380.
[15] T. Miki, T. Yamada, Topology optimization considering the distortion in additive manufacturing, Finite Elements in Analysis and Design 193 (2021) 103558.
[16] T. Miki, Self-support topology optimization considering distortion for metal additive manufacturing, Computer Methods in Applied Mechanics and Engineering 404 (2023) 115821.
[17] K. Maute, S. Schwarz, E. Ramm, Adaptive topology optimization of elastoplastic structures, Structural Optimization 15 (2) (1998) 81–91.
[18] S. Schwarz, K. Maute, E. Ramm, Topology and shape optimization for elastoplastic structural response, Computer Methods in Applied Mechanics and Engineering 190 (15-17) (2001) 2135–2155.
[19] J. Kato, H. Hoshiba, S. Takase, K. Terada, T. Kyoya, Analytical sensitivity in topology optimization for elastoplastic composites, Structural and Multidisciplinary Optimization 52 (3) (2015) 507–526.
[20] P. B. Nakshatrala, D. A. Tortorelli, Topology optimization for effective energy propagation in rate-independent elastoplastic material systems, Computer Methods in Applied Mechanics and Engineering 295 (2015) 305–326.
[21] M. Wallin, V. Jönsson, E. Wingren, Topology optimization based on finite strain plasticity, Structural and Multidisciplinary Optimization 54 (4) (2016) 783–793.
[22] O. Amir, Stress-constrained continuum topology optimization: a new approach based on elasto-plasticity, Structural and Multidisciplinary Optimization 55 (5) (2017) 1797–1818.
[23] G. Granlund, M. Wallin, Large-scale elasto-plastic topology optimization, International Journal for Numerical Methods in Engineering 125 (2024) e7583.
[24] P. Michaleris, D. A. Tortorelli, C. A. Vidal, Tangent operators and design sensitivity formulations for transient non-linear coupled problems with applications to elastoplasticity, International Journal for Numerical Methods in Engineering 37 (14) (1994) 2471–2499.
[25] R. Alberdi, G. Zhang, L. Li, K. Khandelwal, A unified framework for nonlinear path-dependent sensitivity analysis in topology optimization, International Journal for Numerical Methods in Engineering 115 (1) (2018) 1–56.
[26] J. Han, S. Matsubara, T. Kondoh, K. Izui, S. Nishiwaki, A general formulation of topology optimization for nonlinear materials incorporating internal variables by the continuous adjoint method, Computer Methods in Applied Mechanics and Engineering 445 (2025) 118164.
[27] K. Li, M. Wallin, M. Ristinmaa, G. Cheng, A “poor-man’s” deformation plasticity based approach to topology optimization of elastoplastic structures, International Journal of Solids and Structures 305 (2024) 113056.
T. Miki et al.: Preprint submitted to Elsevier
Page 33 of 34
[28] F. Dugast, A. C. To, Topology optimization of support structures in metal additive manufacturing with elastoplastic inherent strain modeling, Structural and Multidisciplinary Optimization 66 (2023) 105.
[29] B. C. Prabhune, K. Suresh, A fast matrix-free elasto-plastic solver for predicting residual stresses in additive manufacturing, Computer-Aided Design 123 (2020) 102829.
[30] L.-E. Lindgren, H. Runnemalm, M. O. Näsström, Simulation of multipass welding of a thick plate, International Journal for Numerical Methods in Engineering 44 (9) (1999) 1301–1316.
[31] A. Takezawa, A. C. To, Q. Chen, X. Liang, F. Dugast, X. Zhang, M. Kitamura, Sensitivity analysis and lattice density optimization for sequential inherent strain method used in additive manufacturing process, Computer Methods in Applied Mechanics and Engineering 370 (2020) 113231.
[32] J. C. Simo, T. J. R. Hughes, Computational Inelasticity, Springer, New York, 1998.
[33] M. P. Bendsøe, Optimal shape design as a material distribution problem, Structural Optimization 1 (4) (1989) 193–202.
[34] B. Bourdin, Filters in topology optimization, International Journal for Numerical Methods in Engineering 50 (9) (2001) 2143–2158.
[35] T. E. Bruns, D. A. Tortorelli, Topology optimization of non-linear elastic structures and compliant mechanisms, Computer Methods in Applied Mechanics and Engineering 190 (26–27) (2001) 3443–3459.
[36] J. K. Guest, J. H. Prévost, T. Belytschko, Achieving minimum length scale in topology optimization using nodal design variables and projection functions, International Journal for Numerical Methods in Engineering 61 (2) (2004) 238–254.
[37] F. Wang, B. S. Lazarov, O. Sigmund, On projection methods, convergence and robust formulations in topology optimization, Structural and Multidisciplinary Optimization 43 (6) (2011) 767–784.
[38] M. Stolpe, K. Svanberg, An alternative interpolation scheme for minimum compliance topology optimization, Structural and Multidisciplinary Optimization 22 (2) (2001) 116–124.
[39] J. Han, K. Izui, S. Nishiwaki, Extended discrete material optimization: A generalized framework for multi-material topology optimization of nonlinear material constitutive models, Computer Methods in Applied Mechanics and Engineering 451 (2026) 118682. doi:10.1016/j.cma.2025.118682.
[40] P. Duysinx, M. P. Bendsøe, Topology optimization of continuum structures with local stress constraints, International Journal for Numerical Methods in Engineering 43 (8) (1998) 1453–1478.
[41] M. Bruggi, On an alternative approach to stress constraints relaxation in topology optimization, Structural and Multidisciplinary Optimization 36 (2) (2008) 125–141.
[42] C. Le, J. Norato, T. Bruns, C. Ha, D. Tortorelli, Stress-based topology optimization for continua, Structural and Multidisciplinary Optimization 41 (4) (2010) 605–620.
[43] J. Cea, Conception optimale ou identification de formes, calcul rapide de la dérivée directionnelle de la fonction coût, RAIRO Modélisation Mathématique et Analyse Numérique 20 (3) (1986) 371–402.
[44] K. Svanberg, The method of moving asymptotes—a new method for structural optimization, International Journal for Numerical Methods in Engineering 24 (2) (1987) 359–373.
[45] K. Svanberg, A class of globally convergent optimization methods based on conservative convex separable approximations, SIAM Journal on Optimization 12 (2) (2002) 555–573.
T. Miki et al.: Preprint submitted to Elsevier
Page 34 of 34