I. Verification


3. Programs (Codes)


3.1. FRECON

A modified version of the three-dimensional numerical code FREVON3V (FRE) has been used to obtain reference solutions and to perform several tests of the model. This finite difference false transient solver, developed at the University of New South Wales,  uses vorticity-vector potential formulation of the Navier-Stokes and energy equations for steady, laminar flow of a viscous, incompressible fluid. Solutions were obtained for Cartesian coordinates on uniform meshes. Reliability and robustness of the code has been tested over many years and has been reported in numerous papers [4]. It is also the fastest solver from among all other tested in this paper.
The two-dimensional solutions were obtained using the code FRE with only 5 grid points for the channel depth, with slip kinematic boundary condition and adiabatic thermal boundary conditions for the side walls to eliminate the flow components in the third direction. These 2D results, generated for the sequence of mesh resolutions from 21x21 to 301x301 are given in the Table 2. The maximum and minimum of the two velocity components and the averaged Nusselt number for the cold wall are displayed as basic monitors of the code convergence performance. Additionally we present max./min. values of the velocity components on horizontal and vertical mid-line. The solutions were assumed to converge when all residues of the equations imbalance were less than 10-9.  A typical CPU time necessary to reach converged solution shows nearly cubic growth with a grid resolution and varies from 180sec for FRE1 to 3.6.105sec for FRE7 case (all CPU times are scaled to PentiumHT 3GHz processor with 2GB memory).

Table 2. FRECON3V mesh dependence test: 

Run

Mesh

Umin

Umax

Wmin

Wmax

Nc

FRE1

21x21

‑141.9

101.4

-225.6

215.2

7.05

 FRE2

41x41

‑156.1

101.1

-177.0

213.1

6.98

 FRE3

81x81

‑158.7

102.9

-175.7

217.3

6.60

 FRE4

121x121

‑158.8

103.1

-175.8

221.4

6.52

 FRE5

161x161

‑159.1

103.3

-175.9

222.0

6.49

 FRE6

201x201

-159.2

103.3

-175.9

221.9

6.48

 FRE7

301x301

-159.2

103.4

-176.0

222.5

6.47

(a) -  global velocity extremes and Nusselt number at the cold wall;

Run

Horizontal line  Y=0.5

Vertical line X=0.5

Umin/X

Umax/X

Wmin/X

Wmax/X

Umin/Y

Umax/Y

Wmin/Y

Wmax/Y

FRE1

-103.0/.80

20.4/.55

-211.0/.80

215.0/.05

-96.6/.15

82.0/.90

0.75/.95

9.72/.30

FRE2

-132.0/.72

6.25/.42

-174.0/.72

209.0/.05

-75.4/.25

84.2/.90

-68.9/.25

5.54/.60

FRE3

-131.0/.71

3.65/.39

-174.0/.71

213.0/.04

-76.8/.28

86.0/.89

-84.5/.26

6.28/.64

FRE4

-131.0/.71

3.21/.38

-175.0/.71

216.0/.04

-77.4/.28

86.5/.89

-86.6/.26

6.40/.65

FRE5

-131.0/.71

3.06/.38

-175.0/.70

216.0/.04

-77.6/.29

86.6/.89

-87.2/.26

6.44/.65

FRE6

-131.0/.71

3.00/.38

-175.0/.70

216.0/.04

-77.7/.29

86.6/.89

-87.5/.26

6.46/.65

FRE7

-131.0/.71

2.94/.38

-175.0/.70

217.0/.04

-77.8/.29

86.7/.89

-87.7/.26

6.48/.65

(b) – velocity extremes and their location for X=0.5 and Y=0.5.

3.2. FLUENT

A steady state two-dimensional solutions for the problem defined above were obtained using commercial finite volume code Fluent 6.2 [5]. Several uniform structural grids were tested, results obtained for three of them are displayed in Table 3. Fluent gives possibility to select large spectrum of different solvers and solving strategies using the user friendly interface. Selection of the appropriate model is often crucial both in terms of speed as well as accuracy of the result. Following experience gained during several test runs the implicit false transient method was used to reach efficiently a steady state. Spatial derivatives were approximated using QUICK scheme, which is based on a weighted average of second-order-upwind and central interpolation of the variable. Pressure-velocity coupling was done using SIMPLE algorithm. The non-linear density variation given by (2.5) was implemented in the solver. Fluent uses internally dimensional variables, hence results of the simulations were scaled  using relations (2.6). The convergence criteria was given by the residua of the solution less than 10-6. It turned out that solutions obtained using single precision solver were different by more than 5 % for extremes of velocity values and their location, even for the finest mesh 380x380. Therefore, all the results reported in this work were performed using double precision solver. A typical CPU time necessary to reach converged solution for the coarse mesh case (FLU0) is 2.104s, which is much slower in comparison with the FRECON solver. It is worth noting, however, that solution obtained for this relative coarse mesh is much closer to the fine mesh solution (FRE7) then similar solution obtained with the FRECON (FRE2).
Table 3. FLUENT mesh dependence test:

