Skip to content

Swap out spatialhash query for get_faces_containing_point - #2104

Merged
fluidnumericsJoe merged 5 commits into
v4-devfrom
feature/uxarray-get-faces-containing-points
Jul 28, 2025
Merged

Swap out spatialhash query for get_faces_containing_point#2104
fluidnumericsJoe merged 5 commits into
v4-devfrom
feature/uxarray-get-faces-containing-points

Conversation

@fluidnumericsJoe

@fluidnumericsJoe fluidnumericsJoe commented Jul 22, 2025

Copy link
Copy Markdown
Contributor

This PR brings in uxarray.get_faces_containing_point for the initial and backup search method to find the face a particle resides in. Additionally, to cope with particles crossing the antimeridian or being in cells that are colinear in lat/lon space, I've added a fallback option for calculating barycentric coordinate in cartesian (x,y,z) space (on a unit sphere). I've added a generic dataset that crosses the antimeridian with tests for particle positions within elements that cross the antimeridian.

@fluidnumericsJoe

Copy link
Copy Markdown
Contributor Author

Ok, I've added the cartesian barycentric coordinates as a backup to the latlon calculation. I'll just add a test with a generic dataset that crosses the antimeridian. This should exercise this new feature. Hopefully just one more commit to get this wrapped up.

@fluidnumericsJoe
fluidnumericsJoe marked this pull request as ready for review July 28, 2025 18:19
@fluidnumericsJoe
fluidnumericsJoe merged commit c6f91d6 into v4-dev Jul 28, 2025
9 checks passed
@fluidnumericsJoe
fluidnumericsJoe deleted the feature/uxarray-get-faces-containing-points branch July 28, 2025 18:30
@github-project-automation github-project-automation Bot moved this from Backlog to Done in Parcels development Jul 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants