Skip to content

Port Stokes to new SystemKernels#327

Open
alexfikl wants to merge 3 commits into
inducer:mainfrom
alexfikl:stokes-system
Open

Port Stokes to new SystemKernels#327
alexfikl wants to merge 3 commits into
inducer:mainfrom
alexfikl:stokes-system

Conversation

@alexfikl

Copy link
Copy Markdown
Collaborator

Probably better viewed commit by commit, since the second commit adds type annotations and is a bit noisy.

}
}
],
"./pytential/symbolic/stokes.py": [

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

🎉

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates pytential’s symbolic Stokes machinery to use Sumpy’s newer SystemKernel APIs (e.g. StokesletSystemKernel, StressletSystemKernel) instead of the older per-component kernels, while also adding/cleaning up type annotations to reduce the pyright baseline footprint.

Changes:

  • Port Stokeslet/Stresslet wrapper implementations from component kernels to system kernels and replace derivative handling with AxisTargetDerivative.
  • Introduce/expand typing (including ABC base operator, annotated attributes, and @override markers).
  • Remove now-obsolete pyright baseline suppressions for pytential/symbolic/stokes.py.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.

File Description
pytential/symbolic/stokes.py Migrates symbolic Stokes wrappers/operators to SystemKernels and refactors derivative/stress expressions with added typing.
.basedpyright/baseline.json Drops baseline entries corresponding to typing issues that are addressed by the refactor.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pytential/symbolic/stokes.py
Comment thread pytential/symbolic/stokes.py Outdated
Comment thread pytential/symbolic/stokes.py
Comment thread pytential/symbolic/stokes.py
Comment thread pytential/symbolic/stokes.py
@alexfikl alexfikl marked this pull request as ready for review June 27, 2026 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants