Docsity

Temperature Distribution Finite Difference Boundary Value Example | MECH 102, Study notes of Mechanical Engineering

Toggle sidebar
bg1
TL() T
B
=C1ek L⋅
⋅C2ek−L⋅
⋅+ Ta
+=
T0() T
A
=C1C2
+Ta
+=
applying the BCs:
Tx() T
hx() T
px()+=C1ek x⋅
⋅C2ek−x⋅
⋅+ Ta
+=
general solution:
Tpx() T
a
:=
particular solution:
Thx() C
1ek x
⋅C2ek−x⋅
⋅+=
sk=k−,s2k−0=
homogeneous solution:
2
x
T
d
d
2
kT⋅− k−Ta
⋅=
Theoretical solution (using methods of Differential Equations):
TL() T
B
=T0() T
A
=
BC's:
2
x
T
d
d
2
kT
aT−
()
⋅+ 0=
ODE:
ambient temperature
Ta20:=
number of intervals
n20:=
temperature at right end
TB200:=
conduction/convection constant
k 0.001:=
temperature at left end
TA40:=
length
L 10:=
Bar and heat transfer info:
Temperature Distribution Finite-Difference Boundary-Value Example
pf3
pf4

Partial preview of the text

Download Temperature Distribution Finite Difference Boundary Value Example | MECH 102 and more Study notes Mechanical Engineering in PDF only on Docsity!

T L( ) T

B

= C

1

e

k L⋅

⋅ C

2

e

− k⋅L

+ ⋅ T

a

T 0( ) T

A

= C

1

C

2

+ T

a

applying the BCs:

T x( ) T

h

( )x T

p

= + ( )x C

1

e

k x⋅

⋅ C

2

e

− k⋅x

+ ⋅ T

a

general solution:

T

p

( )x T

a

particular solution:

T

h

( )x C

1

e

k x

⋅ C

2

e

− k⋅x

s s = k,− k

2

− k = 0

homogeneous solution:

2

x

T

d

d

2

− k T⋅ −k T

a

Theoretical solution (using methods of Differential Equations):

T L( ) T

B

T 0( ) T =

A

BC's:

2

x

T

d

d

2

k T

a

+ ⋅( −T) = 0

ODE:

ambient temperature T

a

number of intervals n := 20

temperature at right end T

B

conduction/convection constant k :=0.

temperature at left end T

A

length L := 10

Bar and heat transfer info:

Temperature Distribution Finite-Difference Boundary-Value Example

T

M

:=Odesolve x L( , )

T L( ) T

B

T 0( ) T =

A

2

x

T x( )

d

d

2

k T

a

+ ⋅( −T x( )) = 0

Given

MathCAD numerical solution:

T

t

( )x C

1

e

k x⋅

⋅ C

2

e

− k⋅x

+ ⋅ T

a

true analytical solution:

C

1

C

2

Find C

1

C

2

T

B

C

1

e

k L⋅

⋅ C

2

e

− k⋅L

+ ⋅ T

a

T

A

C

1

C

2

+ T

a

Given

using MathCAD:

C

2

C =−237.

2

T

A

T

a

− C

1

C

1

C

1

T

B

T

a

− T

A

T

a

( − ) e

− k⋅L

e

k L⋅

e

− k⋅L

using algebra:

i := 0 ..n x

i

:=i ⋅∆x

0 2 4 6 8 10

0

50

100

150

200

T i

T t

xi

T M

xi

xi