-
Notifications
You must be signed in to change notification settings - Fork 15
Fix incorrect scaling of Yukawa kernel #224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There's a test in pytential for the Yukawa-Beltrami operator that would fail with this change (right?) I haven't looked at this in quite a while, but I'm not seeing why there's an extra EDIT: Well, apparently the tests don't fail, but an update to the comments there would still be nice 😁 |
@alexfikl Thanks for following up. I agree that this change needs to be backed up better, and I think what I'd actually like is a test for the scaling. What we'd really want to test is What do you guys think? @ShawnL00, your input/help would be very welcome here. |
This might be silly, but I'm still confused why that Beltrami test in pytential is passing. From what I recall, it tries to solve the eigenvalue problem
I'm ok with putting more jump tests in pytential for these things. However, from what I recall, the 3D jump tests in there are already quite slow, so it might add quite a bit to the runtime :\ |
Jump test is definitely a good choice. Perhaps we could also explicitly include the leading singularity for |
I'm more after something that can be verified with code though.
|
I am not sure if this is a good method: to verify the leading singularity, we can define a new kernel by subtracting out the leading singularity, evaluate the double layer along some rays that pass through the boundaries (assume the kernel of the double layer potential is not singular), and then check the continuity conditions on the boundary.
|
I agree; an eigenvalue test should be affected by a change in scaling. Possibly unrelated: Do you recall the source for the eigenvalues in the test? Also: given that it seems to be an eigenvalue test with a known eigenfunction, how come it does a solve (as opposed to a matvec)? |
I can report at least one bit of happy news: Without this PR,
fails in pytential, changed to use the Yukawa kernel. It passes with this PR. So @ShawnL00 is definitely onto something. |
If I understand correctly, suppose |
Noticed by Shawn Lin. Co-authored-by: Shawn Lin <[email protected]>
Noticed by Shawn Lin.