Solving Poisson's Equation Using Finite Difference

Click For Summary
SUMMARY

The discussion focuses on using the Finite Difference Method (FDM) to solve Poisson's equation, specifically the equation \(\frac{\partial \phi}{\partial z^2} = \frac{\rho}{\epsilon}\). The user seeks guidance on determining the appropriate grid spacing and number of points for reliable results, emphasizing the importance of examining the charge density distribution. It is concluded that convergence testing is essential; increasing the number of grid points should not significantly alter results within the desired error tolerance.

PREREQUISITES
  • Understanding of Poisson's equation and its physical significance
  • Familiarity with the Finite Difference Method (FDM)
  • Knowledge of numerical convergence criteria
  • Basic concepts of electrostatics and charge density distribution
NEXT STEPS
  • Research techniques for performing convergence testing in numerical simulations
  • Explore advanced discretization methods for solving partial differential equations
  • Learn about grid refinement strategies in computational physics
  • Investigate the impact of charge density variations on numerical solutions
USEFUL FOR

Researchers, physicists, and engineers involved in computational modeling of electrostatics, particularly those utilizing the Finite Difference Method for solving differential equations.

aaaa202
Messages
1,144
Reaction score
2
I am using the Finite Difference Method to solve Poisson's equation

\frac{\partial \phi}{\partial z^2} = \frac{\rho}{\epsilon}

To do it is discretized according to the Finite Difference Approximation of the second order derivative yielding the following set of equations for each grid point

\frac{1}{2\Delta z^2}(\phi_{i+1}+\phi_{i-1}-2\phi_{i}) = \frac{\rho_{i}}{\epsilon}

My question is the following: Is there any simple way to see how many points and thus what spacing one should choose to produce reliable results? Obviously you should choose more than 5 but should I choose 500, 5000 or 50000? Asked another way: Over what length scale will the electrostatic potential vary significantly? I suppose if this is known one should make the spacing smaller than this length scale.
I once did a similar thing for the Schrödinger Equation. In this case it was straightforward to see what the characteristic wavelength of the solutions were and then to choose the spacing much smaller than this.
 
Physics news on Phys.org
Well, there is clearly no concept of a characteristic wavelength here, but what we know for sure is that the spatial variation of ##\rho## is going to be the most important factor, so the first step is of course to examine the charge density distribution in the region of interest.

Most of the time in numerical calculations like these, there is no simple way to determine to correct grid spacing to use etc. from the onset. Rather what is often employed is to look for convergence: if increasing the number of points doesn't change the result significantly (to the level of tolerance or error that you desire) then we are done.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 7 ·
Replies
7
Views
5K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 9 ·
Replies
9
Views
3K