Skip to content

Mesh: extend P1 cell_sizes to high-order meshes #4218

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pbrubeck
Copy link
Contributor

@pbrubeck pbrubeck commented Apr 9, 2025

Description

Some physically-mapped elements (Argyris, HCT) have vertex DOFs scaled by the local cell diameter to prevent poor conditioning, and we store this as Mesh.cell_sizes (an attribute that should arguably become private). We obtain the scaling factor at vertices by projecting the CellDiameter into P1.

However CellDiameter is not implemented on high order meshes (it should be very difficult to compute), but in principle we just need any O(h) scaling. This PR circumvents the issue by always computing the CellDiameter on an affine mesh obtained from the vertices of the high-order mesh.

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