/usr/share/doc/python-ufl/demo/Elasticity.ufl is in python-ufl-doc 2017.2.0.0-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | #
# Author: Anders Logg
# Modified by: Martin Sandve Alnes
# Date: 2009-01-12
#
element = VectorElement("Lagrange", tetrahedron, 1)
v = TestFunction(element)
u = TrialFunction(element)
def epsilon(v):
Dv = grad(v)
return 0.5*(Dv + Dv.T)
a = inner(epsilon(v), epsilon(u))*dx
|