You need to provide a subdomain_id when creating the DirichletBC objects.
For example:
bcv_x = DirichletBC(W.sub(0).sub(0), Constant(0), 1, method="geometric") # note third argument!
For a UnitSquareMesh, the subdomain_ids are:
Regards,
Miklos
Dear Firedrakers,
I've been trying to implement 0 dirichlet boundaries on a mixed function space that includes a vector space