Vous êtes sur la page 1sur 31

Course Finite element method

Assignment no. 1
Done by -Ephrem Beyene
-Roll number: 10
-Id: GSE/7276/12
Submitted to Dr. Bedilu habte

1
2
Scanned by CamScanner
3
Scanned by CamScanner
4
Scanned by CamScanner
5
Scanned by CamScanner
6
7
8
9
10
11
12
13
Scanned by CamScanner
14
Scanned by CamScanner
15
Scanned by CamScanner
16
Scanned by CamScanner
17
Scanned by CamScanner
18
Scanned by CamScanner
19
Scanned by CamScanner
OCTAVE CODE

clf()

L=1

X=[0:.1:1]

z=((2+X)).^(-1)

A=-1/(1800)*z

w=(log(2+X)+(2\(2+X)).^(-1))

B=(-1/(36*10^(3)))*w

C=2.3422*10^(-4)

u=A+B+C

x1=[0:.333:1]

u1=[-9.375*10^(-5) -5.4*10^(-5) -2.394*10^(-5) 0]

x2=[0:.125:1]

u2=[-8.47*10^(-5) -6.84*10^(-5) -5.37*10^(-5) -4.06*10^(-5) -2.84*10^(-5) -2.04*10^(-5) -1.3*10^(-5) -


6.26*10^(-6) 0]

x3=[0:1/6:1]

u3=[-9.3089*10^(-5) -7.3374*10^(-5) -5.362*10^(-5) -3.864*10^(-5) -2.362*10^(-5) -1.1826*10^(-5) 0]

x4=[0:.0625:1]

u4=[-7.842*10^(-5) -7.025*10^(-5) -6.208*10^(-5) -5.479*10^(-5) -4.749*10^(-5) -4.095*10^(-5) -


3.439*10^(-5) -2.847*10^(-5) -2.255*10^(-5) -1.717*10^(-5) -1.179*10^(-5) -9.668*10^(-6) -
7.5414*10^(-6) -5.584*10^(-6) -3.624*10^(-6) -1.813*10^(-6) 0]

plot(X,u,x1,u1,x2,u2,x3,u3,x4,u4)

legend('Exact','2N3','2N8','3N3','3N8')

20
21
Appendix

EXCEL MATRIX WORK

2N3
ASSEMBLED STIFFNESS LOAD VECTOR
2.55E+08 -3E+08 0 -10083.33
-2.55E+08 5.9E+08 -3.4E+08 -166.67
0 -3E+08 7.74E+08 -166.67
-83.335
INVERSE STIFFNESS MATRIX
9.17E-09 5.3E-09 2.3E-09
5.25E-09 5.3E-09 2.3E-09
2.3E-09 2.3E-09 2.3E-09
DISPLACEMENT
-9.38E-05
-5.42E-05
-2.39E-05
2N8
ASSEMBLED STIFFNESS LOAD VECTOR
6.13E+08 -6.13E+08 0 0 0 0 0 0 0 -10031.3
-6.1E+08 1.3E+09 -7E+08 0 0 0 0 0 0 -62.5
0 -6.89E+08 1.5E+09 -7.7E+08 0 0 0 0 0 -62.5
0 0 -8E+08 1.61E+09 -8E+08 0 0 0 0 -62.5
0 0 0 -8.4E+08 1.9E+09 -9E+08 0 0 0 -62.5
0 0 0 0 -9E+08 2E+09 -1E+09 0 0 -62.5
0 0 0 0 0 -1E+09 2.18E+09 -1.14E+09 0 -62.5
0 0 0 0 0 0 -1.1E+09 2.383E+09 -1.2E+09 -62.5
0 0 0 0 0 0 0 -1.24E+09 12430.8 -31.25
INVERSE STIFFNESS MATRIX DISPLACEMENT
8.31E-09 6.68E-09 5.2E-09 3.93E-09 2.7E-09 2E-09 1.25E-09 5.96E-10 0 -8.5E-05
6.68E-09 6.68E-09 5.2E-09 3.93E-09 2.7E-09 2E-09 1.25E-09 5.96E-10 0.125 -6.8E-05
5.23E-09 5.23E-09 5.2E-09 3.93E-09 2.7E-09 2E-09 1.25E-09 5.96E-10 0.25 -5.4E-05
3.93E-09 3.93E-09 3.9E-09 3.93E-09 2.7E-09 2E-09 1.25E-09 5.96E-10 0.375 -4.1E-05
2.74E-09 2.74E-09 2.7E-09 2.74E-09 2.7E-09 2E-09 1.25E-09 5.96E-10 0.5 -2.8E-05
1.96E-09 1.96E-09 2E-09 1.96E-09 2E-09 2.2E-09 1.37E-09 6.556E-10 0.625 -2E-05
1.25E-09 1.25E-09 1.2E-09 1.25E-09 1.2E-09 1.4E-09 1.48E-09 7.097E-10 0.75 -1.3E-05
5.96E-10 5.96E-10 6E-10 5.96E-10 6E-10 6.6E-10 7.1E-10 7.591E-10 0.875 -6.3E-06

