Homework 1 Variational Formulation of Boundary Value Problems

advertisement
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 ∫π‘Ž ∫𝑐 ∇𝑒 . ∇𝑣 𝑑π‘₯ 𝑑𝑦 = ∫π‘Ž ∫𝑐 𝑓(π‘₯, 𝑦) . 𝑣(π‘₯, 𝑦) 𝑑π‘₯𝑑𝑦
Download