Run

Mesh

Umin

Umax

Wmin

Wmax

Nu

FLU0

38x38

-158.94

105.31

-172.38

208.12

6.59

FLU1

76x76

-159.39

103.57

-173.61

220.60

6.47

FLU2

190x190

-159.77

103.51

-174.57

223.21

6.51

FLU3

380x380

-159.73

103.55

-174.73

223.52

6.50

(a) -  global velocity extremes and Nusselt number at the cold wall;

Run

Horizontal line  Y=0.5

Vertical line X=0.5

Umin/X

Umax/X

Wmin/X

Wmax/X

Umin/Y

Umax/Y

Wmin/Y

Wmax/Y

FLU0

-136.04/.71 2.46/.39 -171.09/.71 202.15/.053 -80.35/.29 88.92/.89 -87.17/.26 6.25/.63

FLU1

-134.08/.71 2.83/.38 -172.41/.71 215.36/.039 -78.87/.29 87.18/.89 -87.90/.26 6.39/.64

FLU2

-132.72/.71 2.92/.38 -173.40/.70 217.53/.040 -78.22/.28 86.90/.89 -87.62/.26 6.44/.64

FLU3

-131.68/.70 2.93/.38 -173.62/.70 217.84/.042 -78.11/.28 86.85/.89 -87.37/.26 6.42/.64
(b) – velocity extremes and their location for X=0.5 and Y=0.5.

3.3. FIDAP

A steady state two-dimensional solutions for the problem defined above were obtained using commercial, finite element method code Fidap 8.7. The quadrilateral elements and bilinear shape functions were used to discretise the computational domain. The non-linear system of matrix equations arising from the FEM discretization is solved separately in sequential manner using so called segregated solver [6]. The non-linear density variation given by (2.5) was implemented in the solver. Fidap similar to Fluent uses internally dimensional variables, hence results of the simulations were scaled appropriately. The convergence criteria was given by the residua of the solution less than 10-4. Fidap appears to be a very fast and stable solver, producing reasonable results even for a coarse mesh. The global values of the solutions (Nusselt number, global velocity extremes) seem to match well with the fine mesh solutions obtained using other codes (e.g. FRE6). However, more detailed analysis reveals that solutions obtained with Fidap, even for the fine meshes, exhibit considerable errors when flow structure is compared (see next chapter). Table 4 collects results obtained for two different grid resolutions. It is worth noting  that CPU time necessary to obtain the solutions is almost five times shorter than for a corresponding Fluent run.

Table 4. FIDAP mesh dependence test:

Run

Elements

Umin

Umax

Wmin

Wmax

Nu

FID1

39x39

-155.10

104.30

-178.07

227.02

6.64

FID2

77x77

-159.03

105.38

-174.93

225.17

6.44

(a) -  global velocity extremes and Nusselt number at the cold wall;

Run

Horizontal line Y = 0.5

Vertical line X = 0.5

 

min/X

Umax./X

Wmin/X

Wmax/X

min/Y

Umax./Y

Wmin/Y

Wmax/Y

FID1

-130.47/.71

4.36/.39

-177.15/.71

218.50/.05

-77.05/.29

94.14/.92

-83.74/.26

6.03/.60

FID2

-131.50/.70

5.28/.38

-174.31/.70

219.71/.04

-81.60/.29

87.57/.89

-99.19/.26

7.19/.68

(b) – velocity extremes and their location for X=0.5 and Y=0.5.

3.4. SOLVSTR

A classical two-dimensional streamfunction – vorticity y-z  solver was applied to get steady state two-dimensional solutions for the investigated model. An implicit false transient approach was applied to all equations. Discretization of y-z  and energy equations were done making use of second order central difference scheme in space. The equations were solved by an alternating direction implicit method (ADI) algorithm. The resulting algebraic equations are tridiagonal and easily solved by TDMA algorithm. The approach used is comparable to the FRECON algorithm, it also performs relatively fast. Typical CPU time to reach converged solution (residuals < 10-9) is about  105sec for 2002 mesh. However, the convergence rate, what will be also visible further, is slow in comparison with other algorithms. Mesh dependence test indicates difficulties of the code to reach accurate solution, even for the finest mesh. It illustrates, similar to the above mentioned Fidap solutions, that “grid-converged” solution does not necessarily mean “true” solution.

Table 5. SOLVSTR mesh dependence test:

Run

Mesh

Umin

Umax

Wmin

Wmax

Nu

STR1

50x50

-178.51

116.425

-191.450

248.063

6.63

STR2

100x100

-168.73

108.743

-183.605

237.538

6.78

STR3

150x150

-165.34

106.777

