This file is indexed.

/usr/share/doc/python-ufl/demo/HyperElasticity1D.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
17
18
19
20
21
#
# Author: Martin Sandve Alnes
# Date: 2008-10-03
#

cell = interval
element = FiniteElement("CG", cell, 2)
u = Coefficient(element)
b = Constant(cell)
K = Constant(cell)

E = u.dx(0) + u.dx(0)**2 / 2
E = variable(E)
Q = b*E**2
psi = K*(exp(Q)-1)

f = psi*dx
F = derivative(f, u)
J = derivative(-F, u)

forms = [f, F, J]