-
Notifications
You must be signed in to change notification settings - Fork 89
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
Fix sphere smoothing #798
Fix sphere smoothing #798
Conversation
@haochey Says this is likely an issue for some other patches as well and he's going to resolve it in this PR. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #798 +/- ##
==========================================
+ Coverage 43.74% 43.94% +0.19%
==========================================
Files 65 65
Lines 19039 19039
Branches 2332 2329 -3
==========================================
+ Hits 8328 8366 +38
+ Misses 9303 9262 -41
- Partials 1408 1411 +3 ☔ View full report in Codecov by Sentry. |
@haochey let me know when this is ready |
Glad to merge but it's now failing a bunch of tests? |
Yeah, I will fix this today. |
@sbryngelson This should be ready to merge. The cuboid patch was not properly initialized for IBM so it breaks all the tests. I updated the 8 golden files for cuboid IBMs with the fix on initialization. The smooth functions for cylinder and sphere are fixed. They are the only two patches with this issue. |
Description
This PR fixes a bug in the smoothing function for spherical patches that was identified during IGR development. The smoothing was only being applied inside the nominal radius of the patch, resulting in a grid level discontinuity. The old code generates the following IC


Which shows smoothing only on the sphere's interior and a discontinuity on the outer surface. The new code generates the following IC
which shows smoothing on both sides of the nominal radius of the patch. The smoothing coefficient for both ICs is identical.
Fixes #(issue) [optional]
Type of change
Scope