See Periodic BC in dolfinx - #10 by welahi (More or less the whole set of posts discussed this aspect )