Poisson2DSquareProblem#

Formulation of the Poisson problem in a square domain.

class Poisson2DSquareProblem[source]#

Bases: SpatialProblem

Implementation of the 2-dimensional Poisson problem in the square domain \([0, 1] \times [0, 1]\).

Example:
>>> problem = Poisson2DSquareProblem()

Initialization of the AbstractProblem class.

solution(pts)[source]#

Implementation of the analytical solution of the Poisson problem.

Parameters:

pts (LabelTensor) – Points where the solution is evaluated.

Returns:

The analytical solution of the Poisson problem.

Return type:

LabelTensor