Surface Sensitivity
The surface sensitivity allows you to quantify the impact of changes to a part surface on an objective of interest. Cell faces that show large values of surface sensitivity have a large impact on the objective.
Conceptually, the surface sensitivity is similar to the Adjoint of Mesh Deformation. However, its formulation allows a much quicker calculation of sensitivity values at every face of the surface.
The surface sensitivity enables you to analyze large-scale trends in the design. You can use the surface sensitivity to guide a manual shape optimization. The surface sensitivity can also provide guidance for placing control points, which drive the displacement of mesh vertices when using the morpher.
Primal
The formulation for surface sensitivity is based on a spring-analogy mesh deformation strategy. However, Simcenter STAR-CCM+ does not use this strategy to actually deform the mesh. Instead, this method is used only to derive an approximate mesh adjoint that can provide surface sensitivities.
For this strategy, the coupling between neighboring cells is modeled using springs. Force equilibrium is used to solve for the displacement of the cell centers based on specified displacements on the boundary faces.
For cells in the interior of the domain, force equilibrium for cell requires that the forces that are associated with the adjacent cells sum up to zero:
where:
- represents an adjacent cell.
- represents the spring constant of the spring connecting cell and . The spring constant is inversely proportional to the distance between the centroids of cells and .
- is the displacement at the centroid of cell .
For cells at the boundary of the domain, force equilibrium still requires that the forces balance. However, the displacement at the boundary face is a known quantity and can be moved to the right-hand side of the equation:
where represents the displacement that is applied to the boundary face and is the spring constant of the spring connecting cell and the boundary face. The summation is performed only over interior faces.
These equations can be solved simultaneously throughout the entire domain, yielding a linear system of the following form:
where is defined as:
The displacement for each cell centroid is computed by inverting the matrix :
Finally, the displacement for each vertex in the domain is calculated. For interior vertices, the vertex displacement is the average of the cell centroid displacements over all adjacent cells. For vertices on the boundaries, the displacement is an average of the specified displacements over all adjacent boundary faces.
Adjoint
To calculate the surface sensitivity, the above primal formulation is differentiated in reverse order. The input to this adjoint calculation is the cost function sensitivity with respect to the mesh . The output is the cost function sensitivity with respect to the surface displacements . The output is associated with each face on the surface and represents the change of the objective value due to a displacement of the respective face centroid.
The first step is calculating the sensitivity with respect to the cell centroid and boundary face centroid displacements based on . The derivative with respect to the cell centroids is determined by performing a transpose average over the vertices of the cells:
where is the number of cells adjacent to vertex .
The derivative with respect to the boundary face centroids is given by a transpose average of over the vertices of the boundary faces:
where is the number of boundary faces adjacent to vertex .
Because this mesh deformation process is linear, the mesh adjoint is given by inverting the transpose of the matrix onto the vector.
The total surface sensitivity is the sum of two components. The first component is the sensitivity of the boundary centroid displacement due to the vertex sensitivity given by Eqn. (5111). The second components is the sensitivity of the spring analogy equation with respect to the boundary displacement multiplied by the mesh adjoint. For boundary face connected to cell , the total surface sensitivity is given as:
Surface Sensitivity Filtering
The calculated surface sensitivity Eqn. (5113) directly depends on the mesh. If used directly for surface morph, this computed surface sensitivity can cause mesh distortion. To solve this issue, an explicit filtering technique is applied to the surface sensitivity.
In primal mode the explicit filter translates a scalar design field into a smooth displacement field. The adjoint of this process is used during the derivative calculation to essentially smooth the sensitivities. The displacement field is defined as:
where:
- is the control field.
- is the filter.
- is the boundary of domain.
- is the displacement at a location.
The filter itself is defined as a Gaussian filter based on distance combined with the local normal vector:
where:
- is the normal vector.
- is the specified filter radius.
The filter has the effect of averaging the normal and the control field since it is evaluated using the second argument of the function. Decomposed into individual components, the filters become:
In this form, the filter condenses to standard filtering of three quantities: . Given a set of boundary points, whose coordinates are , the filter can be written in the following matrix form:
where are diagonal matrices with a component of the normal vector for each element. The elements of the filter matrix are:
Because the filter is based on the distance between points, it is symmetric. .
To compute the adjoint of this process, the filtering process for each component is transposed:
The final sensitivity includes the application of the filter in primal mode hence is a vector field.