2viscous fluid flow around an elliptic cylinder usingviscous flow. we will follow almost the same...

12
University Bulletin – ISSUE No.20- Vol. (2) – October - 2018. 19 Viscous Fluid Flow Around an Elliptic Cylinder Using Finite Element Method Zinab M. Maatoug & Bashir W. Sharif Dept. of Mathematics, Faculty of Education, Tripoli University Abstract: In this paper we implement the Finite Element Method (FEM) to find the possible solution of Laplace/Poisson equation in two dimension viscous flow. We will follow almost the same steps that have been taken by Dambaru D. Bhatta's paper "Fluid Flow around an Elliptic Cylinder using Finite Element Method" which published in journal of mathematical science and mathematics education [JMS & ME]. The fluid under the investigation is incompressible in term of velocity potential and stream function. Since Laplace/Poisson's equations are involved, then we used Dirichlet and Neumann boundary condition as a boundary value problem (BVP). The triangular element is used to obtain the FEM solution. Finally, due to lack of math lab or other mathematical

Upload: others

Post on 09-Jun-2020

6 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 2Viscous Fluid Flow around an Elliptic Cylinder usingviscous flow. We will follow almost the same steps that have been taken by Dambaru D. Bhatta's paper "Fluid Flow around an Elliptic

University Bulletin – ISSUE No.20- Vol. (2) – October - 2018. 19

Viscous Fluid Flow Around an Elliptic Cylinder Using Finite Element Method

Zinab M. Maatoug & Bashir W. Sharif

Dept. of Mathematics, Faculty of Education, Tripoli University

Abstract: In this paper we implement the Finite Element Method (FEM) to

find the possible solution of Laplace/Poisson equation in two dimension viscous flow. We will follow almost the same steps that have been taken by Dambaru D. Bhatta's paper "Fluid Flow around an Elliptic Cylinder using Finite Element Method" which published in journal of mathematical science and mathematics education [JMS & ME]. The fluid under the investigation is incompressible in term of velocity potential and stream function. Since Laplace/Poisson's equations are involved, then we used Dirichlet and Neumann boundary condition as a boundary value problem (BVP). The triangular element is used to obtain the FEM solution. Finally, due to lack of math lab or other mathematical

Page 2: 2Viscous Fluid Flow around an Elliptic Cylinder usingviscous flow. We will follow almost the same steps that have been taken by Dambaru D. Bhatta's paper "Fluid Flow around an Elliptic

Viscous Fluid Flow around an Elliptic Cylinder using ـــــ ــــــــــــــــــــــــــــــــــــــــــ ـــــــ ــــ

University Bulletin – ISSUE No.20- Vol. (2) – October - 2018. 20

soft-wears problems solver to solve our equations, we predicted the nearest solution to our problem.

Key words : viscous flow, FEM, incompressibility.

Mathematical Formulation We start with two dimensional boundary value problem given

by well known Laplace's and Poisson's equations

훁 푢 =휕 푢휕푥 +

휕 푢휕푦 = 0푎푛푑훁 푢 + 푓 =

휕 푢휕푥 +

휕 푢휕푦 + 푓 = 01

Respectively. These equations have many use in applied mathematics, and engineering ([1],…,[8]).

Fluid Flow equations We know that the mass of conservation principle is : [Rate of mass accumulation within control volume (CV)]=[Rate of

mass flow into CV]-[Rate of mass flow out of CV]. For two-dimensional CV of dimensions ∆x and ∆y as shown in

figure (1) we have

Figure 1 Two-dimensional CV

Page 3: 2Viscous Fluid Flow around an Elliptic Cylinder usingviscous flow. We will follow almost the same steps that have been taken by Dambaru D. Bhatta's paper "Fluid Flow around an Elliptic

Zinab M. Maatoug, Bashir W. Sharif ــــــــــــ ــــ ــــــــــــــــــــــــــــــــــــــــــــــــــــ ـــــــــــ ـ ـ ـــــــــ

University Bulletin – ISSUE No.20- Vol. (2) – October - 2018. 21

Mass accumulation rate= ( ∆ ∆ )

