Debian Codegraph @

demo/documented/eigenvalue/cpp/StiffnessMatrix.ufl.rst

raw
1 UFL input for the Poisson bilinear form
2 =======================================
3
4 The bilinear form for a stiffness matrix (Poisson)::
5
6 from ufl_legacy import (dot, dx, FiniteElement, grad,
7 TestFunction, TrialFunction, tetrahedron)
8
9 element = FiniteElement("Lagrange", tetrahedron, 1)
10
11 v = TestFunction(element)
12 u = TrialFunction(element)
13
14 a = dot(grad(v), grad(u))*dx