Weighted Residual
Weighted Residual
This lecture begins with an introduction to an approach to solving PDES. This approach is called
Finite Element Method (FEM).
Introduction: FDM is not practical/accurate approach to solve for all domains and all situations.
Few reasons why FDM is not practical are as follows:
𝑑2𝑢 (1)
𝐸𝐴 2 + 𝐹 = 0
𝑑𝑥
The above equation is also called as equilibrium equation. Typically, F is given as 𝑏𝐴, where 𝑏 is
the body force per unit area and 𝐴 is the area. In this problem, the goal is to find stresses and
strains at different points on the rod, which is fixed at one end and is subjected to a force at the
other end. An illustration is shown below:
∫𝜔 𝑅 = 0
This approach is also called as Galerkin approach. 𝜔 are called as weight functions or shape
functions. Substituting for R from (3) in the above equation,
𝑑 2 𝑢̃
∫ 𝜔 (𝐸𝐴 + 𝐹) = 0
𝑑𝑥 2
𝑑2 𝑢
̃
=∫Ω 𝜔 𝐸𝐴 𝑑Ω + ∫Ω 𝜔 𝐹 𝑑Ω = 0, where ∫Ω denotes integral over the domain Ω.
𝑑𝑥 2
For the 1D rod problem, this is integral over 0 to 𝐿.
𝑑2 𝑢
̃
We can substitute for 𝜔 in the first term above with the following information from chain
𝑑𝑥 2
rule of differentiation:
𝑑 ̃
𝑑𝑢 ̃
𝑑𝜔 𝑑𝑢 𝑑2 𝑢
̃
[𝜔 ]= +𝜔
𝑑𝑥 𝑑𝑥 𝑑𝑥 𝑑𝑥 𝑑𝑥 2
Substituting:
𝑑 𝑑𝑢̃ 𝑑𝜔 𝑑𝑢̃
∫ (𝜔𝐸𝐴 ) 𝑑Ω − ∫ 𝐸𝐴 𝑑Ω + ∫ 𝜔 𝐹 𝑑Ω = 0
Ω 𝑑𝑥 𝑑𝑥 Ω 𝑑𝑥 𝑑𝑥
Rearranging terms:
𝑑𝑢̃ 𝐿 𝑑𝜔 𝑑𝑢̃
[𝜔𝐸𝐴 ] + ∫ 𝜔 𝐹 𝑑Ω = ∫ 𝐸𝐴 𝑑Ω (4)
𝑑𝑥 0 Ω Ω 𝑑𝑥 𝑑𝑥
̃ 𝐿
𝑑𝑢
In the above equation, [𝜔𝐸𝐴 ] is called the boundary term. The coefficient of the weight
𝑑𝑥 0
function in the boundary term represents the Neumann BC. This coefficient is also called as
̃
𝑑𝑢
secondary variable. 𝐸𝐴 is the coefficient in the boundary term and is the secondary variable
𝑑𝑥
above. 𝜔 represents Dirichlet BC and is also called as primary variable. 𝜔 denotes the unknown
function 𝑢, at boundaries. Whenever u=0 (from (2) 𝑢 = 0 at 𝑥 = 0), set 𝜔 = 0 . Applying this in
(4) we get:
𝐿 𝐿
𝑑𝑢̃ 𝑑𝜔 𝑑𝑢̃ (4)
[𝜔𝐸𝐴 ] + ∫ 𝜔 𝐹 𝑑𝑥 = ∫ 𝐸𝐴 𝑑𝑥
𝑑𝑥 𝐿 0 0 𝑑𝑥 𝑑𝑥
Equation (4) is called as weak-form of the PDE. The equation in (1) contains a second-order
derivative term. This means that there is a requirement that 𝑢 must be differentiable twice so
that 𝑢 is continuous (at all points x, 𝜕 2 𝑢/𝜕𝑥 2 is real). In equation (3), this requirement is weakened
in the sense that there are only first-order derivative terms. So, it is sufficient if 𝑢 is differentiable
once.