- #1
roldy
- 237
- 2
Homework Statement
For a given function u=u(x,t), start with Taylor series to implement the forward finite difference method to the heat conduction equation in non-dimensional form
[itex]\frac{\partial u}{\partial t}=\frac{\partial ^2u}{\partial x^2}[/itex]
by using the following steps:
a) Obtain the first three truncated terms for each derivative in Eq. (1), using the method discussed in class. Your answer should be in terms of the step sizes [itex]\Delta t[/itex] and [itex]\Delta x[/itex]. Use subscript i for x and superscript n for t to represent the nodes.
b) From your answers in Part a), determine the order of the truncation error in terms of the step sizes.
c) As an example, given the function
[itex]u=(2^x)sin(t)[/itex]
In which the non-dimensional time t is in radians, calculate the exact value of the truncation error for [itex]\partial u/ \partial t[/itex] at node (i,n+1) where non-dimensional variables have values x=0.22100 and t=1.0472. Use [itex]\Delta t=0.015[/itex] and [itex]\Delta x=0.22[/itex].
d) Calculate the value of the leading truncated term and compare to the exact value of the truncation error.
Keep 5 significant digits in your numerical answers.
Homework Equations
[itex]\frac{\partial u}{\partial t}=\frac{\partial ^2u}{\partial x^2}[/itex]
Taylor series:
[itex]u(x_0+\Delta x)=u(x_0)+\frac{\Delta x}{1!}u'(x_0,u(x_0))+\frac{\Delta x^2}{2!}f''(x_0,u(x_0))+\frac{\Delta x^3}{3!}u'''(x_0,u(x_0))+…[/itex]
The Attempt at a Solution
I tried to solve this problem a couple times already but upon my last attempt I realized that I was not answering what the problem was asking for. I'm stuck on understanding the part a). Here's what I'm thinking…I'm suppose to take the derivative terms of the Taylor series and substitute in the forward finite difference form for each term. However, the [itex]\Delta x[/itex] terms will cancel. This does not seem correct. I'm not sure what the problem means when it says to start with the Taylor series to implement the forward finite difference method. Also, the first sentence of part a) had me confused. Could someone provide some clarification to this problem so that I may work on the other parts.