/usr/share/doc/python-ufl-doc/demo/MixedPoisson2.ufl is in python-ufl-doc 1.4.0-1.
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 | #
# Author: Marie Rognes
# Modified by: Martin Sandve Alnes
# Date: 2009-02-12
#
cell = tetrahedron
RT = FiniteElement("Raviart-Thomas", cell, 1)
DG = FiniteElement("DG", cell, 0)
MX = RT * DG
(u, p) = TrialFunctions(MX)
(v, q) = TestFunctions(MX)
n = FacetNormal(cell)
a0 = (dot(u, v) + div(u)*q + div(v)*p)*dx
a1 = (dot(u, v) + div(u)*q + div(v)*p)*dx - p*dot(v, n)*ds
forms = [a0, a1]
|