1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
# Copyright (C) 2006-2007 Anders Logg (logg@simula.no)
# Licensed under the GNU GPL version 3 or any later version
#
# The bilinear form a(v, u) and linear form L(v) for
# Poisson's equation with Neumann boundary conditions.
#
# Compile this form with FFC: ffc NeumannProblem.ufl
element = VectorElement("Lagrange", triangle, 1)
v = TestFunction(element)
u = TrialFunction(element)
f = Coefficient(element)
g = Coefficient(element)
a = inner(grad(v), grad(u))*dx
L = inner(v, f)*dx + inner(v, g)*ds
|