11
TOWARDS UNDERSTANDING THE INFLUENCE OF GRADIENT RECONSTRUCTION METHODS ON UNSTRUCTURED FLOW SIMULATIONS Fadi Mishriky and Paul Walsh Department of Aerospace Engineering, Ryerson University, Toronto, Ontario, Canada Email: [email protected]; [email protected] Received May 2016, Accepted March 2017 No. 16-CSME-75, E.I.C. Accession 3961 ABSTRACT In this paper, the formal order of accuracy of three commonly used gradient reconstruction methods is derived. The analysis showed that the Green–Gauss cell based (GGCB) method is intrinsically inconsistent, due to the leading error term that is independent of the mesh spacing. On the other hand, the Green–Gauss node based (GGNB) and the Least Squares cell based (LSCB) methods achieved a minimum of 1st order accuracy regardless of the mesh geometric properties. Implications of the former results were practically tested on four CFD applications to show that in three out of four cases, the LSCB method achieved the highest order of accuracy. In terms of the computational expenses, the GGNB method consumed 9–34% additional time when compared to the fastest converging method in each test case. Both the GGCB and the LSCB methods consumed nearly the same computational time to reach convergence. Keywords: gradient reconstruction methods; order of accuracy; error estimation; unstructured grid solver; computational fluid dynamics. VERS UNE COMPRÉHENSION DE L’INFLUENCE DES MÉTHODES DE RECONSTRUCTION DU GRADIENT SUR LA SIMULATION NON-STRUCTURÉE RÉSUMÉ L’ordre formel de l’exactitude des trois méthodes de reconstruction du gradient fréquemment utilisées a été dérivé. L’analyse démontre que la méthode de Green–Gauss basé sur la cellule (GGCB) est intrinsèquement inconsistante à cause du terme d’erreur fréquent qui est indépendant de l’écart de maillage. D’un autre côté la méthode de Green–Gauss basé sur le nIJud et sur la cellule du plus petit carré (LSCB) a obtenu le minimum d’exactitude du 1er ordre en dépit des propriétés géométriques de maillage. Les implications des premiers résultats ont été pratiquement testées sur quatre applications CFD pour démontrer que sur trois des quatre cas la méthode LSBC a obtenu le plus haut niveau d’exactitude. En termes de dépenses informatiques la méthode a utilisé 9–34% de temps additionnel en comparaison de la méthode de convergence la plus rapide dans chaque cas testé. Les méthodes GGCB et LSCB ont utilisé presque le même temps informatique pour atteindre la convergence. Mots-clés : méthodes de reconstruction du gradient; ordre d’exactitude; estimation d’erreur; résolution de réseau non-structuré; dynamique des fluides computationnelle. Transactions of the Canadian Society for Mechanical Engineering, Vol. 41, No. 2, 2017 169

Towards Understanding the Influence of Gradient ... · TOWARDS UNDERSTANDING THE INFLUENCE OF GRADIENT RECONSTRUCTION METHODS ON UNSTRUCTURED FLOW SIMULATIONS Fadi Mishriky and Paul

  • Upload
    lyquynh

  • View
    226

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Towards Understanding the Influence of Gradient ... · TOWARDS UNDERSTANDING THE INFLUENCE OF GRADIENT RECONSTRUCTION METHODS ON UNSTRUCTURED FLOW SIMULATIONS Fadi Mishriky and Paul

TOWARDS UNDERSTANDING THE INFLUENCE OF GRADIENT RECONSTRUCTIONMETHODS ON UNSTRUCTURED FLOW SIMULATIONS

Fadi Mishriky and Paul WalshDepartment of Aerospace Engineering, Ryerson University, Toronto, Ontario, Canada

Email: [email protected]; [email protected]

Received May 2016, Accepted March 2017No. 16-CSME-75, E.I.C. Accession 3961

ABSTRACTIn this paper, the formal order of accuracy of three commonly used gradient reconstruction methods isderived. The analysis showed that the Green–Gauss cell based (GGCB) method is intrinsically inconsistent,due to the leading error term that is independent of the mesh spacing. On the other hand, the Green–Gaussnode based (GGNB) and the Least Squares cell based (LSCB) methods achieved a minimum of 1st orderaccuracy regardless of the mesh geometric properties. Implications of the former results were practicallytested on four CFD applications to show that in three out of four cases, the LSCB method achieved thehighest order of accuracy. In terms of the computational expenses, the GGNB method consumed 9–34%additional time when compared to the fastest converging method in each test case. Both the GGCB and theLSCB methods consumed nearly the same computational time to reach convergence.

