6
Comparison of surrogate models for the actual global optimization of a 2D turbomachinery flow J. PETER, M. MARCELET, S. BURGUBURU ONERA Department of CFD and Aeroacoustics BP 72 - 29 av. de la Div. Leclerc, 92322 Chtillon FRANCE [email protected] V. PEDIRODA Universit degli Studi di Trieste Dipartimento di Ingegneria Meccanica via Valerio 10, 34100, Trieste ITALY [email protected] Abstract: This article adresses the issue of selecting surrogate models suitable for the global optimization of 2D turbomachinery flows. As a first step towards this goal the analysis of a family of flows on a two-parameter design space is presented. Four types of surrogate models are considered : least square polynomials, artificial neural networks (multi-layer perceptron and radial basis function) and Kriging. Discussed is the ability of these surrogate functions to give a satisfactory description of the exact function of interest on the design space, during a global optimization. The number of CFD evaluations for an adequate description of the exact function is presented. Key–Words: Turbomachinery, global optimization, surrogate model 1 Introduction Shape optimization is one of the most important ap- plication of computational fluid dynamics (CFD). For example, the drag-reduction of an aircraft with con- straints on the lift, geometry and momentums is a prominent issue of external aerodynamics. In the field of internal flows, minimization of total-pressure losses of a blade row is an important and classical issue. Despite the huge amount of work devoted to aerodynamic shape optimization during the three last decades, no specific algorithm has appeared to be re- ally adequate for all problems or at least for a very wide range of problems. Since the mid 70’s and the landmark papers of Hicks and VanderPlaats, local optimization using the gradi- ent of the functions of interest with respect to the de- sign parameters have focused much attention [12]. In the late 80’s and at the beginning of the 90’s it ap- peared that those gradients could be computed by the so-called adjoint vector method [4] or direct differen- tiation method [5] instead of the costly finite differ- ence method. Local optimization of a parametrized solid shape, combining adjoint vector method, a de- scent method -like feasible descent [7] - and some kind of mesh deformation tool became very popular. ONERA has developped both discrete adjoint vector and discrete direct method in the aerodynamic code elsA [1, 3, 15], and demonstrated its ability to carry out optimization of 3D industrial configurations [2]. In other respects, several authors considered the is- sue of global aerodynamic optimization. Almost all types of global optimization strategies were consid- ered with a significant emphasis on genetic algorithms [6]. The authors interested in this method had to face the bottleneck of the huge cost of the numerous exact evaluations of design requested by the optimization algorithm. To circumvent this issue, many authors re- placed some of the exact evaluations (by the CFD and post-processing code) by those provided by a well de- fined surrogate-model [9, 10]. This article deals with the problem of global optimiza- tion for transonic flows [11], focusing on the actual search for the most adapted surrogate model for a tur- bomchinery design optimization problem. It is orga- nized as follows. Geometry, governing equations and design space are presented in section 2. The surrogate models we consider are detailed in section 3. The abil- ity of these surrogate functions to give a satisfactory description of the exact function of interest on the de- sign space is discussed in section 4. 2 Description and analysis of the tur- bomachinery flow 2.1 Nominal geometry The considered test case is derived from the stator blade of VEGA2 configuration, which is a classical stator rotor turbine configuration [13]. Due to the high cost of global optimisation, only a 2D geometry de- duced from an appropriate projection of the 3D ge- ometry at the hub, is studied. The 4 domains mesh Proceedings of the 7th WSEAS International Conference on Simulation, Modelling and Optimization, Beijing, China, September 15-17, 2007 46

Comparison of surrogate models for the actual global

  • Upload
    others

  • View
    6

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Comparison of surrogate models for the actual global

Comparison of surrogate models for the actual global optimizationof a 2D turbomachinery flow

J. PETER, M. MARCELET, S. BURGUBURUONERA

Department of CFD and AeroacousticsBP 72 - 29 av. de la Div. Leclerc, 92322 Chtillon

[email protected]

V. PEDIRODAUniversit degli Studi di Trieste

Dipartimento di Ingegneria Meccanicavia Valerio 10, 34100, Trieste

[email protected]

