Hi,
I'm dealing with the solution of the forward facing step flow and I'm using mixed element and function spaces for the velocity, pressure and the lagrange multiplier(for the pressure). When I use the adaptive solver it fails with the error:
Order "1" invalid for "Real" finite element.
I found a question posted but it doesn't solve my problem either.
auto adaptive solver for ...
The elements and spaces that I generate are given below:
V_element = VectorElement('CG', triangle, 2)
Q_element = FiniteElement('CG', triangle, 1)
R_element = FiniteElement('R', triangle, 0)
W_element = MixedElement([V_element,Q_element,R_element])
W = FunctionSpace(mesh, W_element)
v, q, d = TestFunctions(W)
w = Function(W)
u, p, c = split(w)
F = ...
J = derivative(F,w)
pde = NonlinearVariationalProblem(F,w,bcs,J)
M = inner(w,w)*dx
solver = AdaptiveNonlinearVariationalSolver(pde,M)
solver.solve(tol)
Thanks in advance,
Cansu.