Keywords: gradient reconstruction methods; order of accuracy; error estimation; unstructured grid solver;computational fluid dynamics.

VERS UNE COMPRÉHENSION DE L’INFLUENCE DES MÉTHODES DE RECONSTRUCTIONDU GRADIENT SUR LA SIMULATION NON-STRUCTURÉE

RÉSUMÉL’ordre formel de l’exactitude des trois méthodes de reconstruction du gradient fréquemment utilisées a étédérivé. L’analyse démontre que la méthode de Green–Gauss basé sur la cellule (GGCB) est intrinsèquementinconsistante à cause du terme d’erreur fréquent qui est indépendant de l’écart de maillage. D’un autre côté laméthode de Green–Gauss basé sur le nIJud et sur la cellule du plus petit carré (LSCB) a obtenu le minimumd’exactitude du 1er ordre en dépit des propriétés géométriques de maillage. Les implications des premiersrésultats ont été pratiquement testées sur quatre applications CFD pour démontrer que sur trois des quatrecas la méthode LSBC a obtenu le plus haut niveau d’exactitude. En termes de dépenses informatiques laméthode a utilisé 9–34% de temps additionnel en comparaison de la méthode de convergence la plus rapidedans chaque cas testé. Les méthodes GGCB et LSCB ont utilisé presque le même temps informatique pouratteindre la convergence.

Mots-clés : méthodes de reconstruction du gradient; ordre d’exactitude; estimation d’erreur; résolution deréseau non-structuré; dynamique des fluides computationnelle.

Transactions of the Canadian Society for Mechanical Engineering, Vol. 41, No. 2, 2017 169

Page 2: Towards Understanding the Influence of Gradient ... · TOWARDS UNDERSTANDING THE INFLUENCE OF GRADIENT RECONSTRUCTION METHODS ON UNSTRUCTURED FLOW SIMULATIONS Fadi Mishriky and Paul

1. INTRODUCTION

The last few decades have witnessed an increased reliance on the computational fluid dynamics (CFD)tools, and specially unstructured flow simulations. This is mainly driven by the growing interest to performsimulations on compound geometries and complex flows. In addition, the state-of-the-art mesh adaption al-gorithms and optimization methods are gaining a significant momentum in the CFD society. These methodsand algorithms tend to automatically change the geometry and the mesh without any human interference.All these have promoted the usage of unstructured grids in CFD simulations.

With the number of advantages that comes with the flexible generation of unstructured grids, comesthe challenge of computing the spatial derivatives on the unstructured control volumes. Finite differenceequations could no longer be used to calculate the gradients due to the absence of a governing Cartesiancoordinate. To overcome this deficiency, the Least Squares interpolations and the discrete forms of thedivergence theorem are usually used. Few recent studies focused on estimating the accuracy of the gradientoperators using numerical tools. Aftosmis et al. [1] studied the order of accuracy, absolute error, andconvergence properties associated with few gradient reconstruction methods. The study indicated that theLeast-Squares cell based gradient provides significantly more reliable results on poor quality meshes. Sozeret al. [2] compared some weighted and un-weighted variations of the Green–Gauss and the Least Squaresgradient methods. The main testing methodology used in this study was the downscaling method which waspreviously introduced by Thomas et al. [3]. The study showed that both the simple Green–Gauss method andthe inverse distance weighted Green–Gauss method are inconsistent when used on irregular meshes. Dahoeet al. [4] solved the diffusion equation using both, the least-squares gradient reconstruction and the Green–Gauss theorem. Results from the Green–Gauss theorem obtained undesirable high frequency oscillations inthe spatial derivatives, while the least-squares method showed to be a remedy for this problem. In anotherstudy, Diskin et al. [5] compared between node-centered and cell-centered approaches using Green–Gauss,unweighted and weighted least-squares, and node averaging methods on high-aspect-ratio cells to show thatthe accuracy of gradient reconstruction methods on such cells is determined by a combination of grid andsolution. One way of reducing the solution error is to monitor the terms in the solution contributing to theerror and add higher-order terms in the direction of larger mesh spacing. Few other studies [6–8] extendedthe focus to the effect of the gradient operators on the inviscid and viscous fluxes; but due to the complexityof the flow solvers, and the difficulty of tracing the error from one equation to the other, none has studiedthe influence of gradient operators when used on a full CFD solver.

