Poisson problem
Click to show
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
Consider the one-dimensional Poisson equation:
on the domain
We can supply boundary conditions as
Dirichlet:
Neumann:
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
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,
The same condition will apply, if the boundary conditions are periodic.