-
Notifications
You must be signed in to change notification settings - Fork 626
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
radiated flux from $E_r$ point source at $r=0$ in cylindrical coordinates depends on cell size #2338
Comments
I'd like to see a plot of the flux vs |
The convergence results were accidentally posted in #2108 (comment). Those results suggest that there is a likely bug in the To investigate the However, when we re-introduce the |
Well, ±m aren't exactly equivalent simulations (they aren't just complex-conjugates) because you have a complex-ω source with only the +ω term. The results should converge to one another as you increase both z and r PML thicknesses (and maybe the resolution too), I think. If you want to make the ±m simulations exactly the same, differing only by a complex conjugation, then one way should be to add two sources, one at |
Increasing both The fact that the results for the Note that whenever the |
Fixed by #2382. |
#2182 demonstrated that for simulations involving an$E_r$ point source at $r=0$ in cylindrical coordinates via $m=\pm 1$ , it is necessary for the
GaussianSource
object to specify: (1) a narrow bandwidth (via a smallfwidth
) and (2) a largecutoff
. These settings are required to mitigate the high-frequency components generated when the source abruptly turns on/off. While this approach ensures that the radiated flux from the point source converges with runtime, there seems to be a separate unexpected phenomenon in which the radiated flux varies with the size of the cell.Here is a demonstration using the same example in #2182: a point source in vacuum enclosed by flux monitors on three sides. A schematic of the setup and the full script is below. The flux in the$+z$ , $+r$ , and $-z$ directions are computed for two values of the non-PML ($m=-1$ . The four reported flux values are: (1) $+z$ , (2) $+r$ , (3) $-z$ , and (4) the total (sum of 1-3). The total flux should be the same in all test cases.
s
) and PML thicknesses (dpml
). The simulation uses1.
s = 5.0
,dpml = 1.0
2.
s = 5.0
,dpml = 2.0
3.
s = 10.0
,dpml = 1.0
Note that the four flux values in each of the three test cases are different. For comparison, these values are the same in an equivalent simulation in 2d and 3d (results not shown).
There is another anomaly: for the same cell size, the radiated flux in the$\pm z$ directions (first and third values) are different for $m=+1$ and $m=-1$ . They are expected to be the same. The results above were for $m=-1$ . Here are the results for $m=+1$ for the same three test cases:
4.
s = 5.0
,dpml = 1.0
5.
s = 5.0
,dpml = 2.0
6.
s = 10.0
,dpml = 1.0
Why does this matter? Because the radiated flux from the$r = 0$ source depends on the cell size, it is difficult to compute an accurate value for the constant scaling factor relating the $r = 0$ and $r \neq 0$ sources in #2108.
The text was updated successfully, but these errors were encountered: