Note
Go to the end to download the full example code.
Hermite-Gauss 01 Mode Detector#
This example demonstrates the initialization and visualization of HG01 Mode detector using PyMieSim.
Importing the package: PyMieSim
from PyMieSim.single.detector import CoherentMode
from PyMieSim.units import AU, degree
Initializing the detector
detector = CoherentMode(
mode_number="HG01", # Specifying LP01 mode
sampling=500 * AU, # Number of sampling points
NA=0.5 * AU, # Numerical Aperture
gamma_offset=0 * degree, # Gamma offset
phi_offset=40 * degree, # Phi offset in degrees
)
WARNING:root:High values of NA: 0.5 do not comply with the paraxial approximation. Values under 0.3 are preferred.
Plotting the detector
detector.plot()
Total running time of the script: (0 minutes 1.592 seconds)