Mass inflow= (ρu) ∆y + (ρv) ∆x Mass outflow= (ρu) ∆ ∆y + (ρv) ∆ ∆x The mass of conservation equation thus gives ( ∆ ∆ ) =

(ρu) ∆y + (ρv) ∆x − (ρu) ∆ ∆y − (ρv) ∆ ∆x2 Dividing by ∆x∆y and rearrangement leads to

=( ) ( ) ∆

∆+

( ) ( ) ∆

∆3

In the limit as ∆x, ∆y → 0, the CV becomes infinitesimally small, and using Taylor series expansions we have

(ρu) ∆ → (ρu) + ∆x ( )

(ρv) ∆ → (ρv) + ∆y ( )

Substituting these results into equation (3) gives

= − ( )− ( ) or + ( )+ ( ) = 0

Thus the equation of continuity is given by

휕ρ휕푡

+ 훁 ∙ (ρ풖) = 04

Here we have풖 = (푢, 푣) represents the velocity vector of flow filed and ρ is the density of the fluid. If the fluid is incompressible, then ρ is constant, and the equation of continuity becomes 훁 ∙ 풖 = 0.

Furthermore, if the motion is irrotational, we have 훁 × 풖 = 0 It is well known in this case there exists a scalar function 휑 called

velocity potential function, such that 풖 = 훁 ∙ 휑.

Page 4: 2Viscous Fluid Flow around an Elliptic Cylinder usingviscous flow. We will follow almost the same steps that have been taken by Dambaru D. Bhatta's paper "Fluid Flow around an Elliptic

Viscous Fluid Flow around an Elliptic Cylinder using ـــــ ــــــــــــــــــــــــــــــــــــــــــ ـــــــ ــــ

University Bulletin – ISSUE No.20- Vol. (2) – October - 2018. 22

Now the velocity components (푢, 푣) of 풖 are given b푦

푢 =휕휑휕푥

푎푛푑푣 =휕휑휕푦.

We also know that 훁 ∙ (훁휑) = 훁 휑

and thus 휑 satisfies the Laplace equation 휕 휑휕푥

+휕 휑휕푦

= 0.5

If we introduce a stream function by ѱ, then the relation between velocity potential 휑 and ѱis given by

푢 =휕휑휕푥

=휕ѱ휕푥

푎푛푑푣 =휕휑휕푦

= −휕ѱ휕푥,

Clearly, we see that a stream function is also satisfied by Laplace equation

훁 ѱ =휕 ѱ휕푥

+휕 ѱ휕푦

= 06

Problem Formulation Our problem consists of two dimensional boundary value

problem (BVP) given by Laplace equation and Poisson's equations. 휵 ∙ 푢(푥, 푦) + 푓(푥, 푦) = 0푖푛퐷7

푢 = 푔(푠)표푛훤 8 휕푢휕푛

+ 훼(푠)푢 = ℎ(푠)표푛훤 9

Here we follow the same steps taken by Dambaru D. Bhatta's for the domain and boundary condition in his paper. Therefore, 퐷 is the interior of the domain, and 훤 and 훤 are the boundary sets for the domain 퐷 such that 퐷 = 훤 ∪ 훤 . The boundary condition on 훤 means the Dirichlet boundary condition and 훤 is referenced to Robins boundary

Page 5: 2Viscous Fluid Flow around an Elliptic Cylinder usingviscous flow. We will follow almost the same steps that have been taken by Dambaru D. Bhatta's paper "Fluid Flow around an Elliptic

Zinab M. Maatoug, Bashir W. Sharif ــــــــــــ ــــ ــــــــــــــــــــــــــــــــــــــــــــــــــــ ـــــــــــ ـ ـ ـــــــــ

University Bulletin – ISSUE No.20- Vol. (2) – October - 2018. 23

condition. If α = 0, equation 9 becomes Neumann boundary condition as shown in figure 2.

Figure 2: The domain D of the Laplace-Poisson equation with Dirichlet boundary 휞ퟏ

and Neumann boundary 휞ퟐ

Using Finite Element Method to Obtain the Solutions The following steps indicate the formulation of the problem and

to set boundary value problem.

1- Disecting the Domain The first step is to divide the whole domain into finite parts or

