Nonlinear finite elements/Model finite element approximation

From testwiki
Revision as of 01:14, 26 July 2017 by imported>MaintenanceBot (Subpage navbar)
(diff) โ† Older revision | Latest revision (diff) | Newer revision โ†’ (diff)
Jump to navigation Jump to search

Finite Element Formulation for Problem 2.

The domain for this problem is Ω={x|x(0,1)} and the boundary consists of two points Γ={0,1}. Let us use n nodes in the domain so that they divide the domain into n1 nonoverlapping, two-noded elements.

Consider the term Kij in equation (22). The integral can be written as a sum of integrals over each element as

Kij=01(dNidxdNjdx+NiNj)dx(29)=0x1(dNidxdNjdx+NiNj)dx+x1x2(dNidxdNjdx+NiNj)dx++xj1xj(dNidxdNjdx+NiNj)dx+xjxj+1(dNidxdNjdx+NiNj)dx++xn1xn(dNidxdNjdx+NiNj)dx.

In this equation, i and j are node numbers. Therefore there are n×n possible values of Kij.

Assume that node i = 2 and node j = 4. Then Ni=1 at node 2 and zero at all the other nodes. Similarly, Nj=1 at node 4 and zero at all other nodes. Also, Ni is non-zero only between nodes 1, 2, and 3 while Nj is nonzero only between nodes 3, 4, and 5. Since the domains of Ni and Nj do not overlap in this case, all the integrals must be zero.

In general, if i and j are separated by more than one node, at least one of the basis functions has a zero value within each integral. The same holds for the derivatives of the basis functions. Therefore Kij=0 if i and j are separated by more than one node.

Therefore, there are three non-trivial cases that need to be looked at

  1. i=j.
  2. i=j1.
  3. i=j+1.

For the first case, set i=j in equation (29). That means

(30)01(dNjdxdNjdx+NjNj)dx=xj1xj(dNjdxdNjdx+NjNj)dx+xjxj+1(dNjdxdNjdx+NjNj)dx.

After substituting the values of the basis functions (25) and their derivatives (26) into equation (30) and integrating, we get

Kjj=01(dNjdxdNjdx+NjNj)dx=1xjxj1+1xj+1xj+xj+1xj13.

For the second case, set i=j1 in equation (29). In this case, the only non-zero integrals in equation (29) are the ones between xj1 and xj. Hence

(31)01(dNj1dxdNjdx+Nj1Nj)dx=xj1xj(dNj1dxdNjdx+Nj1Nj)dx.

After substituting the basis functions and their derivatives into equation (31) and integrating, we get

K(j1)j=01(dNj1dxdNjdx+Nj1Nj)dx=1xjxj1+xjxj16.

For the third case, set i=j+1 in equation (29). In this case, the only non-zero integrals in equation (29) are the ones between xj and xj+1. Hence

(32)01(dNjdxdNj+1dx+NjNj+1)dx=xjxj+1(dNjdxdNj+1dx+NjNj+1)dx.

After substituting the basis functions and their derivatives into equation (\ref{eq:Integralij+1}) and integrating, we get

Kj(j+1)=01(dNjdxdNj+1dx+NjNj+1)dx=1xj+1xj+xj+1xj6.

The same process can be followed for the integral

fj=01xNjdx=xj1xjxNjdx+xjxj+1xNjdx=2xj33xj2xj1+xj136(xjxj1)+2xj33xj2xj+1+xj+136(xj+1xj).

Now that we know the components Kij and fj, we can solve the system of equations (23) for the unknowns ai. This gives us our finite element solution for Problem 2.

Assembly process.

In the above we did not go through the assembly process that you are familiar with from introductory finite elements. We can simplify things if we use just compute the integrals over each element and assemble them to get the final ๐Š and ๐Ÿ matrices.

To see how the assembly process works, let us recall equation (21)

(33)i=1nai01(dNidxdNjdx+NiNj)dx01xNjdx=0j=1n.

We can rewrite this equation as

i=1nKjiai=fji=1nKijai=fj

where

(34)Kij=a(Ni,Nj)=01(dNidxdNjdx+NiNj)dxandfj=x,Nj=01xNjdx.

Let us define

(35)โ„ฑ(Ni,Nj):=dNidxdNjdx+NiNj.

Then the first of the equations in (34) can be written as

(36)a(Ni,Nj)=01โ„ฑ(Ni,Nj)dx.

From equation (29) we can see that the integral over the entire domain Ω can be written as a sum of integrals over the elements Ωe. Therefore, we can write equation (36) as

(37)a(Ni,Nj)=Ωโ„ฑ(Ni,Nj)dx=e=1EΩeโ„ฑ(Ni,Nj)dx.

Let Nie be the local basis functions in an element. Then equation (37) can be written as

a(Ni,Nj)=e=1EΩeโ„ฑ(Nie,Nje)dx=e=1Eae(Nie,Nje)=e=1EKije.

Similarly, the second equation in (34) can be written as

x,Nj=e=1Exe,Nje=e=1Efje

where xe indicates that the integral is over the element.

Therefore, the matrix ๐Š and the vector ๐Ÿ can be expressed as a sum over the elements in the form

๐Š=e=1E๐Šeand๐Ÿ=e=1E๐Ÿe.

This is the familiar assembly process. From this process it is clear that if we can find the weak form for one element, then the finite element system of equations for any combination of such elements can be computed by assembly.

Template:Subpage navbar