Dirichlet BC on Mixed Elements

Use V.sub(0) or V.sub(1) in your DirichletBC, as shown in for instance: https://fenicsproject.org/olddocs/dolfin/latest/python/demos/stokes-iterative/demo_stokes-iterative.py.html

1 Like