Adjoint of Mesh Deformation

The ultimate sensitivities of a given objective, or cost function, are those with respect to the design parameters, that is d L d D . These sensitivities are typically used to solve a shape optimization problem.

Design parameters, D , define the mesh coordinates of a shape, X(D) . A mesh deformation strategy aims at deforming the initial baseline mesh of a shape, X 0 , based on the design parameters to evolve new shapes, X ( X 0 , D ) . The mesh deformation algorithm that is used for the adjoint method in Simcenter STAR-CCM+ is the radial basis function (RBF) morpher algorithm. The adjoint derivative of the morpher algorithm evaluates:

Figure 1. EQUATION_DISPLAY
d L T d D = d X T d D d L T d X
(5087)

where d L T d X is the provided final mesh sensitivity.

In a shape optimization procedure, the computed design parameter sensitivity as given by Eqn. (5087) is the basis for the calculation of the new design parameter values. The morpher deforms the mesh coordinates of the shape according to these new values.

Primal

Using radial basis functions, the interpolated position x about the reference position x 0 is given by

Figure 2. EQUATION_DISPLAY
x ( x 0 ) = α + j = 1 N β j ϕ j ( r j ( x 0 ) )
(5088)

where

Figure 3. EQUATION_DISPLAY
r j ( x 0 ) = x 0 x j 0
(5089)

There are two types of radial basis function: those with compact support and those with global support. Here, only one global support function is considered, the multiquadratic biharmonics function ϕ ( r ) given as:

Figure 4. EQUATION_DISPLAY
ϕ j ( r j ) = r j 2 + c j 2
(5090)

and the constant c j = 0 , j . For a discrete set of N reference positions in the domain, evaluation of all M interpolation positions in that domain can be evaluated by casting Eqn. (5088) as:

Figure 5. EQUATION_DISPLAY
[ x 1 x M ] = [ 1 1 1 M ] α + [ ϕ 1 , 1 ϕ 1 , N ϕ M , 1 ϕ M , N ] [ β 1 β N ]
(5091)

where the components of the N × M matrix are computed using the radial basis function

Figure 6. EQUATION_DISPLAY
ϕ i , j = ϕ j ( r j ( x i 0 ) )
(5092)

The continuous interpolation function Eqn. (5088) or its discrete form of Eqn. (5091) require the coefficients α and β 1 , ... , β N . These coefficients are determined by N known interpolation positions, or design parameters, D = d 1 , ... , d N , and the additional constraint that

Figure 7. EQUATION_DISPLAY
j = 1 N β j = 0
(5093)

From Eqn. (5088) and Eqn. (5093), a system of equations is constructed to solve the unknown coefficients:

Figure 8. EQUATION_DISPLAY
[ ϕ 1 , 1 ϕ 1 , N 1 1 ϕ N , 1 ϕ N , N 1 N 1 1 1 N 0 ] [ β 1 β N α ] = [ d 1 d N 0 ]
(5094)

Adjoint

From a functional point of view, the independent variables of the morpher are D = d 1 , ... , d N , and its dependent variable is x in the continuous form and X = x 1 , ... , x M in the discrete form. The positions X 0 are constants of the system. Since only the discrete form of the morpher is of interest, the required Jacobian is then:

Figure 9. EQUATION_DISPLAY
J X = d X d D
(5095)

A tangent, j , of the Jacobian Eqn. (5095) is derived by applying the chain rule to Eqn. (5091):

Figure 10. EQUATION_DISPLAY
X d j = [ x 1 d j x M d j ] = [ 1 1 1 M ] α d j + [ ϕ 1 , 1 ϕ 1 , N ϕ M , 1 ϕ M , N ] [ β 1 d j β N d j ]
(5096)

The derivative of the coefficients α and β 1 , ... , β N with respect to d j are determined by solving the following system:

Figure 11. EQUATION_DISPLAY
[ ϕ 1 , 1 ϕ 1 , N 1 1 ϕ N , 1 ϕ N , N 1 N 1 1 1 N 0 ] [ β 1 d j β N d j α d j ] = [ d 1 d j d N d j 0 ]
(5097)

Therefore, the requirement for solving the tangent derivative is the capacity to evaluate Eqn. (5091) and Eqn. (5094) for specific inputs.

The aim of the adjoint evaluation of the morpher is to compute Eqn. (5087). The second term on the right hand side of this equation is already provided (see Sensitivity of Cost Function w.R.t. Flow and Energy Solution), so the adjoint of the morpher must compute the product of the two terms, that is, d L d D T .

This product is derived by applying the chain rule to Eqn. (5091) and transposing the result:

Figure 12. EQUATION_DISPLAY
L α = [ 1 1 1 M ] T [ L x 1 L x M ] [ L β 1 L β N ] = [ ϕ 1 , 1 ϕ 1 , N ϕ M , 1 ϕ M , N ] T [ L x 1 L x M ]
(5098)

On evaluating Eqn. (5098), the adjoint is obtained by solving the following system:

Figure 13. EQUATION_DISPLAY
[ ϕ 1 , 1 ϕ 1 , N 1 1 ϕ N , 1 ϕ N , N 1 N 1 1 1 N 0 ] T [ L d 1 L d N t ] = [ L β 1 L β N L α ]
(5099)

where the result t is discarded.