GENERALIZED GALERKIN FINITE ELEMENT FORMULATION

2y ago
44 Views
2 Downloads
225.33 KB
13 Pages
Last View : 2m ago
Last Download : 3m ago
Upload by : Xander Jaffe
Transcription

GANIT J. Bangladesh Math. Soc. (ISSN 1606-3694) 37 (2017) 147-159GENERALIZED GALERKIN FINITE ELEMENTFORMULATION FOR THE NUMERICAL SOLUTIONSOF SECOND ORDER NONLINEAR BOUNDARYVALUE PROBLEMSHazrat Ali* and Md. Shafiqul IslamDepartment of Applied Mathematics, University of Dhaka, Dhaka-1000, Bangladesh*Corresponding author: naim2010math@gmail.comReceived 13.07.2017Accepted 26.10.2017ABSTRACTWe use Galerkin finite element method (GFEM) to solve second order linear and nonlinearboundary value problems (BVPs). First we develop FEM formulation for a class of linear andnonlinear BVPs. Then we present convergence analysis of the method. Later, we give the solutionof some nonlinear BVPs with Diritchlet, Neumann and Robin boundary conditions. All results arecompared with the exact solution and sometimes with the results of the existing method to verifythe convergence, stability and consistency of this method. The results are depicted graphically aswell as in the tabular form.Keyword: Galerkin finite element method, nonlinear boundary value problem.1. IntroductionNumerical methods play a vital role in science and engineering in terms of solving and analyzingproblems. Solutions to scientific and engineering problems can be achieved more easily bynumerical method with the help of computers. So the importance of numerical analysis isincreasing day by day, because most of the natural phenomena can be described by differentialequations with varying boundary conditions easily, but the solutions of which cannot be obtainedanalytically except very simple cases. To solve these problems, we use several methods such asFinite Difference Method (FDM), Galerkin Method, Collocation Method, Least Square Method,Sub-domain Method [1], Adomian Decomposition Method [2], Shooting Method [3] etc.Prior to its conception, the finite difference method held a dominant position in the numericalsolution of continuum problem. But it gives value at particular points only and cannot be used toevaluate the values at the desired points between two grid points. Without that it takes morecomputational cost for getting higher accuracy. For this limitations of the FDM, people start to useGalerkin Method, Collocation Method and Least Square Method for solving differential equations.These methods employ trial functions which must satisfy the boundary conditions. This is little easyin simple problems but in real life problems it is too tough to find these types of trial functions.

148Ali & IslamSo in recent years, Galerkin Finite Element Method (GFEM) [5] is becoming very much populartechnique for obtaining approximate solutions to the ordinary differential equations and the partialdifferential equations that arise in science and engineering applications. Because GFEM gives apolynomial at each point instead of value, so it can give value at any point within the domain. Toapply GFEM, no need to convert the boundary value problems into initial value problems. In thismethod one can easily use the finite element shape functions instead of trial functions. It is ageneral technique for constructing approximate solutions to the boundary value problems. For thisreason GFEM is widely used in solving differential equations.Islam et al. [4] use Galerkin finite element method for solving initial boundary value problems ofdifferential equations. Bhatti and Bracken [6] solved the nonlinear BVP with only Diritchletboundary conditions which is limited within first order, where Islam and Shirin [7] solved thelinear and nonlinear boundary value problems by using Galerkin Method with the help ofBernoulli polynomials.To the best of our knowledge, none have solved the nonlinear boundary value problems with allboundary conditions by Galerkin finite element method yet. So in this paper, our main concern isto solve the nonlinear boundary value problems with all boundary conditions by using Galerkinfinite element method.2. Finite Element Formulation for Second Order Linear BVPsLet us consider the general second order boundary value problem [5] ( ) ( ) ( ) ( ), (1)whose boundary conditions are( ) ( )( ) ( ){}{} (2 ) (2 )where ( ) orand ( ) or are specified numbers. Let us divide the domain into sub-domains. Fig 1 shows the domain that is partitioned into elements of equal (notnecessary) length. The nodes 1, 2, 3, . . . . . . . , and the correspondingare numberedsequentially from left to right starting with element [1]. The total number of degrees offreedom ( 1) 1, where is the number of nodes in each element and is thenumber of elements in whole domain. The elements are numbered in a similar manner additionallywith parenthesis [ ].

