Periodic condition for only one subspace in a Mixed-formulation

Hi everyone,

I was wondering what is the proper way to implement periodic boundary conditions on a single subspace when using a mixed formulation.

Can a syntax of the form below be possible?

V = VectorElement(“CG”, mesh.ufl_cell(), 2)
Q = FiniteElement(“CG”, mesh.ufl_cell(), 1)
TH = V * Q
W = FunctionSpace(mesh, TH,constrained_domain= PeriodicBoundaries().sub(1))

It gives me an error when I try as it is.

Thank you

1 Like