PoissonSystem#

class PoissonSystem#

Bases: object

Poisson System which can be solver for the electrostatic potential.

__init__(impl)#
solve()#

Solve the Poisson equation.

set_method(method_name)#

Set the solver method.

The implemented methods are:

  • jacobi

  • conjugategradient

  • minimalresidual

  • steepestdescent

Return type:

str

property max_iter: int#

Maximum of iterations for the solver (no maximum if < 0).

property tol: float#

Error tollerance on the max norm of the residual.

max_norm_residual()#

Return the maximum norm of the residual.

Return type:

float