Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify limitations of periodic meshes #211

Open
samuelpmishLLNL opened this issue Feb 6, 2023 · 3 comments
Open

Clarify limitations of periodic meshes #211

samuelpmishLLNL opened this issue Feb 6, 2023 · 3 comments

Comments

@samuelpmishLLNL
Copy link

As part of a recent discussion with @pazner on the mfem slack channel, it sounds like there may be a handful of limitations of periodic meshes in mfem that do not seem to be currently communicated in https://mfem.org/howto/periodic-boundaries/ . Concretely, if the mechanism of enforcing periodicity in mfem is just a 1-to-1 correspondence between nodes on periodic faces then it may not work correctly in general for:

  • vector-valued H1 spaces (e.g. rotational symmetry like in the torus example on the web page)
  • Hcurl (due to sign / orientation discrepancies, especially with triangular faces of cubic or higher order in 3D)
  • Hdiv (due to sign)

I'm hoping to find out more information on the potential limitations above (the signedness problem for Hcurl/Hdiv could likely be resolved easily if not already, but the orientation mismatch might be more involved). Has anyone successfully simulated elasticity or E&M problems with periodic meshes, especially with more interesting symmetries than just translation?

Also, the webpage does not indicate if the discretization is expected to be conforming along the periodic boundaries (I'm guessing this is a requirement, given the discussion above). If so, does this impose restrictions on mesh refinement (adaptive, uniform)?

@tzanio
Copy link
Member

tzanio commented Feb 6, 2023

Consider adding an example that imposes u.n periodic boundary conditions for elasticity, maybe similar to Example 28.

These can't be imposed with periodic meshes.

ping: @vladotomov

@mlstowell
Copy link
Member

I agree with Tzanio that examples could help to clarify and/or confirm this functionality.

Regarding HCurl and HDiv there should be no issues on periodic meshes regardless of how the opposing surfaces are oriented as long as there is a one-to-one correspondence between the nodes. This is because once these opposing surfaces are stitched together their orientations are irrelevant. Only the topology of the resulting mesh is relevant in defining the basis functions. As long as the mesh was stitched with valid topology everything else should be fine.

Vector H1 is another matter. The same argument used above applies here and leads to valid basis functions. However, trouble can arise in how the vector components are interpreted. Clearly if they are thought of as xyz components of some vector field and the opposing surfaces are not simply translated then the xyz interpretation will produce strange results throughout the mesh not just where the opposing surfaces were stitched together. On the other hand if the resulting mesh is a portion of an object with cylindrical symmetry, for example, and the three vector components are interpreted as r, phi, and z in this cylindrical coordinate system then vector H1 should produce perfectly results.

@mlstowell
Copy link
Member

After read the discussion on the MFEM #helpdesk the source of confusion is more clear to me. This matter certainly needs better documentation. I'll try to put something together when I get back from my current trek.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants