~njansson/dolfin/hpc

« back to all changes in this revision

Viewing changes to src/modules/elasticity/dolfin/ElasticityMass.form

  • Committer: Anders Logg
  • Date: 2007-01-10 09:04:44 UTC
  • mfrom: (1689.1.221 trunk)
  • Revision ID: logg@simula.no-20070110090444-ecyux3n1qnei4i8h
RemoveĀ oldĀ head

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Copyright (C) 2005 Johan Jansson.
2
2
# Licensed under the GNU GPL Version 2.
3
3
#
 
4
# Modified by Anders Logg 2006
 
5
#
4
6
# First added:  2005
5
 
# Last changed: 2005
 
7
# Last changed: 2006-03-28
6
8
#
7
9
# The bilinear form for standard mass term
8
10
# Compile this form with FFC: ffc ElasticityMass.form.
9
11
 
10
12
element = FiniteElement("Vector Lagrange", "tetrahedron", 1)
11
13
 
12
 
u = BasisFunction(element)
13
 
v = BasisFunction(element)
14
 
 
15
 
i = Index()
16
 
 
17
 
a = u[i] * v[i] * dx
 
14
v = TestFunction(element)
 
15
U = TrialFunction(element)
 
16
 
 
17
a = dot(v, U)*dx