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
from PyMieSim.single import plot_system

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
)

Plotting the detector

plot_system(detector)
HG01

Total running time of the script: (0 minutes 1.258 seconds)

Gallery generated by Sphinx-Gallery