Understanding Stencils in Finite Difference Methods

Click For Summary
A "stencil" in finite difference methods refers to the set of points used to approximate derivatives in numerical calculations. It serves as a recurrence relation for determining the next value in a sequence, such as in the Euler method for ordinary differential equations. For partial differential equations, the stencil becomes more complex, incorporating multiple points and directions. Understanding stencils is crucial for effectively applying finite difference methods in computational simulations. Overall, stencils play a fundamental role in the accuracy and stability of numerical solutions.
alecrimi
Messages
18
Reaction score
0
Hi
Sorry for the stupid question, but what is exactly a "stencil" in finite difference methods ?
Is the results of the expansion points ?
Cheers
Alex
 
Physics news on Phys.org
This is also called a computational molecule in some texts, it basically is the recurrence relation that you use to calculate the next point in your calculation, so for example a stencil for the Euler method for the ODE \frac{du}{dx}=f(x,u) would be:
<br /> u_{n+1}=u_{n}+hf(x_{n},u_{n})<br />
For PDEs it would be something more complicated. I hope you get the general idea.
 

Similar threads

  • · Replies 12 ·
Replies
12
Views
7K
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 7 ·
Replies
7
Views
5K
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 16 ·
Replies
16
Views
3K