Abstract: This article adresses the issue of selecting surrogate models suitable for the global optimization of 2Dturbomachinery flows. As a first step towards this goal the analysis of a family of flows on a two-parameter designspace is presented. Four types of surrogate models are considered : least square polynomials, artificial neuralnetworks (multi-layer perceptron and radial basis function) and Kriging. Discussed is the ability of these surrogatefunctions to give a satisfactory description of the exact function of interest on the design space, during a globaloptimization. The number of CFD evaluations for an adequate description of the exact function is presented.

Key–Words:Turbomachinery, global optimization, surrogate model

1 Introduction

Shape optimization is one of the most important ap-plication of computational fluid dynamics (CFD). Forexample, the drag-reduction of an aircraft with con-straints on the lift, geometry and momentums is aprominent issue of external aerodynamics. In thefield of internal flows, minimization of total-pressurelosses of a blade row is an important and classicalissue. Despite the huge amount of work devoted toaerodynamic shape optimization during the three lastdecades, no specific algorithm has appeared to be re-ally adequate for all problems or at least for a verywide range of problems.Since the mid 70’s and the landmark papers of Hicksand VanderPlaats, local optimization using the gradi-ent of the functions of interest with respect to the de-sign parameters have focused much attention [12]. Inthe late 80’s and at the beginning of the 90’s it ap-peared that those gradients could be computed by theso-called adjoint vector method [4] or direct differen-tiation method [5] instead of the costly finite differ-ence method. Local optimization of a parametrizedsolid shape, combining adjoint vector method, a de-scent method -like feasible descent [7] - and somekind of mesh deformation tool became very popular.ONERA has developped both discrete adjoint vectorand discrete direct method in the aerodynamic codeelsA [1, 3, 15], and demonstrated its ability to carryout optimization of 3D industrial configurations [2].In other respects, several authors considered the is-sue of global aerodynamic optimization. Almost all

types of global optimization strategies were consid-ered with a significant emphasis on genetic algorithms[6]. The authors interested in this method had to facethe bottleneck of the huge cost of the numerous exactevaluations of design requested by the optimizationalgorithm. To circumvent this issue, many authors re-placed some of the exact evaluations (by the CFD andpost-processing code) by those provided by a well de-fined surrogate-model [9, 10].This article deals with the problem of global optimiza-tion for transonic flows [11], focusing on the actualsearch for the most adapted surrogate model for a tur-bomchinery design optimization problem. It is orga-nized as follows. Geometry, governing equations anddesign space are presented in section 2. The surrogatemodels we consider are detailed in section 3. The abil-ity of these surrogate functions to give a satisfactorydescription of the exact function of interest on the de-sign space is discussed in section 4.

2 Description and analysis of the tur-bomachinery flow

2.1 Nominal geometryThe considered test case is derived from the statorblade of VEGA2 configuration, which is a classicalstator rotor turbine configuration [13]. Due to the highcost of global optimisation, only a 2D geometry de-duced from an appropriate projection of the 3D ge-ometry at the hub, is studied. The 4 domains mesh

Proceedings of the 7th WSEAS International Conference on Simulation, Modelling and Optimization, Beijing, China, September 15-17, 2007 46

Page 2: Comparison of surrogate models for the actual global

with matching joins is presented in figure 2, wherethe caracteristic length of the blade,L = 90mm,can be measured. The total number of mesh points is11816. Periodicity conditions are applied at the lowerand upper borders. The aerodynamic data of the

x

y

­50 0 50 100

­100

­50

0

Figure 1: mesh of nominal 2D configuration

Figure 2: iso Mach-number lines of nominal 2D con-figuration

subsonic inlet areTi = 288, 27K, pi = 101325Pa.The direction of the flow at the inlet is also con-strained along thex axis. At the outlet the staticpressure is fixed. Its ratio to the inlet total pressureis ps exit/pi = 0.35. The eddy viscosity is deter-mined by Sutherland law The Reynolds number ofthe flow based on the stagnation condition is thenRe = (ρiaiL)/µ(Ti) = 2, 09.105

2.2 Flow computation

