OneSimulation docs Website Free books Plans on Gumroad

Docs › Numerical API reference › onesim.numerics.nonlinear

B.9 onesim.numerics.nonlinear

DampedNewton class

DampedNewton(*, linear_solver: object | None = None, relaxation: float = 1.0, jacobian: object = 'analytic', factory: object | None = None, relative_tolerance: float = 1e-06, absolute_tolerance: float = 1e-10, maximum_iterations: int = 30, maximum_relative_decrease: float = 1.0, line_search_reduction: float = 0.5, minimum_damping: float = 1e-06) -> None

Add Armijo backtracking and a minimum damping factor to the Newton solve.

Methods and properties.

bind(*, linear_solver=None, factory=None, context=None)

Bind this declaration to the supplied execution context and collaborators.

FixedPoint class

FixedPoint(*, factory: object | None = None, relative_tolerance: float = 1e-05, absolute_tolerance: float = 1e-10, maximum_iterations: int = 30, relaxation: float = 1.0) -> None

Iterate a compatible fixed-point map with relaxation, tolerances and a maximum iteration count.

Methods and properties.

bind(*, factory=None, context=None)

Bind this declaration to the supplied execution context and collaborators.

JacobianFreeNewtonKrylov class

JacobianFreeNewtonKrylov(*, linear_solver: object | None = None, jacobian: object | None = None, factory: object | None = None, relative_tolerance: float = 1e-06, absolute_tolerance: float = 1e-10, maximum_iterations: int = 30, relaxation: float = 1.0, maximum_relative_decrease: float = 1.0) -> None

Long name for JFNK. Supply the same derivative action, inner solver and nonlinear controls.

Methods and properties.

bind(*, linear_solver=None, factory=None, context=None)

Bind this declaration to the supplied execution context and collaborators.

JFNK class

JFNK(*, linear_solver: object | None = None, jacobian: object | None = None, factory: object | None = None, relative_tolerance: float = 1e-06, absolute_tolerance: float = 1e-10, maximum_iterations: int = 30, relaxation: float = 1.0, maximum_relative_decrease: float = 1.0) -> None

Select Newton–Krylov with a supported Jacobian action and explicit compatible Krylov solver.

Methods and properties.

bind(*, linear_solver=None, factory=None, context=None)

Bind this declaration to the supplied execution context and collaborators.

Newton class

Newton(*, linear_solver: object | None = None, relaxation: float = 1.0, jacobian: object = 'analytic', factory: object | None = None, relative_tolerance: float = 1e-06, absolute_tolerance: float = 1e-10, maximum_iterations: int = 30, maximum_relative_decrease: float = 1.0) -> None

Solve a nonlinear residual using a selected Jacobian route and inner linear solver. Configure tolerances and relaxation.

Methods and properties.

bind(*, linear_solver=None, factory=None, context=None)

Bind this declaration to the supplied execution context and collaborators.

QuasiNewton class

QuasiNewton(*, linear_solver: object | None = None, relaxation: float = 1.0, jacobian: object = 'analytic', factory: object | None = None, relative_tolerance: float = 1e-06, absolute_tolerance: float = 1e-10, maximum_iterations: int = 30, maximum_relative_decrease: float = 1.0) -> None

Use inverse good-Broyden updates following the selected initial linear solve.

Methods and properties.

bind(*, linear_solver=None, factory=None, context=None)

Bind this declaration to the supplied execution context and collaborators.

TrustRegionNewton class

TrustRegionNewton(*, linear_solver: object | None = None, relaxation: float = 1.0, jacobian: object = 'analytic', factory: object | None = None, relative_tolerance: float = 1e-06, absolute_tolerance: float = 1e-10, maximum_iterations: int = 30, maximum_relative_decrease: float = 1.0, trust_radius: float = 1.0, minimum_damping: float = 1e-06) -> None

Limit the correction in solver coordinates with an adaptive trust radius.

Methods and properties.

bind(*, linear_solver=None, factory=None, context=None)

Bind this declaration to the supplied execution context and collaborators.