I can't figure out from the documentation how to specify that a DirichletBC should be applied to the DoFs having a particular set of indices. To be clear, by index I mean the number displayed by DofMapPlotter from the fenicstools package.
I would like to do something like:
dofList = [1,20,21]
bc = DirichletBC(V,Constant(0),dofList,'pointwise')
I would produce the dofList using a MeshFunction and the DofMap. It would be a list of all points which do not lie inside or on the boundary of a particular subdomain.
Thanks for your help!
Colin