The purpose of this paper is to establish an understanding of the effect of gradient reconstruction methodson the efficiency and accuracy of CFD solvers dealing with unstructured grids. First, a quick introductionof the numerical formulation of three commonly used gradient reconstruction methods is presented. This isfollowed by a study that utilizes a Taylor series expansion to estimate the formal order of accuracy of eachgradient operator when used on a 2D quadrilateral mesh. Thirdly, the influence of the gradient operators willbe tested on a full flow solver, where four different CFD applications are tested on a family of consecutivelyrefined meshes. A description of each case and the type of mesh used are presented. Results of this study arediscussed in section five. Finally, conclusions and general recommendations about the choice of the gradientoperators are presented.

2. NUMERICAL FORMULATION

Both Green–Gauss cell based (GGCB) and Green–Gauss node based (GGNB) methods apply the discretizeddivergence theorem to approximate the gradients on arbitrary control volumes. The discretized divergencetheorem (also known as the Green–Gauss theorem) is shown as

170 Transactions of the Canadian Society for Mechanical Engineering, Vol. 41, No. 2, 2017

Page 3: Towards Understanding the Influence of Gradient ... · TOWARDS UNDERSTANDING THE INFLUENCE OF GRADIENT RECONSTRUCTION METHODS ON UNSTRUCTURED FLOW SIMULATIONS Fadi Mishriky and Paul

∇φ =1∀

Nfaces

∑f

φ f A f (1)

This theorem states that the gradient of a certain scalar quantity φ , over a control volume ∀ is equal to thesum of the surface fluxes. The surface fluxes are calculated as the product of the face value φ f and thesurface vector A f . Both the GGCB and the GGNB methods use Eq. (1) to reconstruct the gradient ∇φ atthe center of each cell, but the face value φ f is defined differently in each method.

2.1. Green–Gauss Cell Based MethodThe simple Green–Gauss cell based (GGCB) method calculates the face value φ f as an average of the twoadjacent cells having a common face. This averaging assumes equal contribution from both cells as shownin Eq. (2). This is regardless of their geometric properties (aspect ratios, skewness, curvature, etc.).

φ f =φp +φq

2(2)

where φp and φq are the scalar values at the centers of the two cells sharing a common face.

2.2. Green–Gauss Node Based MethodThe Green–Gauss node based (GGNB) method approximates the face value φ f as the average of the nodesenclosing this face as follows:

φ f =1

N f v

N f v

∑j=1

φN j (3)

where N f v is the number of nodes defining the face, and φN j is the nodal value at the jth node, which in turnsis calculated as the weighted average of all the neighboring cells using

φN j =∑

ni=1 φi wi

∑ni=1 wi

(4)

where n is the number of neighboring cells. Some CFD codes calculate the weights as the inverse of thedistances between the node and the centers of the neighboring cells. However, this approach has shown tolose its accuracy when experiencing a large disparity in the sizes of the neighbouring cells. A more robustapproach was proposed by Holmes and Connell [9] in 1989, and represented by Rauch et al. [10] in 1991.In this approach, the nodal values are calculated as an exact linear solution of the surrounding cells, thusthe Laplacian of this linear function is exactly equal to zero in the x and y directions. The weight wi of eachcell’s contribution is calculated by optimizing a cost function tending to reach unity for each weight. Thisoptimization results in the following formula:

wi = 1+λx (xi− x0)+λy (yi− y0) (5)

where λx and λy are the Lagrange multipliers. (x0, y0) and (xi, yi) are the components of the position vectorof the node under consideration, and the center of the ith cell surrounding the node, respectively.

2.3. Least Squares Cell Based MethodUnlike the GGCB and the GGNB methods, the Least Squares cell based (LSCB) method approximates thegradient at the center of each cell using the least squares approximation. The gradient of each cell is assumedto change linearly along the separating distances of all the neighboring cells. In this case, the gradient could

Transactions of the Canadian Society for Mechanical Engineering, Vol. 41, No. 2, 2017 171

Page 4: Towards Understanding the Influence of Gradient ... · TOWARDS UNDERSTANDING THE INFLUENCE OF GRADIENT RECONSTRUCTION METHODS ON UNSTRUCTURED FLOW SIMULATIONS Fadi Mishriky and Paul

be written in a matrix form as∆r1x ∆r1y ∆r1z

∆r2x ∆r2y ∆r2z...

......

∆rNx ∆rNy ∆rNz

N×3

×

∇φ0x

∇φ0y

∇φ0z

3×1

=

φ1−φ0

φ2−φ0...

φN−φ0

N×1

(6)

Equation (6) represents an over determinant system of equations, with a singular N× 3 coefficient matrixon the left hand side. The coefficient matrix is decomposed using the Gram-Schmidt process [11] yieldinga matrix of weights. Each of the neighboring cells will have three weighting factors wx