The Reynolds averaged Navier-Stokes equations areconsidered. The turbulent viscosity is computedby Smith k − l model. The seven-equation non-linear system is solved numericaly by the ONERAfinite-volume cell-centred code for structured meshes,called elsA [15]. Second order Roe-flux (usingMUSCL approach with Van Albada limiting function)is used for mean flow convective term, the first or-der Roe flux is used for turbulent variable convectiveterm, centred fluxes with interface centred evaluationof gradients are used for both diffusive terms. Cen-tred formula is used for the source term of turbulentvariables equations. More details can be found in ref-erence [14], which also indicates a good comparisonwith experimental data for the original 3D geometry.Due to the low value of the static pressure at the exit,the flow is sonic at the narrowest section between twoblades, near the trailing edge (just like in a shockednozzle). Two strong shock lines (one going along thex axis, the other being oblique) start from the trailingedge of the blade. A view of the iso-Mach numberlines in presented.

2.3 Design space

The geometric deformation of the blade consists inmoving the trailing edge along bothx andy axis. Theleading edge is fixed. The deformed shape of the bladeis defined by a smooth algebraic function of the curvi-linear coordinate. The displacement is damped outfrom the solid shape to the fixed boundary of the bladedomain (see mesh plot). The maximum displacementin each direction is±0.4 mm. The displacement alongthe x axis is the first design parameterα1, the dis-placement along they axis is the second design pa-rameterα2. The main output of the computation isthe total pressure at the exit, computed by integrationon the exit surface. Its non dimensional value (actualvalue divided by inlet value) varies from 0.918 to .924,on the design space. Of course such low values appearbecause of the strong shocks. This variation is largeenough to define an optimization problem.A large regular sampling of design space with21×21points is considered. All corresponding flows arecomputed with exactly the same numerical parame-ters. The explicit space residual of the scheme is de-creased for all design by four to five orders of mag-nitude for all computations. The plot of the exittotal pressure on the design space is presented. Itwas checked that the variation of total pressure whenthe design changes corresponds to a change in thestrength of the oblique shock.

Proceedings of the 7th WSEAS International Conference on Simulation, Modelling and Optimization, Beijing, China, September 15-17, 2007 47

Page 3: Comparison of surrogate models for the actual global

a_1

­0.4­0.2

00.2

0.4 a_2­0.4

­0.2

0

0.2

0.4

Y

Z

X

Figure 3: exit total pressure as function of design pa-rameters (axis plane does not correspond to zero)

3 Brief description of the surrogatemodels

The exact function of interest (exit total pressure forthe application) isJ (α). The description of the surro-gate models is limited to the case of a two-componentdesign vectorα. The number of available exact evalu-ations of functionJ (α) is notedns. The mean squareerror (MSE) on the sampling between the exact func-tion J (α) and the surrogate modelJ (α) is denotedby E .

E =12

ns∑

i=1

(J (αi

1, αi2) − J (αi

1, αi2))2

The vector of the exact evaluations isJs. Js =[J (α1), . . . ,J (αns)

]T

3.1 Least square polynomialsThis method is both simple and well-known. Henceits presentation is limited to a degree two polynoms,altough polynoms of degree two, four, six and eighthave been considered for the application. Suppose

J (α) = Ψ0+Ψ1α1+Ψ2α2+Ψ11α21+Ψ12α1α2+Ψ22α

22

The coefficients of the polynom are found by minimis-ing the MSE on the sampling. This leads to

Ψ = (XT X)−1XTJs

With Ψ = [Ψ0 Ψ1 Ψ2 Ψ11 Ψ12 Ψ22]T and

X =

1 α11 α1

2 (α11)

2 α11α

12 (α1

2)2

1 α21 α2

2 (α21)

2 α12α

22 (α2

2)2

......

......

......

1 αns1 αns

2 (αns1 )2 αns

1 αns2 (αns

2 )2

3.2 Multilayer perceptronAlthough a wide range of multi-layer perceptrons canbe conceived, refering to the universal approximationtheoremfor neural networks[16], we have decided touse the multi-layer perceptron with just one hiddenlayer pictured in Fig 4. The activation function of thehidden layer units is the sigmoide function, and thefinal output of the network is simply a weighted sumof the hidden layer outputs. A bias value is addedto the inputs and to the outputs of the hidden layer.Given a set ofns exact computed responses, the learn-

JId

1

fnf

f1

