dolfinx.cpp.nls.petsc

PETSc-specific nonlinear solvers

Classes

NewtonSolver(self, arg0)

class dolfinx.cpp.nls.petsc.NewtonSolver(self: dolfinx.cpp.nls.petsc.NewtonSolver, arg0: MPICommWrapper) None

Bases: pybind11_builtins.pybind11_object

property atol

Absolute tolerance

property convergence_criterion

Convergence criterion, either ‘residual’ (default) or ‘incremental’

property error_on_nonconvergence
property krylov_solver
property max_it

Maximum number of iterations

property relaxation_parameter

Relaxation parameter

property report
property rtol

Relative tolerance

setF(self: dolfinx.cpp.nls.petsc.NewtonSolver, arg0: Callable[[vec, vec], None], arg1: vec) None
setJ(self: dolfinx.cpp.nls.petsc.NewtonSolver, arg0: Callable[[vec, mat], None], arg1: mat) None
setP(self: dolfinx.cpp.nls.petsc.NewtonSolver, arg0: Callable[[vec, mat], None], arg1: mat) None
set_form(self: dolfinx.cpp.nls.petsc.NewtonSolver, arg0: Callable[[vec], None]) None
set_update(self: dolfinx.cpp.nls.petsc.NewtonSolver, arg0: Callable[[dolfinx.cpp.nls.petsc.NewtonSolver, vec, vec], None]) None
solve(self: dolfinx.cpp.nls.petsc.NewtonSolver, arg0: vec) Tuple[int, bool]