Hi there,
In the official Mixed Poission tutorial, the velocity sigma is represented by the BDM (Brezzi-Douglas-Marini). My question is: is it possible to apply boundary condition on part of this BDM element? Physically, it means to restrict velocity vlaue in one direction.
I tried
BDM = FunctionSpace(mesh, "BDM", 1)
DG = FunctionSpace(mesh, "DG", 0)
W = BDM * DG
and the boudary condition is like:
DirichletBC(W.sub(0).sub(0), Boundary_Expression, boundaries, 1)
but it failed, and the error message:
ValueError: Can only extract SubSpaces with i = 0 ... -1
It seems I have no access to the inner component of a BDM element. What's the right way to apply BC on part of the element?