a new computational package for using in cfd and other...

26
1 Ninth International Conference on Computational Fluid Dynamics (ICCFD9), Istanbul, Turkey, July 11-15, 2016 ICCFD9-xxxx A New Computational Package for Using in CFD and Other Problems Mohammad Reza Akhavan Khaleghi The Office of Counseling and Research Fluid Engineering and Aerodynamic, Mashhad, Iran [email protected] Abstract: This is a new edition of my papers [1, 2] with a lot of changes. In this paper I'm going to show changes done to the Reduced Finite Element Method (RFEM) that its result will be the most powerful numerical method that has been proposed so far (some forms of this method are so powerful that they can approximate the most complex equations simply Laplace equation!). Keywords: Reduced finite element method, New computational package, New finite element formulation, New higher order form, New isogeometric analysis. 1 Introduction The general form of a linear differential equation with boundary conditions can be shown as follows [3, 4]: R P W f = + L (1) R r G f = + M The operators L and M in equations (1) can be zero-order, odd-order, even-order or a combination of two or all three odd even zero R P P W f f f f = + = + + + L L L L (2) odd even zero R r r G f f f f = + = + + + M M M M The weighted residual relationship for these relationships on any element is e e i i WRd WRd . . . . W G W G W , G ò ò (3) And . . . . e e i i WRd WRd W G W G W G 0 ò ò + = (4)

Upload: lamcong

Post on 06-Dec-2018

217 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: A New Computational Package for Using in CFD and Other ...iccfd9.itu.edu.tr/assets/pdf/papers/ICCFD9-2016-P212.pdf · ICCFD9-xxxx A New Computational Package for Using in CFD and

1

Ninth International Conference on Computational Fluid Dynamics (ICCFD9), Istanbul, Turkey, July 11-15, 2016

ICCFD9-xxxx

A New Computational Package for Using in CFD and Other Problems

Mohammad Reza Akhavan Khaleghi

The Office of Counseling and Research Fluid Engineering and Aerodynamic, Mashhad, Iran

[email protected]

Abstract: This is a new edition of my papers [1, 2] with a lot of changes. In this paper I'm going to show changes done to the Reduced Finite Element Method (RFEM) that its result will be the most powerful numerical method that has been proposed so far (some forms of this method are so powerful that they can approximate the most complex equations simply Laplace equation!).

Keywords: Reduced finite element method, New computational package, New finite element formulation, New higher order form, New isogeometric analysis.

1 Introduction

The general form of a linear differential equation with boundary conditions can be shown as follows [3, 4]:

R PW f= +L (1)

R rG f= +M The operators L and M in equations (1) can be zero-order, odd-order, even-order or a combination of two or all three

odd even zero

R P P

W f f f f= + = + + +L L L L (2)

odd even zero

R r rG f f f f= + = + + +M M M M The weighted residual relationship for these relationships on any element is

e e

i iW R d W R d. . . .W GW G

W , Gò ò (3)

And

. . . .e e

i iW R d W R dW GW G

W G 0ò ò+ = (4)

Page 2: A New Computational Package for Using in CFD and Other ...iccfd9.itu.edu.tr/assets/pdf/papers/ICCFD9-2016-P212.pdf · ICCFD9-xxxx A New Computational Package for Using in CFD and

2

By inserting (2) in (4) we have

. .odd even zero

e e e ei i i iW d W d W d W P d

W W W Wf W f W f W Wò ò ò ò+ + +L L L

(5) odd even zero

e e e ei i i iW d W d W d W r d. .

G G G Gf G f G f G G 0ò ò ò ò+ + + + =M M M

The approximate relation of the field also is equal to

. .

M

jjj 0

N

f f f=

» = å (6)

By inserting (6) in (5) we have

odd even zero

e e e e

M M M

j j ji j i j i j ij 0 j 0 j 0

W N d W N d W N d W Pd. . . . . .

. .

W W W Wf W f W f W Wò ò ò ò

= = =

+ + +å å åL L L

(7) odd even zero

e e e

M M M

j j ji j i j i jj 0 j 0 j 0

W N d W N d W N d. . .

. . . . . .

G G Gf G f G f Gò ò ò

= = =

+ + +å å åM M M

eiW r d 0. .

GGò+ =

Together all the elements a comprehensive system of equations is obtained which can be written quite generally as

fK..f = (8)

And

. . . .

f f . e eE E

ij ij i ie 1 e 1

K K ,= =

= =å å (9)

Finally by using of equation (7) can write

e

e eij i j i jK W N d W N d

W GW Gò ò= +. . L M

. . . . .f e

e ei i iW P d W r d

W GW - Gò ò= -

(10)

1 2 3 M( , , ..., )

f f f f=T

f And this is the general form of approximation to a differential equation by the finite element method.

Page 3: A New Computational Package for Using in CFD and Other ...iccfd9.itu.edu.tr/assets/pdf/papers/ICCFD9-2016-P212.pdf · ICCFD9-xxxx A New Computational Package for Using in CFD and

3

2 New Formulation for Finite Element Method (NFFEM) Here I will introduce a new formulation for finite element method which its performance is much better than all conventional algorithms of finite element method in CFD. In NFFEM relationship (9) is written as follows:

. .

. .

. .f f.e eE E

ij ij i ie 1 e 1

K K ,* * * *

= =

= =å å (11)

And each of the matrix coefficients are

. . . .e odd e even e zero e

ij ij ij ijK K K K* * * *

= + + (12)

Where . odd e

ijK*

become

odd e odd

eij i i jK W N d.

Ws Wò*

= L (13)

For . even e

ijK*

we have

even e even

eij i i jK W N d..

Ws Wò*

= L (14)

For .zero e

ijK*

we have

zero e

eij i i jK W N d.. .

Ws Wò*

= (15)

And for

f .e

i

*

we have

e

.e

.i i iW Pd

f .W

s Wò*

= (16)

Where is is given by

klm klm (x,y,z) (x,y,z)i i i

b(1 ( ))2

s b b= - -

(17)

These relations are used for boundary integrals the same way, these are relations completely of NFFEM. In the equations (13) to (16), by choosing b 1= full upwind difference scheme (FUDS), by choosing b 0= central difference scheme (CDS) and by choosing 0 b 1£ £ hybrid difference scheme (HDS) is obtained. Note that Flux Vector Splitting Methods (FVSM) can also use with NFFEM, in this form b 1= is considered and equations are written separately for positive and negative-terms after that the sum of the equations is done. These relationships are also valid for non-linear operators ( ( )fL ), which

leads to e

ijK ( )f*

. In the equations presented above, klm(x,y,z)ib

is given by

Page 4: A New Computational Package for Using in CFD and Other ...iccfd9.itu.edu.tr/assets/pdf/papers/ICCFD9-2016-P212.pdf · ICCFD9-xxxx A New Computational Package for Using in CFD and

4

k l m k l m

klm

k l m k l m

(x) (y) (z) (x) (y) (z)

(x,y,z)

(x) (y) (z) (x) (y) (z)

i i i i i i

i

i i i i i i

2( ) ( )

2( ) ( )

b b b b b bb

b b b b b b

+ + - + +=

+ + - + +

(18)

For the central difference scheme c

is can also be used instead of is in equations (13) to (16), where

klm klm(x,y,z) (x,y,z)

