I'm working on applying periodic boundary conditions to a sector with fenics implementation, but encountering some problems

Please post a complete (but minimal) example, and make sure that the code is wrapped with “```”.

See also Read before posting: How do I get my question answered? - #4 by nate .