elements, not necessarily equal to each other. Some authers call this process a Finite Element Method (FEM). The parts are constructed by joining the nodes with each other by straight line to form triangulars. Here, we used linear triangular to minimizing the whole domain. Then, we numbered these parts and the nodes that join the triangular for our calculations. So there will be area called domains 퐷 that contains the node and bounded by 훤 .

2- Weak formulation The weak formulation of a differential equation is a weighted

integral- statement that is equivalent to both the governing differential equation as well as certain types of boundary conditions. We shall develop the weak form of equation (7) over the typical element 퐷 . First,

Page 6: 2Viscous Fluid Flow around an Elliptic Cylinder usingviscous flow. We will follow almost the same steps that have been taken by Dambaru D. Bhatta's paper "Fluid Flow around an Elliptic

Viscous Fluid Flow around an Elliptic Cylinder using ـــــ ــــــــــــــــــــــــــــــــــــــــــ ـــــــ ــــ

University Bulletin – ISSUE No.20- Vol. (2) – October - 2018. 24

we take all nonzero expressions in equation (7) to one side of the equality, multiply the resulting equation by a test function 푤(푥, 푦), then integrate the resulting equation over the element 퐷 as follows:

푤(푥, 푦)[−휕휕푥

휕푢휕푥

−휕휕푦

휕푢휕푦

− 푓(푥, 푦)]푑퐴 = 010

Then we distribute the test function 푤(푥, 푦) so that both 푢 and 푤 are required to be differential only once with respect to 푥 and 푦. To obtain the weak formulation, we use the following theorem (Green-Gauss)

훁 ∙ 풖푑퐴 = 풏 ∙ 풖푑푠 11

Where 풖 is a vector field and the line integral is evaluated in a counter-clockwise sense around the boundary curve 훤 . Now we note the following identities for any test function 푤(푥, 푦), 퐹 (푥, 푦) and 퐹 (푥, 푦) as following

(푤퐹 ) = 퐹 + 푤 12

Or −푤 = 퐹 − (푤퐹 )

(푤퐹 ) = 퐹 + 푤 13

Or −푤 = 퐹 − (푤퐹 )

Next, we use the component form of the gradient ( or divergence) theorem.

휕휕푥

(푤퐹 ) 푑퐴 = (푤퐹 )푛 푑푠14

휕휕푦

(푤퐹 ) 푑퐴 = (푤퐹 )푛 푑푠15

Where 푛 푎푛푑푛 are the components of the unit normal vector such that 풏 = ⟨푛 , 푛 ⟩ on the boundary 퐷 and 푑푠 is the length of an

Page 7: 2Viscous Fluid Flow around an Elliptic Cylinder usingviscous flow. We will follow almost the same steps that have been taken by Dambaru D. Bhatta's paper "Fluid Flow around an Elliptic

Zinab M. Maatoug, Bashir W. Sharif ــــــــــــ ــــ ــــــــــــــــــــــــــــــــــــــــــــــــــــ ـــــــــــ ـ ـ ـــــــــ

University Bulletin – ISSUE No.20- Vol. (2) – October - 2018. 25

infinitsment line element along the boundary (see figure 3) using Eqs. 12,13,14,15 with

Figure 3 The unit normal vector on the boundary of a finite element

퐹 =휕푢휕푥,퐹 =

휕푢휕푦

We obtain 휕푤휕푥

휕푢휕푥

+휕푤휕푦

휕푢휕푦

− 푤푓 푑퐴 − 푤휕푢휕푥

푛 +휕푢휕푦

푛 푑푠 = 0

Or 휕푤휕푥

휕푢휕푥

+휕푤휕푦

휕푢휕푦

푑퐴 = 푤푓 푑퐴 + 푤푑 푑푠 16

The first integral on the right hand side (RHS) is a line integral taken in the counter-clockwise direction around the boundary 훤 .

Since 푢 is the dependent unknown in the differential equation, we call it the primary variable. The coefficient of the test function 푤 in the boundary term that appeared because of the use of integration by parts.

Here 푑 = 푛 + 푛 is called the secondary variable of the

formulation. The specification of the primary variable 푢 on a portion of the boundary is called essential boundary condition and specification of a secondary variable 푑 on the boundary is called natural boundary condition.

