Solving Poisson Equation with Multigrid & PBC

  • Thread starter kolmog
  • Start date
In summary, the conversation discusses solving a Poisson equation with multigrid considering periodic boundary conditions in all directions. The condition that the volume integral of rho is zero is given, and it is mentioned that knowing the functional form of rho is necessary to solve the problem. It is clarified that the problem is an electrostatics one with a known charge distribution and the integral of the right hand side is zero due to the system being neutrally charged. It is noted that there will still be a constant of integration in the solution.
  • #1
kolmog
11
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}Wich 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
  • #2
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.
 
  • #3
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
 
  • #4
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?
 
  • #5
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.
 
  • #6
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?
 

FAQ: Solving Poisson Equation with Multigrid & PBC

What is a Poisson Equation?

A Poisson Equation is a mathematical equation that relates the second derivative of a function to the function itself. It is commonly used in physics and engineering to describe the behavior of physical systems.

What is Multigrid in relation to solving Poisson Equation?

Multigrid is a numerical method used to solve a Poisson Equation. It involves dividing the problem into multiple grids of different resolutions and using a combination of coarse and fine grids to efficiently solve the equation.

What are Periodic Boundary Conditions (PBC) in the context of solving Poisson Equation?

Periodic Boundary Conditions (PBC) are boundary conditions that wrap around the edges of a grid, creating a periodic domain. In the context of solving Poisson Equation, PBC are used to ensure that the solution is continuous and smoothly varies across the entire domain.

Why is Multigrid with PBC an effective method for solving Poisson Equation?

Multigrid with PBC is an effective method for solving Poisson Equation because it combines the efficiency of Multigrid with the accuracy of PBC. It allows for a faster convergence and more accurate results compared to other numerical methods.

What are some applications of solving Poisson Equation with Multigrid & PBC?

Solving Poisson Equation with Multigrid & PBC has many applications, including modeling fluid dynamics, electrostatics, and heat transfer. It is also used in computer graphics, image processing, and other fields where solving partial differential equations is necessary.

Back
Top