Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Exact value of truncation error

  1. Sep 6, 2011 #1
    How would you calculate the exact value of the truncation error? This is of course for finite element analysis using the forward finite difference method.

    If your given a function u=u(x,t) and are to find the error at node (i,n+1), wouldn't you just take the difference between the value of the function and the value of the finite method?

    So for example
    u=u(x,t)=x*sin(t)
    du/dt=x*cos(t)

    finite difference method-time derivative:
    [itex]\frac{\partial ^u}{\partial t}=\frac{u_i^{n+1}-u_i^n}{\Delta t}=\frac{x*sin(t+\Delta t)-x*sin(t)}{\Delta t}[/itex]

    So therefore the exact error is...
    [itex]x*cos(t)-\left[\frac{x*sin(t+\Delta t)-x*sin(t)}{\Delta t}\right][/itex]

    However, if you were to plug in numbers for x, t, and [itex]\Delta t[/itex], I don't see a way of calculating an exact value for the truncation error. Is my thought process wrong?
     
  2. jcsd
  3. Sep 6, 2011 #2
    If you know the exact error, you can evaluate the exact value.
     
  4. Sep 6, 2011 #3
    Assuming that my error equation is correct, that should result in the error. One other thing that I'm curious about is the leading truncated term. I've seen this a couple times before but I can not find the site where it talks more in depth. What is the leading truncated term? The only thing I can think of is the first derivative term dropped from the finite difference expression. Say for example you only want the first three terms truncated. Then in your expression you would include the value of the function at t, 1st derivative term, and the 2nd derivative term. Therefore the 3rd derivative term would be the leading truncated term. Is this correct?
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook