I've got boundary conditions of the form
bc0 = DirichletBC(V, something, somewhere)
bc1 = DirichletBC(V.sub(0), something_else, somewhere_else)
bc2 = DirichletBC(Q, something_else, somewhere_else)
I now construct a linear system in the product space W=V*Q. Is there a way to apply the above boundary conditions in the new system?
One possible solution would be to extract the arguments something* and somewhere* from bc*, and create new DirichletBC instances with W.sub(0), W.sub(1), but I don't know if/how this is possible.