-
-
Notifications
You must be signed in to change notification settings - Fork 139
Open
Description
examples/circular_aperture_lens.py yields a rectangular beam profile for following input:
from diffractsim import MonochromaticField, nm, mm, cm, CircularAperture, Lens
import diffractsim
# Change the string to "CUDA" to use GPU acceleration
diffractsim.set_backend("CPU")
F = MonochromaticField(
wavelength=639 * nm, extent_x=10 * mm, extent_y=10 * mm, Nx=1000, Ny=1000, intensity=0.01
)
F.add(CircularAperture(radius=4*mm))
F.add(Lens(f=100*mm)) # Just remove this command to see the pattern without lens
F.propagate(80*mm)
rgb = F.get_colors()
F.plot_colors(rgb, xlim=[-3*mm, 3*mm], ylim=[-3*mm, 3*mm])
result:
changing Nx,Ny to 2000 yields the expected circular beam profile:

Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels