Skip to content

Checks: Add failed mesh elements/sides to debug mesh - #160

Open
kopperp wants to merge 2 commits into
mainfrom
improvement.check.output
Open

Checks: Add failed mesh elements/sides to debug mesh#160
kopperp wants to merge 2 commits into
mainfrom
improvement.check.output

Conversation

@kopperp

@kopperp kopperp commented Aug 16, 2026

Copy link
Copy Markdown
Collaborator

If any element or side fails a mesh check, add it to a separate Volume [Error]/Surface [Error] grid in the XDMF debug mesh.

Additionally, improve the alignment of the CheckOrient logic. Previously, CheckOrient() was called before GenerateSides(), so elem.sides did not exist. After moving CheckOrient() backwards in the call structure, align better with PyHOPE internal data structure.

Closes #157

@kopperp kopperp added this to the v1.1.0 milestone Aug 16, 2026
@kopperp
kopperp requested a review from scopplestone August 16, 2026 11:55
@kopperp kopperp self-assigned this Aug 16, 2026
@kopperp kopperp added the enhancement New feature or request label Aug 16, 2026
@kopperp

kopperp commented Aug 16, 2026

Copy link
Copy Markdown
Collaborator Author

@scopplestone Currently, we do not create a separate Volume [Error] if the element Jacobian < 0 since this can easily be filtered with a threshold in the regular debug mesh. Should we add it to the output?

@kopperp
kopperp force-pushed the improvement.check.output branch 2 times, most recently from da29652 to 0c48750 Compare August 16, 2026 12:13
Previously, CheckOrient() was called before GenerateSides(), so elem.sides did not exist. After moving CheckOrient() back, align better with PyHOPE internal data structure
@kopperp
kopperp force-pushed the improvement.check.output branch from 0c48750 to 247c413 Compare August 16, 2026 12:35
@github-actions

Copy link
Copy Markdown

☂️ Code Coverage

current status: ✅

Overall Coverage

Statements Covered Coverage Threshold Status
3201 2917 91% 85% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
pyhope/basis/basis_connect.py 100% 🟢
pyhope/basis/basis_orient.py 100% 🟢
pyhope/basis/basis_watertight.py 100% 🟢
pyhope/io/io_debug.py 98% 🟢
pyhope/mesh/extrude/mesh_extrude.py 99% 🟢
TOTAL 99% 🟢

updated for commit: 247c413 by action🐍

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

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Problem with surface normal check + add debugging output of broken elements/faces/normals to _DebugMesh.xdmf

1 participant