Generalized Galerkin Finite Element Formulation for the Numerical Solutions149Fig 1: Domain Discrimination for Quadratic Shape Function.Let the typical trial solution of an element [ ] be given by( ) ( )(3)( ) are known as theHere represents the independent variable in the problem. The functionstrial functions or standard basis functions [5]. The coefficients are to be determined, parameters(called degrees of freedom or generalized co-ordinate) since ( ) is a function of as well as .Now the weighted residual equation for typical element [ ] of the pattern (1) is( ) ( ) ( ) ( )( ) 0 [ ]Integrating first term by parts and after simple modification, we get the following form ( )( )( ) ( ) [ ] ( )[ ][ ]This is an element equation for the typical element [ ] may be written in the conventionalmatrix form as[ ]{ } {Where[ ]are[ ],[ ][ ][ ]and}[ ](4)are called the Stiffness matrix and the Load vector. The entries of( ) ( )[ ]and(5 )[ ]( ) ( ) ( )(5 )[ ][ ]If we take the quadratic shape functions, then the bilinear form and the linear functional arecomputed element by element as follows[ ] ,,,,,,,,,,[ ] ,,,,,,,,,, .,[ ] ,,,,,,,,,

150Ali & Islam[ ] ,[ ] , ,[ ] After computing for all elements and assembling, we finally get the system of equation of the form K11,1 K11,2K11,300 111K2,300 K2,1 K2,2 K1 K1 K1 K 2 K 2K12,33,23,31,11,2 3,122K2,1K2,2K22,30 0 K32,1K32,2 K32,3 K13,1 000 0 0000 0 0 00K1n,2 000K3n, 31 K1n,1K2n,1K3n,1K2n,2K3n,20 a1 F11 a2 F21 a3 F31 F12 F22 F32 F13 (6) 0 K1n,3 F3n 1 F1n K2n,3 aN 1 F2n K3n,3 aN F3n The resulting formal expression is called the element equations. Solving the system of equations(6), we will find the values of , , , . . . . . . . . , . Then putting these values into equation (3),we will obtain the piece-wise polynomial for each element.The solution of equation (6) will be unique, if is a non-singular matrix. In order to ensure thatis non-singular, the basis functions must be linearly independent. By definition, a set offunctions ( ) ( 1, 2, . . . , ) is linearly independent if( ) 0 0 for 1, 2, . . . , . It is easy to show that ( ) are linearly independentimplies thatsince no shape function can be expressed as the scaler multiple of other shape function.3. Finite Element Formulation for Second Order Non-linear BVPsConsider the radiation fin. The fin is assumed to liberate heat to its surrounding only throughradiation. By using the one-dimensional form of the energy equation, the following nonlinear BVPis obtained for the solution of the temperature distribution [13] 1 (0) 1 and (1 ) (1 ) 0, Then following the above procedure, we finally get the compact form1 3(7 )(7 )

Generalized Galerkin Finite Element Formulation for the Numerical Solutions1 [ ] , ,–(1 )(1 )151 (8) [ ] 1, 2, The above equation can be written for each element in the matrix form as[ ] [ ][ ] [ ](9)Where the entries of the matricesgiven by[ ], 1 [ ][ ], [ ] [ ]where , ,(1 ) [ ],[ ],[ ](1 )and[ ]are[ ],,[ ], ,and[ ]respectively(10 ) (10 ) (10 )[ ] 1, 2, ,Assembling those matrices following the above procedure, we find a nonlinear system of equationwhose matrix form is[ ]{ } { }(11)which gives stiffness matrix. For finding initial values ofterm from equation (11), then the equation (11) becomes[ ]{ } { }Then we can find the initial values of coefficients, we neglect the nonlinear(12)solving equation (12) by the method described inthe previous section. After getting the values of , we substitute into equation (11) and starts Picarditeration [8]. The iteration process will continue until we find the desired accurate values of . Thensubstituting the values ofinto equation (3), we get a piece-wise polynomial with variables foreach element. Now we can compare this results with the exact results.By using collocation method with the Haar wavelets, Siraj-ul-Islam et al. [13] have found anumerical result, which is given in Table 1. Here we use 0.5, 60, 0.05 and 0.1.From table 1, we observe in the present method, we just use only 31 nodes with 20 iterations,where Siraj-ul-Islam [13] used 256 nodes.

