NonlinearVariationalSolver

class dolfin.cpp.fem.NonlinearVariationalSolver(problem)

Bases: dolfin.cpp.common.Variable

This class implements a solver for nonlinear variational problems.

Overloaded versions

  • NonlinearVariationalSolver(problem)

    Create nonlinear variational solver for given problem

  • NonlinearVariationalSolver(problem)

    Create nonlinear variational solver for given problem (shared pointer version)

static default_parameters()

Default parameter values

solve()

Overloaded versions

  • solve(lb, ub)

    Solve variational problem with bound constraints defined by GenericVectors

    Arguments
    lb (GenericVector)

    The linear solver.

    ub (GenericVector)

    The factory.

    Returns
    (int, bool)

    Pair of number of Newton iterations, and whether iteration converged)

  • solve(lb, ub)

    Solve variational problem with bound constraints defined by GenericVectors (shared pointer version)

    Arguments
    lb (_std::shared_ptr<const GenericVector>_)

    The linear solver.

    ub (_std::shared_ptr<const GenericVector>_)

    The factory.

    Returns
    (int, bool)

    Pair of number of Newton iterations, and whether iteration converged)

  • solve(lb, ub)

    Solve variational problem with bound constraints defined by Functions

    Arguments
    lb (Function)

    The linear solver.

    ub (Function)

    The factory.

    Returns
    (int, bool)

    Pair of number of Newton iterations, and whether iteration converged)

  • solve(lb, ub)

    Solve variational problem with bound constraints defined by Functions (shared pointer version)

    Arguments
    lb (_std::shared_ptr<const Function>_)

    The linear solver.

    ub (_std::shared_ptr<const Function>_)

    The factory.

    Returns
    (int, bool)

    Pair of number of Newton iterations, and whether iteration converged)

  • solve()

    Solve variational problem

    Returns
    (int, bool)

    Pair of number of Newton iterations, and whether iteration converged)

thisown

The membership flag