FFT Vectorial PSF - 2D
This example demonstrates how to use the VectorialFFTPSF class to calculate the 2D PSF of an optical system.
Note: Vectorial PSF calculations are automatically performed when polarization is enabled in the optical system. This accounts for the vectorial nature of the electric field at the exit pupil.
[1]:
from optiland.psf import VectorialFFTPSF
from optiland.samples.objectives import CookeTriplet
from optiland.rays import PolarizationState
[2]:
lens = CookeTriplet()
unpolarized_state = PolarizationState(is_polarized=False)
lens.updater.set_polarization(unpolarized_state) # Enable polarization to trigger vectorial PSF
lens.draw()
[2]:
(<Figure size 1000x400 with 1 Axes>, <Axes: xlabel='Z [mm]', ylabel='Y [mm]'>)
[3]:
psf = VectorialFFTPSF(lens, field=(0, 1), wavelength=0.55)
_ = psf.view()