Debian Codegraph @

demo/undocumented/meshview-3D3D/cpp/MeshView_3D3D.ufl

raw
1 from ufl_legacy import (Coefficient, dx, FiniteElement,
2 inner, grad,
3 tetrahedron, TestFunction, TrialFunction)
4
5 V = FiniteElement("Lagrange", tetrahedron, 1)
6 V1 = FiniteElement("Lagrange", tetrahedron, 1)
7 V2 = FiniteElement("Lagrange", tetrahedron, 1)
8
9 u = TrialFunction(V)
10 v = TestFunction(V)
11 f = Coefficient(V)
12
13 u1 = TrialFunction(V1)
14 v1 = TestFunction(V1)
15 f1 = Coefficient(V1)
16
17 u2 = TrialFunction(V2)
18 v2 = TestFunction(V2)
19 f2 = Coefficient(V2)
20
21 a = inner(grad(u), grad(v))*dx
22 L = f*v*dx
23
24 a00 = inner(grad(u1), grad(v1))*dx
25 a11 = inner(grad(u2), grad(v2))*dx
26 L0 = f1*v1*dx
27 L1 = f2*v2*dx
28
29 forms = [a, L, a00, a11, L0, L1]