α1

α2

1

a2nf

bnf

b0

b1

a0nf

a21

a11

a01

a1nf

Figure 4: two layers perceptrons

ing process aims at determining the set of the4nc + 1unknown coefficientsω = [a11, . . . , bnc ] so that themean squared errorE is minimal, where

J (α1, α2) = b0 +nc∑

j=1

bjtanh (a0j + a1jα1 + a2jα2)

To find such a set of weights, a steepest descent opti-mization is performed. Once the gradient of the MSEwith respect to the unknown coefficients is calculated,the Wolfe method is used to minimize the MSE inthe gradient opposite direction. An iterative processis carried out till the gradient value is small enough.The initialization of the unknown coefficients set is animportant matter for the method. In the present work,the initial guess of the gradient based search is chosenrandomly.

3.3 Radial basis function networkThe radial basis function network[17] used in thisstudy is composed ofnc radial functionsfi

fi(α1, α2) = exp

(−1

2(α1 − αi

1)2 + (α2 − αi

2)2

r2i

)

where(αi

1, αi2

)andri are respectively the center and

the radius of the radial function. The output of thenetwork is given by the following formula:

J (α1, α2) =nc∑

i=1

aifi(α1, α2)

Proceedings of the 7th WSEAS International Conference on Simulation, Modelling and Optimization, Beijing, China, September 15-17, 2007 48

Page 4: Comparison of surrogate models for the actual global

whereA = [a1, a2, . . . , anc ] is a set of coefficientsto determine depending on the exact function to ap-proximate. Given the vector ofns (ns ≥ nc) ex-act valuesJs, the minimization of the (MSE) leadsto A = (XT X)−1XTJs whereX is the followingns × nc matrix

X =

f1(α11, α

12) . . . fnc(α1

1, α12)

......

...f1(αns

1 , αns2 ) . . . fnc(α

ns1 , αns

2 )

Taking the assumption that the number of centers hasbeen fixed, the RBF approximation model is fully de-termined once the center and radius of every functionis chosen. In this article, every function has the sameradius

r =1nc

(max

1≤i,j≤ns

√(αi

1 − αj1)2 + (αi

2 − αj2)2)

Moreover, we have picked the radial function centersto coincide with the exact function evaluations points,so thatA = X−1Js

3.4 Kriging

Considering that the value ofJ at the center of the de-sign space is a good approximation of its mean valuem, simple Kriging is considered [8]. The statisticalbasis of the method cannot be described in the limitedspace of this article. Based onns sampling points, theformula of the simple Kriging is a linear interpolationof the known values (applied toZ(α) = J (α) − m )

Z(α) = KαT C−1Zs = ZT

s C−1Kα

(as matrixC is symmetric) with

