Skip to content

Providing an initial guess for the nonlinear solving? #530

Description

@yakovbraver

For concreteness, consider the steady-state heat equation example from the docs. The call to discretize returns a NonlinearProblem with the initial guess (prob.u0) initialised with an array of ones. Is it possible to provide a different guess as an analytic or discretised function?
I can't find this info in the docs, and looking at the code it seems that a vector of ones is hardcoded:

return prob = NonlinearProblem(
simpsys, unkns .=> ones(length(unkns));
discretization.kwargs..., kwargs...
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions