[d03d99]: inst / example / Mixed-Poisson / MixedPoisson.ufl Maximize Restore History

Download this file

MixedPoisson.ufl    13 lines (9 with data), 280 Bytes

BDM = FiniteElement("BDM", triangle, 1)
DG  = FiniteElement("DG", triangle, 0)
W = BDM * DG

(sigma, u) = TrialFunctions(W)
(tau, v)   = TestFunctions(W)

CG = FiniteElement("CG", triangle, 1)
f = Coefficient(CG)

a = (dot(sigma, tau) + div(tau)*u + div(sigma)*v)*dx
L = - f*v*dx