When an adjoint solver is developed there is a key design decision that is made regarding the implementation, namely whether to use a continuous or a discrete approach. Both approaches are intended to compute the same sensitivity data—however, the approaches are remarkably different.
While a user of the adjoint solver may experience no particular difference in workflow for the two separate solver types, it is important to be aware that there are two primary classes of adjoint solver and the approach chosen can have implications for the accuracy of the results.
A continuous adjoint solver relies heavily on mathematical properties of the partial-differential equations that define the physics of the problem. In this case those equations are the Navier-Stokes equations. With this approach an adjoint partial differential equation set is formulated explicitly and is accompanied by adjoint boundary conditions that are also derived mathematically. Only after this derivation is complete can the adjoint partial differential equations be discretized and solved, often with extensive re-use of existing solver machinery. This class of solver was implemented by ANSYS Fluent as a research effort.
Such a solver has the benefit that it is decoupled largely from the original flow solver. They share only the fact that they are based on the Navier-Stokes equations. The process of discretizing and solving the partial differential equations in each case could in principle be very different indeed. While this flexibility may be appealing it can also be the downfall of the approach. Inconsistencies in modeling, discretization and solution approaches can pollute the sensitivity information significantly, especially for problems with wall functions and complex engineering configurations such as those of interest to ANSYS Fluent users.
The continuous adjoint approach can be effective for some classes of problems. However, until there is a significant advance in handling some key challenges, ANSYS Inc. has concluded that it is an unsuitable approach for meeting the needs of our broad client base for the classes of problems of interest to them.
A discrete adjoint solver is based not on the form of the partial differential equations governing the flow, but the particular discretized form of the equations used in the flow solver itself. The sensitivity of the discretized equations forms the basis for the sensitivity calculation. In this approach the adjoint solver is much more tightly tied to the specific implementation of the original flow solver. This has been observed to yield sensitivity data that provides valuable engineering guidance for the classes of problem of interest to ANSYS Fluent users, including problems with wall functions.
For the above reasons, the discrete adjoint approach has been adopted for the ANSYS Fluent adjoint solver.