1. Introduction
One of the most demanding technical requirements imposed on the design of lifting surfaces for nozzles, water pumps, hydrokinetic turbines, and marine propulsion systems is due to cavitation [
1,
2]. As it develops, cavitation creates noise, vibration, metal erosion, and a drop in performance [
3,
4]. Over the past years, researchers have obtained a better understanding of cavitation due to the standardization of experimental research, intending to provide an accurate experimental database for the validation of computational methods [
5,
6]. Moreover, numerical predictions can provide useful information and details about the onset and evolution of cavitation. Therefore, simulating various forms of cavitation using multiphase CFD has become increasingly common in the last several years [
7,
8,
9,
10].
CFD-based design optimization is a relatively new and emerging field that provides a direct link between numerical simulations and the required design improvements. In the work of [
11], a continuous adjoint method is developed for the design optimization of a cavitating hydrofoil based on a homogeneous multiphase mixture model. The continuous adjoint method is also employed in the work of [
12] for the shape optimization of hydraulic turbomachines, with objective functions targeting various aspects of design improvements. However, applications of the continuous adjoint method for cavitation problems are not limited to CFD solvers. This method based on an ideal flow solver was successfully employed by the authors of [
13] to determine the optimum shape of a supercavitating torpedo in terms of drag minimization given certain operating conditions, along with the cavitator shape itself as part of the solution. Among optimization methods, gradient-based methods can be more efficient when the optimum is ‘‘nearby’’, as discussed in the work of [
11,
12]. Particularly, adjoint methods are of great interest due to their ability to efficiently handle large numbers of design variables, enabling cost-effective optimization in various fields of science [
14]. Notably, the introduction of continuous adjoint methods for fluid dynamics is attributed to the authors of [
15], who studied drag minimization for two-dimensional shapes in Stokes and Low-Reynolds number flows. Nowadays, multi-objective adjoint optimization is increasingly gaining popularity in engineering applications involving CFD since it requires fewer evaluations than any other evolutionary algorithm in problems where the number of design variables is greater than the number of cost functions, such as the self-propulsion of a bulk-carrier ship hull [
16]. On the other hand, meta-model-assisted evolutionary algorithms are state-of-the-art when design space exploration is key [
17].
In terms of mathematical modeling, lifting-surface sheet cavitation can be predicted up to a desirable degree of accuracy using ideal flow-based numerical methods; see the work of [
18,
19] for partially and [
20] for supercavitating regimes. Potential-based methods have been widely used in the prediction of fluctuating pressures on ship hulls induced by marine propellers (see the work of [
21]) operating in regimes of partial as well as tip-vortex cavitation. The main intricacy in predicting the flow around a cavitating lifting surface using non-linear cavity theory, or namely treating the free-streamline problem, lies in the fact that the extent, as well as the shape of the cavity, are unknowns determined as a part of the solution. An additional difficulty arises at the trailing edge of finite extent cavities, where cavity termination modeling is required; see the discussions in the works of [
19,
22]. Typically, the potential-based solvers are used in conjunction with a geometric criterion to determine the shape of the cavity. An iterative scheme is then employed to locate the cavity surface for which the exact boundary conditions are satisfied on all portions of the foil-cavity boundary.
This paper addresses an adjoint prediction model for the case of steady, partially cavitating hydrofoils based on an ideal flow solver. The sensitivities required for the first order gradient-based optimization algorithm are derived analytically using the continuous adjoint method, i.e., the work of [
23]. The objective function follows the assumption of constant pressure on the cavity boundary, whereas the primary and adjoint boundary value problems (BVP) are solved numerically at each optimization cycle using a source-vorticity boundary element (BEM) solver; see the work of [
24,
25]. The hydrofoil/cavity boundary is re-modeled using B-spline parametrization [
11,
26,
27] with the coordinates of the control points included in the design variable vector.
Re-formulating this free-streamline problem, for the case of partially cavitating hydrofoils, in a shape-optimization setup is of great interest since it would provide designers with an alternative tool, less computationally demanding, suitable for the prediction of the pressure profile of cavitating hydrofoils. In addition, the present model, within the limitations of the ideal flow assumptions, could be directly extended to treat the problem of cavitating hydrofoils operating beneath the free surface. Cavitation is often unavoidable for wings moving with constant speed beneath the free surface, and therefore, free-surface effects on cavitating hydrofoil sections must also be accounted for properly during the early design stage; see prediction models based on ideal flow [
28,
29] and a viscous approach in the work of [
30].
Regarding the problem statement and the targeted unknowns, in the present work, we address the problem of predicting the cavity shape for fixed cavity length and unknown vaporization pressure (cavitation number) as presented in the early works of [
22]. This simplification facilitates the verification of the proposed numerical scheme through comparisons against other methods [
18,
22], which is found to predict well both the cavity shape and the cavitation number. The “fixed cavity length” assumption can be waived in future work by means of an iterative scheme, as shown in the work of [
19]. Moreover, the benefits of using the present adjoint method to predict the sensitivity derivatives are highlighted through a convergence study and comparisons against finite differences (FDM). The effects of hydrofoil thickness on the cavitation number and cavity volume are investigated in a parametric case study for hydrofoils based on the NACA 16-series. Finally, concluding remarks are provided along with suggestions for future work and research directions.
2. Inverse Problem
This section presents the mathematical formulation behind the proposed adjoint optimization prediction method for the case of partially cavitating hydrofoils in a steady flow. The formulation of the inverse problem (see
Figure 1) and the assumptions made are discussed in detail. Particularly, the governing partial differential equations for the lifting flow problem of a hydrofoil in steady flow with a given sectional profile and inflow conditions, namely the primal problem, can be solved numerically in the sense of boundary integral equations (BIE), as discussed in
Section 2.1.
In the present work, however, we address the inverse problem of determining the cavity shape and cavitation number for a given cavity length and inflow conditions. The optimal solution must coincide with a streamline, and therefore, we introduce the primal problem as a constraint for the inverse problem to ensure that the optimal solution is found within the context of admissible solutions. The sensitivities required for the first order gradient-based optimization scheme are obtained using the continuous adjoint method. The adjoint boundary value problem (BVP) is also solved numerically in the sense of BIE using the same numerical method as the primal.
Regarding the problem statement, the “fixed cavity length” simplification facilitates the verification of the proposed numerical scheme through comparisons against other methods found in literature, i.e., the work of [
19,
22], that follow the same assumptions. However, the “fixed cavity length” assumption can be waived by means of an iterative scheme, as shown in the work of [
19], in order for our method to consider more realistic applications in future work. For the parametric representation of the hydrofoil with the attached cavity (see
Figure 1), we adopt a clock-wise convention,
with
denoting the trailing edge (TE). The hydrofoil/cavity outline (highlighted in gray and blue in
Figure 1) can be re-modeled for any given set of nodal coordinates using interpolation, with more details presented in
Section 3.1 that follows.
To determine the initially unknown shape of the cavity for a given cavity length, additional information regarding the cavity termination region is essential to the modeling. In this work, we implement the cavity termination model presented in the work of Kinnas et al. [
19]. Particularly, the detachment and termination points of the constant-pressure cavity region are denoted by
respectively, whereas
is the reattachment point as shown in
Figure 1. Based on the parametric representation of the curve
with
. The dot notation
denotes differentiation with respect to the curve parameter
.
In the context of the primary equations, the attached cavity shape is based on an initial guess. The methodology for determining the optimal shape of the cavity boundary
that is presented here refers to an optimization process that produces improved cavity shape estimates (i.e., the boundary segment highlighted in blue in
Figure 1) at each optimization cycle. On the unknown boundary, we assume that the cavitation number is constant and the pressure uniform, an assumption that yields the following cost functional,
where
is the previously unknown target (vaporization) cavity pressure and
the pressure estimate obtained from the primal solver, relying solely on the outline of the hydrofoil/cavity and the inflow conditions. The cavitation number is defined as
where
and
are, respectively, the reference velocity, pressure, and temperature in the flow (usually upstream quantities),
the density of the fluid, and
is the saturated vapor pressure. Particularly, the kernel of the objective function can also be expressed in terms of the non-dimensional pressure coefficient
as follows
Notably, admissible solutions in terms of design variables
must comply with the requirements of incompressible, inviscid, and irrotational fluid motion in the region, i.e., the work of [
24,
25]. The design variable vector consists of the unknown cavitation number and parameters that affect the shape of the attached cavity, to be discussed in
Section 3.1. The primal BVP; see also
Section 2.1, with respect to the disturbance velocity potential
serves as a constraint for the optimization problem, formulated as
with the Kutta condition in Equation (6) expressing the assumption that the tangential velocity on the upper and lower sides of the TE when superimposed is equal to zero; thus, the velocity in the vicinity of the TE is finite. It is important to note that the primal variable
is implicitly dependent on the design variables. The above equations are paired with the following “no-entry” (zero flux) boundary condition
where
,
denote the unit normal and tangential vectors on the boundary of the hydrofoil. Finally, all admissible solutions must also comply with a condition at infinity
Note that in accordance with other works found in the literature, such as the work of [
19], on the transition region
only the “no-entry” boundary condition given in Equation (7) is to be satisfied.
A straightforward approach to obtain an estimate of the sensitivity derivatives for each design variable would be to implement finite differences. However, for central finite differences, this approach requires 2N evaluations of the primal solver, with N denoting the total number of design variables. As an alternative, we implement the continuous adjoint method to produce estimates of the sensitivity derivatives that require fewer evaluations of the primal solver and only two evaluations per optimization cycle.
The derivation of sensitivities for the continuous adjoint method occurs analytically at the level of the partial differential equations. A standard approach for the derivation of the adjoint-state equations is via a Lagrange multiplier
, denoted as the adjoint velocity potential, that is continuous and twice differentiable; see the work of [
11,
12,
23]. It is worth mentioning here that the present formulation is based on the BVP in Equations (5)–(8) and the minimization of the cost functional F as defined by Equation (2), whereas the numerical solution of the primal and adjoint BVPs is obtained in the sense of BIE as discussed in
Section 2.1 that follows. Instead of using analytical techniques, the derivation of the sensitivities can be based on symbolic mathematics to further facilitate the process, as shown in the work of [
31], where an adjoint solver based on the classical Douglas-Neumann panel method is used to tackle the design optimization problem of airfoil sections.
The augmented cost functional consists of integrals on the flow domain
and its boundary consisting of the original hydrofoil geometry superimposed with the attached cavity
,
where
is the Dirac delta generalized function. To obtain the sensitivity derivatives, we take the first variation of the functional, i.e., the work of [
32], with respect to the design variables
as follows
The first term in Equation (10) becomes
The first two terms in Equation (11) appear after the implementation of the Leibnitz rule of integration. The differentiated form of the cost functional is, therefore,
Note that it is not possible to determine
explicitly since the velocity potential is implicitly dependent on the design variables. Using Gauss theorem in conjunction with the boundary condition in Equation (7), the second term in Equation (9) yields
The third term in Equation (9), imposing a stagnation point at the vicinity of the TE, becomes
The tangential vectors in the vicinity of the TE are not dependent on the design variables and therefore
. The first variation of the augmented functional is derived from Equations (10)–(14), after re-arranging terms and implementing integration by parts,
where
serves as the approximation formula for the sensitivity derivatives. The adjoint boundary value problem is introduced so that Equation (16) becomes independent of
The boundary value problem is very similar to the primal; however, here on the cavity boundary, a non-homogeneous Neumann condition is to be satisfied
Since the admissible cavity shapes have fixed end-points
, the variation at these positions along the boundary is zero
In the present work, the pressure attenuation region
is defined by numerical testing, and it is found to be compatible with similar findings in the literature, i.e., the work of [
18,
19]. Based on our formulation at the beginning of the pressure attenuation region, the velocity must be equal to
, or equivalently equal to
. The undefined constant associated with the exterior Neumann boundary value problem Equations (17)–(19) is resolved by assuming that
at the TE. The latter is used in conjunction with the continuity assumption of the adjoint potential, thus allowing us to drop the last two terms on the right-hand side of Equation (15).
2.1. Representation of the Solution Field
The potential
and velocity field
, corresponding to the fluid flow problem, are the solutions to the BVP presented in Equations (5)–(8). This solution must also satisfy the equivalent weak form of the BVP in the sense of BIE. One standard approach to derive the integral equation is via Green’s theorem based on the fundamental solution of the governing equation and the perturbation potential
as the targeted unknown, i.e., the work of [
24,
25]. However, in the present work, we follow an approach based on representing the unknown perturbation velocity field by superimposing solutions of the governing equation
where
and
denote the point source- and vortex-type singularities, solutions to the Laplace equation that also satisfy by definition the required condition at infinity in Equation (8). We differentiate Equation (20) under the integral sign and use a limiting process to derive the integral equation that holds for each point on the boundary [
25]. Then the no-entry boundary condition is formulated in the sense of BIE as follows
Working with the BIE yields a significant dimensionality reduction since it is possible to determine the unknown velocity field by solving Equation (23), which is solely dependent on boundary data. The targeted unknowns for the integral equation are the strengths of the source and vortex-type singularities
5. Discussion
To verify that the proposed method is capable of predicting the sensitivity derivatives, we compared results obtained with the present method against central differences for a selected study case from the work of [
18], as shown in
Figure 5a. The adjoint sensitivities are found to be in suitable agreement with the FDM both in terms of magnitude and sign. These results also justify the additional assumptions made in the mathematical modeling in
Section 2. The
PCavPreMod algorithm for both cases converges to an optimal solution, as indicated by the results presented in
Figure 5b and
Figure 6b. The cavity initialization affects not only the sensitivities near the edges of the cavity but also the convergence rate of the method as shown in
Figure 6b. It is also important to note that the steepest-descend method has a relatively slow convergence among the various first order gradient-based optimization algorithms.
The benefits of using the continuous adjoint method to compute the sensitivities are illustrated in these comparisons, since computing the sensitivities with the present method requires only two evaluations of the BEM solver, i.e., one for the primal problem and one for the adjoint, regardless of the number of design variables. For the same case, approximating the sensitivities using central differences would require two evaluations per design variable and a total of 2N evaluations. The proposed method makes it also possible for the designer to restrict some of the design variables during the early optimization cycles, for example, the xi-coordinates of the control points near the LE, and to restore them by changing the step size later on to achieve a better pressure profile without compromising the computational cost of each optimization cycle. Gradient-based optimization with FDM is not that flexible and most certainly computationally intensive.
In
Figure 7 and
Figure 8, we proceed by presenting the pressure profiles and corresponding cavity shapes for the NACA16–006 at a = 4° and a = 6°, respectively. The pressure profiles and cavitation number predictions are found to be in accordance with the numerical results published in the work of [
18]. However, it is important to note that a wave-like behavior of the pressure profile is observed near the cavity detachment and reattachment points. This does not seem to affect the prediction of the cavitation number or the cavity sectional area, as shown in
Figure 9. One explanation for this behavior comes from the definition of the cost functional itself in Equation (2), which does not contain any information about the derivative of the pressure profile. This issue could be resolved by adding terms that contain the derivatives of the pressure coefficient in the cost functional.
So far, the proposed model has been verified in terms of predicting the pressure profile and cavitation number for cavity lengths equal to half the chord. The parametric case study in
Figure 9 reveals that the developed numerical scheme is also suitable for the prediction of the cavity’s sectional area for a wide range of cavity lengths. This case study is taken from the work of Uhlman [
22]. A specific set of parameters needs to be tuned prior to each simulation contained in
Figure 9. Some of these parameters are included in
Table 2 for the case of a NACA16–006 at a = 4° angle of attack. Since our method is based on an optimization principle, similar results can be obtained with minor changes to these parameters; nevertheless, some interesting trends are observed. The length of the pressure attenuation region, or transition region, is between 0.05% and 0.22% as a percentage of the cavity length. The number of design variables changes between 11 and 30, with the smaller values corresponding to the smallest cavity lengths. This is reasonable since overfitting a B-spline curve is more prone to these wave-line pressure profiles observed in
Figure 7b and
Figure 8b. The number of optimization cycles required to achieve convergence after proper selection of the steepest-descend step size was between 250 and 300 iterations.
In
Figure 10, we present the pressure profiles corresponding to the NACA16–006 at a = 4° for various cavity lengths
. The pressure profile fluctuations are mostly concentrated in the LE region, whereas the pressure profile at the transition zone is very similar to the cavity termination model proposed by Kinnas et al. [
18], as was expected.
6. Conclusions
The problem of steady, partially cavitating two-dimensional hydrofoils with known cavity length is addressed as an inverse problem. The continuous adjoint method based on an ideal flow model is used for the derivation of the sensitivities required for first–order gradient-based optimization. The attached cavity is parametrized using B-splines, and the control points are included in the set of design variables along with the unknown cavitation number. The proposed numerical scheme is compared with other methods that follow the “fixed cavity length” assumption and is found to predict well the cavity shape, volume, and cavitation number. The benefits of using the adjoint method to predict the sensitivity derivatives instead of FDM are illustrated in a selected study case. The proposed method is also found to predict well the effects of thickness on the sectional area of the cavity based on a parametric case study for the NACA 16–006, 16–009, 16–012 sections at a = 4° angle of attack found in the literature.
It is important to note that the proposed optimization scheme is not subjected to any constraints, and therefore it is essential to verify during the optimization process that the attached cavity remains compatible with the physical assumption of the free-streamline problem, i.e., the attached cavity boundary does not intersect with the original hydrofoil boundary. The only intersections allowed are the detachment and reattachment points of the cavity. This issue can be resolved with the use of penalty functions to ensure that the attached cavity geometry is an admissible solution and does not intersect the original hydrofoil geometry between the detachment and reattachment points. Algorithmic refinements in future versions could include improving the convergence rate of the adjoint optimizer and enriching the cost functional with more terms in order to “flatten” the predicted pressure profile.
Overall, this method has been shown to predict well leading-edge cavitation; however, this methodology can also be extended to treat mid-chord cavitation. The present method is also suitable for the prediction of 3D sheet cavitation, strip-wise, when the cavity length chord-wise is a given quantity. Future work is planned toward a more systematic comparison of the present method with experimental data and other methods, as well as the investigation of the effects of camber on cavity shape and volume. Treatment of the ‘direct problem’, where the cavitation number is known, and the cavity shape and length are to be determined upon solution of the problem, is a challenging variation left for future work. In addition, the present model within the limitations of the ideal flow assumptions could be directly extended to treat the problem of cavitating hydrofoils operating beneath the free surface.