22
3N3 1 0
ASSEMBLED STIFFNESS LOAD VECTOR
5.94E+08 -6.8E+08 84816000 0 0 0 0 -10027.8
-6.8E+08 1.36E+09 -6.8E+08 0 0 0 0 -27.77
84816000 -6.8E+08 1.38E+09 -9E+08 1.13E+08 0 0 -83.32
0 0 -9E+08 1.81E+09 -9E+08 0 0 -27.77
0 0 1.13E+08 -9E+08 1.8E+09 -1.2E+09 1.45E+08 -83.32
0 0 0 0 -1.2E+09 2.32E+09 -1.2E+09 -27.77
0 0 0 0 1.45E+08 -1.2E+09 1.01E+09 -55.55

INVERSE STIFFNESS MATRIX DISPLACEMENT


9.19E-09 7.22E-09 5.26E-09 3.78E-09 2.3E-09 1.15E-09 0 -9.3E-05
7.22E-09 6.98E-09 5.26E-09 3.78E-09 2.3E-09 1.15E-09 0.166667 -7.3E-05
5.26E-09 5.26E-09 5.26E-09 3.78E-09 2.3E-09 1.15E-09 0.333333 -5.4E-05
3.78E-09 3.78E-09 3.78E-09 3.59E-09 2.3E-09 1.15E-09 0.5 -3.9E-05
2.3E-09 2.3E-09 2.3E-09 2.3E-09 2.3E-09 1.15E-09 0.666667 -2.4E-05
1.15E-09 1.15E-09 1.15E-09 1.15E-09 1.15E-09 1.01E-09 0.833333 -1.2E-05

3N8
ASSEMBLED STIFFNESS LOAD VECTOR
1.43E+09 -1.6E+09 2.04E+08 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -10010.42
-1.6E+09 3.27E+09 -1.6E+09 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -10.42
2.04E+08 -1.6E+09 3.04E+09 -1.8E+09 2.3E+08 0 0 0 0 0 0 0 0 0 0 0 0 -31.25
0 0 -1.8E+09 3.68E+09 -1.8E+09 0 0 0 0 0 0 0 0 0 0 0 0 -10.42
0 0 2.3E+08 -1.8E+09 3.41E+09 -2.1E+09 2.57E+08 0 0 0 0 0 0 0 0 0 0 -31.25
0 0 0 0 -2.1E+09 4.11E+09 -2.1E+09 0 0 0 0 0 0 0 0 0 0 -10.42
0 0 0 0 2.57E+08 -2.1E+09 3.8E+09 -2.3E+09 2.85E+08 0 0 0 0 0 0 0 0 -31.25
0 0 0 0 0 0 -2.3E+09 4.57E+09 -2.3E+09 0 0 0 0 0 0 0 0 -10.42
0 0 0 0 0 0 2.85E+08 -2.3E+09 4.21E+09 -2.5E+09 3.15E+08 0 0 0 0 0 0 -31.25
0 0 0 0 0 0 0 0 -2.5E+09 5.05E+09 -2.5E+09 0 0 0 0 0 0 -10.42
0 0 0 0 0 0 0 0 3.15E+08 -2.5E+09 4.64E+09 -2.2E+09 3.47E+08 0 0 0 0 -31.25
0 0 0 0 0 0 0 0 0 0 -2.8E+09 5.55E+09 -2.8E+09 0 0 0 0 -10.42
0 0 0 0 0 0 0 0 0 0 3.47E+08 -2.8E+09 5.09E+09 -3E+09 3.8E+08 0 0 -31.25
0 0 0 0 0 0 0 0 0 0 0 0 -3E+09 6.08E+09 -3E+09 0 0 -10.42
0 0 0 0 0 0 0 0 0 0 0 0 3.8E+08 -3E+09 5.56E+09 -3.3E+09 4.14E+08 -31.25
0 0 0 0 0 0 0 0 0 0 0 0 0 0 -3.3E+09 6.63E+09 -3.3E+09 -10.42
0 0 0 0 0 0 0 0 0 0 0 0 0 0 4.14E+08 -3.3E+09 2.9E+09 -20.83

