darsia.Solver#
- class Solver(maxiter=1, tol=None, dim=2, mass_coeff=None, diffusion_coeff=None, verbose=False)[source]#
Bases:
objectAbstract 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
Spatial dimension of the problem.
Maximum number of iterations.
Tolerance for convergence.
Mass coefficient.
Diffusion coefficient.
Verbosity.
- update_params(dim=None, mass_coeff=None, diffusion_coeff=None)[source]#
Update parameters of the solver.
- 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.