Experiment Module#

The experiment package is used to build large parameter sweeps. It lets you combine sources, scatterers and detectors to explore how scattering quantities change across many configurations.

Key components#

  • Sources – plane waves and Gaussian beams with user-defined wavelength and polarization.

  • Scatterers – spherical, cylindrical and core–shell geometries.

  • Detectors – photodiodes, coherent modes and integrating spheres.

Example#

The snippet below retrieves the scattering efficiency for a range of refractive indices.

from PyMieSim.experiment.scatterer import Sphere
from PyMieSim.experiment.source import Gaussian
from PyMieSim.experiment import Setup
from PyMieSim.units import nanometer, degree, watt, AU, RIU
import numpy as np

source = Gaussian(
    wavelength=[500., 1000., 1500.] * nanometer,
    polarization=30. * degree,
    optical_power=1e-3 * watt,
    NA=0.2 * AU,
)

scatterer = Sphere(
    diameter=800. * nanometer,
    property=np.linspace(1.3, 1.9, 150) * RIU,
    medium_property=1. * RIU,
    source=source,
)

experiment = Setup(scatterer=scatterer, source=source)
df = experiment.get('Qsca')
df.plot_data(x='scatterer:property')

Core-Shell#

Examples of particles composed of a core and shell.

CoreShell: Qback vs Core Diameter

CoreShell: Qback vs Core Diameter

CoreShell: An vs Core Diameter

CoreShell: An vs Core Diameter

CoreShell: B1 vs Core Diameter

CoreShell: B1 vs Core Diameter

CoreShell: Coupling vs Diameter

CoreShell: Coupling vs Diameter

CoreShell: Coupling vs Diameter

CoreShell: Coupling vs Diameter

Cylinder#

Examples demonstrating infinite cylindrical scatterers.

Cylinder: Qabs vs Diameter

Cylinder: Qabs vs Diameter

Cylinder: Qsca vs Diameter

Cylinder: Qsca vs Diameter

Cylinder: Qsca vs Index

Cylinder: Qsca vs Index

Cylinder: Qsca vs Wavelength

Cylinder: Qsca vs Wavelength

Cylinder: Qsca vs wavelength std

Cylinder: Qsca vs wavelength std

Cylinder: A1 Scattering Coefficient

Cylinder: A1 Scattering Coefficient

Cylinder: B1 Scattering Coefficient

Cylinder: B1 Scattering Coefficient

Cylinder: Coupling vs Diameter

Cylinder: Coupling vs Diameter

Cylinder: Goniometer

Cylinder: Goniometer

Cylinder: Coupling vs Wavelength

Cylinder: Coupling vs Wavelength

Sphere#

Examples focused on spherical scatterers.

Sphere: Qabs vs diameter

Sphere: Qabs vs diameter

Sphere: Qsca vs diameter

Sphere: Qsca vs diameter

Sphere: Qsca vs index

Sphere: Qsca vs index

Sphere: Qsca vs wavelength

Sphere: Qsca vs wavelength

Sphere: Qsca vs wavelength STD

Sphere: Qsca vs wavelength STD

Sphere: A1 scattering coefficient

Sphere: A1 scattering coefficient

Sphere: B1 scattering coefficient

Sphere: B1 scattering coefficient

Sphere: Coherent Goniometer

Sphere: Coherent Goniometer

Sphere: Coherent mode field rotation

Sphere: Coherent mode field rotation

Sphere: coherent coupling vs sampling

Sphere: coherent coupling vs sampling

Sphere: Coupling vs diameter

Sphere: Coupling vs diameter

Sphere: Coupling vs polarization filter

Sphere: Coupling vs polarization filter

Sphere: Goniometer

Sphere: Goniometer

Sphere: Coupling vs sampling

Sphere: Coupling vs sampling

Sphere: Coupling vs wavelength

Sphere: Coupling vs wavelength

Gallery generated by Sphinx-Gallery