Note
Go to the end to download the full example code.
LP01 Mode Detector#
This example demonstrates the initialization and visualization of an LP01 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="LP01", # Specifying LP01 mode
sampling=500 * ureg.AU, # Number of sampling points
NA=1.0 * ureg.AU, # Numerical Aperture
gamma_offset=90 * ureg.degree, # Gamma offset
phi_offset=0 * ureg.degree, # Phi offset in degrees
medium_refractive_index=1.3 * ureg.RIU,
)
Plotting the detector
plot_system(detector)

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