INTRODUCTION 16 American Scientific Research Journal for Engineering, Technology, and Sciences (ASRJETS) ISSN (Print) 2313-4410, ISSN (Online) 2313-4402 © Global Society of Scientific Research and Researchers http://asrjetsjournal.org/ Consistency, Stability and Convergence of the Viscous Garabedian and Korn (VGK) Method Dr. Salah.J.S. El-Ibrahim* Lecturer, College of Aviation Technology, P.O. Box 3357, Hawally 32034, Kuwait Email: s.alhilat@collegeofaviation.com, Salah13@gmail.com Abstract The Viscous Garabedian and Korn (VGK) is a computational fluid dynamics (CFD) code, used for the prediction of viscous flows around two dimensional aerofoil sections (mapped onto a circular grid) in a subsonic free stream. The code is written in “Fortran 77” and solves the full potential flow equations using a finite difference algorithm. The code has been recently published commercially with a data preparation routine to facilitate its use [1]. The present work investigates the code’s consistency, stability and convergence in the hope that it will shed light on the code’s performance and limitations under various flow conditions and code’s numerical parameters. Keywords: Artificial Viscosity; Backward Differencing Scheme; Central Differencing Scheme; Conformal Mapping; Consistency; Convergence; Grid Resolution; Numerical Oscillations; Relaxation Factor; Stability; Viscous Garabedian and Korn (VGK). 1. Introduction Analytical solutions to the governing flow equations (the full Navier-Stokes equations) do not exist for the general case. Hence solutions must be obtained either experimentally or computationally. Computational fluid dynamics (CFD) involves the numerical solution of the flow equations governing fluid motion. The main uses of CFD in aeronautical applications fall under two main categories [2]. First, the provision of reliable aerodynamic predictions, enabling designers to produce “better aeroplanes”. Second, there is the possibility of using CFD for purely scientific investigations. It seems possible that numerical simulation of complex flows, not readily accessible to experimental measurements, can provide new insights into the underlying physical processes. In particular, computational methods offer a new tool for the study of turbulent structures and the mechanism of transition from laminar to turbulent flows. Cavity flows and surface irregularities may also fall under such complex flow categories, particularly in three-dimensional viscous flows. ------------------------------------------------------------------------ * Corresponding author. American Scientific Research Journal for Engineering, Technology, and Sciences (ASRJETS) (2020) Volume 70, No 1, pp 16-33 17 Reflecting on the different physical behaviour of flow fields, most computational techniques and algorithms are tailored for a particular flow field [3], hence they tend to have their own (specific) applications and inherent limitations even within the intended application.Accordingly, any computational solution must be verified either experimentally or through comparison with other previously verified solutions to assess its validity and limitations. Once such criteria are established the use of the computational solution can be justified. Experimental work, therefore, -although time consuming and expensive on resources- is still a necessity, particularly if no other previously validated solution exists to compare with the one under investigation. In addition to the validation/verification process, the computational solution must also be assessed for the reliability and quality of its numerical solution. This can be done by analysing the Stability, Consistency, and Convergence of the algorithm(s) used in the numerical calculations. The present work attempts to investigate these aspects (Stability, Consistency and Convergence) of the VGK method and to describe the factors affecting its solutions under various flow conditions. 2. The VGK Method The Viscous Garabedian and Korn (VGK) is a computational fluid dynamics (CFD) code, used for the prediction of viscous flows around two dimensional aerofoil sections (mapped onto a circular grid) in a subsonic free stream. The code is written in “Fortran 77” and solves the full potential flow equations using a finite difference algorithm. The code was published commercially with a data preparation routine to facilitate its use [1]. Because of its relative simplicity in use and computational economy, VGK offers a convenient method for the assessment of the effects of small deviations from a specified aerofoil profile, such as may be caused by damage or manufacturing errors [4]. The reliable assessment of such imperfections enables a decision to be made as to whether to tolerate, repair, or reject the surface under investigation. In the aircraft industry the decision involves three important considerations: flight safety, money and time. However, to reach a decision the assessment process itself may be both costly and lengthy and in the end may not be fully reliable. This highlights the importance of relying on a code that will provide quick and reliable answers to the decision maker. VGK offers simplicity of use and had been proved [5] to provide valid solutions to high speed subsonic flows (up to the point where weak shock waves may exist) around aerofoils with surface imperfections provided that these imperfections do not sharply change the curvature of the profile, also under flow conditions where weak shock waves can present in the flow. Therefore, for a simple and direct assessment method it is hoped that VGK will provide quick and reliable answers. 2.1 VGK Capabilities and Limitations The Viscous Garabedian and Korn (VGK) code is a computational fluid dynamics code written in Fortran 77, and based on the coupled solution of the inviscid and viscous flow regions of two-dimensional transonic attached flow past an aerofoil in a subsonic free stream. The full potential equations governing the inviscid flow region, formulated on the assumptions of steady and compressible flow of air (with specific heats ratio  =1.4), are solved by a finite difference technique. The viscous flow region is solved using the integral equations governing the laminar and turbulent boundary layer components, and solutions involve the displacement and momentum thickness distributions of the boundary layer and wake, which are calculated allowing for the effects of the pressure distribution obtained from the inviscid flow solution. The boundary conditions for the inviscid American Scientific Research Journal for Engineering, Technology, and Sciences (ASRJETS) (2020) Volume 70, No 1, pp 16-33 18 flow solution specify a non-zero normal velocity at the aerofoil surface to allow for the growth of the boundary layer displacement surface, and a jump in velocity across the dividing streamline to allow for the wake thickness and curvature effects. This introduces the concept of “Equivalent Inviscid Flow-EIF”. This means that the “actual inviscid” flow region is replaced by an “equivalent inviscid flow region, that, by definition, extends right onto the wall (the aerofoil surface), and a convenient line in the wake dividing the flow of the upper and lower surfaces of the aerofoil. VGK employs a central-difference and a backward difference schemes (for fully subsonic and supersonic flow regions respectively) of the Taylor series expansion of the full potential flow equation (equation (1) below). VGK uses computational grid in the solution which is an O-type grid. It is generated by conformally mapping the infinite region outside the aerofoil into the inside of a unit circle. The grid points are defined by the intersection of radial lines emanating from the aerofoil surface and concentric circles circumferentially placed around the aerofoil, so the grid is allowed to touch the aerofoil surface. The computational grid is calculated by the VGK code utilising the aerofoil surface co-ordinates. VGK requires that for the grid to be satisfactory, it is necessary (but not sufficient) that the input aerofoil co-ordinates must be closely pitched, specially near the leading and trailing edges, and also be sufficiently smooth to yield smooth first and second order derivatives. VGK employs an iterative scheme to calculate the computational grid using a spline interpolation of the input aerofoil co-ordinates for each iteration step, and with about 30 iteration steps convergence is rapid for most of the aerofoil geometries of interest. Grid sequencing is employed in VGK to reduce the truncation error (residuals) at all the grid nodes and only two grids are used in VGK for this purpose: a coarse grid constituting 80 radial lines x 15 circumferential circles, and a fine grid that constitutes 160 lines x 30 circles. The VGK solution process starts with the evaluation of the computational grid. Once this is achieved, the iteration solution of the finite difference equations for the inviscid flow potential proceeds by a relaxation method in which the values of potential obtained at the end of each iteration step are multiplied by a factor (called a relaxation factor). When this factor is greater than unity the process is termed over relaxation and when under unity the term under-relaxation is used. The associated factors are called over relaxation or under- relaxation factors respectively. Over- or under-relaxation is used to increase the rate of convergence or avoid divergence depending on the form of the finite difference equations. In VGK different relaxation factors are used for the finite difference equations corresponding to subsonic and supersonic flow regions and the default values of these factors are set at 1.9 and 1.0 respectively. A relaxation process is also used in introducing the boundary conditions corresponding to the viscous flow element into the inviscid flow. A number of inviscid flow iterations (typically 5) are carried out between each occasion the boundary conditions are updated, and the calculated changes to these boundary conditions are decreased by an under-relaxation factor (typically 0.15 for the fine grid and 0.075 for the coarse grid). The final coupled (viscous-inviscid) solution is considered to be converged when the fine grid residuals in both the viscous and inviscid equations have reduced to a level beyond which any changes, as a result of further iterations, will have zero or negligible effects on the calculated flow parameters. In addition to the basic pressure distribution over the aerofoil surface, VGK provides a number of local surface parameters, such as Mach number (M), pressure ratio (local static pressure/total stagnation), and pressure coefficient, and overall parameters such as lift, drag and pitching moment coefficients. Data related to boundary layers and wake are also output, these include: shape parameter, displacement and momentum thicknesses, skin friction coefficient and boundary layer thickness for the upper and lower surfaces boundary layer, and pressure coefficient, pressure ratio, and Mach number for the lower and upper parts of the wake. American Scientific Research Journal for Engineering, Technology, and Sciences (ASRJETS) (2020) Volume 70, No 1, pp 16-33 19 Certain “numerical control parameters” are used in VGK to control the grid density, rate of convergence and the form of the finite difference scheme employed in any supersonic flow region. These parameters influence the results obtained by any VGK run, hence they must be carefully chosen to generate the most reliable data. However, VGK uses default values for these parameters (known as “default parameters”) which are generally suited for most flow conditions provided no strong shock waves or separated boundary layers are present. For flows with moderate shock waves or boundary layer being close to separation these parameters may be changed to enable convergence and “reliable” data to be obtained. Table (1) gives a summary of these parameters and their related influence on the calculated flow. The VGK code has some limitations; for example, there is no method in VGK for predicting boundary layer transition location, & the user has to input the location for the upper and lower surfaces. If the calculated local skin friction coefficient becomes less than a limiting value (=2x10 -6 ) separation of the laminar boundary layer is assumed to occur at this location and the transition point is moved to this location instead of the specified one. This may be thought of as a simplified model for a short bubble laminar separation/ turbulent re-attachment which would normally occur in practice [6]. There is also no check applied within VGK that the boundary layer could actually become turbulent at the specified transition points and remain turbulent thereafter. Solutions in VGK will not converge for difficult flow conditions associated with strong shock waves (Mshock >1.4) or regions of extensive boundary layer separation. Table 1: VGK Numerical parameters PARAMETER & DEFINITION VALUE EFFECTS OF CHANGES ON THE FLOW DEFAULT MAX. MIN. a). NSG, Number of the radial mesh lines in the fine grid * 160 160 96 Very slight effects for flows without shocks, Lower values give less steep shock pressure rises, and milder effects on the boundary layer b). NSC, Number of iterations of the inviscid flow element using the coarse mesh 100 May be double d (see f below) 0 Default value generally adequate to reduce the level of residuals for the commencing fine grid convergence c). NSF, Number of iterations of the inviscid flow elements using the fine mesh 200 May be double d (see f below) ---- Default value generally provides adequate convergence level; a further few hundred iterations may be needed if the residuals are declining, or if the CL value has not stabilised after 200 iterations d).XS, The subsonic flow relaxation parameter 1.9 <2 >0 For difficult flows lower values may be needed to avoid divergence, values down to 1.6 may confer advantages e).XM, The supersonic flow relaxation parameter 1 1 > 0 Same as XS above, lower values down to 0.8 may confer advantages f).EP( ),Artificial viscosity parameter ** , and QCP( ),Partially- conservative parameter ***  =0.8  =0.25 These two parameters jointly influence the computed supersonic flow. American Scientific Research Journal for Engineering, Technology, and Sciences (ASRJETS) (2020) Volume 70, No 1, pp 16-33 20 NOTES on table (1): * There is no facility in VGK for changing the number of circumferential lines in the fine grid. ** The artificial viscosity parameter is  is added into the finite differencing equations to allow for the inclusion of higher order terms and reduce the discretisation error. *** The partially conservative parameter  is a shock point operator [13] , it is assigned any value between 0.0 and 1.0 and is meant to simulate conservative  1 or non-conservative schemes  0 . Thus improving the pressure jump through a shock wave. However, for flows with moderate difficulties (1.2