Periodic Finite Element Function Space on restricted Boundary

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”)).

Thanks a lot.

yes you can, but write dirichlet (small d)

1 Like

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?

Thanks a lot.

yes you can. periodic conditions are only applied on the peridic mesh identifications.

1 Like