Jump to content

Finite elements/Choosing weight function

From Wikiversity

Choice of weighting functions

[edit | edit source]

As you have seen, we need to know the weighting functions (also called test functions) in order to define the weak (or variational) statement of the problem more precisely.

Consider the second model problem (3). If w(x) is a weighting function, then the weak form of equation (3) is

(17)∫01[−d2dx2[u(x)]+u(x)−x]w(x)dx=0

Let the possible weighting functions w(x) for this equation be such that they satisfy the boundary conditions, that is w(0)=0 and w(1)=0. This set of weighting functions will be denoted by the symbol ℋ.

The exact weak form of the problem can then be stated as:

Findu(x)such that∫01[−d2dx2[u(x)]+u(x)−x]w(x)dxfor allw(x)∈ℋu(0)=0,u(1)=0;w(0)=0,w(1)=0.

To get to an approximate weak form, we need to choose trial functions. Let these trial functions (uh) reside in the function space 𝒮. The approximate weak form of the problem is

Finduh(x)∈𝒮such that∫01[−d2dx2[uh(x)]+uh(x)−x]w(x)dxfor allw(x)∈ℋuh(0)=0,uh(1)=0;w(0)=0,w(1)=0.

One requirement that these trial functions (uh) have to satisfy is that

∫01(d2uhdx2)w(x)dx<∞.

The trial functions also have to satisfy the boundary conditions.

If you look at the weak form shown above, you will notice that the highest derivatives of uh are of the second order while there are no derivatives of w. This leads to a lack of symmetry in the formulation that is usually avoided for numerical reasons.

To get a symmetric weak form, we integrate the first term inside the integral by parts to get

∫01d2uhdx2w(x)dx=duhdxw(x)|01−∫01duhdxdwdxdx.

(Recall that the formula for integration by parts is ∫adb=ab−∫bda.)

Applying the boundary conditions on w(x), we get

∫01d2uhdx2w(x)dx=−∫01duhdxdwdxdx.

Therefore the problem can be restated in symmetric form as :

(18)Finduh(x)∈ℋ01such that∫01(duhdxdwdx+uhw−xw)dx=0for allw(x)∈ℋ01uh(0)=0,uh(1)=0;w(0)=0,w(1)=0

Since the same order of derivatives appear in both the trial and the weighting functions, we can choose our functions from the same set ℋ01, where ℋ=𝒮=ℋ01. As you can see, the smoothness requirements on w are further weakened. This boundary value problem is also called the variational boundary value problem.

The variational boundary value problem (18) can be (and often is) written using bilinear function notation as

(19)Finduh(x)∈ℋ01such thata(uh,w)+(uh,w)−(x,w)=0for allw(x)∈ℋ01uh(0)=0,uh(1)=0;w(0)=0,w(1)=0

where

a(uh,w)=∫01duhdxdwdxdx;(uh,w)=∫01uhwdx;(x,w)=∫01xwdx.

Characteristics of admissible functions

[edit | edit source]

Let us now characterize ℋ01, the class of admissible functions for the problem. We know that if uh and w are irregular then their derivatives are even more irregular. Therefore, the most irregular term in the problem statement is

∫01duhdxdwdxdx.

Now, both uh and w are functions in the space ℋ01. So we can choose w to be equal to uh. Hence the minimum requirement for w is

∫01(dwdx)2dx<∞w(0)=w(1)=0.

Functions like the above are called square integrable.

Thus, our weighting functions have to be square integrable. This is a stricter condition than just requiring w to be piecewise continuous, and reduces the number of functions that you can choose from.

There are two other interesting properties of the space ℋ01. These are :

  • It is a linear space which means that if w1 and w2 are two arbitrary functions in this space, then the following operations hold :
w1+w2∈ℋ01αw1+βw2∈ℋ01,α,βare scalars
  • It is an infinite dimensional space. This means that an infinity of parameters are needed to uniquely determine a weighting function w∈ℋ01. Thus,
w(x)=∑i=1∞aiNi(x)
where, Ni are linearly independent functions (also called basis functions) and ai are constants. If we choose only n of these basis functions {N1,N2,…,Nn} then this is a n-dimensional (i.e., finite dimensional) subspace of ℋ01 and we denote this as ℋ0n.