Partial Differential Solution With Matlab
Partial Differential Solution With Matlab
\
|
c
c
+
x
u
u t x f t x q u t x p
Conductive heat transfer problem
Heat transfer in a solid slab is governed by
General initial condition:
Boundary conditions (Dirichlet)
2
2
x
T
t
T
c
c
=
c
c
o
( ) ( ) x T x T = 0 ,
( )
( ) 100 , 0
0 , 0
0
= =
= =
L
T t T
T t T
If the solid has an average value of 0.02 and
we say that the initial temperature of the solid
is 0 degrees celcius:
2
2
02 . 0
x
T
t
T
c
c
=
c
c
( ) 0 0 , = x T
General form for PDEs in matlab is
so each function must be recognized by
similarity to enter them in Matlab
|
.
|
\
|
c
c
+
|
|
.
|
\
|
|
.
|
\
|
c
c
c
c
=
c
c
|
.
|
\
|
c
c
x
u
u t x s
x
u
u t x f x
x
x
t
u
x
u
u t x c
m m
, , , , , , , , ,
0
0
02 . 0
1
, , , 02 . 0 * 1
=
=
|
.
|
\
|
c
c
=
=
|
.
|
\
|
c
c
+
|
.
|
\
|
c
c
c
c
=
c
c
m
s
x
u
f
c
x
u
u t x s
x
u
x t
u
So
( ) ( ) 0 , , , , , , =
|
.
|
\
|
c
c
+
x
u
u t x f t x q u t x p
( ) ( )
( ) ( ) 100 , 0 * 0 , 1
0 , 0 * 0 , 0
=
c
c
+
=
c
c
+
t
x
T
t T
t
x
T
t T
100
2 2
1 1
=
=
T p
T p
0
0
2
1
=
=
q
q