Numerical boundary conditions for wide approximation finite difference

Click For Summary
SUMMARY

This discussion centers on implementing numerical boundary conditions for a wide 5-point stencil finite difference scheme aimed at achieving fourth-order accuracy. The specific finite difference approximation presented is: u'' = -f(x + 2h) + 16f(x + h) - 30f(x) + 16f(x - h) - f(x - 2h) / 12h². The user seeks guidance on how to handle boundary conditions for U-1 and UN+1, which are not typically addressed with Dirichlet conditions. The recommended approach involves creating unsymmetrical fourth-order approximations for u''_1 and u''_{N-1} using values at the boundary points, thereby eliminating the need for U-1 and UN+1.

PREREQUISITES
  • Understanding of finite difference methods
  • Familiarity with boundary value problems
  • Knowledge of numerical analysis concepts
  • Experience with fourth-order accuracy schemes
NEXT STEPS
  • Research unsymmetrical finite difference approximations for boundary conditions
  • Study the implementation of Neumann boundary conditions in numerical methods
  • Explore section 11.3.4 of the referenced finite difference course material
  • Learn about the derivation of finite difference equations for boundary points
USEFUL FOR

Mathematicians, numerical analysts, and engineers working on computational fluid dynamics or any field requiring high-accuracy numerical solutions to differential equations.

amalak
Messages
6
Reaction score
0
Hi,

I have to use a wide 5 point stencil to solve a problem to fourth order accuracy. In particular, the one I'm using is:

u'' = -f(x + 2h) + 16f(x + h) - 30f(x) + 16f(x - h) - f(x - 2h) / 12h2

or when discretized

u'' = -Uj-2 + 16Uj-1 -30Uj + 16Uj+1 -Uj+2 / 12h2

In addition to dirichlet boundary conditions (which are not troubling me to implement), I have to implement numerical boundary conditions for

U-1 and UN+1

The problem I'm encountering is I'm not sure what to try for these numerical boundary conditions (as in, I haven't a clue as to what may work). I have the scheme set up without those conditions, but that's not what I want. The only time I know U-1 and UN+1 come up are with Neumann boundary conditions, which I don't have.

Any help or pointers would be immensely appreciated, thank you.
 
Physics news on Phys.org
Thank you very much for your response. That method seems to make more sense, I think, but I've been instructed to use U-1 and UN+1, but thank you again.
 
OK, so they probably want your numerical solution satisfy the differential equation at the boundary points ##u_0## and ##u_N##, not just to satisfy the Dirichlet boundary conditions at the boundary points.

So, make finite difference approximations for the derivatives at ##u_0## using ##u_{-1}, u_0,. u_1, \dots## and plug them into the differential equation, and similarly at ##u_N##. That will give you two more equations, so you have enough equations to solve for ##u_{-1}, u_0,\dots, u_N, u_{N+1}##.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 22 ·
Replies
22
Views
4K
  • · Replies 17 ·
Replies
17
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 41 ·
2
Replies
41
Views
10K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 7 ·
Replies
7
Views
3K