Adjoint solution data can be postprocessed so that it provides both qualitative and quantitative views of the effect of many types of change that may be imposed on a system. While shape changes are often of particular interest there is a very rich data set, one as large as the original flow field, available for exploration. Postprocessing tools are provided with the intention of permitting the adjoint data to be mined in such a way that it provides useful supporting information for an engineer who is making design decisions for a system, or has questions about the reliability of the original flow calculation.
Since the ANSYS Fluent adjoint solver is a discrete adjoint solver, the primitive adjoint solution data provides sensitivity to changes cell-wise for the computational mesh. Normalization of these results by the cell volume provides a mesh-independent view into the data set.
Information regarding postprocessing the adjoint solutions can be found in the following sections:
Adjoint solution data can be postprocessed using standard ANSYS Fluent postprocessing tools including contours, vectors, xy-plots, histograms, and surface and volume integrals.
In the Contours dialog box, under Sensitivities..., you can find the following fields:
This field is the magnitude of the adjoint velocity primitive field. This field can be interpreted at the cell level as the sensitivity of the observable to a body force on the cell, or any factors that may change the momentum balance on the cell. As such it is a mesh-dependent quantity. This field is often observed to be large, for example, upstream of a body for which drag sensitivity is of interest, with the field diminishing in the upstream direction. This indicates the interference effect for an object positioned at various locations upstream of the object of interest.
These are the components of the adjoint velocity primitive field. These fields show the sensitivity of the observable to the various components of a body force that may be applied to a cell, or other factors that may change the momentum balance on the cell. As such, it is a mesh-dependent quantity.
This field provides a plot of the primitive adjoint pressure field. This field can be interpreted at the cell level as the sensitivity of the observable with respect to any changes to the mass balance on the cell. As such, it is a mesh-dependent quantity.
This field is available when the energy adjoint is solved and is the primitive adjoint temperature field. It can be interpreted at the cell level as the sensitivity of the observable with respect to changes in the thermal energy balance of the cell. As such, it is a mesh-dependent quantity.
This field is the magnitude of the adjoint velocity primitive field normalized by cell volume. This field can be interpreted as the magnitude of the sensitivity of the observable to body force per unit volume. It can be used to identify regions in the domain where small changes to the momentum balance in the flow can have a large or small effect on the observable. This field is often observed to be large, for example, upstream of a body for which drag sensitivity is of interest, with the field diminishing in the upstream direction. This indicates the interference effect for an object positioned at various locations upstream of the object of interest. This field is normalized so that, in principle, it shows a mesh-independent quantity. In practice, this field has features that are often correlated with mesh structure. This is not unexpected. In fact, the adjoint solution field is providing very useful insight into regions of the flow domain where the observation of interest is potentially sensitive to particular features of the mesh and discretization process that affect the local momentum balance.
These are the components of the adjoint velocity primitive field normalized by cell volume. This field can be interpreted as the magnitude of the sensitivity of the observable to components of a body force per unit volume. Consider a body force distribution, expressed as a force per unit volume. The integral of the vector product of that distribution with the components of this field gives a first-order estimate of the net effect of the body force on the observation.
This field is the primitive adjoint pressure field normalized by cell volume. This field can be interpreted as the sensitivity of the observable with respect to mass sources or sinks in the domain. Consider a mass source/sink distribution, expressed as mass flow rate per unit volume. The integral of that distribution, weighted by the local value of this field, gives the effect of the sources/sinks on the observation. This field is normalized so that, in principle, it shows a mesh-independent quantity. In practice, this field has features that are often correlated with mesh structure. This is not unexpected. In fact the adjoint solution field is providing very useful insight into regions of the flow domain where the observation of interest is potentially sensitive to particular features of the mesh and discretization process that affect local mass balance. When plotted on a boundary, this field indicates the effect of the addition or removal of fluid from the domain upon the quantity of interest. It is important to note that in this scenario the effect of the momentum of the fluid that is added or removed is not taken into account. The boundary velocity sensitivity should be plotted if that effect is also of interest.
This field is available when the energy adjoint is solved and is the primitive adjoint temperature field normalized by cell volume. It can be interpreted at the cell level as the sensitivity of the observable with respect to thermal energy sources or sinks in the domain. This field is normalized so that, in principle, it is a mesh-independent quantity.
This field shows the sensitivity of the quantity of interest to variations in the turbulent effective viscosity for a turbulent problem, or the laminar viscosity in a laminar case. The sensitivity is normalized by the cell volume to account for cell size variations in the mesh.
This field is the magnitude of the sensitivity of the observable with respect to a deformation applied to the mesh (both boundary and interior mesh). When plotted on the surface of a body the locations where this quantity is large indicates where small changes to the surface shape can have a large effect on the observable of interest. If the shape sensitivity magnitude is small then the effect of shape changes in this region can be expected to have a small effect on the observable of interest. When viewing this field, it is often observed that the magnitude varies by many orders of magnitude. Contour plots will clearly draw attention to regions with the highest sensitivity (often sharp edges and corners). However, it should be remembered that a relatively small surface movement that is distributed over a large area can have a cumulative effect that is large.
This field shows the normal component of the shape sensitivity. A positive value indicates an orientation directed into the domain, while a negative value indicates that the shape sensitivity is oriented outwards from the domain. This field eliminates the component of the vector shape sensitivity field that lies in the plane of the wall.
This field shows the normal component of the optimal displacement computed from the adjoint solution. This field is defined only for portions of walls lying within the control-volume specified for morphing. The size of the optimal displacement is determined by the scale factor that is chosen for the morphing. A positive value of displacement indicates that the surface will be displaced into the flow domain, whereas a negative value of displacement corresponds to wall movement outwards from the flow domain. This field eliminates the component of the optimal displacement vector that lies in the plane of the wall.
In view of the large range of values possible for the shape sensitivity magnitude, a
convenience function that plots of the magnitude is provided. This allows the importance of the surfaces
in a domain to be ranked more easily based on how they affect the observation of interest
when they are reshaped.
These fields are the individual components of the sensitivity of the observable of interest with respect to the mesh node locations. It is plotted as cell data and is computed as the average of the nodal sensitivities for a given cell, divided by the cell volume. Note that for this discrete adjoint solver the sensitivity of the result with respect to node locations both on and off boundaries is computed. The normalization by cell volume indicates that the fields that are plotted are the weighting factors for a continuous spatial deformation field. (Note that the nodal sensitivity data itself is used when mesh morphing is performed, and predictions about the effect of shape changes are made.)
These fields are defined on those boundaries where a user-specification of a boundary velocity is made for the original flow calculation. This includes no-slip walls. The field shows how sensitive the observable of interest is to changes in the boundary velocity at any point. It is interesting to note that even though the original boundary condition specification may be for a uniform velocity on the domain boundary, the effect of a non-uniform velocity perturbation is available, The effect of any specific boundary velocity change can be estimated as an integral of the vector product of the change to the velocity with the plotted sensitivity field. A plot of this quantity on a velocity inlet, for example, can be very useful for assessing whether or not the inlet is positioned too close to key parts of the system. That is, it addresses the question of whether or not the flow domain is too small to achieve a successful computation of the performance measure of interest. Viewing this field will also indicate whether or not the assumption of a uniform inflow is adequate.
This field is defined on boundaries where there is a user-specified pressure as part of a boundary condition, such as on a pressure outlet. The field shows the sensitivity of the observation of interest to variations in the boundary pressure across the flow boundary. It is interesting to note that even though the original boundary condition specification may be for a uniform pressure on the domain boundary, the effect of a non-uniform pressure perturbation is available, The effect of any specific boundary pressure change can be estimated as an integral of the product of the change to the pressure with the plotted sensitivity field. Viewing this field will also indicate whether or not the assumption of a uniform pressure is adequate for the simulation.
This field is available when the energy adjoint equation is solved and is defined on boundaries where a temperature boundary condition is applied. This includes walls, velocity inlets, mass-flow inlets, pressure inlets, and pressure outlets where a backflow temperature may be specified. The field shows the sensitivity of the observation of interest to variations in the boundary temperature across the boundaries. Note that even if the original boundary condition specification is for a uniform temperature on the boundary, the effect of a non-uniform temperature perturbation is available. The effect of any specific boundary temperature change can be estimated as an integral of the product of the change to the temperature with the plotted sensitivity field. This field can be used to indicate whether or not the assumption of a uniform temperature is adequate for the simulation.
This field is available when the adjoint energy equation is solved and is defined on walls where a heat flux boundary condition is imposed. The field shows the sensitivity of the observation of interest to variations in the boundary heat flux through the wall. Its properties are analogous to those of Sensitivity to Boundary Temperature.
This field is provided as a convenient tool for identifying portions of the flow
domain where the introduction of blockages or obstructions in the flow can affect the
observation of interest. Consider a blockage in the flow that generates a reaction force on
the flow that is proportional to the local flow speed, and acting in the opposite direction
to the local flow: where
is a local coefficient for the reaction force. The local contribution of
this force on the observation of interest is determined by the vector product of this force
with the adjoint velocity field. The flow blockage field that is plotted is
, namely the negative of the vector product of the flow velocity and the
adjoint velocity (Cell Value).
This field, intended for expert users, can be plotted to identify those portions of the flow domain where the stabilized adjoint solution advancement scheme is applied. It is preferable to plot this with the Node Values de-selected in the Contours dialog box. In this case, the Adjoint Local Solution Marker will take a value between 0 and 1. The Mode Amplitude Cutoff defined in the Stabilized Scheme Settings dialog box defines the lower bound for cells where the stabilized scheme is applied.
The surface shape-sensitivity fields contain the derivatives of the chosen observable with respect to the position of the bounding walls of the problem.
In the Vectors dialog box, under Vectors of..., you can find the following custom vector fields:
This vector field shows how sensitive the observable of interest is to the presence of body forces within the flow. A body force that locally has a component in the direction of the body-force sensitivity vector will lead to an increase in the observation of interest. The larger the sensitivity vector, the larger the effect that a body force can have on the observation of interest.
This vector field shows how sensitive the observable of interest is to the presence of body forces within the flow. It is normalized by the local cell volume so that it is mesh-independent data. A body force that locally has a component in the direction of the body-force sensitivity vector will lead to an increase in the observation of interest. The larger the sensitivity vector the larger the effect that a body force can have on the observation of interest. The first-order effect of a body force distribution per unit volume can be computed as a volume integral of the vector product of the body force distribution with this field.
This vector field shows the postprocessed adjoint solution, independent of any morphing settings, that defines the sensitivity of the observable of interest to movement of the walls. Deformation of a wall where this vector is large can be expected to have a significant effect on the observable. In contrast, deformations of the wall in locations where this vector is small in magnitude, to first order, will have no effect on the observable.
The optimal displacement field is defined once a design change has been computed using the design tool. This vector field shows the optimal displacement based on the design goals that have been specified and any prescribed boundary motions. Note that when plotting this vector field, if the Auto Scale option is deselected, and the vector Scale option is set to 1, then the vectors as shown display the absolute displacement that will occur.
This sensitivity field is defined on boundaries where velocities are specified as an input for the boundary condition. This includes no-slip, and slip walls. When plotted, this field illustrates where a change to the boundary velocity can affect the observation of interest. When plotted on a wall, it shows how the imposition of a nonzero velocity condition on the wall will affect the observation. This can include movement in the plane of the wall itself. When plotted, for example on a velocity inlet, this field illustrates how local adjustments to the velocity of the incoming flow affect the observation of interest. Integrating a potential change to the velocity field, weighted by this sensitivity field over the boundary provides a first order estimate of the effect of the change on the observation of interest.
This sensitivity field that can be used to visualize the effect of adding or removing fluid via a wall-normal jet. This can be used, for example, to identify regions on walls where the introduction of suction could have a significant effect on the observable that has been specified. A plot of the Sensitivity to Boundary Velocity in general provides a richer view, but sometimes at the expense of the clarity of the visualization.
The computed adjoint solution can provide sensitivity information for individual boundary condition settings through the Adjoint Reporting dialog box. This dialog box is accessed by clicking in the Design ribbon tab (Adjoint-Based group box).
Design → Adjoint-Based
→ Reporting...
Boundary condition sensitivity data is retrieved as follows:
Select a single boundary of the problem in the Boundary choice selection box.
Click Report to see the boundary condition settings and the sensitivity of the observable with respect to those settings. An example of a report is shown below:
Velocity inlet id 5 Velocity magnitude = 4.000000000e+01 (m/s), Sensitivity = 5.429127866e+01 ((n)/(m/s))
In this case, the report shows that for every change of the boundary velocity by 1 m/s, a change in the predicted observable (in this case a force) of 54.2 N is expected. This prediction is based on a linear extrapolation.
Click Write... to write the report for the selected boundary to a file.