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

Investigate stretch factors #124

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alexfikl
Copy link
Collaborator

Added a simple case with a warped mesh and just a few elements to see what's going on and they don't seem to be discontinuous here. Not sure what it doesn't like about the torus.

On the other hand, the triangle and square cases seem to be seeing very different values.

@alexfikl
Copy link
Collaborator Author

alexfikl commented Dec 11, 2021

This is plotting the largest singular value i.e. "largest stretch factor".

Left is simplex (which has 4 elements) and right is the tensor product (which has 2 elements). They're both nice and continuous, but annoyingly different.

Interestingly, for the simplex, the sum of the two singular values does give something that vaguely matches the tensor product picture.

EDIT: To add a bit of math to this. The transformation used above is just

x = [x, y, sin(x) * sin(y)]

and the largest eigenvalue of that (according to Mathematica) looks like the tensor product plot above. Not quite sure what the simplex case is seeing :\

@alexfikl alexfikl force-pushed the fix-stretch-factor branch 3 times, most recently from ce151e8 to a765312 Compare December 17, 2021 01:27
@alexfikl alexfikl force-pushed the fix-stretch-factor branch 2 times, most recently from 9865564 to 15d2578 Compare January 14, 2022 01:13
@alexfikl
Copy link
Collaborator Author

alexfikl commented Feb 23, 2022

For future reference, a few remarks for this

  • the simplex and quad cases have no right to match, since the simplex is skewed to an equilateral reference element. That means that none of the vertex angles and edge lengths of the reference elements match between the two, so the stretch factors won't match either.
  • stretch factors don't have a right to be continuous, since two adjacent elements can be stretched the same along one axis, but very differently along another.
  • on the gmsh meshes, there's no difference (to eye ball norms) between simplices and quads, i.e. the stretch factors are discontinuous everywhere and generally nasty looking on both.

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

Successfully merging this pull request may close these issues.

1 participant