darsia.Jacobi#

class Jacobi(maxiter=1, tol=None, dim=2, mass_coeff=None, diffusion_coeff=None, verbose=False)[source]#

Bases: Solver

Jacobi solver for the problem: mass_coeff * x - diffusion_coeff * laplace(x) = rhs

Can be used either as a solver or as a smoother.

TODO: Add possibility to actually have a heterogeneous diffusion coefficient. As of now it is assumed to be constant, or multiplied after Laplacian.

Methods

update_params([dim, mass_coeff, diffusion_coeff])

Update parameters of the solver.

Attributes

dim

Spatial dimension of the problem.

maxiter

Maximum number of iterations.

tol

Tolerance for convergence.

mass_coeff

Mass coefficient.

diffusion_coeff

Diffusion coefficient.

verbose

Verbosity.