Dear all,
I can create unstructured mesh by myself, and mark node index on boundary.
I use the Poisson example code, to get result file, “poisson000000.vtu”.
The figure is show by paraview. You can get node inde (id = 1055) in the figure.
You cannot use the node index, as the index will not necessary be the same in dolfin (as dolfin might renumber for locallity, ordering and parallel distribution).
You could mark the node (for instance by a geometric search as shown above) and then use the pointwise method inside the DirichletBC.
Dear @dokken ,
I totally understand your commentary.
As the red dot on the picture, I want to set the DirichletBC on such unstructured mesh, and the mesh density is not consistent. Is there a good way to provide me?