INVERSE STIFFNESS MATRIX DISPLACEMENT


7.75E-09 6.94E-09 6.12E-09 5.4E-09 4.67E-09 4.02E-09 3.38E-09 2.79E-09 2.21E-09 1.68E-09 1.15E-09 7.11E-10 5.21E-10 3.85E-10 2.49E-10 1.25E-10 0 -7.84229E-05
6.94E-09 6.84E-09 6.12E-09 5.4E-09 4.67E-09 4.02E-09 3.38E-09 2.79E-09 2.21E-09 1.68E-09 1.15E-09 7.11E-10 5.21E-10 3.85E-10 2.49E-10 1.25E-10 0.0625 -7.02569E-05
6.12E-09 6.12E-09 6.12E-09 5.4E-09 4.67E-09 4.02E-09 3.38E-09 2.79E-09 2.21E-09 1.68E-09 1.15E-09 7.11E-10 5.21E-10 3.85E-10 2.49E-10 1.25E-10 0.125 -6.20844E-05
5.4E-09 5.4E-09 5.4E-09 5.31E-09 4.67E-09 4.02E-09 3.38E-09 2.79E-09 2.21E-09 1.68E-09 1.15E-09 7.11E-10 5.21E-10 3.85E-10 2.49E-10 1.25E-10 0.1875 -5.47947E-05
4.67E-09 4.67E-09 4.67E-09 4.67E-09 4.67E-09 4.02E-09 3.38E-09 2.79E-09 2.21E-09 1.68E-09 1.15E-09 7.11E-10 5.21E-10 3.85E-10 2.49E-10 1.25E-10 0.25 -4.74993E-05
4.02E-09 4.02E-09 4.02E-09 4.02E-09 4.02E-09 3.94E-09 3.38E-09 2.79E-09 2.21E-09 1.68E-09 1.15E-09 7.11E-10 5.21E-10 3.85E-10 2.49E-10 1.25E-10 0.3125 -4.09501E-05
3.38E-09 3.38E-09 3.38E-09 3.38E-09 3.38E-09 3.38E-09 3.38E-09 2.79E-09 2.21E-09 1.68E-09 1.15E-09 7.11E-10 5.21E-10 3.85E-10 2.49E-10 1.25E-10 0.375 -3.43958E-05
2.79E-09 2.79E-09 2.79E-09 2.79E-09 2.79E-09 2.79E-09 2.79E-09 2.72E-09 2.21E-09 1.68E-09 1.15E-09 7.11E-10 5.21E-10 3.85E-10 2.49E-10 1.25E-10 0.4375 -2.84761E-05
2.21E-09 2.21E-09 2.21E-09 2.21E-09 2.21E-09 2.21E-09 2.21E-09 2.21E-09 2.21E-09 1.68E-09 1.15E-09 7.11E-10 5.21E-10 3.85E-10 2.49E-10 1.25E-10 0.5 -2.25518E-05
1.68E-09 1.68E-09 1.68E-09 1.68E-09 1.68E-09 1.68E-09 1.68E-09 1.68E-09 1.68E-09 1.61E-09 1.15E-09 7.11E-10 5.21E-10 3.85E-10 2.49E-10 1.25E-10 0.5625 -1.71735E-05
1.15E-09 1.15E-09 1.15E-09 1.15E-09 1.15E-09 1.15E-09 1.15E-09 1.15E-09 1.15E-09 1.15E-09 1.15E-09 7.11E-10 5.21E-10 3.85E-10 2.49E-10 1.25E-10 0.625 -1.1791E-05
9.41E-10 9.41E-10 9.41E-10 9.41E-10 9.41E-10 9.41E-10 9.41E-10 9.41E-10 9.41E-10 9.41E-10 9.41E-10 9.15E-10 7.32E-10 5.41E-10 3.5E-10 1.75E-10 0.6875 -9.66812E-06
7.32E-10 7.32E-10 7.32E-10 7.32E-10 7.32E-10 7.32E-10 7.32E-10 7.32E-10 7.32E-10 7.32E-10 7.32E-10 7.58E-10 9.43E-10 6.97E-10 4.51E-10 2.26E-10 0.75 -7.54146E-06
5.41E-10 5.41E-10 5.41E-10 5.41E-10 5.41E-10 5.41E-10 5.41E-10 5.41E-10 5.41E-10 5.41E-10 5.41E-10 5.61E-10 6.97E-10 7.85E-10 5.43E-10 2.72E-10 0.8125 -5.58457E-06
3.5E-10 3.5E-10 3.5E-10 3.5E-10 3.5E-10 3.5E-10 3.5E-10 3.5E-10 3.5E-10 3.5E-10 3.5E-10 3.63E-10 4.51E-10 5.43E-10 6.35E-10 3.18E-10 0.875 -3.62425E-06
1.75E-10 1.75E-10 1.75E-10 1.75E-10 1.75E-10 1.75E-10 1.75E-10 1.75E-10 1.75E-10 1.75E-10 1.75E-10 1.81E-10 2.26E-10 2.72E-10 3.18E-10 3.1E-10 0.9375 -1.8137E-06
1 0

