Note
Go to the end to download the full example code.
Hermite-Gauss 31 Mode Detector#
This example demonstrates the initialization and visualization of HG31 Mode detector using PyMieSim.
Importing the package: PyMieSim
from TypedUnit import ureg
from PyMieSim.single.detector import CoherentMode
from PyMieSim.single import plot_system
Initializing the detector
detector = CoherentMode(
mode_number="HG31", # Specifying HG31 mode
sampling=500 * ureg.AU, # Number of sampling points
NA=0.5 * ureg.AU, # Numerical Aperture
gamma_offset=0 * ureg.degree, # Gamma offset
phi_offset=40 * ureg.degree, # Phi offset in degrees
rotation=0 * ureg.degree,
)
Plotting the detector
plot_system(detector)

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