Boundary conditions for specific nodes

Hello everyone.

Can I define boundary conditions for specific nodes by using node numbers instead of coordinates? If so, how can I do that? Thanks.

This is possible in DOLFINx where the input to the DirichletBC is the dofs (which can be located geometrically or topological).

1 Like