Professional Documents
Culture Documents
|
.
|
(
|
\
|
.
|
1
2
1
2
2
( ) (2.4)
Chapter 6 Page 7
MEE3017 Computer Modeling Techniques in Engineering
where S is the surface area in the two dimensions. The first term of Eq. (2.4) is the energy
stored in the cases of electric or magnetic fields and is related to power dissipated in the
case of thermal fields.
The second term is the input energy in the cases of electric or magnetic fields and is related
to power input in the case of thermal fields.
The first term involves the gradient
G d (6.x 2.5) el T T = =
G x y
T
x
u
T
y
u
x
( , ) = +
y
(6.x 2.6)
where u
x
and u
y
are unit vectors.
The simplest type of two-dimensional finite element assumes a linear, or firs-order,
variation of the unknown potential T over the element.
y
x
Fig.3 Triangular finite element in the xy plane.
Within this first-order element T is related to the three unknown T values at the three
triangular grid points according to
T T a b x c
k k k k
k m n
= + +
=
y (
, , l
) (2.7)
Evaluating Eq. (2.7) at the three vertices gives the solution for the a, b, c coefficients:
a a a
b b b
c c c
x y
x y
x y
l m n
l m n
l m n
l l
m m
n n
(
(
(
=
(
(
(
1
1
1
1
(2.8)
Substituting Eq.(2.7) in Eq. (2.5) gives
Chapter 6 Page 8
MEE3017 Computer Modeling Techniques in Engineering
G x (2.9) y b T u c T u
k k k k k k
k m n
( , ) [ ]
, ,
= +
=
l
Thus, the temperature gradient is constant within a particular triangular finite element.
The grid point potentials Tk can be found by minimizing the functional (2.4), where
ds=dxdy. Substituting Eq. (2.9) and (2.4) in Eq. (2.1) and considering one triangular finite
element yields
T
kG PT
ds j l m n
j s
2
2 2
0
(
= = , , (2.10) ,
)
)
)
Carrying out the integration over the triangle can be shown to yield the 3-by-3 matrix
equation
[S][T]=[P] (2.11)
where the "stiffness" matrix is
[ ] (2.12)
( ) ( ) (
( ) ( ) (
( ) ( ) (
S k
bb c c bb c c bb c c
b b c c b b c c b b c c
b b c c b b c c b b c c
l l l l l m l m l n l n
m l m l m m m m m n m n
n l n l n m n m n n n n
=
+ + +
+ + +
+ + +
(
(
(
(
(
(
1
2
1
1
1
x y
x y
x y
l l
m m
n n
and the right-hand side is the "load vector":
[ ] (2.14) P
P
P
P
=
(
(
(
3
Equation (2.11) solves for the potential T in a region containing the one triangle with l, m,
n in Figure 3.
For practical problems with N nodes (grid point), the above process is repeated for each
finite element, obtaining a stiffness matrix or element coefficient matrix [S] with N rows
and N columns. [P] and [T] are then column vectors containing N rows.
5. Axisymmetric Finite Elements
Chapter 6 Page 9
MEE3017 Computer Modeling Techniques in Engineering
All devices designed by engineers are in reality three-dimensional. A special case of a
three-dimensional device is one that has axial symmetry. The basic equation can be
written as
k
r r
r
T
r
k
T
z
P
( ) +
2
2
= (2.15)
Fig. 4 Axisymmetric finite element.
6. Finite Elements in Three Dimension
Three dimensional Poisson's equation:
x
k
T
x y
k
T
y z
k
T
z
P ( ) ( ) ( ) + + = (2.16)
A three-dimensional finite element has at least four grid points, and they do not all lie in
one plane. The element forms a solid shape containing a volume of material.
The Two-dimensional and axisymmetric finite elements described above are used
whenever possible, because they are simpler to describe and uses than three-dimensional
finite elements.
Fig.4 shows the three most common three dimensional solid finite elements.
Chapter 6 Page 10
MEE3017 Computer Modeling Techniques in Engineering
Fig.4 Three-D finite elements:
The derivation of the matrix equation for the tetrahedral finite element is rather similar to
that of the triangular element. Thus in the case of quantities obeying Poisson's equation the
tetrahedral element is similar to the two-D triangular element.
Extending Eq. (2.7) gives
T T (2.17) a b x c y d
k k k k k
k m n o
= + + +
=
(
, , , l
z)
The derivation of the matrix equations proceeds in a fashion similar to that described in 2-
D.
7. Example of 2-D FEM
y =1.0 V
x =0 V
Boundary condition:
1=2=0.0
5=6=1.0
For the triangular element, the equations that must be satisfied for this linear representation
to agree with the functional values at the vertices are
Chapter 6 Page 11
MEE3017 Computer Modeling Techniques in Engineering
{ }
( ) e
e e e
e
e
e
x y x y = + + =
1 2 3
1
2
3
1 (2.18)
In matrix notation,
1
1
1
1 1
2 2
3 3
1
2
3
1
2
3
x y
x y
x y
e e
e e
e e
e
e
e
e
e
e
(
(
(
(2.19)
then
1
2
3
1 1
2 2
3 3
1
1
2
3
1
1
1
e
e
e
e e
e e
e e
e
e
e
x y
x y
x y
(
(
(
(2.20)
{ }
e
e e
e e
e e
e
e
e
x y
x y
x y
x y
=
(
(
(
1
1
1
1
1 1
2 2
3 3
1
1
2
3
(2.21)
The expression for (x,y) is equivalent to
{ }
e
e
e e e
e e e
e e e
e
e
e
x y
b b b
c c c
d d d
=
(
(
(
1
2
1
1 2 3
1 2 3
1 2 3
1
1
2
3
( )
(2.22)
where
b x y x y
ie je ke ke je
=
c y y
ie je ke
=
} (2.23)
d x x
ie ke je
=
and
b b b
c c c
d d d
x y
x y
x y
e e e
e e e
e e e
e
e e
e e
e e
1 2 3
1 2 3
1 2 3
1 1
2 2
3 3
1
2
1
1
1
(
(
(
=
(
(
(
( )
(2.24)
Chapter 6 Page 12
MEE3017 Computer Modeling Techniques in Engineering
( ) e
e e
e
e e
x y
x y
x y
=
(
(
(
1
2
1
1
1
1 1
2 2
3 3
e
(2.25)
Substitute interpolation functions
(2.26)
( ) e
ie ie
i
N =
=
1
3
where Nie are interpolation or shape functions.
N b c x
ie e ie ie ie
= + +
1
2
( )
( d y) (2.27)
Substitute Eq.(2.26) to the energy functional corresponding to Laplace's equation,
2
=0,
W dS
x y
dxdy = =
|
\
|
.
|
+
|
\
|
.
|
(
1
2 2
2
2
2
(2.28)
and then Eq.(2.28) can be written as
W
N
x
N
x
N
y
N
y
dxdy
i j
j i
i
j
i
j
S
e
= +
|
\
|
.
|
= =
1
2
1
3
1
3
( )
(2.29)
where
S
N
x
N
x
N
y
N
y
dxdy
ij
i
j
i
j
S
e
= +
|
\
|
.
|
( )
(2.30)
Nie/x and Nie/y are given as
N
x
c
ie ie
e
=
2
( )
(2.31)
N
y
d
ie ie
e
=
2
( )
(2.32)
dxdy
e
S
e
=
( )
( )
(2.33)
The energy functional W corresponding to i,W/i=0, we derive
(i=1,2,...,n) (2.34) S
ij j
j
n
=
=
0
1
The matrix form is shown as follows:
Chapter 6 Page 13
MEE3017 Computer Modeling Techniques in Engineering
[S]{}={0} (2.35)
where
(2.36) [ ] S
S S
S S
S
nn
=
(
(
(
(
11 12
21 22
L L
M O
M
{ }
1
2
M
n
(2.37)
where [S] is called element coefficient matrices.
For the single element, the equation can be written as
W
W
W
S S S
S S S
S S S
e
e
e
e
e
e
e e e
e e e
e e e
e
e
e
( )
( )
( )
( ) ( ) ( )
( ) ( ) ( )
( ) ( ) ( )
1
2
3
11 12 13
21 22 23
31 32 33
1
2
3
(
(
(
(2.38)
where
S
c c d d
ij
e
ie je ie je
e
( )
( )
=
+
4
(2.39)
Substituting all of Sij and in Eq. (2.35), and then system matrix equation can be solved
by computer program.
For the four-element example, N=6, so the matrix equati0n s written as
(
(
(
(
(
(
(
(
0
0
0
0
0
0
2 1 1 0 0 0
1 2 0 1 0 0
1 0 4 2 1 0
0 1 2 4 0 1
0 0 1 0 2 1
0 0 0 1 1 2
2
6
5
4
3
2
1
Chapter 6 Page 14
MEE3017 Computer Modeling Techniques in Engineering
Transposing all known voltage values to the right-hand side of equation, then the unknown
nodal voltages are obtained as the solution of this equation. The results are
V 2 / 1
4 3
= =
If =1
) (
) (
) (
) (
4
4
e
je ie x je ie y d
ij
e
je ie je ie e
ij
d d c c
S
d d c c
S
+
=
+
=
Supermatrix and band matrix
The matrix can be stored in a rectangular array of dimension n(b+1) as shown below:
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
0 0 0
0 0
0
0 0 0 0 0
0 0 0 0
0 0 0
0 0
0 0
0 0
0 0 0
0 0 0 0
0 0 0 0 0
12
99 88 77 66 55 44 33 22 11
99 98 97 96
89 88 87 86 85
79 78 77 76 75 74
69 68 67 66 65 64 63
58 57 56 55 54 53 52
47 46 45 44 43 42 41
36 35 34 33 32 31
25 24 23 22 21
14 13 12 11
a
a a a a a a a a a
a a a a
a a a a a
a a a a a a
a a a a a a a
a a a a a a a
a a a a a a a
a a a a a a
a a a a a
a a a a
(
(
(
(
=
(
(
(
(
(
(
(
(
4
3
2
1
4
3
2
1
44 43 42 41
34 33 32 31
24 23 22 21
14 13 12 11
y
y
y
y
x
x
x
x
a a a a
a a a a
a a a a
a a a a
Chapter 6 Page 15
MEE3017 Computer Modeling Techniques in Engineering
(
(
(
(
=
(
(
(
(
(
(
(
(
1 41 4
1 31 3
1 21 2
1
4
3
2
1
44 43 42
34 33 32
24 23 22
0
0
0
0 0 0 1
x a y
x a y
x a y
x
x
x
x
x
a a a
a a a
a a a
Program Techniques
The procedure of numerical techniques:
1. Pre-processor
Mesh generation and material description by visual techniques
Dimensions and symmetrical models
Linearity and nonlinearity
2. Numerical analysis
FEM program flowchart. See Fig.1 FEM program flowchart.
Matrix solver.
FINITE ELEMENTS
Chapter 6 Page 16
S
RESULT
OUTPUT
EVALUATION OF FLUXES PER
ELEMENT
SOLUTION OF THE SYSTEM OF
EQUATIONS FOR ALL
ASSEMBLING OF THE TOTAL SYSTEM
OF EQUATION
EVALUATION OF ELEMENT MATRICES
INTRODUCTION OF THE ESSENTIAL
BOUNDARY CONDITIONS
DATA
MEE3017 Computer Modeling Techniques in Engineering
Electromagnetic Analysis
1. Laplace's Equation
2. Poisson's Equation
A special case of a three-dimensional device is one that has axial symmetry. The basic
equation in a cylindrical coordinate system can be written as
1
2 0
r r
r
A
r z
A
z
J
r z
( ) ( ) + =
System matrix equation can be expressed as
[S]{A}={K}
For a single element, K has the form of
K
J
i
e
e
=
0
3
where J
0
is the current density.
The coefficient matrix for a singal element is
Chapter 6 Page 17
MEE3017 Computer Modeling Techniques in Engineering
W u
W u
W u
S S S
S S S
S S S
A
A
A
K
K
K
e
e
e
e
e
e
e e e
e e e
e e e
e
e
e
e
e
e
( )
( )
( )
( ) ( ) ( )
( ) ( ) ( )
( ) ( ) ( )
/
/
/
1
2
3
11 12 13
21 22 23
31 32 33
1
2
3
1
2
3
(
(
(
where Sij can be expressed as
S
r
c c d d
ij
e
e
e
ie je ie je
( )
( )
( )
=
+
(
2
4
0
where
c z z
d r r
ie je ke
ie ke je
=
=
( )
r
r r r
e e e
0
1 2 3
3
=
+ +
( ) ( ) ( )
3. Helments' Equation
Program Techniques and Software Packages
Supermatrix and band matrix
1. Mesh generation and confirmation
2. Developing your own program
3. Post-process
Chapter 6 Page 18