Page 8: 2Viscous Fluid Flow around an Elliptic Cylinder usingviscous flow. We will follow almost the same steps that have been taken by Dambaru D. Bhatta's paper "Fluid Flow around an Elliptic

Viscous Fluid Flow around an Elliptic Cylinder using ـــــ ــــــــــــــــــــــــــــــــــــــــــ ـــــــ ــــ

University Bulletin – ISSUE No.20- Vol. (2) – October - 2018. 26

After we let the weak formulation for our problem, now the function u(x, y) is approximated over a normal element 푒 by

푢(푥, 푦) ≈ 푈 (푥, 푦) = 푢 푁 (푥, 푦)17

Where 푢 is the value of the function 푈 (푥, 푦) at the jth node with coordinates (푥 ,푦 ) of the element 푒, and 푁 (푥, 푦) is the interpolation function such that

푁 푥 , 푦 = 훿 =1 푤ℎ푒푛푖 = 푗0 푤ℎ푒푛푖 ≠ 푗 18

and

푁 (푥, 푦) = 1,휕푁휕푥

= 휕푁휕푥

= 0.

From equation 17 and equation 16 with dropping the superscript 푒we get

∬ ∑ 푢 + ∑ 푢 푑퐴 = ∫ 푤푑 푑푠 +

∬ 푤푓푑퐴 19 Clearly equation (19) contains 푛 variables u , u ,…… , u , This

leads us to consider the matrix concepts i.e.,

퐴 푢 = 푏 20

where

퐴 =휕푁휕푥

휕푁휕푥

+휕푁휕푦

휕푁휕푦

푑퐴

푏 = 푁 푑 푑푠 + 푁 푓푑퐴 21

Page 9: 2Viscous Fluid Flow around an Elliptic Cylinder usingviscous flow. We will follow almost the same steps that have been taken by Dambaru D. Bhatta's paper "Fluid Flow around an Elliptic

Zinab M. Maatoug, Bashir W. Sharif ــــــــــــ ــــ ــــــــــــــــــــــــــــــــــــــــــــــــــــ ـــــــــــ ـ ـ ـــــــــ

University Bulletin – ISSUE No.20- Vol. (2) – October - 2018. 27

The linear interpolation function, N (x, y), for the triangular element (see figure 4) can be obtained by Grammer's rule as following

N (x, y) =퐷 ,

퐶 , ,

Where

퐷 , = 푑푒푡1 푥 푦1 푥 푦1 푥 푦

,퐶 , , = 푑푒푡1 푥 푦1 푥 푦1 푥 푦

= 2퐴

Hence

N (x, y) =12퐴

(훼 +훽 푥 + 훾 푦),푖 = 1,2,322

Where 퐴 is the area of the triangle and 훼 , 훽 푎푛푑훾 are constants known in terms of the nodal coordinate given by

훼 = 푥 푦 − 푥 푦 ,훽 = 푦 − 푦 푎푛푑훾 = − 푥 − 푥 .

Figure 4 Linear triangular finite element The values of the element matrices above can be evaluated by

numerical integration techniques. Here we used the Gaussian triangle.

Page 10: 2Viscous Fluid Flow around an Elliptic Cylinder usingviscous flow. We will follow almost the same steps that have been taken by Dambaru D. Bhatta's paper "Fluid Flow around an Elliptic

Viscous Fluid Flow around an Elliptic Cylinder using ـــــ ــــــــــــــــــــــــــــــــــــــــــ ـــــــ ــــ

University Bulletin – ISSUE No.20- Vol. (2) – October - 2018. 28

3- Assemly and Implementation of Boundary Conditions We will show the same steps that taken were by Dambaru D.

Bhatta's paper. So the assembled equations can be partitioned into: 퐴 푈 + 퐴 푈 = 퐵 ,퐴 푈 + 퐴 푈 = 퐵 23

Where {푈 } is the column of known primary variable, {푈 } is the column of unknown primary variable, {퐵 } is the column of unknown secondary variable, and {퐵 } is the column of known secondary variable. Her we need the continuity of the primary variable along the entire inter-element nodes guarantees the continuity of the primary variables along the entire inter-element boundary. Writing (23) as two matrix equations, by using the operation of matrix we get

