LP01 Mode Detector#

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

Importing the package: PyMieSim

from PyMieSim.units import ureg

from PyMieSim.single.detector import CoherentMode
from PyMieSim.single import SystemPlotter

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
    rotation=0 * ureg.degree,  # Rotation angle
    phi_offset=0 * ureg.degree,  # Phi offset in degrees
    medium_refractive_index=1.3 * ureg.RIU,
)

plotter = SystemPlotter()
plotter.plot(detector)
LP01
<pyvista.plotting.plotter.Plotter object at 0x7fd0311d0510>

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

Gallery generated by Sphinx-Gallery