i , wyi and wz

i . Thegradients in the x and y directions could be then calculated as given in the following two equations:

∆φ0x =N

∑i=1

wxi (φi−φ0) (7a)

∆φ0y =N

∑i=1

wyi (φi−φ0) (7b)

The LSCB method ensures a monotonic solution over the computational domain, with an exact linear solu-tion at the center of each cell.

3. FORMAL ORDER OF ACCURACY

In this section, the formal order of accuracy of each method will be derived on a 2D quadrilateral mesh togive an overview of the gradient operator’s sensitivity to the geometric properties of the cells. A Taylorseries will be expanded around the neighboring quadrilateral cells, with its center of expansion at (i, j).Figure 1 will serve as a visual aid for the cells’ terminologies used in the derivations.

This portion of the computational domain represent a number of quadrilateral cells with a constant growthrate R along the x direction. Thus ∆xi+1/∆xi = ∆xi/∆xi−1 = R. This is commonly encountered at the viscousboundary layers of a high Reynolds number simulation. The focus in this section will be on the x componentof the gradient, thus the mesh is assumed to be equally spaced along the y direction.

Fig. 1. A quadrilateral cell at ith and jth position with all its neighboring cells and mesh spacing.

172 Transactions of the Canadian Society for Mechanical Engineering, Vol. 41, No. 2, 2017

Page 5: Towards Understanding the Influence of Gradient ... · TOWARDS UNDERSTANDING THE INFLUENCE OF GRADIENT RECONSTRUCTION METHODS ON UNSTRUCTURED FLOW SIMULATIONS Fadi Mishriky and Paul

For the GGCB method, the gradient in the x direction of the cell (i, j) is the summation of the surface fluxesat the surfaces i+1/2 and i−1/2, divided by the volume of the cell.

∇φx =1

∆xi∆yi

[φi+ 1

2−φi− 1

2

](8)

where the face values φi+ 12

and φi− 12

are calculated as a simple averaging of the neighboring cells as shownin Eqs. (9a) and (9b):

φi+ 12=

φi +φi+1

2(9a)

φi− 12=

φi +φi−1

2(9b)

The center values of the neighboring cells φi+1 and φi−1 could be approximated using a Taylor series expan-sion about the cell at (i, j) as follows:

φi+1 = φi +∇φi∆xi +∆xi+1

2+∇

2φi(∆xi +∆xi+1)

2

8+O(∆x3) (10a)

φi−1 = φi−∇φi∆xi +∆xi−1

2+∇

2φi(∆xi +∆xi−1)

2

8+O(∆x3) (10b)

By substituting Eqs. (10a) and (10b) into Eqs. (9a) and (9b), then in Eq. (8), the x component of the gradientat the center of the cell in Fig. 1 will be given as

∇φx = ∇φi +∇φi

(−1

2+

∆xi+1 +∆xi−1

∆xi

)+∇

2φi

(∆xi+1−∆xi−1

8+

∆x2i+1−∆x2

i−1

16∆xi

)+O(∆x2) (11)

It could be directly deduced that the GGCB method will yield a 0th order gradient on arbitrary mesh spac-ing. This is because the leading error in Eq. (11) will directly contribute to the exact solution, and furtherrefinements of the mesh will not diminish this error term. This means that the GGCB method is intrinsicallyinconsistent and its error is mesh dependent. Only a uniformly spaced mesh (∆xi−1 = ∆xi+1) will nullifythe second and third terms on the left hand side of Eq. (11), and a 2nd order accuracy will be attained.Additional calculations showed that this observation applies also on triangular elements.

A similar, but sizable procedure was followed to derive the formal order of accuracy of the GGNB method.The final formula is shown in Eq. (12).

∇φx = ∇φi +∇φ2i

(∆xi+1−∆xi−1

8

)+O(∆x2) (12)

Similarly, the formal order of accuracy of the LSCB method was derived as

∇φx = ∇φi +∇φ2i (∆xi+1−∆xi−1)β +O(∆x2) (13)

where β is a combination of coefficients and given by

β =

(∆x2

i−1 +3∆x2i +3∆xi∆xi+1 +∆x2

i+1 +∆xi−1 (3∆xi +∆xi+1))

4(∆x2

i−1 +2∆xi−1∆xi +2∆xi∆xi+1 +∆x2i+1

) (14)

Equations (12) and (13) show that the GGNB and the LSCB methods will achieve at least a 1st order accuratesolution on any type of meshes, because of the 1st order error terms. While on uniformly spaced meshes

