I want to define an H1 finite element function space on a rectangle. This function space satisfies the periodic boundary condition on the left and the right part, but satisfies the Dirichlet boundary condition (or Neumann boundary condition) on the top and bottom part. Could I use: Periodic(H1(mesh, order=1, Dirichlet=“top|bottom”)).

I want to define an H1 finite element function space on a rectangle. This function space satisfies the periodic boundary condition on the left and the right parts but satisfies the Neumann boundary condition on the top and bottom parts. Could I use: Periodic(H1(mesh, order=1)). Does it mean the periodic conditions happen on four edges?