152Ali & IslamTable 1: Numerical results of exact and approximate solutions of equation (7) using 15 quadratic elementsand 20 iterations.RGFEM Solutions for 31NodesHaar Solutions for 256Nodes [13]Na’s Solutions byShooting Method 333330.7579205511997501.0000000.7565659002451344. Convergence AnalysisLet us consider the general second order boundary value problem( ) ( ) ( ) ( ), (13 )with boundary conditions( ) ( ) 0(13 )To obtain an approximate solution of equation (13a), we construct a finite dimensional subspace of( )and select a trial solution( ) where( ) ( )(14)( )satisfies the boundary conditions, i.e( ) 0The family of functions that can be written in this way will be denoted by ( ). Thefunctions ( ), called basis functions, will be defined such that ( ) ( ), where, ( ) is the

Generalized Galerkin Finite Element Formulation for the Numerical Solutionsenergy space. Here the numberis the dimension of ( ),153denotes the number of elements anddenotes the length of kth element.Our main goal is to minimize the error of approximate result in the energy norm. In the followingand the approximate solution by. Wediscussion, we will denote the exact solution byhave to find( ) such that (, ) ( ) for all ( ). Where B is a bilinear formon ( ) ( ) .Theorem 1( , ) 0 The error of approximationfollowing sense [11] is orthogonal to all test functions in( )in the( )(15)This is a basic property of the error of approximation, known as the Galerkin orthogonality.Proof( ) Since(( ) then,, ) ( ) ( )(16)(, ) ( ) ( )Subtracting (17) from (16), we get( , ) 0( , ) 0(17) ( )()Which is the equation (15).Theorem 2The GFEM will select the coefficients of the basis functions in such a way that the energy norm ofthe error will be minimum [11]. i.e. min ProofThe error of approximate solution isFor an arbitrary ( )(18).( ), 0, we have from the definition of energy norm1( , )21111( , ) ( , ) ( , ) ( , )222211( , ) ( , ) ( , ) 22 (19)

154Ali & IslamNow since ( , ) 0 0 ( ) from the preceding theorem and 01( , ) 02Then from equation (19), we get 11( , ) ( , )22 Hence proved.This theoremapproximationthen spaces ( 1) , (2)shows that the selection ( ) is of crucial importance, since the error ofis determined by ( ). This theorem also shows that ifhappens to lie in ( ). Furthermore, the theorem shows that if we construct a sequence of finite element . and compute the corresponding finite element solutions,., ( )then the error measured in the energy norm will decreasemonotonically with respect to increasing .5. Numerical Examples and ResultsIn this section, we consider four nonlinear problems to verify the proposed method described insection 3. All the computations are performed by MATLAB. The error of the approximatesolutions are estimated by ( ) ( ) and( )( )( )Where ( ) is the exact solution and ( ) is the approximate solution.Example DiritchletBoundaryConditions. This problem arises in the finite deflections of an elastic string under atransverse load [9] 1 ,0 1(20 )

