Hi,
I'm trying to solve a mixed pressure displacement problem, but when I define the problem in this way:
V = VectorFunctionSpace(mesh, "CG", 2)
W = FunctionSpace(mesh, "CG", 1)
M = V * W # Mixed space
bc = [DirichletBC(M.sub(0), u_0, fixedFace),
DirichletBC(M.sub(1), p_0, innerFace)]
(u, p) = TrialFunctions(M)
(v, w) = TestFunctions(M)
a = ( 4Ginner(sym(grad(u)), sym(grad(v))) - (div(u)+p)div(v) + w(p/K+div(u)) ) * dx
L = 0
I get the following error: Unable to define nonlinear variational problem F(u; v) = 0 for all v.
But I can't see any nonlinearity in this problem. Does anyone knows what am I doing wrong?
Thank you!