ci i i

1(1 ( ))2

s b b= - -

(19)

Where klm(x,y,z)ib

is given by

k l m k l m

klm

k l m k l m

(x) (y) (z) (x) (y) (z)

(x,y,z)

(x) (y) (z) (x) (y) (z)

i i i i i i

i

i i i i i i

( )

( )

b b b b b bb

b b b b b b

+ + - + +=

+ + - + +

(20)

In this form, the number of participating elements in the equation of node i are limited to two elements in 1D, 2D and 3D. The k

(x)ib

, l(y)ib

and m(z)ib

are equal to

k k l l m m

(x) (y) (z)(x) (x) (y) (y) (z) (z)i i i i i i i i i , , b b a b b a b b a= = =

(21)

Where

k k k k l l l l

k l

k k k k l l l l(x) (y)

i 0 i L i 0 i Li i

i 0 i L i 0 i L

x x x x y y y y ,

x x x x y y y yb b

æ ö æ ö- - - -÷ ÷ç ç÷ ÷= + = +ç ç÷ ÷ç ç÷ ÷ç ç- - - -è ø è ø

(22)

m m m m

m

m m m m(z)

i 0 i Li

i 0 i L

z z z z

z z z zb

æ ö- - ÷ç ÷= +ç ÷ç ÷ç - -è ø

And ia is the sign of the unknown variable or derivations coefficients (any term that changes the sign of the matrix coefficients), for Euler equations and Navier - Stokes equations in 3D are

.

.

(x) (y) (z)

i i ii i i

i i i

A B C , ,

A B C= = =a a a (23)

Where

.iA , iB and iC are the flux Jacobian matrix (derivations coefficients). Or

= = =

(x) (y) (z)

i i ii i i

i i i

E F G , ,

E F Ga a a (24)

Where iE , iF and iG are convective flux vector. Superscript k , l and m represent the terms are located

