fipy.solvers.pyAMG.linearGeneralSolver

Classes

LinearGeneralSolver([tolerance, ...])

The LinearGeneralSolver is an interface to the generic PyAMG, which solves the arbitrary system Ax=b with the best out-of-the box choice for a solver.

class fipy.solvers.pyAMG.linearGeneralSolver.LinearGeneralSolver(tolerance='default', absolute_tolerance=0.0, criterion='default', iterations='default', precon='default')

Bases: ScipySolver

The LinearGeneralSolver is an interface to the generic PyAMG, which solves the arbitrary system Ax=b with the best out-of-the box choice for a solver. See pyAMG.solve for details.

Create a Solver object.

Parameters:
  • tolerance (float) – Required relative error tolerance.

  • absolute_tolerance (float) – Required absolute error tolerance.

  • criterion ({'default', 'unscaled', 'RHS', 'matrix', 'initial', 'legacy', }) – Interpretation of tolerance. See Convergence for more information.

  • iterations (int) – Maximum number of iterative steps to perform.

  • precon – Preconditioner to use. Not all solver suites support preconditioners.

DEFAULT_ITERATIONS = 1000

Default maximum number of iterative steps to perform

DEFAULT_PRECONDITIONER = None

Default preconditioner to apply to the matrix

DEFAULT_TOLERANCE = 1e-05

Default tolerance for linear solves unless criterion=”legacy”

LEGACY_TOLERANCE = 1e-10

Default tolerance for linear solves if criterion=”legacy”

__repr__()

Return repr(self).

property default_tolerance

Default tolerance for linear solve

Last updated on Jun 26, 2024. Created using Sphinx 7.1.2.