~njansson/dolfin/hpc

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Copyright (C) 2005-2006 Anders Logg.
# Licensed under the GNU LGPL Version 2.1.
#
# First added:  2005
# Last changed: 2006-03-28
#    
# Poisson's equation in 3D for q = 2

element = FiniteElement("Lagrange", "tetrahedron", 2)

v = TestFunction(element)
U = TrialFunction(element)
f = Function(element)

a = v.dx(i)*U.dx(i)*dx
L = v*f*dx