strspeed
Newbie level 3
I've written a FDFD simulation in python following the procedure written by Dr. Rumpf here: **broken link removed**
I think I'm having some issues with the source.
Slide 36 defines k0 as 2*pi / wavelength
If I let wavelength be 1000e-9 meters or 1000 nm k0 = 6283185.30718
nref = 1
kinc = k0 * nref * [0,1]
kinc then should be a source from the y direction
slide 40 defines the source field to be
fsrc (x,y) = exp(j *(kxinc X + kyinc Y) )
fsrc (x,y) = exp(j *( 0 + 6283185.30718 * Y) )
or f = exp(j * 6283185.30718 * n) ) n = 0..M
which just becomes a decaying function (because we aren't resolving a wavelength) unless I multiply my n term by some deltaX (1000e-10). Am i missing something somewhere?
I think I'm having some issues with the source.
Slide 36 defines k0 as 2*pi / wavelength
If I let wavelength be 1000e-9 meters or 1000 nm k0 = 6283185.30718
nref = 1
kinc = k0 * nref * [0,1]
kinc then should be a source from the y direction
slide 40 defines the source field to be
fsrc (x,y) = exp(j *(kxinc X + kyinc Y) )
fsrc (x,y) = exp(j *( 0 + 6283185.30718 * Y) )
or f = exp(j * 6283185.30718 * n) ) n = 0..M
which just becomes a decaying function (because we aren't resolving a wavelength) unless I multiply my n term by some deltaX (1000e-10). Am i missing something somewhere?