[퐴 ]{푈 } + [퐴 ]{푈 } = {퐵 } and

[퐴 ]{푈 } + [퐴 ]{푈 } = {퐵 } Now we can see that

{푈 } = [퐴 ] ({퐵 } − [퐴 ]{푈 }) By known {푈 }, then {퐵 }can be evaluated as [퐴 ]{푈 } + [퐴 ]{[퐴 ] ({퐵 } − [퐴 ]{푈 })} = {퐵 }

Finally, the solution and its derivation are evaluated at any chosen point (푥, 푦) in the element 푒 , so

푈 (푥, 푦) = 푢 푁 (푥, 푦)

휕푈휕푥

= 푢 휕푁 (푥, 푦)휕푥

≠ 0

휕푈휕푦

= 푢 휕푁 (푥, 푦)

휕푦≠ 0 24

Note: we stopped because we have used three nodes.

Page 11: 2Viscous Fluid Flow around an Elliptic Cylinder usingviscous flow. We will follow almost the same steps that have been taken by Dambaru D. Bhatta's paper "Fluid Flow around an Elliptic

Zinab M. Maatoug, Bashir W. Sharif ــــــــــــ ــــ ــــــــــــــــــــــــــــــــــــــــــــــــــــ ـــــــــــ ـ ـ ـــــــــ

University Bulletin – ISSUE No.20- Vol. (2) – October - 2018. 29

The Intepretation of the Flow Around an Elliiptic Cylinder

The geometric interpretations of the flow, we usually use the stream function ѱ in the plane 푥푦. Since the flow is irrotational and symmetric in the direction of 푥, Therefore, we consider the rectangular shape ABCDE as shown in figure 5.Taken theѱ at the boundaries and no-slip condition i.e., at the curve BC ,ѱ = 2 at ED,ѱ = 푦,ѱ = 푥 = 0 and finally the laplacian 훁 ѱ zero beside the boundary.

Figure 5 FEM Domain with boundary condition

Conclusion: What we have introduced in our work is the theoretical point

view of the viscous fluid flow around an elliptic cylinder. We have followed almost the same steps that have taken by Dambaru D. Bhatta in his paper. The difference is that we used viscous fluid flow. However, our results remain to be tested using either experimental tolls or computer analysis which we unfortunately do not have. Hence, we based our results on predictions and mathematical analysis. We found that the flow around elliptic cylinder, under the conditions that we have set, is far from

Page 12: 2Viscous Fluid Flow around an Elliptic Cylinder usingviscous flow. We will follow almost the same steps that have been taken by Dambaru D. Bhatta's paper "Fluid Flow around an Elliptic

Viscous Fluid Flow around an Elliptic Cylinder using ـــــ ــــــــــــــــــــــــــــــــــــــــــ ـــــــ ــــ

University Bulletin – ISSUE No.20- Vol. (2) – October - 2018. 30

the invisid case. This is due to the viscosity element that will have an effect on the surface of the cylinder and as a result it will slow the flow. This remained to be depated and tested to support or deny our results.

As future work we are planning to see what will happen if the fluid flow is magnetized.

References [1] Dambaru D. Bhatta, Ph.D., The University of Texas-Pan American,

USA. [2] Huebner, K. H. et. al (2001). The Finite Element Method For

Engineers, Fourth Edition, John Wiley & Sons, Inc., New York. [3] Hughes, T. J. R. (2000). The Finite Element Method: Linear Static and Dynamic Finite Element Analysis, Dover Publications Inc., New York.

[4] Mary, L. Boas. (1983). Mathematical Method in the Physical sciences, 2 edition.

[5] Panayiotis Papadopoulos. (2010). Introduction to the Finite Element Method , California, Berkeley.

[6] Reddy, J. N. (1993). An Introduction to the Finite Element Method, Second Edition, McGraw-Hill, Boston.

[7] Reddy, J. N. and Gartling, D. K. (2001). The Finite Element Method in Heat Transfer and Fluid Dynamics, Second Edition, CRC Press, Boca Raton

[8] White, Frank M. (2008). Fluid Mechanics, Sixth Edition, Mc Graw- Hill Int Ed.