Transactions of the Canadian Society for Mechanical Engineering, Vol. 41, No. 2, 2017 173

Page 6: Towards Understanding the Influence of Gradient ... · TOWARDS UNDERSTANDING THE INFLUENCE OF GRADIENT RECONSTRUCTION METHODS ON UNSTRUCTURED FLOW SIMULATIONS Fadi Mishriky and Paul

(a) (b) (c) (d)

Fig. 2. Three consecutively refined meshes used with (a) the NACA0012, (b) the flat plate, (c) rotating Couette flowon equilateral triangular mesh and (d) rotating Couette flow with perturbed mesh.

the 1st order errors are perfectly canceled, and only 2nd order errors are maintained. For that reason, theGGNB and the LSCB methods are considered to be a linear exact gradient methods. This means that theyare capable of exactly reproducing the gradient of a linear function on any type of meshes.

It should be noted here that for a 2nd order convergence of the convection discretization error, at least a1st order gradient should be used [2, 6]. This implies that the GGCB method will significantly jeopardizethe numerical solution in cases of non-uniform meshes.

4. PRACTICAL IMPLICATIONS

Spatial derivatives obtained by the gradient operators are used in several equations in CFD codes; startingfrom the diffusion and convection terms of the momentum equations, to the energy equation, to any addi-tional transport equations. This makes tracing the effect of the gradient operators on the final solution anexhausting process. Despite the numerous studies that are conducted on CFD algorithms, the effect of thegradient reconstruction method on the final flow solution is still far from clear. In this section, a numeri-cal methodology is adopted to investigate the effect of the three aforementioned gradient operators on thesolution of CFD solvers. Four Aerodynamics applications will be tested in this study. In the first case, theEuler flow equations are solved on a NACA0012 airfoil. The second case focuses on the viscous forces atthe boundary shear layer of a flat plate. In the third and fourth cases, the flow between an outer stationarycylinder and an inner rotating one is induced to create a rotating Couette flow. The four cases represent fourdifferent types of meshes, and each is solved on a family of consecutively refined grids as show in Fig. 2.

In each case, the flow is solved three times using the CFD commercial code FLUENT V.15, one foreach gradient operator. The procedure that will be used to evaluate the order of accuracy of the solutions issimilar to that proposed by Vassberg and Jameson [12]. This approach provides an estimation of the orderof convergence p by tracking an aerodynamic property F on a family of three consecutively refined meshes.The property F is evaluated on the coarse, medium and fine meshes to obtain Fc, Fm and F f respectively.These values are then extrapolated using Richardson’s extrapolation method to calculate the continuumvalue Fh=0. This value represents the expected value when the spacing between the nodes of the mesh tendsto zero. The continuum value Fh=0 is calculated from the three values Fc, Fm and F f as follows:

Fh=0 ∼= F f +F f −Fm

rp−1(15)

where r is the refinement ratio, and in our case it is constant and equals to 2. p is the observed order of

174 Transactions of the Canadian Society for Mechanical Engineering, Vol. 41, No. 2, 2017

Page 7: Towards Understanding the Influence of Gradient ... · TOWARDS UNDERSTANDING THE INFLUENCE OF GRADIENT RECONSTRUCTION METHODS ON UNSTRUCTURED FLOW SIMULATIONS Fadi Mishriky and Paul

accuracy of the solution and is calculated as

p =ln(

Fc−FmFm−F f

)ln(r)

(16)

This order of accuracy could be also calculated from the logarithmic slope of the errors of the three meshesεc, εm and ε f . In this case, the error of F in each mesh is calculated as

εc = |Fh=0Fc|, εm = |Fh=0Fm| and ε f = |Fh=0F f | (17)

Even when using CFD algorithms with theoretical 2nd order discretization schemes, the boundary condi-tions, the numerical models and the grid will reduce this order so that the observed order of convergencewill likely be lower than 2.

While keeping in mind the importance of the numerical efficiency, the computational time consumed bythe solver to reach convergence is used as a comparator measure for the efficiency of each gradient operator.The computational time is calculated as the time consumed by a single Intel Xeon 2.6 GHz processor toreach convergence. Convergence is judged as the complete stability of the value of F . This criterion aimsat comparing the efficiency of each gradient operator when used with the full set of flow equations.

