Professional Documents
Culture Documents
Equations (PDE)
o Explicit Method
o Crank-Nicolson Method
PDEs
In contrast to the elliptic category, parabolic equations determine how an
unknown varies in both space and time.
" # $ "$
heat-conduction equation: ! #=
"% "'
Explicit Method
A computational molecule for the explicit form, showing the nodes
that constitute the spatial and temporal approximations
" # $ "$
! #=
"% "'
+
$()* − 2$(+ + $(/*
+
$(+)* − $(+
! =
∆% # ∆'
!∆'
$(+)* = $(+ + 1 $()*
+
− 2$(+ + $(/*
+
1= #
∆%
Explicit Method Temperature distribution
" # $ "$
! #=
"% "'
∆% = 2*+
$(0) = 100
∆' = 0.1/ For all '
$(10) = 50
! = 0.835 *+# //
!∆' At time ' = 0, $(%) = 0 for 0 < % < 10
6 = # = 0.020875
∆%
9∆,
Explicit Method
(= = 0.020875
∆0 :
∆0 = 223
!(0) = 100
For all ,
∆, = 0.14
!"#$% = !"# +( #
!"$% − 2!"# + #
!"+% !(10) = 50
!%% = !%= + 0.020875 !:= − 2!%= + !== = 0 + 0.020875 0 − 2(0) + 100 = 2.0875 !== = !(0) = 100
!B% = !B= + 0.020875 !C= − 2!B= + !>= = 0 + 0.020875 50 − 2(0) + 0 = 1.0438 !C= = !(10) = 50
=∆,
Explicit Method
(= = 0.020875
∆/ >
∆/ = 256
!(0) = 100
For all ,
∆, = 0.18
!"#$% = !"# +( #
!"$% − 2!"# + #
!"+% !(10) = 50
!%> = !%% + 0.020875 !>% − 2!%% + !@% = 2.0875 + 0.020875 0 − 2(2.0875) + 100 = 4.0878 !@% = !(0) = 100
!>> = !>% + 0.020875 !A% − 2!>% + !%% = 0 + 0.020875 0 − 2(0) + 2.0875 = 0.043577
!A> = !A% + 0.020875 !C% − 2!A% + !>% = 0 + 0.020875 1.0438 − 2(0) + 0 = 0.021788
!C> = !C% + 0.020875 !D% − 2!C% + !A% = 1.0438 + 0.020875 50 − 2(1.0438) + 0 = 2.0439 !D% = !(10) = 50
Explicit Method
,∆#
$= '
∆"
• Stability means that errors at any stage of the computation are not
amplified but are attenuated as the computation progresses.
Carnahan, B., H. A. Luther, and J. O. Wilkes, Applied Numerical Methods, Wiley, New York, 1969.
A Simple Implicit Method
A computational molecule for the simple implicit method, showing
the nodes that constitute the spatial and temporal approximations
" # $ "$
! #=
"% "'
Implicit Method
Error
+)*
" # $ $()* − 2$(+)* + $(/*
+)*
= 3(∆% # )
"% # ∆% #
" # $ "$
! #=
"% "'
"$ $(+)* − $(+ 3(Δ')
=
"' ∆'
+)*
$()* − 2$(+)* + $(/*
+)*
$(+)* − $(+
! =
∆% # ∆'
+)* !∆'
−1$(/* + 1 + 21 $(+)* − 1$()*
+)*
= $(+ 1=
∆% #
Explicit vs. Implicit
)'(
)
! " # #&'( − 2#&) + #&-(
) ! " # #&'( − 2#&)'( + #&-(
)'(
= =
!$ " ∆$ " !$ " ∆$ "
)'(
#&)'( = #&) + 0 #&'(
)
− 2#&) + #&-(
) −0#&-( + 1 + 20 #&)'( − 0#&'(
)'(
= #&)
9∆1
Implicit Method
"= = 0.020875
∆. :
∆. = 2/0
#(0) = 100
For all 1
'(& ∆1 = 0.14
−"#$%& + 1 + 2" #$'(& − '(&
"#$(& = #$' #(10) = 50
Implicit Method
"= = 0.020875
∆. :
∆. = 2/0
#(0) = 100
For all 1
'(& ∆1 = 0.14
−"#$%& + 1 + 2" #$'(& − '(&
"#$(& = #$' #(10) = 50
At time 1 = 0.1s
!# #(+)* − #(+
5(∆0 " )
3
= Middle point for derivative at time 0 +)4
!0 ∆0
+
! " # 1 #()* − 2#(+ + #(.*
+ +)*
#()* − 2#(+)* + #(.*
+)*
= + 5(∆$ " )
!$ " 2 ∆$ " ∆$ "
+
1 #()* − 2#(+ + #(.*
+ +)*
#()* − 2#(+)* + #(.*
+)*
#(+)* − #(+
1 + =
2 ∆$ " ∆$ " ∆0
+)*
1∆0
−2#(.* + 2 1 + 2 #(+)* − 2#()*
+)* +
= 2#(.* + 2 1 − 2 #(+ + 2#()*
+
2=
∆$ "
2∆'
Crank-Nicolson Method
1= = 0.020875
∆" 3
∆" = 2%&
,(0) = 100
For all '
∆' = 0.1+ ,(10) = 50
The temperature at ' = 0.1s for the node at " = 2,4,6,8 cm:
Crank-Nicolson Method
1= = 0.020875
∆" 3
∆" = 2%&
,(0) = 100
For all '
∆' = 0.1+ ,(10) = 50
BC9
−1,@A9 + 2 1 + 1 ,@BC9 − 1,@C9
BC9 B
= 1,@A9 + 2 1 − 1 ,@B + 1,@C9
B At time ' = 0, ,(") = 0 for 0 < " < 10
The temperature at ' = 0.2s for the node at " = 2,4,6,8 cm: