Poisson problem
import numpy as np
import matplotlib.pyplot as plt
Poisson problem#
Consider the Poisson equation
This is a second-order elliptic equation, and therefore requires 2 boundary conditions.
There is no time-dependence in this equation. The potential \(\phi\) responds instantaneously to the source \(f\) and the boundary conditions.
Consider the one-dimensional Poisson equation:
on the domain \([a, b]\).
We can supply boundary conditions as
Dirichlet: \(\phi(a) = A\)
Neumann: \(\phi^\prime(a) = C\)
or a mix of the two. If the values are set to 0, we call the conditions homogeneous, otherwise we call them inhomogeneous.
Not any set of boundary conditions is allowed. Consider \(f = 0\), so our Poisson equation (is the Laplace equation):
and the solution is just
if we try to enforce different inhomogeneous Neumann boundary conditions on each end, then we get conflicting values for the slope—this is unsolvable.
To understand solvable boundary conditions for the general case,
we start by integrating over the domain
If we have homogeneous Neumann BCs on all sides, \(\nabla \phi \cdot {\bf n} = 0\), then the source, \(f\), must satisfy
The same condition will apply, if the boundary conditions are periodic.