Defining the Optimization Objective and the Constraint
The objective of the topology optimization is to minimize the pressure drop between the inlet boundary (high pressure) and the outlet boundary (low pressure).
One constraint accompanies this objective: the fraction of solid material in the topology optimization domain must not be less than 65%.
You define the pressure drop objective by using adjoint cost functions. The cost function is solved by the adjoint solver.
The ratio of fluid volume to solid volume is a built-in constraint that you are advised to always apply alongside any user-defined constraints. The volume ratio constraint determines the tightness of the topology.
The penalty parameter of the topology optimization solver governs how strongly the optimizer attempts to satisfy the constraints. A default value of 1000 for this parameter is sufficient for this simulation.
To define the optimization objective and the constraint:- Create a report to calculate the pressure drop between inlet and outlet:
- Create a report to track the solid volume ratio:
- To create a report for the current optimization loop counter, right-click the Reports node and select .
- To use these reports later in plots and stopping criteria, multi-select the Pressure Drop, Solid Volume Ratio, and the Optimization Iteration node, right-click on one of the selected nodes and select Create Monitor from Report.
- Create a pressure drop cost function:
- Right-click the New. node and select
- Rename the report node as Pressure Drop Cost Function.
- Select the Pressure Drop Cost Function node and set Report to Pressure Drop.
- Create the pressure drop objective together with the volume ratio constraint:
- Save the simulation.