dolfinx.cpp.nls.petsc

PETSc-specific nonlinear solvers

Classes

NewtonSolver(self, comm)

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

Bases: 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, F: Callable[[vec, vec], None], b: vec) None
setJ(self: dolfinx.cpp.nls.petsc.NewtonSolver, J: Callable[[vec, mat], None], Jmat: mat) None
setP(self: dolfinx.cpp.nls.petsc.NewtonSolver, P: Callable[[vec, mat], None], Pmat: mat) None
set_form(self: dolfinx.cpp.nls.petsc.NewtonSolver, form: Callable[[vec], None]) None
set_update(self: dolfinx.cpp.nls.petsc.NewtonSolver, update: Callable[[dolfinx.cpp.nls.petsc.NewtonSolver, vec, vec], None]) None
solve(self: dolfinx.cpp.nls.petsc.NewtonSolver, x: vec) Tuple[int, bool]