LP02 Mode Detector#

This example demonstrates the initialization and visualization of an LP02 Mode detector using PyMieSim.

Importing the package: PyMieSim

from PyMieSim.single.detector import CoherentMode

Initializing the detector

detector = CoherentMode(
    mode_number="LP02",  # Specifying LP02 mode
    sampling=500,  # Number of sampling points
    NA=0.3,  # Numerical Aperture
    gamma_offset=0,  # Gamma offset
    phi_offset=40,  # Phi offset in degrees
)

Plotting the detector

figure = detector.plot()

Displaying the plot

_ = figure.show()
plot LP02

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

Gallery generated by Sphinx-Gallery