~njansson/dolfin/hpc

« back to all changes in this revision

Viewing changes to src/modules/elasticity-updated/dolfin/ElasticityUpdatedMass.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:
2
2
# Licensed under the GNU GPL Version 2.
3
3
#
4
4
# First added:  2005
5
 
# Last changed: 2005
 
5
# Last changed: 2006-03-28
6
6
 
7
7
name = "ElasticityUpdatedMass"
8
8
element = FiniteElement("Vector Lagrange", "tetrahedron", 1)
9
9
element2 = FiniteElement("Lagrange", "tetrahedron", 1)
10
10
 
11
 
u = BasisFunction(element)
12
 
v = BasisFunction(element)
 
11
v = TestFunction(element)
 
12
U = TrialFunction(element)
 
13
 
13
14
rho = Function(element2) # Density
14
15
 
15
16
i = Index()
16
17
 
17
 
a = rho * u[i] * v[i] * dx
 
18
a = rho * v[i] * U[i] * dx