I want to do EM (ELECTROMAGNETIC) wave propagation by
- find the field Fourier transform in plane z==d ,
A = fft2(F(x,y,d))
- PS(phaseshift)
kz = k^2 -(kx^2+ky^2)
wherekx = 2*pi*1/dx ,ky = 2*pi*1/dy
C = IFFT2(A*EXP(i*PS)
but I dont get the expected result and I think I am confusing the FFT output arrangement and the way I define arrangement of kx and ky
any clue appreciated.
the flow chart is like : 1.Calculate field on z==d
2.Take Fourier 2D transform of the field at z ==d =====> F(Kx,Ky,d) where ,
kx = 2*pi*fx , fx = 1/dx
ky = 2*pi*fy , fy =1/dy
kz = k^2 – (kx^2+ky^2)
3.Take inverse fourier transfom of (F(Kx,Ky,d)*exp(i*kz*(Z-d)))
@ Z == d1 when d1 >d to find the total field in z == d1
This happens for z = d1,d1,…..,dn
However I am confused about the frequency arrangement for output of fft and the way I am defining the spacial frequency (kx and Ky) are consistent.