-180.327

232.612

6.73

STR4

200x200

-163.60

105.728

-179.554

229.670

6.67

STR5

250x250

-162.45

105.047

-177.356

227.635

6.65

(a) -  global velocity extremes and Nusselt number at the cold wall;

Run

Horizontal line Y = 0.5

Vertical line X = 0.5

 

min/X

Umax./X

Wmin/X

Wmax/X

min/Y

Umax./Y

Wmin/Y

Wmax/Y

STR1

-147.20/.67

1.15/.37

-191.45/.67

237.34/.04

-95.57/.31

96.26/.90

-119.59/.29

7.10/.67

STR2

-139.71/.71

2.43/.37

-183.04/.70

230.38/.04

-84.74/.28

90.93/.89

-95.47/.26

6.64/.64

STR3

-137.10/.70

2.61/.38

-179.69/.70

226.18/.04

-82.09/.28

89.38/.89

-91.34/.25

6.55/.64

STR4

-135.64/.71

2.68/.38

-177.74/.70

223.58/.04

-80.78/.28

88.54/.89

-89.75/.26

6.51/.64

STR5

-134.14/.71

2.44/.38

-176.64/.70

221.48/.04

-79.62/.28

87.96/.89

-87.31/.26

6.52/.64

(b) – velocity extremes and their location for X=0.5 and Y=0.5.

3.5. SOLVMEF

Mesh-free methods allow to establish system of algebraic equations for the whole problem domain without use of a predefined mesh. These methods do not use polygonisation of the domain and/or boundary. Instead, solution is generated in a set of nodes, similarly as in the finite difference method, however with great flexibility of positioning the calculation nodes. There is plethora of the mesh-free methods proposed using different approaches and names, the methodology is still in a rapid development stage.

Their main advantage is large flexibility when applied to complex geometries, usually same formulation for 2D and 3D, easy node refinement, and ease of coding. The performance of one of the mesh-free methods was tested using proposed benchmark configuration. The Navier – Stokes equations in streamfunction – vorticity formulation were discretised making use of the diffuse approximation method (DAM). The diffuse approximation is a weighted least-squares approximation of a scalar field and its derivatives, and is closely related to the moving least–square method. Generally, the method can be applied to any distribution of the collocation points. In the following, for simplicity, we assumed uniform distribution of collocation points inside the computational domain. Employing this assumption and selecting six simplest polynomial bases for the approximation (1, x, y, x2, xy, y2), we come to the following analytical formulas (3.1-3.4) for the first and second derivatives. These derivatives are used to discretise streamfunction, vorticity and energy equations. For a scalar function
F the diffuse approximation of its first and second derivatives at the arbitrary point P are defined in a following way:

eq_31_34

In above h stands for the distance between two neighbouring points (see Figure 2), and FP, FN, FS, FW, FE, FNW, FNE, FSW, FSE denote the values of a function being approximated in the vicinity of arbitrary point P, w1,w2 denote the value of a weighting function. In the present calculations the following weighting function is used:
eq_35

where r is the distance between P and Z. (Z is one of the neighbouring points, w1 = w(P,N)=w(P,S)=w(P,E)=w(P,W), w2=w(P,NE)=w(P,NW)=w(P,SE)=w(P,SW)).

Figure 2. Computational molecule used in the diffuse approximation method

mesh
The resulting algebraic equations result in a sparse matrix with at most nine non-zero elements in each row of a matrix, and are solved making use of Gauss – Seidel algorithm. The number of non-zero elements in the matrix is closely related to the number of neighbouring points taken into account during application of diffuse approximation. Each computational molecule consists of nine nodes (see Figure 2). The use of Gauss-Seidel method to solve approximated equations makes the algorithm much slower in comparison with classical approach, for instance the one applied in SOLVSTR. The application of much more sophisticated solvers will be considered in future work as well as the use of a preconditioner to improve performance of the algorithm. A CPU time necessary to reach converged solution (error less than 10-6) for 1002 mesh is fifteen times slower than corresponding case performed by SOLVSTR algorithm. This made more extensive discretization dependence study out of reach.
Table 6. SOLVMEF mesh dependence test:

Run

Number of Points

Umin

Umax

Wmin

Wmax

Nc

MEF1

10000 (100x100)

-161.87

103.78

-167.58

225.94

6.22

(a) -  global velocity extremes and Nusselt number at the cold wall;

Run

Horizontal line Y = 0.5

Vertical line X = 0.5

 

min/X

Umax./X

Wmin/X

Wmax/X

min/Y

Umax./Y

Wmin/Y

Wmax/Y

MEF1

-125.34/.68

5.81/.34

-166.91/.64

218.89/.04

-79.87/.35

88.29/.89

-132.03/.31

6.56/.71

(b) – velocity extremes and their location for X=0.5 and Y=0.5.



Up Down Previous Next