Creating the Adjoint Cost Functions
You define at least one cost function before you start the adjoint analysis. You can also create additional cost functions within the same simulation. Each cost function is solved sequentially in the order they appear under the Adjoint Cost Functions node in the simulation tree.
All cost functions require prior creation of respective reports. These reports define the output quantities associated with the cost functions.
Before you create a cost function:
-
Create a report that supports adjoint differentiation.
For all the available report types, refer to Adjoint Cost Functions Reference. As an example, a force
report is created as follows:
To create cost functions:
-
Right-click the
node and select . A Report sub-node is created.
-
Select the Report node and set
Report to the
associated report. Only differentiable reports that you have already created
appear in the selection list.
Note Each cost functions is set to Active by default, which means that Simcenter STAR-CCM+ solves for that cost function when you run the adjoint solver. Each active function is solved individually, before proceeding to the next one when one or more stopping criteria are met.