Case 1: Euler solution over NACA0012 airfoilIn this test case, the flow around a NACA 0012 airfoil is simulated using Euler’s equations. The flow isassumed to be inviscid to significantly reduce the computational time by eliminating the viscous boundarylayer. The fast converging Euler equations increase the feasibility of using finer refinements for the grids,and thus a more accurate estimation of the order of accuracy of the solution. The airfoil used is a standardNACA 0012 airfoil profile with a sharp trailing edge. The chord length of the airfoil was set to 1 m. AnO-mesh topology was created around the airfoil with an extended far-field boundary that is 150 chords awayfrom the airfoil. A family of consecutively refined grids was created with a constant refinement factor of2. The coarse mesh consisted of 64 nodes around the airfoil and extends to the far-field through 64 levels,thus the course mesh is 64 × 128 cells. The medium and fine meshes were created from the coarse mesh byconstant uniform refinements of 2. Figure 2(a) shows the grids created for testing the NACA 0012 airfoil.

The flow around the airfoil was set to a subcritical flow condition with a Mach number of 0.5. An angleof attack of α = 1.25° was used to create a non-zero lifting force on the airfoil, and consequently a pressuredrag. The drag coefficient Cd was chosen to be the scalar property F for the Richardson’s extrapolation,and will be used to estimate the numerical order of accuracy p.

Case 2: Laminar flow over flat plateThe flow in the first case was assumed to be inviscid, for that reason, the flow in the second case will focus onthe viscous forces in the boundary layer of a flat plate. This returns the diffusion term back to the momentumequations. The geometry of the plate and the computational domain are shown in Fig. 3.

The flat plate extends for 1 meter and the height of the computational domain is chosen to be ap-proximately ten times the boundary layer thickness which could be approximated using Blasius equation(δ99 ≈ 4.91x√

Rex). The three consecutively refined meshes that are used in this test case consist of right

angled triangular meshes as shown in Fig. 2(b). This type of meshes introduces a sort of computationalcomplexity in reconstructing the gradient near the flat plate. This is due to the inclined surfaces of thetriangular elements and the high aspect ratios near the boundary layer. The Reynolds number due tothe length Rex of the flat plate is chosen to be 10,000. The flat plate is treated as an adiabatic wall, andthe upper far field of the computational domain is a symmetric axis, thus no refinement is needed at

Transactions of the Canadian Society for Mechanical Engineering, Vol. 41, No. 2, 2017 175

Page 8: Towards Understanding the Influence of Gradient ... · TOWARDS UNDERSTANDING THE INFLUENCE OF GRADIENT RECONSTRUCTION METHODS ON UNSTRUCTURED FLOW SIMULATIONS Fadi Mishriky and Paul

Fig. 3. Geometry and computational domain of the flat plate test case.

Fig. 4. Geometry and computational domain of outer and inner cylinder of the rotating Couette flow.

this boundary. The skin friction coefficient at x = 0.85 m (C f@x=0.85) has been chosen as the aerodynamicproperty F that will be used to estimate the order of accuracy p using the Richardson’s extrapolation method.

Cases 3 and 4: Rotating Couette flowIn the third and fourth cases, the famous rotating Couette flow is solved numerically on an equilateraltriangular and a perturbed triangular meshes respectively. This type of flow depends on sandwiching thefluid between an inner rotating cylinder and an outer stationary drum. The rotation of the inner cylinderinduces the flow between the cylinders as shown in Fig. 4.

In our case, the inner radius ri and the outer radius ro of the cylinders are set to 17.8 and 46.8 mmrespectively. The inner cylinder is rotating at an angular velocity of ωi = 1 rad/s. This rotation induces theflow between the cylinders whose viscosity is equal to 0.0002 kg/m·s. The value under consideration F isthe tangential velocity at radius r = 35 mm.

5. RESULTS AND DISCUSSION

Each of the four cases was solved on three different levels of refined meshes, each with the three aforemen-tioned gradient operators. The first thing that will be compared is the observed order of accuracy of thesolution. Equations (15–16) were used to estimate the error of the aerodynamic property F on each mesh ofthe four cases. The convergence of the spatial truncation error of F is plotted in Figs. 5(a–d).

The slopes of the straight lines in the figures represent the order of accuracy of the solution. Figure 5(a)shows the deviation of the calculated drag coefficient in each of the nine runs when compared to its cor-responding continuum value Cdh=0 . Both the GGNB and the GGCB methods yielded solutions with slopesclose to each other, with values of 1.6913 and 1.6537, respectively.

176 Transactions of the Canadian Society for Mechanical Engineering, Vol. 41, No. 2, 2017

Page 9: Towards Understanding the Influence of Gradient ... · TOWARDS UNDERSTANDING THE INFLUENCE OF GRADIENT RECONSTRUCTION METHODS ON UNSTRUCTURED FLOW SIMULATIONS Fadi Mishriky and Paul

