Skip to content

Extend spatial slip condition to lower Z faces - #3044

Open
paolobellinopasquali wants to merge 4 commits into
mainfrom
paolobellinopasquali-patch-1
Open

paolobellinopasquali wants to merge 4 commits into
mainfrom
paolobellinopasquali-patch-1

Conversation

@paolobellinopasquali

@paolobellinopasquali paolobellinopasquali commented Nov 5, 2026 •

Copy link
Copy Markdown

Extends the function _Spatialslip to apply free-slip and partial-slip conditions to fully non-wet lower faces normal to Z.

The change now also includes W in node classification (if available) and safely handles lateral W correction when lenZ == 1 (even though it is a very rare case).

Extends `_Spatialslip` to apply free-slip and partial-slip conditions to fully non-wet lower faces normal to Z.

The change now includes W in node classification (when available) and safely handles lateral W correction when
lenZ == 1.

@erikvansebille erikvansebille left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The code-change looks good! Could you also add some unit tests to e.g. the test_spatial_slip_interpolation function in tests/test_interpolation.py? So that we know that these changes (keep) working the way we expect them

Or would you prefer me to do that?

@github-project-automation github-project-automation Bot moved this from Backlog to Ready in Parcels development Nov 6, 2026
@paolobellinopasquali

Copy link
Copy Markdown
Author

Thanks, Erik. I've added a test for the lower Z face, covering both free-slip and partial-slip. I'm not sure whether this is what you had in mind, but I've given it a try. If it isn't, would you mind adjusting it?

This branch has not been deployed

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

Labels

None yet

Projects

Status: Ready

Development

Successfully merging this pull request may close these issues.

2 participants