Adjoint Topology Optimization Model
The topology optimization model determines the optimal distribution of material within a domain subject. The model is used in conjunction with the Topology Physics Model and the Adjoint model to perform topology optimization.
The model and its solver handles single objective optimization problems with constraints by using adjoint-based sensitivities to evolve a level set equation that defines the distribution of the material. When this model is enabled, it automatically calculates the material distribution used by the topology physics model. See also: Topology Physics Model.
The goal of the optimizer is to vary the material distribution such that the objective is minimized (or maximized, if that is the choice). The optimization is based on advancing a level set equation shown as follows:
where is the pseudo time, is the interface velocity between two phases, and is the source term of the level set function.
is the level set variable, which varies between -1 (secondary phase—solid) and 1 (primary phase—fluid). The associated material distribution is defined using the hyperbolic tangent function of the level set variable:
where controls the thickness of the interface and is set to 0.056 within the code.
- The topology derivative , where is the Lagrangian given by Eqn. (5132).
- The ADAM (short for Adaptive Moment Estimation)
update rule helps to avoid a local minimum (or maximum) by
providing momentum to the direction from iteration to
iteration. The formulation is shown as follows:(5126)(5127)(5128)
where the constant determines the amount of momentum applied to the search direction. Smaller values allow the optimizer to quickly change direction in response to gradient changes but also increase the likelihood of getting stuck prematurely in a local optimum. is a tiny value used to prevent division by zero.
The constant determines how quickly the step size should decay as the optimization progresses. Values near 1 will ensure the optimizer approaches the final result smoothly but also can slow down convergence.
The default values of 0.5 and 0.75 for and provide a reasonable compromise between these competing factors. These settings also provide some natural step size decay to ensure the optimizer takes smaller steps as the optimization progresses.
where is the volume of the cell and is the sum of the face areas of the cell.
The source term is also proportional to the search direction coming from ADAM. Its formulation is shown as follows:
where is a user defined constant Source Strength. This term is omitted ( ) if the Allow Hole formation in the model is deactivated. In practical terms, when solid material must form on existing boundaries or initial portions of solid material in the domain. When , pockets of solid can appear anywhere in the optimization domain.
With these rules applied to the source term and interface velocity , the optimizer can use large step sizes to drive the optimization (default value is 10) independent of the problem scale or sensitivity values.
where is the adjoint objective, are the constraints, and m is the total number of constraints.
The constraints are handled with the Augmented Lagrangian Method which converts the constrained optimization problem into an unconstrained one. To perform the conversion, a Lagrangian function is introduced, where the original objective function is augmented to account for the constraints.
where are the Lagrange multipliers, and denotes the optimization iteration.
where is the penalty parameter. After each iteration, the Lagrange multiplier estimate is updated as:
The augmented Lagrangian function above can also be extended to include equality constraints.
To ensure proper scaling of the Lagrangian, the objective and constraints can be normalized respectively by their own max sensitivity values: