Solving the 3D Poisson Equation Using Finite Difference/Volume

In summary, there are a few different approaches you can take for solving the 3D poisson equation with a non-constant ε(r), including extending your 2D algorithm, using a different finite difference scheme, and checking your proposed form of equation 42. I hope this helps and good luck with your research!
  • #1
Jimmy and Bimmy
4
0
Hi,

I'm attempting to solve the 3D poisson equation

∇ ⋅ [ ε(r) ∇u ] = -ρ(r)

Using a finite difference scheme.

The scheme is simple to implement in 3D when ε(r) is constant, and I have found an algorithm that solves for a non-constant ε(r) in 2D. But I am having trouble finding an algorithm that can handle a non-constant ε(r) in 3D.

Here is the link for the 2D case: www.ece.utah.edu/~ece6340/LECTURES/Feb1/Nagel 2012 - Solving the Generalized Poisson Equation using FDM.pdf

Would anyone be able to guide me to a 3D case, or help me determine the 3D form of equation 42 in the above link? Below is my guess

a0 = ε(i,j,k) + ε(i,j-1,k) + ε(i,j-1,k-1) + ε(i,j,k-1) + ε(i-1,j,k) + ε(i-1,j-1,k) + ε(i-1,j-1,k-1) + ε(i-1,j,k-1)
a1 = 1/4 [ ε(i,j,k) + ε(i,j-1,k) + ε(i,j,k-1) + ε(i,j-1,k-1) ]
a2 = 1/4 [ ε(i,j-1,k) + ε(i-1,j-1,k) + ε(i-1,j-1,k-1) + ε(i,j-1,k-1) ]
a3 = 1/4 [ ε(i-1,j,k) + ε(i-1,j-1,k) + ε(i-1,j,k-1) + ε(i-1,j-1,k-1) ]
a4 = 1/4 [ ε(i,j,k) + ε(i-1,j,k) + ε(i-1,j,k-1) + ε(i,j,k-1) ]
a5 = 1/4 [ ε(i,j,k) + ε(i-1,j,k) + ε(i-1,j-1,k) + ε(i,j-1,k) ]
a6 = 1/4 [ ε(i,j,k-1) + ε(i-1,j,k-1) + ε(i-1,j-1,k-1) + ε(i,j-1,k-1) ]

V(i,j,k) = 1/a0 [ a1V(i+1,j,k) + a2V(i,j-1,k) + a3V(i-1,j,k) + a4V(i,j+1,k) + a5V(i,j,k+1) + a6V(i,j,k-1) - Q(i,j)/ε0]

Thanks
 
Last edited by a moderator:
Physics news on Phys.org
  • #2
for your help!

Hi there,

Thank you for reaching out to the scientific community for help with your 3D poisson equation problem. I am a scientist with experience in solving similar equations using finite difference schemes, and I would be happy to guide you in the right direction.

Firstly, I would like to commend you for successfully implementing the finite difference scheme for the 2D case and finding an algorithm for a non-constant ε(r). This is a great starting point for solving the 3D case.

In terms of finding an algorithm for a non-constant ε(r) in 3D, there are a few different approaches you can take. One option is to extend the algorithm you have for the 2D case to 3D, by adding additional terms and variables to account for the third dimension.

Another approach is to use a different finite difference scheme, such as the finite volume method or the finite element method, which may be better suited for handling non-constant ε(r) in 3D. These methods involve dividing the domain into smaller volumes or elements, and solving the equation within each volume or element separately, before combining the results to obtain a solution for the entire domain.

Regarding your proposed 3D form of equation 42 from the link you provided, I would suggest checking it against the original equation to ensure that all terms are accounted for correctly. Additionally, you may want to consider using a matrix notation to represent the finite difference scheme, as it can make the implementation and solution process more efficient.

I hope this helps guide you in the right direction for solving the 3D poisson equation with a non-constant ε(r). If you have any further questions or need clarification, please don't hesitate to ask. Good luck with your research!
 

1. What is the 3D Poisson equation?

The 3D Poisson equation is a mathematical equation that describes the behavior of electric potential in a three-dimensional space. It is commonly used in physics and engineering to solve problems related to electric fields and charges.

2. How is the finite difference method used to solve the 3D Poisson equation?

The finite difference method involves dividing the three-dimensional space into a grid of smaller cells and approximating the electric potential at each point using the values at neighboring points. This allows for the 3D Poisson equation to be solved numerically.

3. What is the finite volume method and how is it related to solving the 3D Poisson equation?

The finite volume method is a numerical technique that involves dividing a three-dimensional space into smaller volumes and solving the equation within each volume. It is related to solving the 3D Poisson equation because it also uses the values at the boundaries of these volumes to approximate the solution.

4. What are the advantages of using the finite difference/volume method to solve the 3D Poisson equation?

One advantage is that it allows for the solution to be obtained at discrete points, making it easier to visualize and analyze the results. Additionally, it can handle complex geometries and boundary conditions, making it a versatile method for solving the 3D Poisson equation.

5. Are there any limitations to using the finite difference/volume method for solving the 3D Poisson equation?

One limitation is that it may not be as accurate as other methods, such as the finite element method, for more complex problems. It also requires a high computational cost for finer grids and may not be efficient for large-scale simulations.

Similar threads

  • Programming and Computer Science
Replies
4
Views
607
  • Atomic and Condensed Matter
Replies
1
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
7
Views
725
  • Precalculus Mathematics Homework Help
Replies
18
Views
569
Replies
131
Views
4K
  • Introductory Physics Homework Help
Replies
3
Views
803
  • Advanced Physics Homework Help
Replies
8
Views
7K
  • Atomic and Condensed Matter
Replies
8
Views
4K
  • Introductory Physics Homework Help
Replies
25
Views
273
  • Advanced Physics Homework Help
Replies
2
Views
1K
Back
Top