Skip to content

grid validate function #141

Closed
Closed

Description

@rajeeja
No description provided.

Activity

  1. self-assigned this
    on Sep 27, 2022
  2. moved this from 📝 To Do to 🏗 In progress in UXarray Developmenton Sep 27, 2022
  3. added 3 commits that reference this issue on Sep 29, 2022
    ef0e691
    0598232
    fd93fb5
  4. linked a pull request that will close this issueDRAFT: validate mesh #148on Sep 29, 2022
  5. added
    new feature
    on Sep 29, 2022
  6. added a commit that references this issue on Nov 8, 2022
  7. linked a pull request that will close this issuevalidate mesh #173on Nov 9, 2022
  8. philipc2 commented on Aug 29, 2023

    @philipc2
    Member

    @rajeeja Can you populate the issue with an outline of what we are validating or checking for?

  9. rajeeja commented on Sep 7, 2023

    @rajeeja
    ContributorAuthor

    Things to handle in this PR:

            xr_dataset = xr.open_dataset(ug_30)
            grid = ux.Grid(xr_dataset)
            assert (grid.validate())
    

    Check validity BASIC (Eg. uxds.ugrid.validate)

    • check if the mesh conforms to UGRID conventions (minimum set of keys required by UGRID)
    • check for duplicate nodes
    • check the connectivity of the mesh

    Check validity COMPREHENSIVE ((Eg. uxds.ugrid.validate_all)

    • check if the mesh conforms to UGRID conventions (minimum set of keys required by UGRID)
    • check for duplicate nodes
    • check the connectivity of the mesh
    • area non zero (this and following steps can be expensive and not included in the basic)
    • Jacobian non zero
    • angle between faces not greater than 180 degrees

    Report mesh quality (Eg. uxds.ugrid.quality)

    • area
    • aspect ratio
    • Jacobian
    • angle between faces

    =======
    TACKLE THIS LATER:

    Fix bad mesh

    • Remove duplicate nodes
    • Remove duplicate elements
    • Fix concave elements
    • Mesh refinement, derefinement, smoothing etc.

    Please review and suggest if you want to add or remove things from this list.

  10. moved this from 🏗 In progress to 👀 In review in UXarray Developmenton Oct 24, 2023
  11. moved this from 👀 In review to ✅ Done in UXarray Developmenton Nov 13, 2023
  12. added this to the Grid Topology milestone on Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

new feature

Type

No type

Fields

Priority

None yet

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions