35.1. The Adjoint Solver

An adjoint solver is a specialized tool that extends the scope of the analysis provided by a conventional flow solver by providing detailed sensitivity data for the performance of a fluid system.

In order to perform a simulation using the ANSYS Fluent standard flow solvers, a user supplies system geometry in the form of a computational mesh, specifies material properties and physics models, and configures boundary conditions of various types. The conventional flow solver, once converged, provides a detailed data set that describes the flow state governed by the flow physics that are being modeled. Various postprocessing steps can be taken to assess the performance of the system.

If a change is made to any of the data that defines the problem, then the results of the calculation can change. The degree to which the solution changes depends on how sensitive the flow is to the particular parameter that is being adjusted. Indeed, the derivative of the solution data with respect to that parameter quantifies this sensitivity to first order. Determining these derivatives is the domain of sensitivity analysis.

There is a large collection of derivative data that can be computed for a fluid system, given the extensive set of input data that is required, and the extensive flow data that is produced. The matrix of derivatives of output data with respect to input data can be vast. Depending upon the goal of the analysis only a portion of this derivative data may be needed for engineering analysis and decision-making.

The adjoint solver accomplishes the remarkable feat of calculating the derivative of a single engineering observation with respect to a very large number of input parameters simultaneously via a single computation. The engineering observation could be a measure of the system performance, such as the lift or drag on an airfoil, or the total pressure drop through a system. Most importantly, the derivatives with respect to the geometric shape of the system are found.

Understanding such sensitivities in a fluid system can provide extremely valuable engineering insight. A system that is highly sensitive may exhibit strong variability in performance due to small variations in manufacturing or variations in the environment in which it is operating. Alternatively, high-sensitivity may be leveraged for fluid control, with a small actuator being able to induce strong variations in behavior. Yet another perspective is that sensitivity of a performance measure implies that the device in question is not fully optimized and there is still room for improvement—assuming that constraints do not preclude further gains.

The sensitivities of a fluid system provided by an adjoint solver satisfy a central need in gradient-based shape optimization. This makes an adjoint solver a unique and powerful engineering tool for design optimization.

Adjoint data can also play a role in improving solver numerics. Regions of high sensitivity are indicative of areas in the flow where discretization errors can potentially have a strong effect. This information can be used to guide how best to refine a mesh to improve flow solution accuracy.

The process of computing an adjoint solution resembles that for a standard flow calculation in many respects. The adjoint solver solution advancement method is specified, residual monitors configured, and the solver is initialized and run through a sequence of iterations to convergence. One notable difference is that a scalar-valued observation is selected as being of interest prior to starting the adjoint calculation.

Once the adjoint solution is converged the derivative of the observable with respect to the position of each and every point on the surface of the geometry is available, and the sensitivity of the observation to specific boundary condition settings can be found. This remarkable feature of adjoint solutions has been known for hundreds of years, but only in the last 25 years has the significance for computational physics analysis been recognized widely.

The power of this methodology is highlighted when an alternative for assembling the same information is considered. Imagine a sequence of flow calculations in which each point on an airfoil surface is moved in turn a set small distance in the surface-normal direction, and the flow and drag recomputed. If there are points on the surface, then flow calculations are required to build the data set. Considering that the same data is provided by a single adjoint computation, the adjoint approach has an enormous advantage. Remember that for even modest 3D flow computations there may be many thousands of coordinates or more on a surface.

Once the adjoint is computed it can be used to guide intelligent design modifications to a system. After all, the adjoint sensitivity data provides a map across the entire surface of the geometry of the effect of moving the surface. Design modifications can be most effective if made in regions of high sensitivity since small changes will have a large effect upon the engineering quantity of interest. This principle of making changes to a system in proportion to the local sensitivity is the foundation for the simple gradient algorithm for design optimization.

Once a candidate change in shape or other boundary condition has been selected, the effect of that change can be estimated using the computed derivative data. This amounts to a first order extrapolation using a Taylor series expansion around the baseline flow state. Clearly if a modification is chosen that is large enough that nonlinear effects become important then the accuracy of the predicted change cannot be guaranteed.


Release 18.2 - © ANSYS, Inc. All rights reserved.