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

Is it possible to implement curved periodic boundaries (like in freefem)

+2 votes

I would like to solve a problem similar to what has been done in freefem:

freefem wiki: periodic boundaries with map

asked Nov 28, 2013 by monien FEniCS Novice (790 points)

1 Answer

+1 vote

Hi,

I think this is possible, but I’m not entirely sure because I haven’t tried it myself and I don’t think anyone has actually done this yet.

Briefly, you would have to split your mesh in half, call one side masters and the other side slaves. You would then have to create one periodic subdomain with a large map that takes care of all the dofs on all the boundary facets. You would have to make sure that there is a one-to-one correspondence between facets on slave and master domains, i.e., you would have to make sure that such a correspondence exists when you create the mesh. This is not always the case, at least not with Gmesh. Note that if this works it will only do so for regular (Lagrange) finite elements with point evaluation of basis functions.

answered Nov 28, 2013 by mikael-mortensen FEniCS Expert (29,340 points)
edited Nov 28, 2013 by mikael-mortensen
...