Setting up Adjoint Solver and Cost Function
You define cost functions for use as the optimization objective and user-defined constraints.
Create the reports for objective and user-defined constraints applied to the
optimization and add them to the associated cost functions in the adjoint
solver. For example, to extract the flow channel from inlet to outlet with the
minimal pressure drop, you create a cost function using a pressure drop report
and assign the cost function as an Objective for the Topology Optimization solver later
on. Similarly, a user-defined constraint for the optimization also requires the
creation of the cost function, for example, outlet velocity uniformity.