Hi everyone,
I am trying to use "DoFTools::make_periodicity_constraints" function to apply periodic BCs on my geometry.
For simplicity, here I've just uploaded a test program which only applies PBCs to a single square element. I am doing this by using the function twice, first for faces 1 and 2; then for faces 3 and 4.
When I use "GridGenerator::subdivided_hyper_rectangle" function to generate the mesh, everything is fine. (Case <I> in the below image). I get the following constraints:
U2 = U0
U3 = U1
U6 = U4
U7 = U5
for the first function, and
U4 = U0
U5 = U1
for the second function. Which is exactly what I want.
The problem is, when I import the mesh from Cubit (Lines 68-71 in the uploaded code), I will have different numbering for the nodes (Case <II> in the below image). While I expect the constraints to be as follows:
U4 = U6
U5 = U7
U0 = U2
U1 = U3
for the first function, and
U2 = U6
U3 = U7
they are the same as case <I>!
