Hi, see for instance this demo on using subdomain marking.
How to implement Neumann conditions is dependent on your variational form, as they appear after integration by parts. See for instance Poisson with pure neumann conditions or Heat equation with pure Neumann boundary conditions or Define boundaries for intersection of two cylinders
1 Like