Exact value of truncation error

  • Context: Graduate 
  • Thread starter Thread starter roldy
  • Start date Start date
  • Tags Tags
    Error Value
Click For Summary
SUMMARY

The discussion focuses on calculating the exact value of truncation error in finite element analysis using the forward finite difference method. The example provided involves the function u=u(x,t)=x*sin(t) and its time derivative, leading to the formulation of the truncation error as x*cos(t) minus the finite difference approximation. The participant seeks clarification on how to compute an exact value for the truncation error when specific numerical values are substituted. Additionally, the concept of the leading truncated term is explored, with the conclusion that it refers to the first derivative term omitted from the finite difference expression.

PREREQUISITES
  • Understanding of finite element analysis
  • Familiarity with the forward finite difference method
  • Knowledge of Taylor series expansion
  • Basic calculus, specifically differentiation
NEXT STEPS
  • Research the derivation of truncation error in finite difference methods
  • Study Taylor series and its application in numerical analysis
  • Learn about higher-order finite difference methods
  • Explore the concept of leading truncated terms in numerical approximations
USEFUL FOR

Mathematicians, engineers, and researchers involved in numerical analysis, particularly those working with finite element methods and seeking to understand error analysis in computational simulations.

roldy
Messages
206
Reaction score
2
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:
\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}

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

However, if you were to plug in numbers for x, t, and \Delta t, I don't see a way of calculating an exact value for the truncation error. Is my thought process wrong?
 
Physics news on Phys.org
If you know the exact error, you can evaluate the exact value.
 
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?
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 17 ·
Replies
17
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 33 ·
2
Replies
33
Views
4K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 19 ·
Replies
19
Views
5K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 3 ·
Replies
3
Views
1K