This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Domain with a cut and the corresponding space of Lagrange elements

+1 vote

Hi,

I would like to solve the Poisson problem on a 2D ring domain with a cut, e.g. domain = circle(0,0, radius=2) - circle(0,0, radius=1) - line segment((1,0) to (2,0)). How can I define such a domain together with the corresponding space of Lagrange elements? How can I prescribe nonzero-Dirichlet boundary condition on the line segment? Should I somehow use the jump operator?

Any help is appreciated

asked Apr 23, 2014 by vladimir FEniCS Novice (160 points)

1 Answer

0 votes

Use an external mesh generator, e.g. gmsh. You can then 'mark' the facets on the cut to apply boundary conditions. You'll have to take care marking the facets because you won't be able to use just the coordinate to distinguish between sides.

answered Apr 24, 2014 by Garth N. Wells FEniCS Expert (35,930 points)
...