-
Notifications
You must be signed in to change notification settings - Fork 660
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
artifacts from grid discretization #1277
Comments
I think I have tracked down the cause of this bug: the source amplitude function ( |
|
Probably you are just seeing discretization slightly breaking the mirror symmetry depending on whether you have an odd or even number of pixels, so that the non-radiative source can radiate due to discretization errors in one case ( (This is related to the fact that, if you specify a mirror symmetry plane in x, Meep will actually pad the cell by 1 pixel in some cases to maintain the discrete symmetry.) |
(I think there may be some separate problem in get_source_slice, because an actual glitch that big in the current seems like it would cause a much bigger error than |
It is indeed discretization effects related to the number of pixels for the line source (equal to
(Note: The same thing happens when periodic boundaries are not used. Also, no mirror symmetry plane is used in this example and thus the cell is never padded.) Since this effect is a feature of the grid discretization and not a bug (and not something that we can provide a built-in protection against), it would be useful to document it in Features/Exploiting Symmetry so that users are aware of it. |
Replaced by #1291. |
There are unexpectedly large discretization artifacts when using a amplitude function for the
Source
object. This effect can be demonstrated using an example based on "Method 3" of Tutorial/Custom Source/Stochastic Dipole Emission in Light Emitting Diodes involving a cosine Fourier series (m=7) source amplitude function. The radiated flux from the LED structure at the pulse center frequency shows large variations due to tiny changes in the resolution.This effect may be due to the way the source amplitude function is interpolated onto the Yee grid.
resolution = 50
resolution = 51
resolution = 52
resolution = 53
resolution = 54
resolution = 55
Additional notes: this effect does not depend on the value of m or the presence of the Ag back reflector.
The text was updated successfully, but these errors were encountered: