Question #96571 on DOLFIN changed:
https://answers.launchpad.net/dolfin/+question/96571
Status: Open => Answered
Nuno Lopes proposed the following answer:
I guess it could be done in the ufl form file:
Something like (appart from the time discretization algorithm)
element = FiniteElement("Lagrange", triangle, 1)
v = TestFunction(element)
u = TrialFunction(element) # Unkown Function
u_old =Function(element) ##Known Function from the last step
##
a=u*v*dx+inner(grad(u),grad(v))*dx
L=u_old*v*dx+v*0.1/(exp(u_old-2))*dx
Hope it helps.
--
You received this question notification because you are a member of
DOLFIN Team, which is an answer contact for DOLFIN.
_______________________________________________
Mailing list: https://launchpad.net/~dolfin
Post to : [email protected]
Unsubscribe : https://launchpad.net/~dolfin
More help : https://help.launchpad.net/ListHelp