~ubuntu-branches/ubuntu/maverick/dolfin/maverick

« back to all changes in this revision

Viewing changes to bench/fem/convergence/Poisson3D_2.form

  • Committer: Bazaar Package Importer
  • Author(s): Johannes Ring
  • Date: 2008-09-16 08:41:20 UTC
  • Revision ID: james.westby@ubuntu.com-20080916084120-i8k3u6lhx3mw3py3
Tags: upstream-0.9.2
ImportĀ upstreamĀ versionĀ 0.9.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright (C) 2005-2006 Anders Logg.
 
2
# Licensed under the GNU LGPL Version 2.1.
 
3
#
 
4
# First added:  2005
 
5
# Last changed: 2006-03-28
 
6
#    
 
7
# Poisson's equation in 3D for q = 2
 
8
 
 
9
element = FiniteElement("Lagrange", "tetrahedron", 2)
 
10
 
 
11
v = TestFunction(element)
 
12
U = TrialFunction(element)
 
13
f = Function(element)
 
14
 
 
15
a = v.dx(i)*U.dx(i)*dx
 
16
L = v*f*dx