dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #18000
Re: [Question #105989]: nonlin system, doc?
Question #105989 on DOLFIN changed:
https://answers.launchpad.net/dolfin/+question/105989
Status: Open => Answered
Marie Rognes proposed the following answer:
Achim Schroll wrote:
> Question #105989 on DOLFIN changed:
> https://answers.launchpad.net/dolfin/+question/105989
>
> Status: Answered => Open
>
> Achim Schroll is still having a problem:
> I still appreciate any help to set up function spaces to automatically differentiate and solve a nonlinear system of the following type:
> dot(h*grad(s), grad(phi))*dx + f*phi*dx = 0
> dot(s*grad(h), grad(psi))*dx + g*psi*dx = 0
> Unknowns are u=(s,h), while (f,g) are given.
> Best, Achim
>
>
Example attached. (The example is just made up, so the Newton solver
does not converge and so the answer is just rubbish, but it should
illustrate how to go about.)
You are probably particularily interested in line 25.
--
Marie
--
You received this question notification because you are a member of
DOLFIN Team, which is an answer contact for DOLFIN.