Homework 1 Variational Formulation of Boundary Value Problems 1 2 The Galerkin Finite Element Method (GFEM) is used to solve differential equations. Below are the steps for the GFEM. i. ii. iii. iv. v. Obtain the variation form or a weak form. Finite element mesh and basis functions. Galerkin’s method. Solve system of algebraic equations. Quality of the approximate solution. Below are the steps to get the variational or weak form. i. ii. iii. iv. Introduce a “test” function π£(π₯). π£(π₯) is somewhat similar to π’(π₯). The detailed characteristics of π£(π₯) is to be determined. Multiply the left hand side (LHS) and right hand side (RHS) of ordinary differential equations by π£(π₯). That is −π’". π£ = 1 . π£ Integrate both sides between π₯ = 0 and π₯ = 1. Perform integration by parts on LHS only. The GFEM is used to convert a continuous operator problem such as differential equations to a discrete problem. The GFEM breaks down a complex problems into a simple algebraic problems that is easy to solve. The differential equations and boundary values problems are converted into a matrix of the formπ΄π = π΅. 3 π2 π’ − ππ₯ 2 = −π’" −π’" = π(π₯) 1 1 ∫0 −π’" . π£ ππ₯ = ∫0 π(π₯) . π£ ππ₯ 1 π ππ’ ( ) ππ₯ ππ₯ ∫0 1 . π£ ππ₯ = ∫0 π(π₯) . π£ ππ₯, where π’′ = ππ’ ππ₯ Integrating by parts the left hand side only provides: 1 1 [−π’′ . π£]10 − ∫0 − π’′ . ππ£ ππ₯ = ∫0 π(π₯) . π£ ππ₯ 1 1 [−π’′ . π£] ππ‘ π₯ = 1 − [π’′ . π£]ππ‘ π₯ = 0 + ∫0 π’′ . π£ ′ ππ₯ = ∫0 π(π₯) . π£ ππ₯ [−π’′(1) . π£(1)] = 0. This is provided. 1 1 −[β(π₯) . π£(0)] + ∫0 π’′ . π£ ′ ππ₯ = ∫0 π(π₯) . π£ ππ₯ This is a variational form of the given problem. 3 −∇2 π’ = π(π₯, π¦) π2 π’ −∇2 π’ = − ππ₯ 2 − π2 π’ π2 π¦ Test function π£(π₯, π¦) ∇π’ = ππ’ ππ₯ ππ’ ππ¦ . πβ ππ£ ππ¦ . πβ . πβ + ππ’ ππ’ ∇π’ = (ππ₯ , ππ¦) ∇π£ = ππ£ ππ₯ . πβ + ππ£ ππ£ ∇π£ = (ππ₯ , ππ¦) ∇π’ . ∇π£ = π ππ’ ππ₯ . ππ’ ππ¦ + ππ£ ππ₯ π . ππ£ ππ¦ π π ∫π ∫π ∇π’ . ∇π£ ππ₯ ππ¦ + [ ] = ∫π ∫π π(π₯, π¦) . π£(π₯, π¦) ππ₯ππ¦ The second term on the left hand side of the equation above is 0, i.e., [ ] = 0. π π π π Variational Form is ∫π ∫π ∇π’ . ∇π£ ππ₯ ππ¦ = ∫π ∫π π(π₯, π¦) . π£(π₯, π¦) ππ₯ππ¦