Chapter 4
Chapter 4
Chapter 4
FINITE ELEMENT METHOD
2
Learning Objectives
LEARNING OBJECTIVES
After this chapter you will be able to:
- Understand the Finite Element Method
- Express the Galerkin Method for the FEM
-Solve steady, unsteady one-dimensional conduction
problems numerically using the FEM
- Apply Ansys Workbench to solve one-, two- or three-
dimensional conduction problems using FEM.
3
4.1 Introduction
4.1 Introduction
In the FEM, the domain is divided into elements (each
element has a certain number of nodes). The PDE is
multiplied by a weight function before being integrated over a
control volume.
4.1.1 Basic steps
1. Grid generation: Discretize the domain into elements. Each
element is formed by a certain number of nodes.
2. Select shape functions(hàm hình dạng): that represents the
variation of the Temperature over an element
3. Form element equations: Develope equations of an element.
Number of equations are equal to number of nodes.
4. Assemble (lắp ghép) the element equations: Assembly of the
element equations to form the global equation.
5. Solve the global equation: temperature of nodes.
Numerical methods for heat transfer
1
01/04/2022
4
4.1 Introduction
4.1.2 Elements and shape functions
The functions to determine the temperature within an
element by interpolating the nodal temperatures are called
shape functions, or interpolating functions.
+ One-dimensional linear element
5
4.1 Introduction
From the above equations, we get
6
4.1 Introduction
is the shape function matrix is the
vector of unknown temperatures( véc tơ nhiệt độ nút).
Example: Calculate the temperature of an 8-cm long bar at a
distance of 5 cm from one end where the temperature is
120oC with the other end at a temperature of 200oC. Assume
the temperature variation between the two end points as
being linear.
2
01/04/2022
7
4.1 Introduction
+ One-dimensional quadratic(bậc 2) element
8
4.1 Introduction
From the above three equations, we obtain
9
4.1 Introduction
4.1.3 Form element equations
Element equations is in the matrix equation form
3
01/04/2022
10
4.1 Introduction
4.1.4 The method of weighted residuals
The PDE of an element can be represented by
Ex.
with
10
11
4.1 Introduction
4.1.5 The Galerkin method: is one of the most popular
methods for developing the FE equation. The Galerkin
method requires that
Galerkin method
11
12
4.2 FEM for steady heat conduction
4.2 FEM for steady heat conduction
4.2.1 Steady state heat conduction in one dimension
Consider the steady heat conduction in a one-dimensional
domain
12
4
01/04/2022
13
4.2 FEM for steady heat conduction
+ The Galerkin method requires that
13
14
4.2 FEM for steady heat conduction
Doing Similar, we have
We have
The last term associates with the surface heat flux at the two
ends of the element.
Numerical methods for heat transfer
14
15
4.2 FEM for steady heat conduction
+ For the interior element
Element equations
15
5
01/04/2022
16
4.2 FEM for steady heat conduction
16
17
4.2 FEM for steady heat conduction
Integration over Each Element:
• Right element
17
18
4.2 FEM for steady heat conduction
• Left element
• Right element
• Left element
18
6
01/04/2022
19
4.2 FEM for steady heat conduction
To summarise
+The interior element
-The conductance matrix
+ Boundary elements
• the right element having convection (element n)
-The conductance matrix
19
20
4.2 FEM for steady heat conduction
• the left element having convection (element 1)
-The conductance matrix
• Left element
• Right element
20
21
4.2 FEM for steady heat conduction
Example 4.1 Consider the heat conduction in a large plate of
thickness L = 2 cm with λ = 0.5 W/m.K. The faces A and B are
at temperatures of 200°C and 100°C respectively. Assuming
that the dimensions in the y- and z-directions are so large that
temperature gradients are significant in the x direction only,
calculate the steady state temperature distribution. Compare
the numerical result with the analytical solution.
The differential equation:
Solution: Divide the wall into five equal elements, This gives
∆x=0.004m.
21
7
01/04/2022
22
4.2 FEM for steady heat conduction
The shape function
22
23
4.2 FEM for steady heat conduction
We have
+ For the interior element without the surface heat flux at the
two ends
23
24
4.2 FEM for steady heat conduction
Element equations
24
8
01/04/2022
25
4.2 FEM for steady heat conduction
For all elements we have
Assembling elements
25
26
4.2 FEM for steady heat conduction
-Analytical solution (exact solution)
Node 1 2 3 4 5 6
Distance(m) 0 0.004 0.008 0.012 0.016 0.02
FEM 200.00 180.00 160.00 140.00 120.00 100.00
Exact 200.00 180.00 160.00 140.00 120.00 100.00
Error(%) 0 0 0 0 0 0
Numerical methods for heat transfer
26
27
4.2 FEM for steady heat conduction
Example 4.2 A large plate of thickness L = 2 cm with constant
thermal conductivity λ = 0.5 W/m.K and uniform heat
generation q = 1000 kW/m3. The faces A and B are at
temperatures of 200°C and 100°C respectively. Assuming that
the dimensions in the y- and z-directions are so large that
temperature gradients are significant in the x direction only,
calculate the steady state temperature distribution. Compare
the numerical result with the analytical solution.
27
9
01/04/2022
28
4.2 FEM for steady heat conduction
The Galerkin method requires that
28
29
4.2 FEM for steady heat conduction
For all elements we have
29
30
4.2 FEM for steady heat conduction
-Analytical solution
Node 1 2 3 4 5 6
Distance(m) 0 0.004 0.008 0.012 0.016 0.02
FEM 200.00 244.00 256.00 236.00 184.00 100.00
Exact 200.00 244.00 256.00 236.00 184.00 100.00
Error(%) 0 0 0 0 0 0
30
10
01/04/2022
31
4.2 FEM for steady heat conduction
Example 4.3 Aluminum fins of a rectangular profile are used to
remove heat from a surface whose temperature is
Tbase=100°C. The temperature of the ambient air Tf= 20°C. The
thermal conductivity of aluminum is λ = 160 W/m.K (W/m·0C).
The natural convective heat transfer coefficient associated
with the surrounding air is =30 W/m2.K (W/m2.°C). The fin
length L= 80 mm, 5 mm wide, and 1 mm thick. Determine the
temperature distribution along the fin, including the heat loss
through the tip of the fin. Compare the numerical result with
the analytical solution.
31
32
4.2 FEM for steady heat conduction
The differential equation for elements:
For elements (1), (2), and (3), the conductance and thermal
load matrices are given by
32
33
4.2 FEM for steady heat conduction
+ For the the element 4
33
11
01/04/2022
34
4.2 FEM for steady heat conduction
-Analytical solution
where
Node 1 2 3 4 5
Distance(m) 0 0.02 0.04 0.06 0.08
FEM 100.00 74.37 58.82 50.48 47.79
Exact 100.00 74.57 59.12 50.81 48.13
Error(%) 0.00 -0.28 -0.50 -0.65 -0.70
34
35
4.2 FEM for steady heat conduction
4.2.2 Steady State Heat Conduction in 2 or 3 Dimensions
+Two-dimensional linear triangular elements
35
3
6
4.2 FEM for steady heat conduction
+Triangular elements (phần tử tam giác)
36
12
01/04/2022
3
7
4.2 FEM for steady heat conduction
37
38
4.2 FEM for steady heat conduction
Example 4.4 A major objective in advancing gas turbine engine
technologies is to increase the temperature limit associated
with operation of the gas turbine blades. This limit determines
the permissible turbine gas inlet temperature, which, in turn,
strongly influences overall system performance. In addition to
fabricating turbine blades from special, high-temperature,
high-strength superalloys, it is common to use internal cooling
by machining flow channels within the blades and routing air
through the channels. We wish to assess the effect of such a
scheme by approximating the blade as a rectangular solid in
which rectangular channels are machined. The blade, which
has a thermal conductivity of = 25W/m.K, is 6mm thick, and
each channel has a 2mm× 6mm rectangular cross section, with
a = 4mm spacing between adjoining channels.
Numerical methods for heat transfer
38
39
4.2 FEM for steady heat conduction
39
13
01/04/2022
40
4.2 FEM for steady heat conduction
Result using Finite Difference Method [*]
[*] Introduction to Heat Transfer, 6th Edition, Frank P. Incropera (Author), David P.
DeWitt (Author)
Numerical methods for heat transfer
40
41
4.2 FEM for steady heat conduction
Result using ANYS APDL
(K)
41
42
4.3 FEM for unsteady heat conduction
4.3 FEM for unsteady heat conduction
4.3.1 One-dimensional unsteady heat conduction
Consider the unsteady heat conduction in a 1D case
42
14
01/04/2022
43
4.3 FEM for unsteady heat conduction
We have
(4.3)
43
44
4.3 FEM for unsteady heat conduction
The element
Apply
We have
44
45
4.3 FEM for unsteady heat conduction
4.3.1.1 Explicit scheme
45
15
01/04/2022
46
4.3 FEM for unsteady heat conduction
Examples
A thin plate is initially at a uniform temperature of 200°C. At a
certain time t = 0 the temperature of the right side of the
plate is suddenly reduced to 0°C. The other surface is
insulated. Use the explicit and implicit methods in conjunction
with a suitable time step size to calculate the transient
temperature distribution of the slab and compare it with the
analytical solution at time (i) t = 40 s, (ii) t = 80 s and (iii) t =
120 s. The data are: plate thickness L = 2 cm, thermal
conductivity λ = 10 W/m.K and ρC=10×106 J/m3.K.
46
47
4.3 FEM for unsteady heat conduction
The differential equation for interior nodes:
where and
47
48
4.3 FEM for unsteady heat conduction
+ Explicit scheme
(4.4)
Consider
48
16
01/04/2022
49
4.3 FEM for unsteady heat conduction
49
50
4.3 FEM for unsteady heat conduction
Substituting into Eq. (4.4), we get at ∆t =0.2s
[C]
([C]-[K]∆t)
50
51
4.3 FEM for unsteady heat conduction
Apply boundary condition
+1
13333 6667 0 0 0 0 ⎡ 1 +1 ⎤
⎡ 6667 26667 6667 0 0 0 ⎤⎢ 2 ⎥
⎢ ⎥ +1
⎢ 0 6667 26667 6667 0 0 ⎥⎢ 3 ⎥
⎢ 0 0 6.667 26667 6667 0 ⎥ ⎢ 4 +1 ⎥
⎢ 0 0 0 6.667 266676 6667⎥ ⎢ 5 +1 ⎥
⎣ 0 ⎢ ⎥
0 0 0 0 1 ⎦ ⎣ +1 ⎦
6
8333 11667 0 0 0 0 ⎡ 1⎤
⎡11667 16667 11667 0 0 0 ⎤⎢ 2 ⎥
⎢ ⎥
0 11667 166676 11667 0 0 ⎥⎢ 3 ⎥
=⎢
⎢ 0 0 11667 216667 11667 0 ⎥⎢ 4 ⎥
⎢ 0 0 0 11667 16667 11667⎥ ⎢ 5 ⎥
⎣ 0 0 0 0 0 0 ⎦⎣ 0 ⎦
51
17
01/04/2022
52
4.3 FEM for unsteady heat conduction
Results for Explicit method (∆X=0.004, ∆T=2s)
Time =40s Time =80s Time =120s
Node
Numerical Analytical %error Numerical Analytical %error Numerical Analytical %error
1 194.29 189.86 2.28 156.94 154.46 1.58 122.63 121.36 1.03
2 187.72 183.81 2.08 149.49 147.27 1.49 116.64 115.46 1.02
3 166.24 163.71 1.52 127.68 126.08 1.25 99.26 98.30 0.97
4 126.68 125.71 0.77 93.23 92.33 0.96 72.16 71.50 0.91
5 69.12 69.04 0.10 49.21 48.85 0.73 37.95 37.62 0.86
6 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
(∆X=0.004, ∆T=2s)
Numerical methods for heat transfer
52
53
4.3 FEM for unsteady heat conduction
4.3.1.2 The fully implicit scheme
53
54
4.3 FEM for unsteady heat conduction
4.3.1.3 Crank-Nicolson scheme
Rearranging
54
18
01/04/2022
55
Exercise
Exercise 1: A wall of industrial oven consists of three different
materials. The first layer is composed of 5 cm of insulating
cement with a clay binder that hat thermal conductivity of
0.08 W/m. oC. The second layer is made from 15cm of 6-ply
asbestos board with a thermal conductivity of 0.074 W/m.oC.
The exterior consists of 10cm brick with a thermal conductivity
of 0.72W/m2.oC. The inside wall temperature is 200oC, and the
outside air is 30oC with a convection coefficient of 40W/m2. oC.
Determine the temperature distribution along the wall.
55
56
Excercise
Exercise 2: Analysis of cold plate used to thermally control IBM
multi-chip, thermal conduction module.
56
19