sandialabs / omega_h

Simplex mesh adaptivity for HPC
Other
114 stars 53 forks source link

Mirror mesh on periodic boundaries #241

Open bonh opened 6 years ago

bonh commented 6 years ago

Imagine a pipe with periodic boundary conditions from the outlet to the inlet. To match the values from the inlet to the outlet, it would be great to have matching cells at the inlet and outlet boundaries. Is it possible to somehow restrict the mesh refinement?

ibaned commented 6 years ago

This is possible to implement, but would take substantial effort...

bonh commented 6 years ago

Okay, thx. What about restricting the adaptation to a subarea or submesh?

ibaned commented 6 years ago

That can also be done, and I think that is less effort

bonh commented 6 years ago

@ibaned If you have time to spare, could you briefly outline the steps which would be needed to implement a restriction to a submesh?

ibaned commented 6 years ago

I would probably need to modify the refine/coarsen/swap code to remove candidates that are marked in a certain way. The marking would be some kind of tag attached to entities, and functions would be provided to the user that mark the mesh.