23
MS EXCEL PLOT
0
0 0.2 0.4 0.6 0.8 1 1.2
-0.00001

-0.00002

-0.00003
DISPLACEMENT

-0.00004 2N3
2N8
-0.00005
3N3

-0.00006 EXACT
3N8
-0.00007

-0.00008

-0.00009

-0.0001
X AXIS

24
REFERENCES TO BODY AND SURFACE FORCE

Body force distribution for 2 noded bar element

We derived shape functions for 1D bar, variation of these shape


functions is shown below .As a property of shape function the value of
N1 should be equal to 1 at node 1 and zero at rest other nodes (node 2).

From the potential energy of an elastic body we have the expression of


work done by body force as

13

25
Where fb is the body acting on the system. We know the displacement
function U = N1q1 + N2q2 substitute this U in the above equation we get

14

26
This amount of body force will be distributed at 2 nodes hence the
expression as 2 in the denominator.

15

27
Surface force distribution for 2 noded bar element
Now again taking the expression of work done by surface
force from potential energy concept and following the same
procedure as that of body we can derive the expression of surface
force as

Where Te is element surface force distribution.

16

28
REFERENCE TO QUADRATIC ELEMNT STIFFNESS MATRIX

Stiffness matrix:

We know the stiffness matrix equation

For an element

42

29
Taking the constants outside the integral we get

Where

and BT

Now taking the product of BT X B and integrating for the limits -1 to


+1 we get

Integration of a matrix results in

43

30
Body force term & surface force term can be derived as same as 2
noded bar element and for quadratic element we have

Body force:

Surface force term:

This amount of body force and surface force will be distributed at three
nodes as the element as 3 equally spaced nodes.

44

31

Vous aimerez peut-être aussi