Escolar Documentos
Profissional Documentos
Cultura Documentos
dT
d 2T
c
=K 2
dt
dx
T (t = 0, x) = T0
T (t , x = 0) = TA
T (t , x = L) = TB
TA
TB
Condio inicial
T0
Condies de contorno
x
T (t , x) = ?
Ti , j
t = ( j 1)t
Ti , j
t = t
j=2
t=0
j =1
1 2
i 1 i i + 1
N 1 N
Ponto i
Tempo j
2T
Ti +1 2Ti + Ti 1
Discretizao no espao:
2
x i
x 2
Equao diferencial deve ser satisfeita em todos os pontos i :
dTi
k Ti +1 2Ti + Ti 1
=
; i = 2, , N 1
2
dt c
x
T1 = TA
TN = TB
Uma vez discretizada as derivadas em relao a x, obtm-se um
sistema de equaes diferenciais ordinrias em t (prob. de valor inicial):
T1 = TA
dT
k T3 2T2 + T1
2 =
c
x 2
dt
dT
k T4 2T3 + T2
3
=
dt
c
x
T = T
B
N
Incgnitas do problema:
T1 (t ) , T2 (t ) , , TN (t )
Mtodo Explcito
Ti , j
Ponto i
Tempo j
dTi Ti , j +1 T1, j
k Ti +1, j 2Ti , j + Ti 1, j
=
; i = 2, , N 1
2
dt
t
c
x
Lado direito da EDO avaliada no instante anterior
Ti , j +1 = Ti , j +
t k
[
Ti +1, j 2Ti , j + Ti 1, j ] ; i = 2, , N 1
2
x c
t k 1
1 k
2
t
x
>
>
x 2 c 2
2 c
dT
d 2T
c
=K 2
dt
dx
T (t = 0, x) = T0
T (t , x = 0) = TA
T (t , x = L) = TB
Ti , j +1 = Ti , j +
k
= 1 ; L = 1 ; x = 0.1
c
T0 = 0 ; TA = 2 ; TB = 1
t k
[
Ti +1, j 2Ti , j + Ti 1, j ] ; i = 2, , N 1
2
x c
Planilha do
Microsoft Excel
10
t=0
t=0.03
6
t=0.05
k
= 1 ; x = 0.1 ; t = 0.01
c
t k
1
=1>
2
x c
2
2
0
-2
0.2
0.4
0.6
0.8
1.2
-4
-6
x
2.5
t=0
t=0.15
t=0.025
1.5
k
= 1 ; x = 0.1 ; t = 0.005
c
t k 1
=
2
x c 2
0.5
0
0
0.2
0.4
0.6
x
0.8
1.2
t=0
2.5
t=0.15
t=0.025
t=0.1
t=0.15
1.5
t=0.4
0.5
0
0
0.2
0.4
0.6
x
0.8
1.2
Ti , j
Mtodo Implcito
Ponto i
Tempo j
dTi Ti , j +1 Ti , j
k Ti +1, j +1 2Ti , j +1 + Ti 1, j +1
=
; i = 2, , N 1
2
dt
t
c
x
Lado direito da EDO avaliada no instante atual
Conhecida as temperaturas no instante j,
deseja-se determinar as temperaturas no instante j+1.
T1, j +1 = TA
k 1
1
k 1
k 2
1
T
T +
T
+ +
= Ti , j ;
2 i +1, j +1
2 i , j +1
2 i 1, j +1
t
c x
t c x
c x
i = 2, , N 1
TN , j +1 = TB
Sistema de equaes linear.
Ax = f
Matriz dos coeficientes
Parede isolada
T T
+ 2 =0
2
x
y
T ( x = 0, y ) = TA
T ( x = L, y ) = TB
T ( x, y = 0) = TC
T
( x, y = L ) = 0
y
T ( x, y ) = ?
TB
TA
TC
Ny
Ti , j
j +1
j
j 1
j =1
i =1
Coord x
i 1 i i +1
Nx
Coord y
(i, j + 1)
(i 1, j )
(i, j ) (i + 1, j )
2T
x 2
(i, j 1)
2T
y 2
i, j
i, j
Ti +1, j 2Ti , j + Ti 1, j
x 2
Ti , j +1 2Ti , j + Ti , j 1
y 2
i = 2, , Nx 1
j = 2, Ny 1
1
1
1
1
1
1
T = 0
T
+
T
+
T
+
T
2
+
2 i +1, j 2 i 1, j 2 i , j +1 2 i , j 1 2
2 i, j
y
x
x
y
y
x
Condies de contorno:
T1, j = TA ;
TNx , j = TB ;
j = 1, , Ny
j = 1, , Ny
Ti ,1 = TC ; i = 2, , Nx 1
Ti , Ny Ti , Ny 1 = 0 ; i = 2, , Nx 1
Ax = f
Matriz dos coeficientes
Termo independente
T1 = T1,1
T = T
1, 2
2
x = T3 = T1,3
TNx Ny = TNx , Ny
3
2
25
10
24
(i, j )
8
7
T1 = T1,1
T2 = T1, 2
TNy = T1, Ny
23
TNy +1 = T2,1
22
T(i 1) Ny + j = Ti , j
21
TNx Ny = TNx , Ny
13
(i, j ) (i 1) Ny + {j
1 4 2 43
Nmero de ns nas colunas anteriores
Nmero de ns na coluna i
Equao relativa ao n # 8:
T8 T2,3
1
1
1
1
1
1
2 T3,3 + 2 T1,3 + 2 T2, 4 + 2 T2, 2 2 2 + 2 T2,3 = 0
y
x
x
y
y
x
1
1
1
1
1
1
T = 0
T
+
T
+
T
+
T
2
+
2 13 2 3 2 9 2 7 2
2 8
y
x
x
y
y
x
1 2 3 4 5 6 7 8 9 10 11 12 13 14
25
A=
Linha 8
0 0 A 0 0 0 B C B
Matrix pentadiagonal
T ( x = 0, y ) = TA = 10
T ( x = L, y ) = TB = 20
T ( x, y = 0) = TC = 0
T
( x, y = L ) = 0
y
Grfico de iso-linhas
contourf
Grfico 3D - superfcie
surf
2
1.8
25
1.6
20
1.4
15
1.2
10
0.8
0.6
-5
2
0.4
1.5
2
1.5
1
1
0.5
0.5
0
0.2
0
0.2
0.4
0.6
0.8
1.2
1.4
1.6
1.8