Skip to content

Extend spatial slip condition to lower Z faces - #3044

Merged
paolobellinopasquali merged 6 commits into
mainfrom
paolobellinopasquali-patch-1
Nov 10, 2026
Merged

paolobellinopasquali merged 6 commits into
mainfrom
paolobellinopasquali-patch-1

Conversation

@paolobellinopasquali

@paolobellinopasquali paolobellinopasquali commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

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
Contributor 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?

@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.

Yep, the unit test looks good. Happy to approve this PR!

@paolobellinopasquali
paolobellinopasquali enabled auto-merge (squash) November 10, 2026 12:56
@paolobellinopasquali
paolobellinopasquali merged commit f931978 into main Nov 10, 2026
20 of 23 checks passed
@paolobellinopasquali
paolobellinopasquali deleted the paolobellinopasquali-patch-1 branch November 10, 2026 13:05
@github-project-automation github-project-automation Bot moved this from Ready to Done in Parcels development Nov 10, 2026
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