4.4.1. pde.solvers.base module¶
Package that contains base classes for solvers
- class SolverBase(pde: PDEBase)[source]¶
Bases:
object
base class for solvers
- Parameters
pde (
PDEBase
) – The partial differential equation that should be solved
- classmethod from_name(name: str, pde: PDEBase, **kwargs) SolverBase [source]¶
create solver class based on its name
Solver classes are automatically registered when they inherit from
SolverBase
. Note that this also requires that the respective python module containing the solver has been loaded before it is attempted to be used.- Parameters
- Returns
An instance of a subclass of
SolverBase
- registered_solvers = ['ExplicitSolver', 'ImplicitSolver', 'ScipySolver', 'explicit', 'implicit', 'scipy']¶