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... |
|
) |
For concreteness, consider the steady-state heat equation example from the docs. The call to
discretizereturns aNonlinearProblemwith 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:
MethodOfLines.jl/src/discretization/staggered_discretize.jl
Lines 12 to 15 in ec83208