I have a periodic phase grating consisting of lenslets along the x-direction, invariant in y. I want to use python to calculate the far-field (Fraunhofer) diffraction pattern that one gets when shining a monochromatic light source at normal incidence (along z) through the grating. For this, I defined a complex amplitude transmission function and took the discrete Fourier transform (DFT) thereof.
However, I am not sure how to interpret this output (I know its supposed to be the spatial frequencies $k_x$ of my phase grating), and especially how to make the connection to the actual light intensity pattern on a screen a certain distance away from the grating (e.g., separation between maxima).
My code so far:
import numpy as np import matplotlib.pyplot as plt w = 43*10**-6 # width of a single lens R = (140/3)*10**-6 # Radius of a single lens lam = 532*10**-9 # wavelength k0 = 2*np.pi/lam # wavenumber of free space n = 1.5 # refractive index of the phase grating a = (n-1)*k0/(2.*R) delta_x = 0.5*10**-6 # spatial sampling x = np.linspace((-w/2), w/2, np.round(w/delta_x)) # 1 grating element N = 10 # number of considered grating period def t_element(x): # amplitude transmission function for 1 grating element return np.exp(1j*a*x**2) gratingtransmission = np.tile(t_element(x), N) # repeated transmission function fftfreqs = np.fft.fftshift(np.fft.fftfreq(len(gratingtransmission), d = delta_x)) plt.plot(fftfreqs, np.abs(np.fft.fftshift(np.fft.fft(gratingtransmission)))) plt.show()
Edit: I think I understand now that the intensity $I(x')$ at a point $x'$ will be proportional to $|\mathcal{F(t_g(x))}|$ evaluated at $k_x = x'/d\lambda$, where $d$ is the distance from the screen. Is this correct? However, this would still suggest that the highest intensity peaks are quite far from the center (c.f. attached DFT spectrum plot), which contradicts what I see in reality. So there must be some angle-dependent intensity-decreasing factor to be taken into account. What would be the proper way to account for this?
*10**-6
? Just use scientific notation,e-6
... $\endgroup$