darsia.Jacobi#
- class Jacobi(maxiter=1, tol=None, dim=2, mass_coeff=None, diffusion_coeff=None, verbose=False)[source]#
Bases:
SolverJacobi 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
dimSpatial dimension of the problem.
maxiterMaximum number of iterations.
tolTolerance for convergence.
mass_coeffMass coefficient.
diffusion_coeffDiffusion coefficient.
verboseVerbosity.