darsia.Solver#

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

Bases: object

Abstract base class for solvers for the problem: mass_coeff * x - diffusion_coeff * laplace(x) = rhs

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.

update_params(dim=None, mass_coeff=None, diffusion_coeff=None)[source]#

Update parameters of the solver.

Parameters:
dimint, optional

Spatial dimension of the problem.

mass_coefffloat or array, optional

Mass coefficient.

diffusion_coefffloat or array, optional

Diffusion coefficient.

diffusion_coeff#

Diffusion coefficient.

dim#

Spatial dimension of the problem.

mass_coeff#

Mass coefficient.

maxiter#

Maximum number of iterations.

tol#

Tolerance for convergence.

verbose#

Verbosity.