Genneralized Galerkiin Finite Elemennt Formulation forfo the Numericaal Solutionsu(0) 0 and u (1) 0155(20b)Thee exact solutionn is 1 cos x 1 2 u ( x) 2 ln cos / 2 (21)Noww using the prooposed methodd illustrated in section 3, we findfthe systemm of nonlinear equatione[K L] {a} {F}(22)wheere the entries of K, L and F area given by d d j K i[,ej] [ e] i dx dx dx d j n L[ie, ]j [ e] 2 i ak k dxdx k 1 du Fi[ e ] [ e ] i ( x)dx i dx [[e ]Fig 2: Graphicall representationn of exact aandon.apprroximate solutio(23a)(23b)(23c)Fig 3: A plot of absolutee error of the appproximatesolutions.1Herre we use 7 . Using 20 quadratic elemments and 10 iterations for example 1, wew find theresuults presented in Fig 2 and 3.3 Cuomo andd Marasco [9] foundfmaximuum accuracy 2 10–7 byusinng finite differeence method.Exaample 2:Noww we considerr a nonlinear boundary valuee problem withh Neumann Bouundary Condittions. Thisequuation is the well-knownwBuurgers’ Equattion. The one dimensional BBurgers’ equaation is asfolllows [12]

1561 u uu u sin((2x) 0 x 22 u (00) 1 and u 0 2 AliA & Islam(24a)(24b)Thee exact solutionn of this probleem isu(x)) sin(x)(25)By applying GFEM with 30 quaadratic elementts and 15 iterattions, we find tthe following resultsrthatis shhown in Fig 4 and 5.Fig 4: Graphicall representationn of exact anndapprroximate solutioons of example 2.2Fig 5: A plot of absolutte error of the exact andapproximaate solution.Exaample 3:Herre we consider a nonlinear booundary value pproblem with thet Robin Bounndary Conditioons [7].d 2u 13 (1 x u ) ,0 x 1(26a)dx 2 21u (0) u (0) and u (1) u (1) 1(26(b)2Thee exact solutionn of the problemm is given by2(27)u (xx) x 12 xFig 6: Graphicall representationn of exact anndons.apprroximate solutioFig 7: A plot of absolutte error of the exact andapproximaate solution.

Genneralized Galerkiin Finite Elemennt Formulation forfo the Numericaal Solutions157By applying GFEM with 30 quaadratic elementts and 10 iterattions, we find tthe following resultsrthatsin Fig 6 and 7. The maximum acccuracy obtained by Islam aand Shirin [7] by usingis shownGallerkin Method with the help 101 Bernoulli poolynomials andd 8 iterations iss 1.508438 10 .Exaample 4:Noww we consider an eigenvalue problem [10]u e u 0,0 x 1(28a)Whhose boundary conditions are(28b)u(0) u(1) 1us one dimensiional Bratu’s bboundary valuee problem which is of great interest inThiis is the famouMagneto hydrodyynamics.If wew put –1 inn equation (28a), then the exaact solution off this problem isu(x)) –ln2 ln( (x))(29)Whhere c(2 x 1) ( x) cos ec 4 2Andd c is the root ofo the equationn2 c coos ec 4 2 Norrmally c lies beetween 0 and 2 . Here we usee c 1.3360556695.Fig 8: Graphicall representationn of exact anndons.apprroximate solutioFig 9: A plot of absoluute error of the exact andapproximaate solution.

158Ali & IslamThe results are depicted in Fig 8 and 9. We can see that Wazwaz [10] found maximum accuracy2.48497479 10–7 by taking up to 14 terms of his series solution where we find maximumaccuracy 1.32498612 10–12.6. ConclusionIn this paper, we have provided a detail formulation for Generalized Galerkin finite elementmethod for the case of both linear and nonlinear boundary value problems with convergenceanalysis. We have also given the solutions of three nonlinear second order BVPs with Diritchlet,Neumann and Robin boundary conditions and one nonlinear Eigen Value problem. The method hasbeen applied directly without using the linearization or any other restrictive assumptions. In eachexample, we have compared the approximate results obtained by the proposed method with theexact solution and have found an excellent agreement. All results are depicted graphically as wellas in tabular form. From these results, we can conclude that GFEM can be applied as a generaltechnique to find the numerical solution of nonlinear BVPs instead of finite difference method,Galerkin method and Collocation method with haar wavelets. This proposed method can also beapplied to solve the higher order nonlinear BVPs and partial differential equations.AcknowledgementThe authors are grateful to the learned referee for his valuable comments and suggestions to enrichthe quality and improvement of the first version of this manuscript. The first author is also gratefulto the Ministry of Science and Technology for granting National Science and Technology (NST)fellowship during the period of research work.REFERENCES[1]Rao, S. S. The finite element method in engineering. Elsevier, 2010.[2]Wazwaz, A. M. Adomian decomposition method for a reliable treatment of the Bratu-typeequations. Applied Mathematics and Computation, 166 (2005), 652-663.[3]Burden, R. L., & Faires, J. D. Numerical analysis. Brooks/Cole, USA, (2010).[4]Islam, M. S., Ahmed, M., & Hossain, M. A. Numerical Solutions of IVP using FiniteElement Method with Taylor Series. GANIT: Journal of Bangladesh Mathematical Society,30 (2010), 51-58.[5]Lewis, P. E., & Ward, J. P. The finite element method: principles and applications.Wokingham: Addison-Wesley, (1991).[6]Bhatti, M. I., & Bracken, P. Solutions of differential equations in a Bernstein polynomialbasis. Journal of Computational and Applied Mathematics, 205 (2007), 272-280.[7]Islam, M., & Shirin, A. Numerical solutions of a class of second order boundary valueproblems on using Bernoulli polynomials. Applied Mathematics 2. (2011), 1059- 67.14

Generalized Galerkin Finite Element Formulation for the Numerical Solutions159[8]Reddy, J. N. An Introduction to Nonlinear Finite Element Analysis. OUP, Oxford (2014).[9]Cuomo, S., & Marasco, A. A numerical approach to nonlinear two-point boundary valueproblems for ODEs. Computers & Mathematics with Applications, 55 (2008), 2476-2489.[10]Wazwaz, A. M The successive differentiation method for solving Bratu equation and Bratutype equations. Romanian Journal of Physics, 61 (2016), 774-783.[11]Szabo, B. A., & Babuˇska, I. Finite element analysis. John Wiley Sons (1991).[12]Aly, E. H., Ebaid, A., & Rach, R. Advances in the Adomian decomposition method forsolving two-point nonlinear boundary value problems with Neumann boundary conditions.Computers & Mathematics with Applications, 63 (2012), 1056-1065.[13]Aziz, I., & Sarler, B. The numerical solution of second-order boundary value problems bycollocation method with the Haar wavelets. Mathematical and Computer Modelling, 52(2010), 1577-1590.[14]Na, T. Y. Computational Methods in Engineering Boundary Value Problems (1979).Academic, New York.

boundary conditions by Galerkin finite element method yet. So in this paper, our main concern is to solve the nonlinear boundary value problems with all boundary conditions by using Galerkin finite element method. 2. Finite Element Formulation for Second Order Linear BVPs Let us consider the general second

Related Documents:

boundary conditions following the standard finite element procedure. In addition the enrichment functions are easily obtained. 2. GENERALIZED FINITE ELEMENT METHOD The Generalized Finite Element Method (GFEM) is a Galerkin method whose main goal is the construction of a fin

In this paper we have extended the idea of the space-time Galerkin/least-squares finite element formulation of the Navier-Stokes equations to computations that involve changing spatial configura- tions. The basis of our formulation is a time-discontinuous Galerkin method. Due to the discontinuity

Key words: Finite element method, (dis)continuous Galerkin, streamfuncion, vorticity Abstract. A mixed continuous and discontinuous Galerkin finite element discretization has been constructed for a generalized vorticity-streamfunction formulation in two spatial dimensions. This formu

4.3. Finite element method: formulation The finite element method is a Ritz method in that it approximates the weak formulation of the PDE in a finite-dimensional trial and test (Galerkin) space of the form V h:" ' h V0, W h:" V0, (4.6) where ' h is a ane o set satisfying the essential BC of (4.1) and V0 h is a finite-dimensional .

Finite element analysis DNV GL AS 1.7 Finite element types All calculation methods described in this class guideline are based on linear finite element analysis of three dimensional structural models. The general types of finite elements to be used in the finite element analysis are given in Table 2. Table 2 Types of finite element Type of .

The Generalized Finite Element Method (GFEM) presented in this paper combines and extends the best features of the finite element method with the help of meshless formulations based on the Partition of Unity Method. Although an input finite element mesh is used by the pro- . Probl

Generalized coordiDate finite element lDodels ·11 17 'c. IT,I .f: 20 IS a) compatible element mesh; 2 constant stress a 1000 N/cm in each element. YY b) incompatible element mesh; node 17 belongs to element 4, nodes 19 and 20 belong to element 5, and node 18 belongs to element 6. F

2 For referenced ASTM standards, visit the ASTM website, www.astm.org, or contact ASTM Customer Service at service@astm.org. For Annual Book of ASTM Standards volume information, refer to the standard’s Document Summary page on the ASTM website. 1