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

use affine root coords as geom if possible #855

Merged
merged 1 commit into from
Mar 1, 2024

Conversation

joostvanzwieten
Copy link
Member

Before 5034398 the geometry of a rectilinear mesh was an affine transformation of the root coordinates. In patch 5034398 this special case was removed due to a pending change in the transform chains for structured topologies: the replacement of the transformation that places an element in the root space with an index, thereby giving every element unit square root coordinates.

The effect of this change is a suboptimal gradient of the geometry to the root coordinates. Since the geometry is now always the inner product of a linear basis with vertices, the gradient of the geometry does not simplify to a constant if the vertices are evenly spaced.

This patch restores the special cased geometry by creating a reference geometry out of the (unit square) root coordinates and the element index and applying an affine transformation.

@joostvanzwieten joostvanzwieten force-pushed the affine-root-coords-geom branch 2 times, most recently from b08b34d to b4641c7 Compare March 1, 2024 10:07
Before 5034398 the geometry of a rectilinear mesh with uniform vertices was
an affine transformation of the root coordinates. In patch 5034398 this
special case was removed due to a pending change in the transform chains for
structured topologies: the replacement of the transformation that places an
element in the root space with an index, thereby giving every element unit
square root coordinates.

The effect of this change is a suboptimal gradient of the geometry to the root
coordinates. Since the geometry is now always the inner product of a linear
basis with vertices, the gradient of the geometry does not simplify to a
constant if the vertices are evenly spaced.

This patch restores the special cased geometry for rectilinear meshes defined
by numbers of elements by creating a reference geometry out of the (unit
square) root coordinates and the element index.
@joostvanzwieten joostvanzwieten force-pushed the affine-root-coords-geom branch from b4641c7 to 162f670 Compare March 1, 2024 10:14
@joostvanzwieten joostvanzwieten merged commit 9d7cc65 into master Mar 1, 2024
23 checks passed
@joostvanzwieten joostvanzwieten deleted the affine-root-coords-geom branch March 1, 2024 11:33
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.

2 participants