[d03d99]: inst / example / Evolution / Evolution.ufl  Maximize  Restore  History

Download this file

13 lines (8 with data), 235 Bytes

element = FiniteElement("Lagrange", triangle, 1)

u = TrialFunction(element)
v = TestFunction(element)

u0 = Coefficient(element)

dt = Constant(triangle)

eq = (1/dt)*(u-u0)*v*dx + inner(grad(u), grad(v))*dx
a = rhs (eq)
L = lhs (eq)