~ubuntu-branches/ubuntu/raring/ffc/raring

« back to all changes in this revision

Viewing changes to demo/HyperElasticity.ufl

  • Committer: Package Import Robot
  • Author(s): Johannes Ring
  • Date: 2011-10-26 17:52:20 UTC
  • mfrom: (1.1.10)
  • Revision ID: package-import@ubuntu.com-20111026175220-ope1dzqv4jn2b8pq
Tags: 1.0-beta2-1
* New upstream release. This release includes some performance
  improvements for evaluating basis functions. It also adds support
  for Bessel functions and error functions.
* debian/control: Bump version numbers for python-ufc, python-fiat,
  python-instant, and python-ufl.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
# Compile this form with FFC: ffc HyperElasticity.ufl.
25
25
 
26
26
# Coefficient spaces
27
 
element = VectorElement("Lagrange", "tetrahedron", 1)
 
27
element = VectorElement("Lagrange", tetrahedron, 1)
28
28
 
29
29
# Coefficients
30
30
v  = TestFunction(element)      # Test function
42
42
E = variable(E)
43
43
 
44
44
# Material constants
45
 
mu    = Constant("tetrahedron") # Lame's constants
46
 
lmbda = Constant("tetrahedron")
 
45
mu    = Constant(tetrahedron) # Lame's constants
 
46
lmbda = Constant(tetrahedron)
47
47
 
48
48
# Strain energy function (material model)
49
49
psi = lmbda/2*(tr(E)**2) + mu*tr(E*E)