Solving Poisson Equation with Multigrid & PBC

  • Context: Graduate 
  • Thread starter Thread starter kolmog
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around solving the Poisson equation using multigrid methods while considering periodic boundary conditions (PBC). Participants explore the implications of charge distribution, the necessity of certain conditions for solving the equation, and the role of integration constants.

Discussion Character

  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant asserts that the integral of the charge density must equal zero, which is a condition they believe is necessary for the problem.
  • Another participant questions the validity of this condition, suggesting that it may not always hold true and emphasizes the need for knowledge of the functional form of the charge distribution.
  • A later reply clarifies that the problem is indeed an electrostatics problem with a known charge distribution, which fulfills the zero integral condition due to the system being neutrally charged.
  • There is a discussion about whether additional conditions are required for the multigrid method, with one participant suggesting that the constant of integration for the potential might be the extra condition in question.

Areas of Agreement / Disagreement

Participants express differing views on the necessity of the zero integral condition and whether it is sufficient to solve the Poisson equation. There is no consensus on whether additional conditions are needed beyond the known charge distribution.

Contextual Notes

The discussion highlights the dependence on the specific charge distribution and the implications of periodic boundary conditions, but does not resolve the questions regarding the sufficiency of conditions for solving the equation.

kolmog
Messages
10
Reaction score
0
Hello,

When trying to solve Poisson equation with multigrid considering periodic boundary conditions (PBC) in all directions:
\begin{equation}\nabla^2\phi=f\end{equation}
where\begin{equation}f=-4\pi\rho\end{equation}
I know that the integral over the volume should be equal to zero. That is:
\begin{equation}\int_VfdV=0\end{equation}which in the discrete case reads as\begin{equation}\sum f dxdydz=0\end{equation}
As I said before, if we are dealing with periodic bounday conditions, then it imposes also a condition for the potential, as the potential near some of the walls of the simulation box is equal to the potential on the opposite side.

Should it exist another extra condition?

Thanks
 
Physics news on Phys.org
It's not clear to me what you are asking. A couple of questions:

(1) The condition that the volume integral of rho is equal to zero is not always true. Is this given as a condition in the problem you are trying to solve?

(2) Do you know how to discretize Poisson's equation on the grid? This is one condition that needs to be met. Given the discretized Poisson's equation, the given values of rho, and the boundary conditions, the problem is completely determined and can be solved.
 
Hello,

With respect to the first question, this is a condition that has to be fulfilled.

The equation is for sure discretized with a given approximation for the laplacian, the right hand side taking into account periodic boundary conditions.

What I was asking, is that, a priori, multigrid could involve some extra condition to find the solution. I think that with the discretization and the condition for the integral in the right hand side it was enough, but I wanted to be sure.

Thanks
 
I'm still not sure we are in agreement. Simply the condition that the volume integral of rho is zero is not enough to solve the problem. You need to know the functional form of rho, i.e. how the charge is distributed. There are many possible charge distributions that have zero volume integrals.

Or, it occurs to me that you may be talking about a gravitation problem. In this case, rho is positive definite, and the condition that the volume integral is zero means that rho is zero everywhere. Which is it, an electrostatics problem or a gravitation problem?
 
I have a known charge distribution defined on a grid (it is an electrostatics problem). The integral of the right hand side is zero because the system is neutrally charged.
 
OK. Then if the charge distribution is known, the problem is well determined and can be solved. Bear in mind that there will still be a constant of integration, meaning that you can always add a constant to phi without changing anything. Is this the additional condition you are looking for?
 

Similar threads

  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 0 ·
Replies
0
Views
3K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 0 ·
Replies
0
Views
3K
Replies
3
Views
3K