102

10310

-4

10-3

10-2

N1/2

Cells

LSCB method

GGNB method

GGCB method

1st

order slope

2nd

order slope

(a) Case 1

10210

-5

10-4

10-3

N1/2

Cells

LSCB method

GGNB method

GGCB method

1st

order slope

2nd

order slope

(b) Case 2

10210

-6

10-4

10-2

N1/2

Cells

LSCB method

GGNB method

GGCB method

1st

order slope

2nd

order slope

(c) Case 3

10210

-6

10-4

10-2

N1/2

Cells

LSCB method

GGNB method

GGCB method

1st

order slope

2nd

order slope

(d) Case 4

Fig. 5. Convergence of the spatial truncation error in the four cases.

While the LSCB method achieved a value of 1.8712 which is close to the theoretical value of 2 for 2ndorder discretization schemes.

In case 2, the GGCB method achieved the least accuracy with a slope of 1.3428, then the GGNB resultedin an observed order of accuracy of 1.5466, and the LSCB method achieved the highest accuracy of 1.7347.These results are plotted in Fig. 5(b).

The equilateral elements in case 3 resulted in similar orders of accuracies for the solutions of the threegradient operators. The calculated slopes of the lines in Fig. 5(c) are found to be 1.88, 1.708 and 1.86 for theGGCB, the GGNB and the LSCB methods respectively. As expected, the three gradient operators obtainedsolutions with similar order of accuracy. This could be deduced from the results of Eqs. (11–12), whereon meshes with equidistant spacing, the three gradient operators obtain the same formal 1st order accuracy.This 1st order accuracy of the gradients is further amplified when utilized with 2nd order discretizationschemes.

On the other hand, the perturbed meshes in case 4 revealed the disability of the GGCB method to handlethe viscous and inviscid fluxes on highly skewed triangular (or quadrilateral) elements. The GGCB method

Transactions of the Canadian Society for Mechanical Engineering, Vol. 41, No. 2, 2017 177

Page 10: Towards Understanding the Influence of Gradient ... · TOWARDS UNDERSTANDING THE INFLUENCE OF GRADIENT RECONSTRUCTION METHODS ON UNSTRUCTURED FLOW SIMULATIONS Fadi Mishriky and Paul

Fig. 6. Comparison of the computational expenses of the gradient operators for the four cases.

fell below the 1st order accuracy with a value of 0.80781. This is despite using 2nd order discretizationschemes with the flow solver. In the second place came the GGNB method and the LSCB methods in thefirst place. The calculated order of accuracy of the former two methods slightly exceeded the 2nd orderaccuracy. This is due to the inconsistent refinement of the perturbed triangular mesh that results in non-uniform mesh density over the computational domain.

The second scope of assessment was comparing the efficiency of the gradient operator in each test caseindependently. The computational time consumed by the solver to reach convergence on the finest meshis used as a comparator measure for each gradient’s efficiency. The intent of this study is to compare theperformance of each gradient operator when used on different types of meshes, and not to calculate theCPU time of the solution. For that reason, the measured computational time in each case is divided by thetime of the fastest converging gradient operator. In the four cases, the GGCB method was the first to reachconvergence, thus its non-dimensional time is equal to 1 in all cases as shown in Fig. 6.

This is due to the simple formulation of the GGCB that calculates the face value φ f as the average ofthe neighboring cells. On the other hand, the GGNB method consumed about 9–34% additional time whencompared to the GGCB. This could be understood from the large computational molecule of the GGNBmethod that requires complex computation of the nodal value at each vertex of the cell. While the relativesimplicity of the LSCB method resulted in an efficient algorithm with computational expenses that are wellcomparable to the GGCB method. The LSCB method consumed a maximum of 6% additional time whencompared to the GGCB method. This means that the LSCB method achieves solutions with higher order ofaccuracy while keeping the computational time to minimum. Only in case 3, the GGCB method achieved areasonable accuracy while maintaining a minimum time. This implies that the GGCB method could be aneffective method when used on equally spaced quadrilateral and triangular meshes. On these types of grids,the GGCB method achieves similar order of accuracy as the other two operators despite its simple numericalformulations. In all other cases, the LSCB method will be the perfect candidate to reconstruct the gradientsdue to achieving the highest order of accuracy while maintaining a very reasonable computational time.

6. CONCLUSION

