Skip to content

Conversation

@VeckoTheGecko
Copy link
Contributor

@VeckoTheGecko VeckoTheGecko commented Jul 2, 2025

Continuing the work in #2037 to fix #2048, this PR defines the axes for UxGrid as ["Z", "FACE"]. See #2048 for the full context

Changes:

  • Remove search2D from UxGrid.search
  • Update UxGrid ravelling to match BaseGrid API
  • Update Field.eval and VectorField eval to match new grid search API (also update interpolation template to remove ei, bcoords and replace witth position)

Open questions:

@fluidnumerics-joe
Copy link
Contributor

In terms of naming, should we go with "FACE" or "CELL"? Is there convention here?
For lateral indexing we should use "FACE" for face indices and "NODE" for node/vertex indices . A cell or element refers to the full 3-d object that you get when a face is extruded vertically between two vertical layers.

WRT testing ravel/unravel, we have a few tests that check evaluation of a field from our generic data sets; under the hood, this exercises both raveling and unraveling. Are you thinking of tests that just exercise ravel/unravel ?

@VeckoTheGecko
Copy link
Contributor Author

Are you thinking of tests that just exercise ravel/unravel ?

Yes. In the xgrid case I have a test that checks that roundtrips ravel and unravel and checks that it generates unique ei's . Maybe that's overkill, I can also see that POV

@fluidnumerics-joe
Copy link
Contributor

That makes sense though. The eval call stack involves a lot of other things and having these kinds of highly directed tests can help us further characterize what could be going wrong in eval (for example).

@VeckoTheGecko
Copy link
Contributor Author

That makes sense though. The eval call stack involves a lot of other things and having these kinds of highly directed tests can help us further characterize what could be going wrong in eval (for example).

Considering now I don't think round tripping ravelling is actually needed right now for uxgrid - with #2056 ravel and unravel could then be tested on the BaseGrid level (and also make testing easier for xgrid and uxgrid).

Any other review comments/thoughts for this PR?

Copy link
Contributor

@fluidnumerics-joe fluidnumerics-joe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quite a tidy change. All good on my end

@VeckoTheGecko VeckoTheGecko merged commit dc614e9 into v4-dev Jul 2, 2025
5 of 11 checks passed
@VeckoTheGecko VeckoTheGecko deleted the uxgrid-search-api branch July 2, 2025 15:28
@github-project-automation github-project-automation bot moved this from Backlog to Done in Parcels development Jul 2, 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.

3 participants