on lines k , l and m (The nodei in three dimensions is located on three lines, line k at x direction, line l at y direction, and line m at z direction (see Figures 1 and 2). For hierarchical shape functions, the shape functions dependent to the sides and element as shown in figures (3) and (4) attributable to the points (these points as k l m0 0 0, ,x h z , k l mi i i, ,x h z and k l mL L L, ,x h z to

calculate ib

also to determine lines k , l and m are used).

Page 5: A New Computational Package for Using in CFD and Other ...iccfd9.itu.edu.tr/assets/pdf/papers/ICCFD9-2016-P212.pdf · ICCFD9-xxxx A New Computational Package for Using in CFD and

5

When wind direction is constant before and after discontinuity (shock), as an alternative (or as another

option for all position), ib¢ can be used instead of ib

, where ib¢

is k k l l m m

(x) (y) (z)(x) (x) (y) (y) (z) (z)i i i i i i i i i , , b b a b b a b b a¢ ¢ ¢ ¢ ¢ ¢= = = (25)

Where

k k k k l l l l

(x) (y)

k k k k l l l l

L i i 0 L i i 0

L i i 0 L i i 0

i iL i i 0 L i i 0

L i i 0 L i i 0

x x x x y y y y,

x x x x y y y y

f f f f f f f f

a af f f f f f f f

¢ ¢

- - - -- -- - - -

= =- - - -

- -- - - -

(26)

m m m m

(z)

m m m m

L i i 0

L i i 0

iL i i 0

L i i 0

z z z z

z z z z

f f f f

af f f f

¢

- --- -

=- -

-- -

When is used ia¢ rather than ia , always only elements that are located on discontinuity are affected by

discontinuity (see Figure 23). Using of ia¢ with b 1= gives a low cost scheme compared to other schemes and methods on Direct Numerical Simulation (DNS). Equation (18) can be written with ib and ib- instead of the ib

that its result will be klm

(x,y,z)ib , depending

on the sign of ib that we have chosen, the klm(x,y,z)ib gives the forward or backward differencing scheme.

Note that NFFEM only for quadrilateral and hexahedron elements can be used. Solving the system of equations of the NFFEM can be performed simply by element by element solving method and line by line sweeping method.

Figure 1: Lines k and l on two fourth-degree elements in two dimensions.

2

3

0

23

0

1

1

y

0

L

x

x

0

L

x

x

0 Lx x

0 Lx x

0

L

x

x

y y y y yL L L L L

0y 0y 0y 0y 0y

0

0

0

0

0

L

L

L

L

L

x

x

x

x

x

x

x

x

x

x

0y

0y

0y

0y

0y

y

y

y

y

y

L

L

L

L

LShape function changes in x direction

Shape function c

hanges

in y

dir

ection Sh

ape func

tion ch

anges in x directio

n Shape function changes in y direction

k =5

k =4

k =3

k =2

l =1 l =3 l =4 l =5

l =1

l =2l =2

l =3

l =4

l =5

k =1

k =1

k =2

k =3

k =4

k =5

x

Page 6: A New Computational Package for Using in CFD and Other ...iccfd9.itu.edu.tr/assets/pdf/papers/ICCFD9-2016-P212.pdf · ICCFD9-xxxx A New Computational Package for Using in CFD and

6

Figure 2: Linesk , l and m on a quadratic element in three dimensions.

Figure 3: Lines k and l also the places that b is calculated on for a hierarchical element in two dimensions.

l =3

l =2l =6

l =1

l =4

l =5

l =7

l =8

l =9

xy

z

Ly

Ly

Ly

Ly

Ly

Ly

Ly

LyLy

0y

0y

0y

0y

0y

0y

0y

0y

0y

k =3

k =2

k =1

k =4

k =5

k =8

k =6

k =9

k =7

0

L

xx

0

L

x

x

0

L

x

x

0

L

x

x

0

L

x

x

0

L

x

x

0

L

x

x0

L

x

x

0

L

x

x

m =1

m =2

m =3

m =4

m =5

m =6

m =7

m =8

m =9

0z

0

L

z

z

0

L

z

z

0

L

z

z

0z

0z

0z

0z

0z

z

z

z

z

z

z

L

L

L

L

L

L

0

23

1

2 3 4

4 2 4 3 4 4 4 4

3 2 3 3 3 4 3 3

2 2 2 3 2 4 2 2

2 3 4

xy x y x y x y xy

xy x y x y x y xy

xy x y x y x y xy

xy x y x y x y xy

xy x y x y x y xy

l =1 l =3 l =4 l =5l = l =2

k =1

k =3

k =4

k =5

k =2

k 3,4,5,...,M=

l 3,4,5,...,M=

k 1=

k 2=

l 1= l 2=

Page 7: A New Computational Package for Using in CFD and Other ...iccfd9.itu.edu.tr/assets/pdf/papers/ICCFD9-2016-P212.pdf · ICCFD9-xxxx A New Computational Package for Using in CFD and

7

Figure 4: Linesk , l and m also the places that b is calculated on for a fourth-degree hierarchical element in three dimensions.

3 Reduced Finite Element Method (RFEM) A new method for the finite element formulation presented in the previous section, In this section, I'm going to limit the participating nodes in equation for each node to the nodes that are located on lines k , l and m the node. For this purpose, I introduce reduced elements, characteristics of these elements is as follows: 1- The different elements are used for different directions of operator (see Figures 5 and 6). 2- For each direction of operator, element only in the same direction has DOF (for one direction of shape function is used p - degree function and for other directions is used zero degree function (see Figures 5, 6, 7 and 8). 3- For equation of node i , element only on the lines k , l and m the same node has the node (see Figures 7 and 8). In RFEM relationship (11) is written as follows:

.. ..

. . . .

f fe e

k l m k l m klm klm

E E

ij ij i ie 1 e 1

K K ,* * * *

½ ½ ½ ½

= =

= =å å (27)

And each of the matrix coefficients are

xy

z

m =1

m 5 , 6 , 7=

m =8,9,10

m 3=

m 11=

0

1

2

3

4

5

6

7

0

L

0

L

0

L

0

L

0

L

0

L

0

L

0

L

0 L� �m 4=

m 12,13,14=

m 2=

m 15,16,17=

k =5,6,7

k =4

k=12,13,14

k =1 1

k =2

0

1

2

3

4

5

6

7

0

L

0

L

�0

L

0

L

��

0

L

0

L

0

L

0

L

0

L

k 1=

k 3=

k 15,16,17=

k 8,9,10=

l = 1l = 1 1

l = 2

l = 4

l = 3

0

1

2

3

4

5

6

7

0

L

0

L

0

L

0

L

0

L

0

L

0

L

0

L

0

L

l 5,6,7=

l 12,13,14=

l 8,9,10=

l 15,16,17=

Page 8: A New Computational Package for Using in CFD and Other ...iccfd9.itu.edu.tr/assets/pdf/papers/ICCFD9-2016-P212.pdf · ICCFD9-xxxx A New Computational Package for Using in CFD and

8

..e odd e even e zero e

k l m k l m k l m k l mij ij ij ijK K K K* * * *

½ ½ ½ ½ ½ ½ ½ ½= + + (28)

Where

odd e odd e odd e odd e

k l m k l m

even e even e even e even e

k l m k l m

zero e zero e

k l m k

(x) (y) (z)

(x) (y) (z)

(x)

ij ij ij ij

ij ij ij ij

ij ij

K K or K or K

K K or K or K

K K o

* * * *

½ ½

* * * *

½ ½

* *

½ ½

=

=

= zero e zero e

l m(y) (z)ij ijr K or K

* *

(29)

For odd e

k(x)ijK

*

, odd e

l(y)ijK

*

and odd e

m(z)ijK

*

we have

odd e odd e odd odd

k l l(x) (y

)

. .k(x) (y)

e eij i i j ij i i jK W N d K W N d

W Ws W , s Wò ò* *

= =L L

(30)

.

odd e odd

m m(z)(z)

eij i i jK W N d

Ws Wò*

= L

For even e

k(x)ijK

*

, even e

l(y)ijK*

and even e

m(z)ijK

*

we have

even e even e even even

k k l l(x) (y

)

. .(x) (y)

e eij i i j ij i i jK W N d K W N d

W Ws W , s Wò ò* *

= =L L

(31) even e even

m m

.(z)(z)

eij i i jK W N d

Ws Wò*

= L

For zero e

k(x)ijK

*

, zero e

l(y)ijK

*

and zero e

m(z)ijK

*

we have

zero e zero e

k k. l l.(x) (y)

e e

i iij i j ij i jK W N d K W N d

D D. .

W W

s sW , Wò ò* *

= =

(32) zero e

m m.(z)

e

iij i jK W N d

D.

W

s Wò*

=

Where D is dimensions. Note that for the zero

L operator, unknown variable is written in all directions and

each direction is no belongs to particular unknown variable. And for fe

klmi

*

we have

e

.klm e

i i i iP W df =W

s Wò*

(33)

For approximating the mixed derivatives we will need to more DOF for example; if in three dimensions, the mixed derivative be in two-direction, like following derivative

mix

x

y

2

x y x yf f¶ ¶ ¶= =

¶ ¶ ¶ ¶L (34)

Page 9: A New Computational Package for Using in CFD and Other ...iccfd9.itu.edu.tr/assets/pdf/papers/ICCFD9-2016-P212.pdf · ICCFD9-xxxx A New Computational Package for Using in CFD and

9

We use the shape function with two DOF in x and y directions (see Figure 9). This elements are used only for mixed operator. When we use the hierarchical shape functions, for some equations have two unknown variable ( if and

ai , see Figure 6), the additional equation for additional unknown can be written as follows:

. . . . . . . .

a al l m m

L L L L

i j j j j j j j ji i i ij 0 j 0 j 0 j 0

3 N N N Nf f f= = = =

é ù é ùê ú ê ú- + + +ê ú ê úë û ë ûå å å å

(35)

. . . .

ak k

L L

j j j ji ij 0 j 0

N N 0f= =

é ùê ú+ + =ê úë ûå å

RFEM can be used to isogeometric analysis as well (see the following sections and examples).

Figure 5: A reduced standard quadratic element in two-dimensional, lines k and l also the participating nodes in the equation of node i for each of them.

k

l

i

For the operator of x direction of node i

For the operator of y direction of node i

For the operator of x direction of node i

For the operator of y direction of node i

For the operator of x direction of node i

For the operator of y direction of node i

0

L

y

y

i Lx ,x

iy

i Ly ,y

3

Lx

ix0

1

2

0x

k

i

3

0

1

2

0x

k

i

i Lx ,x

0x3

0

1

2

i

3

0

1

2

l 0

L

y

y

iy

i

3

0

1

2

l 0y

i

3

0

1

2

Page 10: A New Computational Package for Using in CFD and Other ...iccfd9.itu.edu.tr/assets/pdf/papers/ICCFD9-2016-P212.pdf · ICCFD9-xxxx A New Computational Package for Using in CFD and

10

Figure 6: A reduced hierarchical quadratic element in two-dimensional, lines k and l also the participating nodes in the equation of node i for each of them.

Figure 7: Nodes involved in the equation of node i for FEM and RFEM on several fourth-degree elements in two dimensions.

For the operator of x direction of node i

For the operator of y direction of node i

For the operator of x direction of node i

For the operator of y direction of iparameter

For the operator of x direction of iparameter

For the operator of y direction of iparameter

k

i

3

L�

i�0

1

2

��

k

i

3

0

1

2

��

k

i

I iI � �,

��3

0

1

2

l 0

L

i�

i

3

0

1

2

l 0

L

i�

i

3

0

1

2

i L� �,

l 0�

i

3

0

1

2

L

I iI � �, L

54i

FEM

35i

i i Lx ,y ,y

i i Lx ,y ,x

k =4

l =4

0

1

2

3

0

L

0

L

i i

x

x

y

y

x ,y

44i

RFEM

FEM

k =3

l =5

0

1

2

3

0

0

L

x

y

y

FEM

k =5

l =4

0

1

2

30

L

0

x

x

y

RFEM RFEM

54i

35i

i i Lx ,y ,y

i i Lx ,y ,x

k =3

l =5

0

1

2

3

0

0

L

x

y

y

k =5

l =4

0

1

2

30

L

0

x

x

y

k =4

l =4

0

1

2

3

0

L

0

L

i i

x

x

y

y

x ,y

44i

Page 11: A New Computational Package for Using in CFD and Other ...iccfd9.itu.edu.tr/assets/pdf/papers/ICCFD9-2016-P212.pdf · ICCFD9-xxxx A New Computational Package for Using in CFD and

11

Figure 8: Nodes involved in the equation of node i for FEM and RFEM on two quadratic elements in

three dimensions.

Figure 9: A reduced quadratic element in three-dimensional with two DOF for approximation the

mixed derivatives /2 x yf¶ ¶ ¶ , 2 x z/f¶ ¶ ¶ and

2 y z/f¶ ¶ ¶ .

FEM

k

l

i

FEMm

0L

0

L

x x

y

z Ly

x ,y ,z ,zi i i 0

k

l

i

m

, ,

0L

0

L

i i i L 0

xx

y

z

x ,y ,z y z

k

l

i

m

0L

0

L

x x

y

z Ly

x ,y ,z ,zi i i 0

k

l

i

m

, ,

0L

0

L

i i i L 0

xx

y

z

x ,y ,z y z

RFEM

RFEM

For the nodes are located on this xy surface

For the nodes are located on this xy surface

For the nodes are located on this xy surface

For the nodes are located on this xz surface

For the nodes are located on this xz surface

For the nodes are located on this xz surface

For the nodes are located on this yz surface

For the nodes are located on this yz surface

For the nodes are located on this yz surface

xy

z

Page 12: A New Computational Package for Using in CFD and Other ...iccfd9.itu.edu.tr/assets/pdf/papers/ICCFD9-2016-P212.pdf · ICCFD9-xxxx A New Computational Package for Using in CFD and

12

4 A new technique to approximate complete second order differential equation

Complete second order differential equation can be written as follows:

2

2

d dD A J

dxdxf

f f f+ + = (36)

The problem in approximation of equation (36) is related to the first-order derivative when A is a big

number, by derivatives coefficients of equation (36) can write

A x

PeDD

= (37)

Where Pe is absolute of Peclet number. Now, I will introduce a technique to approximate equation (36)

by FEM and RFEM on liner shape functions based on the Peclet number, in this case b is written as follows: (x,y,z)ib q= (38)

Equation (38) give a Hybrid Difference Scheme (HDS), where (x,y,z)iq is "Upwind Parameter" and is

chosen in the range (x,y,z)i0 1q£ £ , it is clear that there are many choices that can be used for. I used the

following equation based on the Peclet number for it

(x,y,z)

klm(x,y,z)

Pei

i

112 Pe

q = - (39)

Where klm(x,y,z)iPe is given by

k l m

klm

k l m

(x) (y) (z)

(x,y,z)

(x) (y) (z)

2 2 2

i i ii

i i i

Pe Pe PePe

Pe Pe Pe

+ +=

+ + (40)

And

.k l m(x) (y) (z)

i i ii i i

i i i

A x B y C zPe , Pe , Pe

D D DD D D

= = = (41)

Where k k l l m mL 0 L 0 L 0x x x , y y y , z z zD D D= - = - = - (42) The

.iA , iB and iC are the flux Jacobian matrix (derivations coefficients). I write (x,y,z)iq based on the

Peclet number, when the Peclet number is very high (or as another option for all Peclet numbers), (x,y,z)iqcan be written based on the gradient of unknown variable, I've used the following equation for iq as a better option than [1]

Page 13: A New Computational Package for Using in CFD and Other ...iccfd9.itu.edu.tr/assets/pdf/papers/ICCFD9-2016-P212.pdf · ICCFD9-xxxx A New Computational Package for Using in CFD and

13

(x,y,z)

klm(x,y,z)

Gr0.5i

i

11r

q = - (43)

Equation (43) is a basic choice to(x,y,z)

Griq , It is clear that there are many choices that can be used for, and

klm(x,y,z)ir in equation (43) is given by

klm k l m(x,y,z) (x) (y) (z)i i i ir max r , r , ré ù= ê úë û (44)

A much better form to calculate ir compared to [1] can be written as follows:

e e e e

e e e ek k k kk k k k

a b k e 1 e 1

e

.

1 e 1k k k k

.

. .k

. .

k

k k(x) (x) (x)

L 0 L 0L i i 0 L 0 L 0L i i 0

i i iL i i 0 L 0

L i i 0L 0

max , x x x xx x x xr g g min ,

min ,x x x x x x

f f f ff f f f

f f f f f f- -

- -

- -é ùé ù- -ê úê ú - -- -ê úê úë û= +ê úé ù- -ê ú -ê úê ú- -ê úê ú -ë ûë û

e 1 e 1

e 1 e 1k

.. ..

. .k

L 0

L 0x xf f

+ +

+ +

é ùé ùê úê úê úê úê úê úê úê úê úê ú-ê úê úê - úê úë ûë û

(45) e e e e

e e el l l ll l l l

a b l e 1 e 1

e 1 e 1l l

.. ..

.. ..l l

l l

l l(y) (y) (y)

L 0 L 0L i i 0 L 0 L 0L i i 0

i i iL i i 0 L 0

L i i 0L 0

max , y y y yy y y yr g g min ,

min ,y y y y y y

+

f f f ff f f f

f f f f f f- -

- -

- -é ùé ù- -ê úê ú - -- -ê úê úë û= ê úé ù- -ê ú -ê úê ú- -ê úê ú -ë ûë û.. .

e

e 1 e 1

e 1 e

.

.1

. .l .l

L 0

L 0y yf f

+ +

+ +

é ùé ùê úê úê úê úê úê úê úê úê úê ú-ê úê úê - úê úë ûë û

e e e e

e e e em m m mm lm m m

a b m e 1 e 1

e 1 e 1m lm m mm

..

m

..

m m(z) (z) (z)

L 0 L 0L i i 0 L 0 L 0L i i 0

i i iL i i 0 L 0

L i i 0L 0

max , z z z zz z z zr g g min ,

min ,z z z z z z

f f f ff f f f

f f f f f f- -

- -

- -é ùé ù- -ê úê ú - -- -ê úê úë û= +ê úé ù- -ê ú -ê úê ú- -ê úê ú -ë ûë û

e 1 e 1

e 1 e 1m

. .

m

. .L 0

L 0z zf f

+ +

+ +

é ùé ùê úê úê úê úê úê úê úê úê úê ú-ê úê úê - úê úë ûë û

Where

a a a

k l mk l m(x) (x) (y) (y) (z) (z)i i i i i ig (1 c) , g (1 c) , g (1 c)b b bé ù é ù é ù= - = - = -ê ú ê ú ê úë û ë û ë û (47)

And

b b k k l lk l

(x) (x) (x) (y) (y) (y)i i i i i ig c (1 ) , g c (1 )b b b bé ù é ù= + - = + -ê ú ê úë û ë û

(46) b

m mm(z) (z) (z)i i ig c (1 )b bé ù= + -ê úë û

Where c for FUDS is 1 and for CDS and HDS is 0. The solution can starts with (x,y,z)

Gri 1q = . Note that for

liner shape functions only first term of equation (45) is used and second term will be zero.

Page 14: A New Computational Package for Using in CFD and Other ...iccfd9.itu.edu.tr/assets/pdf/papers/ICCFD9-2016-P212.pdf · ICCFD9-xxxx A New Computational Package for Using in CFD and

14

5 A new shape functions (limited shape functions) for general problems

However, the hybrid method is provided above has very good performance, but when the Peclet number is infinite, its accuracy is of the first order, also the equation (38) can be used only for the linear shape functions, in this section another technique is provided for eliminating oscillations that can be used for higher-order shape functions in any degree. This technique works directly on the shape functions (this technique is equivalent to creating new shape functions) and is applicable for central difference scheme (CDS), hybrid difference scheme (HDS) and full upwind difference scheme (FUDS), for this purpose, the shape functions are written as following

EDL FVL (p) (ref)

EDL FVL (p) (ref)

EDL FVL (p) (ref)

0 i 0 i 0

j i j i j

L i L i L

N (1 )N N

N (1 )N N

N (1 )N N

,

,

,

d d

d d

d d

= - +

= - +

= - +

(48)

The equation (46) is non-oscillatory shape function, where id is Element Degree Limiter, Field Variable

Limiter (EDL, FVL), and (p)N can be any function of p 2³ (for example, the functions of Lagrangian, Serendipity and Bezier for standard shape functions and the functions of Legendre, Chebyshev, Fourier,

etc. for hierarchical shape functions). (ref)

0N , (ref)

jN and(ref)

LN in equation (48) are reference functions,

original function for them become (ref) (1) (ref) (ref) (1)

0 0 j L LN N , N 0 , N N= = = (49)

Where (1)

0N and (1)

LN are liner shape functions. The following functions can also be used as reference function on the Lagrangian, Serendipity and Bezier functions to make the shape functions of non-oscillatory (ref) (ref) 0 L (ref)

0 L j j 0 j L j L 0N eN , N S N S N N , N eN= = + + = (50)

And for boundary elements become

+

+

(ref) (ref) L (ref)

(ref) (ref) 0 (ref)

0 0 L j j L j L

0 j j 0 j L L 0

N N eN , N S N N , N 0

N 0 , N S N N , N N eN

= = + =

= = + = (51)

Where e is a constant coefficient and 0N , jN and LN can be the Lagrangian, Serendipity or Bezier

functions and degree them can be chosen 1 or p (for 1-degree and p-degree the equations and results are different).

0

jS and L

jS are a constant coefficients and are given by

. . . .

0 L

j 0 L j

L 0 L 0p 1 p 1j j

j 0 L j

L 0 L 0j 1 j 1

( ) ( )S (1 e) , S (1 e)

( ) ( )

w w

w w

x x x xx x x x

x x x xx x x x

- -

= =

- -- -

= - = -- -- -å å

(52)

Where jx is the location of the nodes (control points) and w is the weight coefficient (optional). For

p 3³ the hierarchical shape functions with (ref)

jN 0= can be used. e is chosen as, =e 1 p- for

w ¥= , =e 1- for w 0= and =e 1/1 p- for .w ¥= - . For other w the value of e is different (for

Page 15: A New Computational Package for Using in CFD and Other ...iccfd9.itu.edu.tr/assets/pdf/papers/ICCFD9-2016-P212.pdf · ICCFD9-xxxx A New Computational Package for Using in CFD and

15

example, for p 3= , whenw 1= , e 1.25-= and whenw 2= ,e 1.5-= or whenw 1= - , e 0.8-=and whenw 2= - , e 2/3-= ). Another reference function is

+

+

(ref)

(ref) L 0

(ref)

0 i 0 L

j i j L i j 0 j

L i L 0

1N (1 )(N eN )21N (1 )S N (1 )S N N21N (1 )(N eN )2

a

a a

a

= +

é ù= + + - +ë û

= -

(53)

When i 1a = equation (53) give backward difference approximation and when i -1a = give forward

difference approximation. The id in equation (48) has two range: 1- Using the id as EDL by choosing it in the range EDL

i0 d ¥< £ .

2- Using the id as FVL by choosing it in the range FVL

i 0¥ d- £ < . Note: if the reference function is greater than the shape function the sign of EDL and FVL will change. The EDL can be used only in the directions of the shape function (directions of operator) that i 0b ¹ is

for, and the FVL is used only in the directions of the shape function that i 0b = is for or inverse, or the FVL and EDL can be added on all nodes with identical or non-identical values, and their relationship is written as follows:

( EDL FVL )1 ( EDL FVL )2

(x,y,z)i i i i i i(1 ), ,d b d b d qé ù= + -ë û (54)

Where (x,y,z)iq is given by equation (39) or (43). A constant value of (x,y,z)iq ( (x,y,z)i 1q = ) can also be used as

low cost form, note that when iq is written based on Peclet number, when the Peclet number is infinite

the (x,y,z)iq will be 1 (this paper is based on (x,y,z)i 1q = and I show when (x,y,z)i 1q = is considered, very

accurate solutions can be achieved for all conditions). The id is applied to shape functions as one-

dimensional (separately for each direction of shape functions). The value of the (EDL FVL)1

i,d and

(EDL FVL)2

i,d

depending on the application is, forms that can make by using of EDL, FVL is very high, here I am presenting only some of them which are included;

Full Upwind Difference Scheme (b 1= ) Form 1, for p 2= ;

To use equation (53) as reference function with p 1= , e 1= - and 0w = on equation (52).

To choose in equation (54) A- ( EDL FVL )1

i 1,d = - , ( EDL FVL )2

i 1,d = .

B- ( EDL FVL )1

i 100,d = - , ( EDL FVL )2

i 100,d = .

C- ( EDL FVL )1

i 1000,d = - , ( EDL FVL )2

i 100,d = . Form 2, for p 3³ ;

To use equation (49) as reference function. To choose in equation (54)

A- ( EDL FVL )1 ( EDL FVL )2

i i 100, ,d d= = - .

B- ( EDL FVL )1 ( EDL FVL )2

i i 1, ,d d= = - (this is a very inexpensive scheme with high performance and

always is used with(x,y,z)i 1q = on equation (54)).

Page 16: A New Computational Package for Using in CFD and Other ...iccfd9.itu.edu.tr/assets/pdf/papers/ICCFD9-2016-P212.pdf · ICCFD9-xxxx A New Computational Package for Using in CFD and

16

Hybrid Difference Scheme ( (x,y,z)ib q= )

Hybrid Difference Scheme (HDS) is achieved by placing (x,y,z)ib q= on the forms of the FUDS.

Central Difference Scheme (b 0= )

Form 3, for p 2= ;

To use equation (53) as reference function with p 1= , e 1= - and 0w = on equation (52).

To choose ( EDL FVL )1

i i1000,d b= , ( EDL FVL)2

i 1000,d = in equation (54). Form 4, for p 3= ;

To use equation (53) as reference function with p 1= , e 1= - and 0w = on equation (52).

To write ( EDL FVL )1

i i iap ap p 1(1 ) (1 )2 2p

, .d b b- + += + + -

and ( EDL FVL )2

i ap,.d = - in equation

(54). To choosea 30= and p 3= in this form.

Form 5, for p 3= ;

To use equation (50) as reference function with p 3= , e 1.25= - and 1w = on equation (52).

To choose ( EDL FVL )1

i i i

p p 1(1 ) (1 )2 2

,d b b- - -= + + -

, ( EDL FVL )2

i p 1,d = - - in equation

(54). Form 6, for p 3= ;

To use equation (49) as reference function.

To write ( EDL FVL )1

i i iap ap p 1(1 ) (1 )2 2p

, .d b b- + += + + -

and ( EDL FVL )2

i ap,.d = - in equation

(54). A- To choosea 30= and p 3= in this form.

B- To choosea 1/3= and p 3= in this form (this form is like form 2-B but on CDS).

As other form for central difference scheme (CDS) in equation (48), jN is written twice, once with 0a

and once with La

,

,

,

,

EDL FVL (p) (ref)

EDL FVL (p) (ref)

EDL FVL (p) (ref)

EDL FVL (p) (ref)

0 i 0 i 0

j 0 0 i j 0 0 i j

j L L i j L L i j

L i L i L

N (1 )N N

1 1N ( )(1 )N ( ) N2 21 1N ( )(1 )N ( ) N2 2

N (1 )N N

d d

a a d a a d

a a d a a d

d d

= - +

= + - + +

= - - + -

= - +

(55)

In all regions 0 La a= or one of them is zero as a result, one of the equations is removed but in

discontinuous regions 0 La a¹ and will have two equations. This form is always written with( EDL FVL )1

i 0,d = and the scheme is in all regions (including regions of large gradients such as shock waves)

quite central difference. This form give the best result for all positions and always is used with(x,y,z)i 1q =

on equation (54).

Page 17: A New Computational Package for Using in CFD and Other ...iccfd9.itu.edu.tr/assets/pdf/papers/ICCFD9-2016-P212.pdf · ICCFD9-xxxx A New Computational Package for Using in CFD and

17

Form 7, for p 2= ;

To use equation (53) as reference function with p 1= , e 1= - and 0w = on equation (52).

To choose ( EDL FVL )1

i 0,d = , ( EDL FVL )2

i 2,d = in equation (54). Form 8, for p 3= ;

To use equation (49) as reference function.

To write ( EDL FVL )1

i 0,d = and g g

( EDL FVL )2

i i i

p 1a (1 ) (1 )2 2

, .d b b+-= - + +

in equation (54).

A- To choosea 2= and p 3= in this form.

B- To choosea 0= and p 3= in this form.

Where g

ib

is given by

g g g

g g g

k k l l m m(x) (y) (z)(x) (x) (y) (y) (z) (z)i i i i i i i i i , , b b a b b a b b a= = =

(56)

Where

g g k k k k l l l l

k l

k k k k l l l l(x) (y)

i 0 i L i 0 i Li i

i 0 i L i 0 i L

( x x ) ( x x ) (y y ) (y y ) ,

( x x ) ( x x ) (y y ) (y y )b b

æ ö æ ö- - - - - -÷ ÷ç ç÷ ÷= =ç ç÷ ÷ç ç÷ ÷ç ç- - - - - -è ø è ø

(57)

g m m m m

m

m m m m(z)

i 0 i Li

i 0 i L

( z z ) ( z z )

( z z ) ( z z )b

æ ö- - - ÷ç ÷= ç ÷ç ÷ç - - -è ø

These plans are available for the Lagrangian shape functions but for p 3³ can be used on hierarchical shape functions without change. The schemes presented above can be written for Bezier functions as well.

6 New isogeometric analysis and new functions In this section, I'm going by reference functions presented in the previous section, I introduce a new isogeometric analysis. The isogeometric analysis [5] is done by the B-Spline and NURBS functions, although the reference functions presented above are applicable with B-Spline and NURBS functions, here I introduce a new Isogeometric Analysis Functions that are closer to the standard finite element method and more comfortable for the use in CFD and engineering, I made the following algorithm to make these functions on the Bezier functions

. .

. .

(IGA) (Bezier) (IGA) (Bezier) (Bezier)

(IGA) (Bezier)

(IGA) (Bezier) (Bezier) (IGA) (Bezier)

0 0 1 0 1

2,3,4,...,L 2 2,3,4,...,L 2

L 1 L L 1 L L

1 1N N , N N N2 2N N

1 1N N N , N N2 2

- -

- -

= = +

=

= + =

(58)

Note that

.

(IGA)

2,3,4,...,L 2N - are local and can add as hierarchical as well, for p 2= these functions are

equivalent to the B-Spline functions and for p 3= are similar the PHT-spline functions work of [6] and for more than a third degree are completely new. The equation (58) for first and last boundary elements become

Page 18: A New Computational Package for Using in CFD and Other ...iccfd9.itu.edu.tr/assets/pdf/papers/ICCFD9-2016-P212.pdf · ICCFD9-xxxx A New Computational Package for Using in CFD and

18

. .

. .

(IGA) (Bezier) (IGA) (Bezier)

(IGA) (Bezier)

(IGA) (Bezier) (Bezier) (IGA) (Bezier)

0 0 1 1

2,3,4,...,L 2 2,3,4,...,L 2

L 1 L L 1 L L

N N , N N

N N

1 1N N N , N N2 2

- -

- -

= =

=

= + =

(59)

. .

. .

(IGA) (Bezier) (IGA) (Bezier) (Bezier)

(IGA) (Bezier)

(IGA) (Bezier) (IGA) (Bezier)

0 0 1 0 1

2,3,4,...,L 2 2,3,4,...,L 2

L 1 L 1 L L

1 1N N , N N N2 2N N

N N , N N

- -

- -

= = +

=

= =

(60)

For IGA functions, the liner functions to use in equations (49), (50) and (53) are a liner functions between two control points (see Figure 10), while the p-order functions for using in equations (50) and (53) are the same IGA functions. For functions (60) can be write Form 9, for p 2= ;

To use equation (53) as reference function with 0 L

j jS S 2= = (e 1= - and 0w = on

equation (52)). To choose ( EDL FVL )1

i 0,d = , ( EDL FVL)2

i 1,d = in equation (54). Form 10, for p 3= on non-boundary elements;

To use equation (49) as reference function.

To choose ( EDL FVL )1

i 0,d = , g g

( EDL FVL)2

i i i7 7(1 ) (1 )4 4

,d b b-= - + +

in equation (54).

On boundary elements;

To choose ( EDL FVL )1

i 0,d = , g g

( EDL FVL)2

i i i

11433 (1 ) (1 )2 1000

,d b b-= - + +

in equation (54).

Figure 10: Liner functions for quadratic and cubic IGA functions.

1

0

x0 1 2 3 4 5

(1)

0N (1)

LN(1)

0N (1)

LN(1)

LN(1)

0N (1)

LN(1)

0N (1)

LN(1)

0N

1

0

x0 1 2 3 4 5

(1)

0N (1)

LN(1)

0N(1)

LN (1)

0N(1)

LN (1)

0N(1)

LN(1)

0N (1)

LN

Page 19: A New Computational Package for Using in CFD and Other ...iccfd9.itu.edu.tr/assets/pdf/papers/ICCFD9-2016-P212.pdf · ICCFD9-xxxx A New Computational Package for Using in CFD and

19

7 Solutions and Examples In this section, some examples that have been solved by standard shape functions that are including functions of the Lagrangian and hierarchical shape functions that are including functions of the Legendre, Chebyshev (first and second kind) and Fourier Sine Series are presented. It explained that the volume examples were solved to test RFEM is very high and here are just a few of them select and presented. Examples include;

1- 1D convection equation with source term.

dA cos(x)

dxf = (61)

2- 1D advective equation

d d

0dt dxf f+ = (62)

3- 1D and 2D Euler equations in liner form

Q QA B 0x y

¶ ¶+ =¶ ¶

(63)

4- 2D Navier - Stokes equations in liner form

v v

Q Q Q QA B A Bx y x y

¶ ¶ ¶ ¶+ = +¶ ¶ ¶ ¶

(64)

WhereA ,B , vA and vB are the Jacobian matrix and can be found in the literature (see, for example, reference [7]).

5- 1D convection-diffusion equation

2

2

d dA D 0

dx dxf f- = (65)

Here details of the solution of these equations due to the length of paper and be less important are not presented and only the results are shown. Note that all examples are RFEM (the results for the NFFEM is almost identical). I used the infinite elements for non-solid boundaries in all examples were solved. I used the Gauss elimination method to solve the system of equations and also did not use any of the stabilizer term

Page 20: A New Computational Package for Using in CFD and Other ...iccfd9.itu.edu.tr/assets/pdf/papers/ICCFD9-2016-P212.pdf · ICCFD9-xxxx A New Computational Package for Using in CFD and

20

Figure 11: 1D convection equation with source term on p0,[ ] andA 1= .

Figure 12: 1D advective equation.

Shape function; Standard (Lagrange)

Weight function; Subdomain Collocation Method

form 6-A with 1� =.

Shape function; Standard (Lagrange)

Weight function; Subdomain Collocation Method

form 5 with 1� =.

Shape function; Standard (Lagrange)

Weight function; Subdomain Collocation Method

form 2-B, p 3 with 1= =� .

Shape function; IGA

Weight function; Point Collocation Method

form 10 with 1� =.

Shape function; Hierarchical (Legendre)

Weight function; Galerkin Method

form 4 with 1� =.

Shape function; Hierarchical (Fourier Sine Series)

Weight function; Galerkin Method

form 5 with 1� =.

Shape function; Hierarchical ( )Chebyshev First Kind

Weight function; Galerkin Method

form 6-B with 1� =.

Shape function; Hierarchical ( )Chebyshev Second Kind

Weight function; Galerkin Method

form 2-A, p 3 with 1= =� .

Shape function; Standard (Lagrange)

Weight function; Subdomain Collocation Method

form 3 with 1� =.

Shape function; Standard (Lagrange)

Weight function; Point Collocation Method

form 8-A with 1� =.

Shape function; Standard (Lagrange)

Weight function; Galerkin Method

form 7 with 1� =.

Shape function; Hierarchical (Legendre)

Weight function; Galerkin Method

form 8-B with 1� =.

Shape function; Standard (Lagrange)

Weight function; Subdomain Collocation Method

form 1-C with 1� =.

Shape function; Standard (Lagrange)

Weight function; Galerkin Method

form 1-C HDS with 1� =.EXACT

With 100 uniform elements

EXACT

With 100 uniform elements

EXACT

With 70 uniform elements

� Shape function; Standard (Lagrange), 16 uniform elements

Weight function; Point Collocation Method

form 3 with 1� =.

� ��� ��� ��� �� ���� ��� ���� �

x

1

0.8

0.6

0.4

0.2

0

EXACT

Shape function; Standard (Lagrange), 8 uniform elements

Weight function; Point Collocation Method

form 8-A with 1� =.

Page 21: A New Computational Package for Using in CFD and Other ...iccfd9.itu.edu.tr/assets/pdf/papers/ICCFD9-2016-P212.pdf · ICCFD9-xxxx A New Computational Package for Using in CFD and

21

Figure 13: Roe`s approximate solution to the Riemann problem for the Euler equations 1D.

Figure 14: Grid for flow around a cylinder.

-5 0 5 10

-5 0 5 10

-5 0 5 10 -5 0 5 10

1

0.8

0.6

0.4

0.2

0

8700

8500

8300

8100

100000

80000

60000

40000

20000

0

300

200

100

0

-100-5 0 5 10

420

400

380

360

340

320

1.1

0.9

0.7

0.5

0.3

0.1

-0.1

-0.3-5 0 5 10

entropy (J/kg/K)

mach number velocity (m/s)speed of sound (m/s)

density (kg/m ) pressure (N/m )22

Shape function; Standard (Lagrange), 99 uniform elements

Weight function; Subdomain Collocation Method

form 8-A with 1� =.

Shape function; Standard (Lagrange), 99 uniform elements

Weight function; Galerkin Method

form 8-B with 1� =.

Shape function; Standard (Lagrange), 99 uniform elements

Weight function; Point Collocation Method

form 2-B, p 3 with 1= =� .

Shape function; Hierarchical (Legendre), 99 uniform elements

Weight function; Galerkin Method

form 2-A, p 3 with 1= =� .

Shape function; Hierarchical (Fourier Sine Series), 99 uniform elements

Weight function; Galerkin Method

form 6-B with 1� =.

Shape function; IGA, 99 uniform elements

Weight function; Point Collocation Method

form 10 with 1� =.

Q

0

at �

P

EXACT

Page 22: A New Computational Package for Using in CFD and Other ...iccfd9.itu.edu.tr/assets/pdf/papers/ICCFD9-2016-P212.pdf · ICCFD9-xxxx A New Computational Package for Using in CFD and

22

Figure 15: Flow around a cylinder (steady-state Euler equations).

Figure 16: Mach contours for flow around a cylinder (steady-state Euler equations).

y 0, M 3= =

-3 -2 -1 0 1 2 3

4

3.5

3

2.5

2

1.5

1

0.5

0

M

-3 -2 -1 0 1 2 3

4

3.5

3

2.5

2

1.5

1

0.5

0

M

-3 -2 -1 0 1 2 3

4

3.5

3

2.5

2

1.5

1

0.5

0

M

-3 -2 -1 0 1 2 3

4

3.5

3

2.5

2

1.5

1

0.5

0

M

Shape function; Standard (Lagrange)

Weight function; Point Collocation Method

form 2-A, p 3 with 1= =� .

Shape function; Standard (Lagrange)

Weight function; Subdomain Collocation Method

form 2-B, p 3 with 1= =� .

Shape function; Hierarchical (Fourier Sine Series)

Weight function; Galerkin Method

form 8-A with 1� =.

Shape function; IGA

Weight function; Point Collocation Method

form 10 with 1� =.

y 0, M 3= =

y 0, M 3= = y 0, M 3= =

Shape function; function; Standard (Lagrange)

Weight function; Galerkin Method

form 5 with 1� =.

M 0.4=M 0.4=

M 0.4= M 0.4=

Shape function; Standard (Lagrange)

Weight function; Point Collocation Method

form 2-B, p 3 with 1= =� .

Shape function; Standard (Lagrange)

Weight function; Subdomain Collocation Method

form 8-B with 1� =.

Shape function; Hierarchical ( )Chebyshev First Kind

Weight function; Galerkin Method

form 8-A with 1� =.

Shape function; IGA

Weight function; Point Collocation Method

form 10 with 1� =.

Page 23: A New Computational Package for Using in CFD and Other ...iccfd9.itu.edu.tr/assets/pdf/papers/ICCFD9-2016-P212.pdf · ICCFD9-xxxx A New Computational Package for Using in CFD and

23

Figure 17: Grid for flow over a NACA 0012 airfoil.

Figure 18. Skin friction distributions for laminar flow over a NACA 0012 airfoil (steady-state Navier-Stokes equations).

Skin

fric

tion

coeffic

ient 0.15

0.1

0.05

0

-0.05

-0.1

-0.15

0.2

0 0.2 0.4 0.6 0.8 1

°M 0.5, Re 5000, a 2= = =

x/c

Skin

fric

tion

coeffic

ient 0.15

0.1

0.05

0

-0.05

-0.1

-0.15

0.2

0 0.2 0.4 0.6 0.8 1

°M 0.5, Re 5000, a 2= = =

x/c

Skin

fric

tion

coeffic

ient 0.15

0.1

0.05

0

-0.05

-0.1

-0.15

0.2

0 0.2 0.4 0.6 0.8 1

°M 0.5, Re 5000, a 2= = =

x/c

Skin

fric

tion

coeffic

ient 0.15

0.1

0.05

0

-0.05

-0.1

-0.15

0.2

0 0.2 0.4 0.6 0.8 1

°M 0.5, Re 5000, a 2= = =

x/c

Shape function; Standard (Lagrange)

Weight function; Subdomain Collocation Method

form 2-B with p 3 and 1�= =. .

Shape function; Hierarchical (Legendre)

Weight function; Galerkin Method

form 6-B with 1� =.

Shape function; Hierarchical (Fourier Sine Series)

Weight function; Galerkin Method

form 8-B with 1� =.

Q

0

at �

P

Shape function; IGA

Weight function; Point Collocation Method

form 10 with 1� =.

Page 24: A New Computational Package for Using in CFD and Other ...iccfd9.itu.edu.tr/assets/pdf/papers/ICCFD9-2016-P212.pdf · ICCFD9-xxxx A New Computational Package for Using in CFD and

24

Figure 19: Surface pressure distribution for subcritical NACA 0012 airfoil (steady-state Euler equations).

Shape function; Standard (Lagrange)

Weight function; Subdomain Collocation Method

form 5 with 1� =.

°M 0.8, a 1.25= =

°M 0.8, a 1.25= =

°M 0.8, a 1.25= =

-1.2

-0.8

-0.4

0

0.4

0.8

1.2

cp

°M 0.8, a 1.25= =

x/c

-1.2

-0.8

-0.4

0

0.4

0.8

1.2

cp

x/c

-1.2

-0.8

-0.4

0

0.4

0.8

1.2

cp

x/c

-1.2

-0.8

-0.4

0

0.4

0.8

1.2

cp

x/c

x/c

x/c

x/c

x/c

-1.2

-0.8

-0.4

0

0.4

0.8

1.2

cp

°M 0.63, a 2= =

-1.2

-0.8

-0.4

0

0.4

0.8

1.2

cp

°M 0.63, a 2= =

-1.2

-0.8

-0.4

0

0.4

0.8

1.2

cp

°M 0.63, a 2= =

-1.2

-0.8

-0.4

0

0.4

0.8

1.2

cp

°M 0.63, a 2= =

Shape function; Standard (Lagrange)

Weight function; Point Collocation Method

form 8-B with 1� =.

Shape function; Hierarchical (Legendre)

Weight function; Galerkin Method

form 2-B with 1� =.

Shape function; IGA

Weight function; Point Collocation Method

form 10 with 1� =.

Page 25: A New Computational Package for Using in CFD and Other ...iccfd9.itu.edu.tr/assets/pdf/papers/ICCFD9-2016-P212.pdf · ICCFD9-xxxx A New Computational Package for Using in CFD and

25

Figure 20: Solution domain and lines grid for flat plate flow.

Figure 21: Skin friction distributions for flat plate flow (steady-state Navier-Stokes equations).

Figure 22: 1D convection-diffusion equation.

0 0.25 0.5 0.75 1

0.4

0.3

0.2

0.1

x/c

cf

0

Blasius

Re 500,M 0.3= =

Q

0

at �

P

0 0.25 0.5 0.75 1

0.4

0.3

0.2

0.1

x/c

cf

0

Blasius

Re 500,M 0.3= =

EXACT

Shape function; Standard (Lagrange), 10 uniform elements

Weight function; Galerkin Method

form 3 with 1� =.

Shape function; Standard (Lagrange), 10 uniform elements

Weight function; Galerkin Method

form 8-B with 1� =.

x0 0.2 0.4 0.6 0.8 1

1

0.8

0.6

0.4

0.2

0

p 0.1=

e

p 5=

e

p 0.5=

e

Shape function; Hierarchical ( )Chebyshev Second Kind

Weight function; Galerkin Method

form 2-B p 3 with 1�= =.

Shape function; Hierarchical ( )Chebyshev First Kind

Weight function; Galerkin Method

form 2-A, p 3 with 1= =� .

Shape function; Standard (Lagrange)

Weight function; Subdomain Collocation Method

form 8-B with 1� =.

Shape function; Standard (Lagrange)

Weight function; Subdomain Collocation Method

form 6-A with 1� =.

Page 26: A New Computational Package for Using in CFD and Other ...iccfd9.itu.edu.tr/assets/pdf/papers/ICCFD9-2016-P212.pdf · ICCFD9-xxxx A New Computational Package for Using in CFD and

26

Figure 23: Elements and nodes influenced by the discontinuity when is used ia¢ rather than ia .

8 Conclusions The best criterion for evaluate a numerical method is the results of the method and as can be seen in the examples were solved, the result of RFEM comparable to the best results were obtained by other methods is (for these examples, because of the small size of the elements, the difference between the results from different methods can not be seen) and given that the system of equations resulting from this approach similar (in terms of density) Finite Difference Method (FDM) is its efficiency can be compared with finite difference methods (although the use of the Legendre shape functions gives an efficiency much higher than FDM) so do not think other methods that are used in CFD be able to compete with it. Also, due to the similarity of relations many of the techniques used in the FDM can be used to RFEM [8]. References

[1] Khaleghi, M. R. A. A new computational package for using in CFD and other problems "European

Journal of Natural History" №4 2015, pp. 11-32. [2] Khaleghi, M. R. A. A very inexpensive scheme on RFEM to use in CFD and other problems

"European Journal of Natural History" №4 2015, pp. 3-5. [3] Zienkiewicz, O. C. and Morgan, K. Finite Elements and Approximation, John Wiley & Sons, 1983. [4] Zienkiewicz, O. C. and Taylor, R. L. The Finite Element Method: Volume 1, the Basis, Butterworth-

Heinemann, 2001. [5] Hughes, T.J.R, Cottrell, J.A, Bazilevs, Y. “Isogeometric analysis: CAD, finite elements, NURBS,

exact geometry and mesh refinement”. Computer Methods in Applied Mechanics and Engineering, 194 (39-41), pp. 4135–4195, 2005.

[6] Deng, J, Chen, F, Li, X, Hu, C, Tong, W, Yang, Z, and Feng, Y, Polynomial splines over hierarchical T-meshes. Graph. Models 70(4):76–86, 2008.

[7] Laney, C.B. Computational Gasdynamics. Publisher: Cambridge University Press. Pub. Date: June 28, 1998.

[8] Hoffmann, K.A. and Chiang, S.T. Computational Fluid Dynamics, Vol. I and II, 3rd edition, Engineering Education System (1998).

Elements influenced by the discontinuity Nodes influenced by the discontinuity (with diffuse) Boundary nodes

45