Hi,
I just tried to solve coupled equations and set up my UFL-File like this:
cell = tetrahedron
scalar = FiniteElement("DG", cell, 1)
scalarMixed = scalar * scalar
sigmaLiquid, sigmaSolid = Coefficient(scalarMixed)
u = TrialFunction(scalarMixed)
vLiquid,vSolid = TestFunction(scalarMixed)
fLiquid, fSolid = Coefficient(scalarMixed)
uLiquid, uSolid = split(u)
aLiquid = (-sigmaLiquid*inner(grad(uLiquid), grad(vLiquid))-uLiquid*inner(grad(sigmaLiquid), grad(vLiquid)))*(dx(2)+dx(3)+dx(5))
aSolid = (-sigmaSolid*inner(grad(uSolid), grad(vSolid))-uSolid*inner(grad(sigmaSolid), grad(vSolid)))*(dx(1)+dx(2)+dx(3)+dx(4))
a = aLiquid+aSolid
L = fSolid*vSolid*(dx(2)+dx(3))+ fLiquid*vLiquid*(dx(2)+dx(3))
If I try to generate a CPP-Header with ffc -l dolfin myFile.ufl
the forms in the generated header have no coefficients for sigmaLiquid, sigmaSolid, fLiquid and fSolid but if I compile it in two seperate UFL Files (one for Liquid and one for Solid) it just compiles right (except that I can't combine them to a system of coupled equations).
Does anybody know what to do to get this working?
Thanks a lot.
Justus