-
Notifications
You must be signed in to change notification settings - Fork 629
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
edge artifacts of MaterialGrid
#1965
Comments
Couldn't this be from the Note that our new approach (#1951) does a better job at handling the edges... so it could indeed be an underlying issue with the current averaging code... |
|
I suspect there could be a bug during the linear interpolation somewhere in these lines: Lines 734 to 773 in 35b10e5
|
There seems to be unwanted artifacts along the outer edges of a
MaterialGrid
which could introduce errors into a simulation. This can be demonstrated by usingplot2D
to visualize aMaterialGrid
in a 2d cell consisting of a linear interpolation along a single direction ofmedium1
(indexn1
) andmedium2
(indexn2
). The edge artifacts are independent of theresolution
. The edge artifacts seem to disappear when theMaterialGrid
is defined as thedefault_medium
(rather than aBlock
object) which suggests there is probably a bug in the interpolation for grid voxels near the edges.(Possibly related to #1399.)
The text was updated successfully, but these errors were encountered: