Note
Go to the end to download the full example code.
Photodiode Detector#
This example demonstrates the initialization and visualization of a Photodiode detector using PyMieSim.
Importing the package: PyMieSim
from PyMieSim.units import ureg
from PyMieSim.single.detector import Photodiode
from PyMieSim.single import SystemPlotter
detector = Photodiode(
NA=0.3 * ureg.AU, # Numerical Aperture
cache_NA=0.2 * ureg.AU,
sampling=500 * ureg.AU, # Number of sampling points
gamma_offset=0 * ureg.degree, # Gamma offset in degrees
phi_offset=0 * ureg.degree, # Phi offset in degrees
)
plotter = SystemPlotter()
plotter.plot(detector)

<pyvista.plotting.plotter.Plotter object at 0x7fd030ab3a90>
Total running time of the script: (0 minutes 0.282 seconds)