Kα = [Cv(Z(α),Z(α1)), ..., Cv(Z(α),Z(αns )]T

Zs = [Z(α1), . . . ,Z(αns)]T

C =

Cv(Z(α1),Z(α1)) . . . Cv(Z(αns),Z(α1))...

......

Cv(Z(α1),Z(αns)) . . . Cv(Z(αns),Z(αns))

The method is fully defined when the functionCvis selected (it is the covariance of the functionZin the statistical framework of the method descrip-tion). Most often the following function is castedCv(Z(αa),Z(αb)) = σ2exp(−θ||αa −αb||) The pa-rameters (σ, θ) are defined in this study as proposedby Jouhaud et al. [11].

4 Evaluation of the surrogate modelfor design optimization

The goal of this section is to discuss the efficiencyof the surrogate models for the sake of optimization.For the studied two-parameter problem, the computa-tion of the surrogate models coefficients is neglectiblecompared to the cost of one CFD computation. Forthis reason the efficiency of a surrogate approxima-tions for the optimization problem can be measuredby the requested number of exact evaluations.For all surrogate functions the strategy of samplingenrichment is the same :a- start with a large enough sampling to determine allcoefficients. This initial sampling is built on latin hy-percubes.b- add points if criterion (C*) -see below- is notachievedb1- if the min and max locations of the surrogatemodel are not all in the sampling add the missing oneb2- else add to the sampling the four points with max-imum distance to the points of the sampling

4.1 Definition of the evaluation criterion.Main results

The function of interest exhibits one global maximum(-0.4,0.4), one local maximum (0.04, 0.4), two localminima (-0.2,-0.4), (0.4,0.08) and one global minima(0.4,-0.4) on the 21×21 sample. A surrogate recon-struction will be tested against the following criterion:(C1) abilitiy to build an approximation with mean er-ror E on the 21×21 sampling lower than2.10−3. Themean errorE being adimensioned by the variation ofexit static pressure on the design space

E =

√∑21

i,j=1

(pi(α

ij1 , αij

2 ) −J (αij1 , αij

2 ))2

212 × (pi max − pi min)

(C2) find the two local maxima, their location beingexact or in a neighboring point of the exact place onthe 21×21 sampling.(C3) find the global and local maxima at the rightplace on the21 × 21 sampling.The reason for (C2) is that the second order deriva-tives values are rather low near the maxima so that(C3) is difficult to reach. The results are summarizedin table 1. (IT) indicates the number of exact evalu-ations needed to satisfy a criterion. Indicated is alsothe value ofE after 100 CFD computations for all foursurrogate models.

Proceedings of the 7th WSEAS International Conference on Simulation, Modelling and Optimization, Beijing, China, September 15-17, 2007 49

Page 5: Comparison of surrogate models for the actual global

Sur. Mod C1 IT C2 IT C3 IT E(100)

Pol. 2 KO - KO - KO - 2.3e−3

Pol. 4 KO - KO - KO - 2.1e−3

Pol. 6 OK 56 KO - KO - 1.2e−3

Pol. 8 OK 73 OK 73 OK 73 4.9e−4

Mu.Pe. OK 300 KO - KO - 2.5e−3

RBF OK 37 OK 38 OK 46 1.6e−3

Sim Kri OK 26 OK 62 OK 170 4.0e−4

Table 1: Summary of surrogate model performances

4.2 Discussion of the results

From a general point of view, it is clear that RBF andSimple Kriging lead to the best results. Both of themsatisfy the (C2) criterion with a reasonable number ofexact evaluations. As concerning (C3) only (RBF) anddegree-8 polynom satisfy it with an acceptable num-ber of exact evaluations. The surrogate function sur-faces satisfying (C3) are presented in figures 5 and 6.More details are given below concerning the differentsurrogate models.• Least square polynomials

a_1

­0.4­0.2

00.2

0.4 a_2­0.4

­0.2

0

0.2

0.4

Y

Z

X

Figure 5: Kriging surface satisfying (C3)

Obviously the exact surface cross-sections (α1 =const,or α2=const on Fig.3) are much more complicatedthan parabols, which means that the exact functioncan not be well fitted with a second order polynom.Considering the plots obtained with degree-4 and 6polynoms, this seems also to be the case. As concern-ing the degree 8 polynom, construction algorithm isstarted with a 45 sampling (number of coefficients).At step (b1) 28 points are added leading to 73 points

a_1

­0.4­0.2

00.2

0.4 a_2­0.4

­0.2

0

0.2

0.4

Y

Z

X

Figure 6: RBF surface satisfying (C3)

for the second sampling. A more sophisticated strat-egy of sampling enrichment could have led to lowernumbers of exact evaluations to satisfy the (C*) crite-rions. This surrogate function obtained based on the73 exact evaluations has almost the same aspect as theexact one.• Radial basis function networkIt has also been checked for (RBF) network that the re-sults depend only slightly on the initial six-point sam-pling.• Multi-layer perceptronTwo multi-layer perceptrons have been tested, respec-tively with 5 and10 units in the hidden layer. The firstrequires almost the whole exact CFD evaluations tosatisfyC1, as for the second, up to200 evaluations areactually needed. But in spite of the global optima be-ing located from42 evaluations, none of these percep-trons succeeds in locating the local optima. Besides,from a sampling of50 evaluations, the computed errordoes not vary much from2.4 10−3.• Simple KrigingThis method leads to the lower error(E) after a def-inite number of iterations. Nevertheless it is not themost efficient for the accurate detection of the twomaxima.

5 Conclusion

This article presented how four types of surrogatemodels can be used in an industrial context to designa stator blade so as to optimize the total pressureat the exit. Among all the models that have beentested, the simple Kriging model and the radial basis

Proceedings of the 7th WSEAS International Conference on Simulation, Modelling and Optimization, Beijing, China, September 15-17, 2007 50

Page 6: Comparison of surrogate models for the actual global

function network appear to give the best resultsin terms of approximation of the exact function.However, the Kriging model used in this study hasnot taken advantage of its error estimation, whichcould have improved the approximation results.Besides, including the available gradient informationcould also be used as a way to enhance the level ofapproximation reached by the best models. Only a 2Dconfiguration has been considered, we plan to extendthe framework depicted here to 3D cases.

Acknowledgements:This work was supported by theproject NODESIM-CFD ”Non-Deterministic Simula-tion for CFD-based Design Methodologies” fundedby the European Community represented by the CEC,Research Directorate-General, in the 6th FrameworkProgramme, under Contract No. AST5-CT-2006-030959.

References:

[1] J. Peter,Discrete adjoint method inelsA (partI) : method/theory.Proceedings of7th ONERA-DLR Aerospace Symposium. 2006.

[2] I. Salah el Din, G. Carrier, S. MoutonDiscreteadjoint method inelsA (part II) : applicationto aerodynamic design optimisation.Proceed-ings of 7th ONERA-DLR Aerospace Sympo-sium. 2006.

[3] J. Peter, F. Drullion, Large stencil viscous fluxlinearization for the simulation of 3D turbulentflows with backward Euler schemes.Computersand Fluids36, 2007, pp. 1007–1027.

[4] A. Jameson, Aerodynamic design via controltheory Journal of Scientific Computing3(3),1988, pp. 233–260

[5] O. Baysal, M. Eleshaky, Aerodynamic designsensitivity analysis method for the compressibleEuler equationsJournal of Fluids Engineering113(4), 1991, pp. 681–688

[6] D. E. Goldberg,Genetic algorithms in searchoptimization and machine learning.AddisonWeasley. 1989.

[7] G. N. Vanderplaats,Numerical optimization forengineering design3rd ed., VR and D. 1999.

[8] J. Sachs, S. Schiller, W. Welch, Designs forcomputer experimentsTechnometrics31, 1989,pp. 41–47

[9] C. Poloni, P. Loris, L. Larussi, S. Pieri,V. Pediroda, Robust Design of Aircraft Compo-nents : a multi-objective optimisation problem.VKI Lecture series 2004-07, 2004

[10] K.C. Giannacoglou, D.I. Papadim-itriou,I.C. Kampolis, Coupling evolutionaryalgorithms, surrogate models and adjoint meth-ods in inverse design and optimization problemsVKI Lecture series 2004-07, 2004

[11] J.-C. Jouhaud, P. Sagaut, M. Montagnac, J. Lau-renceau, A surrogate-model based multidisci-plinary shape optimization method applicationto a 2D subsonic airfoil.Computers and Fluids36, 2007, pp. 520–529

[12] G. VanderPlaats, R. Hicks,Numerical airfoil op-timization using a reduced number of design co-ordinates.TMX 73151, NASA, 1976.

[13] J. Delery, R. Gaillard, G. Losfeld, C. Pendria,Study of the iso cascade in the ONERA S5Chwind tunel. Pressure probe and LDV measure-ments.ONERA RT 192/1865 DAFE/Y. 1999.

[14] F. Renac, C.-T. Pham, J. Peter,Sensitivity Anal-ysis for the RANS equations coupled with lin-earized turbulence modelAIAA Paper 2007-76839. 2007.

[15] L. Cambier, M. Gazaix,elsA: an efficient object-oriented solution to CFD complexityAIAA Pa-per 2002-0108, 2002.

[16] K. Hornik, M. Stinchcombe and H. WhiteMul-tilayer Feedforward Networks are Universal Ap-proximators Neural Networks, Vol. 2, No. 5,pp. 359-366, 1989.

[17] M. Orr An Introduction to Radial Basis FunctionNetworksCenter for Cognitive Science, Univer-sity of Edinburg, Scotland, June 1999.

Proceedings of the 7th WSEAS International Conference on Simulation, Modelling and Optimization, Beijing, China, September 15-17, 2007 51