FE Model, Design Objective, Constraints, Integer, Scalar, Scalar, Scalar Field, Integer, Scalar, Scalar Field, Scalar Field
FE Model, Design Objective, Constraints, Integer, Scalar, Scalar, Scalar Field, Integer, Scalar, Scalar Field, Scalar Field, 1.1.0
About this Block
The Topology Optimization (TopOpt) block performs a numerical design operation that determines the optimal shape of a part within the bounds of a Design Space, based on a set of objectives and constraints. The block allows the user to design geometries that best achieve the desired objective(s) while considering complex and multivariate loading conditions and design constraints. nTop’s TopOpt algorithm uses the Solid Isotropic Material with Penalization (SIMP) method. Topology optimization setup involves choosing Objectives and Constraints for your optimization. The objective is a list of one or more Design Responses that you will be minimizing or maximizing in the optimization. Design Responses are just a way of describing the resulting object. These may include what fraction of the original design space the part takes up (Volume Fraction), or under given loading conditions, how stiff it is (compliance), or how much Stress or Displacement it exhibits. The optimization Objective must be paired with Constraints that give rules to the Optimization. Without Constraints, the optimization will probably result in a part that completely fills in the design space, or a completely empty part. Constraints can include upper or lower limits on other Design Responses, or Geometric Constraints, such as Symmetry, Overhang Angle, and others. The logic of a TopOpt process is outlined below.
The TopOpt process works by assigning a value between 0 and 1 to all of the elements of a mesh, where higher values are assigned to elements that most effectively contribute to the objective of the optimization. These values are referred to as the TopOpt density.
For example, an element in the bottom corner of a design space, far away from any applied load, is usually given a density value close to 0, because placing material there does not contribute to the objective of the optimization. On the other hand, elements close to the loaded faces are given a density value close to 1, because having material there is likely necessary to support the load. As a rule, loaded elements are always given a TopOpt density of 1.
The Topology Optimization block takes in an FE Model, an Objective, a Constraints list, and a series of values that control the TopOpt algorithm. The FE Model contains a mesh and material properties that define the Design Space, or which is the volume where the final part can occupy after the optimization. The algorithmic controls for TopOpt are explained below.
- Max iteration - TopOpt is an iterative process that updates the topology until the objective is reached and the constraints are satisfied. If the process is taking a long time, the user can set a maximum limit to the number of iterations attempted. This input allows you to limit the max computation time expended on the TopOpt process.
- Min objective Change - The objective function is a quantified measure of how well the topology is achieving its objective(s). When the relative change between iterations of the objective function falls below this number, the TopOpt will be considered complete (as long as the constraints are satisfied). Decreasing this number will result in a more accurate TopOpt, but longer computation time.
- Min density change - This input is a convergence threshold, like described above, but for the relative change of the elements TopOpt density from one iteration to the next. Decreasing this number will result in a more accurate TopOpt, but longer computation time.
- Boundary penalty - This input controls how the TopOpt deals with setting density values at the edges of the design space. The 1 option sets the TopOpt density to 0 along the edges of the design space. The material will be completely restricted on the boundary where no loads or constraints have been applied. This option works well if you set up your design space to have a buffer zone of nodes on the outside of the space where you know that no material will be filled in. In some cases, you may anticipate that your part will end up including elements on the outer edge of the design space. This is likely true if you are doing TopOpt on a coarse mesh. The 0 option defines TopOpt densities at the design space edges such that the gradient (the spatial derivatives in x,y,z) will be zero. This allows you to have non-zero TopOpt densities at edges. No penalization is enforced on the boundary in this case. The overall recommendation is to use a small enough mesh size so that the 1 option can be used and density can be 0 at the edges, but if needed, option 0 provides an alternative. The image below shows how results can change between different Filter Boundary options.
- Save increment - This input controls the amount of data stored and accessible after the topology optimization completes. The number can be increased to lower the file size of a completed TopOpt file. The default value of 1 will save results for all increments, whereas a result of 0 will save only the first and last increment. For any value, N, greater than 1, it will save results for every N increments. Note: The last iteration will always be saved.
- Filter size - This optional input specifies a minimum feature size that will be present in your TopOpt result. Note that it can accept a field input, meaning you can choose a spatially-variant scalar field as your minimum feature size. If this optional input is left blank, we assume a default value of 2 times the average element size.
- Initial density - This optional input can take in a scalar field of TopOpt density values (from 0 to 1), which will provide the initial guess at the TopOpt result before the process begins. When left blank, the TopOpt densities are set to 0.5 at all elements.
The Iso-contour view shows a single surface interpolated from all elements with TopOpt density values close to the specified threshold.
The Iteration slider allows you to see the evolution of the TopOpt throughout the optimization iterations.
Within the TopOpt block’s information panel, there are two properties available: the number of iterations before completion of the TopOpt process, and a scalar field representing the TopOpt density results.
Under the Display tab, there are plots showing how numerical measurements of the design’s Objective and Constraint(s) changed over the iterations of the process.
The TopOpt block can be converted into an Implicit Body using the Implicit Body from Topology Optimization block.
Example File
Download Example: Topology Optimization This file set ups a Topology Optimization block for a rectangular block fixed on its side and loaded on top.

