Calculating diffraction patterns

4 replies · 3K views · last reply
Gobil
Messages
59
Reaction score
0
hi All,

I recently got interested in a general solution to diffraction from an object at verious distance and wavelengths. I came across the Fresnel Kirchoff formula (attached formula from Schnars, digital holography).

My problem is I cannot seem to replicate a diffraction that makes sense to me from this formula. My approach is to calculate numerically the terms inside the double integral, then integrate in x and y, and display the magnitude squared. If I try this with a square aperture centered in a opaque screen, I get something that looks like the image attached.

Am I doing something basic wrong?

Thanks in advance!
 
Attachments
  • Text page showing the Fresnel-Kirchhoff integral, Gamma(xi', eta') = (i/lambda) double integral of A(x,y) exp(-i 2pi rho'/lambda)/rho' Q dx dy, equation 2.48, with rho' = sqrt((x - xi')^2 + (y - eta')^2 + d^2) and Q = (cos theta + cos theta')/2.
    Schnars.png
    49.9 KB · Views: 637
  • Black field plot with axes labelled 0 to 1000, showing an L-shaped grey region with a bright gradient at its inner corner, not a symmetric diffraction pattern.
    square_apt.png
    3.3 KB · Views: 599
Itg strikes me that you need to start with a very simple situation and aim at getting what you can predict analytically with your numerical method. You have probably made some simple error in your coding which you will either have to find by re-examining in detail or by breaking the problem down into individual steps. If your aperture just consists of a top hat function in one dimension then you would expect a sin(x)/x pattern, for instance.
Scaling could be a problem, too - dimensions in wavelengths etc.
 
ok, thanks jtbell, the applet is useful, as you can see from my image, it looks like I´m just getting one corner of the actual diffraction pattern, which I don´t understand very well. I did read somewhere when doing Fourier transforms you get a one sided spectrum and have to reflect it, but I´m not entirely clear on why this is.

Any more info welcome!
 
hmm, after much fiddling around I´m pretty sure I´m putting in the right values, but for the diffraction pattern of a square aperture is the image you see below, which seems like one quarter of the real image or something like that.

any ideas?
 
Attachments
  • Greyscale plot on axes from 0 to 1000 showing a black field with a bright white rectangular block in the lower right, with a soft gradient edge at its upper and left boundaries.
    square_apt_2.png
    3.2 KB · Views: 574