This paper presented an accuracy study of three commonly used gradient reconstruction methods. Namely,the Green–Gauss cell based (GGCB) method, the Green–Gauss node based (GGNB) method, and the LeastSquares cell based (LSCB) method. Taylor series expansion was used to derive the formal order of accuracyof the aforementioned gradient operators. Results showed that the GGCB method is intrinsically inconsistentand achieves a 0th order of accuracy on arbitrary meshes due to the leading error term that is independent

178 Transactions of the Canadian Society for Mechanical Engineering, Vol. 41, No. 2, 2017

Page 11: Towards Understanding the Influence of Gradient ... · TOWARDS UNDERSTANDING THE INFLUENCE OF GRADIENT RECONSTRUCTION METHODS ON UNSTRUCTURED FLOW SIMULATIONS Fadi Mishriky and Paul

of the mesh spacing. Equations (12) and (13) showed that the GGNB and the LSCB operators will attain aminimum of 1st order accurate solution regardless of the mesh geometric properties.

The second part of the paper focused on examining the influence of the gradient operator on the efficiencyand accuracy of the flow solver. Implications of the former results were practically tested on four CFDapplications with different types of flows. In three out of four cases, the LSCB method achieved the highestorder of accuracy with values close to 2, which is the theoretical value of 2nd order discretization schemes.Only in case of equilateral triangles and quadrilateral elements, the GGCB method can achieve comparableresults due to the cancellation of the 0th and 1st order error terms. In terms of the numerical efficiency, theGGNB method consumed 9–34% additional time when compared to the other gradient operators. Whilethe GGCB and the LSCB methods consumed a minimal computational time due to their relative simpleformulations.

This implies that the LSCB gradient operator is a favorable operator when compared to the other twomethods due to achieving higher order of accuracy while keeping the computational expenses to minimum.Only when solving the flow on a regular quadrilaterals or equilateral triangles, the GGCB method will be aneffective candidate due to its simple numerical formulation and ability to achieve the same order of accuracyas the other two operators.

REFERENCES

1. Aftosmis, M., Gaitonde, D. and Tavares, T.S., “On the behavior of linear reconstruction techniques on unstruc-tured meshes”, AIAA Journal, Vol. 33, No. 11, pp. 2038–2049, 1995.

2. Sozer, E., Brehm, C. and Kiris, C.C., “Gradient calculation methods on arbitrary polyhedral unstructured meshesfor cell-centered cfd solvers”, in Proceedings of 52nd Aerospace Sciences Meeting, AIAA, Vol. 1440, 2014.

3. Thomas, J.L., Diskin, B. and Rumsey, C.L., “Towards verification of unstructured-grid solvers”, AIAA Journal,Vol. 46, No. 12, pp. 3070–3079, 2008.

4. Dahoe, A. and Cant, R., “On least-squares gradient reconstruction and its application in conjunction with aRosenbrock method”, Tech. Rep., Ulster University, Antrim, 2004.

5. Diskin, B. and Thomas, J., “Accuracy of gradient reconstruction on grids with high aspect ratio”, Tech. Rep.,NIA, 2008.

6. Diskin, B., L., T.J., Nielsen, E.J., Nishikawa, H. and White, J.A., “Comparison of node-centered and cell-centered unstructured finite-volume discretizations: Viscous fluxes”, AIAA Journal, Vol. 48, No. 7, pp. 1326–1338, 2010.

7. Diskin, B. and Thomas, J.L., “Comparison of node-centered and cell-centered unstructured finite-volume dis-cretization: Inviscid fluxes”, AIAA Journal, Vol. 49, No. 4, pp. 836–854, 2011.

8. Mavriplis, D.J., “Revisiting the least-squares procedure for gradient reconstruction on unstructured meshes”,AIAA Paper No. 3986, 2003.

9. Holmes, D.G. and Connell, S.D., “Solution of the 2D Navier–Stokes equations on unstructured adaptive grids”,AIAA Paper No. 89-1932, 1989.

10. Rauch, R., Batira, J. and Yang, N., “Spatial adaption procedures on unstructured meshes for accurate unsteadyaerodynamic flow computations”, AIAA Paper, No. 91-1106, 1991.

11. Anderson, W.K. and Bonhaus, D.L., “An implicit upwind algorithm for computing turbulent flows on unstruc-tured grids”, Computers and Fluids, Vol. 23, No. 1, pp. 1–21, 1994.

12. Vassberg, J.C. and Jameson, A., “In pursuit of grid convergence for two-dimensional euler solutions.”, Journalof Aircraft, Vol. 47, No. 4, pp. 1152–1166, 2010.

Transactions of the Canadian Society for Mechanical Engineering, Vol. 41, No. 2, 2017 179