Note
Go to the end to download the full example code.
Print cylinder properties#
Initialize the scatterer with a source, then call print_properties().
The printed table uses four decimal places in scientific notation by default.
Efficiencies are dimensionless; geometric lengths and cross sections include
their units in the table. This example produces text rather than a plot.
property | 0.0000e+00 | unit
-----------------|--------------------|------
size_parameter | 1.2566e+00 |
radius | 1.5000e-07 | m
cross_section | 7.0686e-14 | m^2
Qsca | 2.3087e-02 |
Qext | 2.8767e-01 |
Qabs | 2.6459e-01 |
Csca | 6.9261e-09 | m^2
Cext | 8.6302e-08 | m^2
Cabs | 7.9376e-08 | m^2
from PyMieSim import (
ureg,
InfiniteCylinder,
Gaussian,
PolarizationState,
)
polarization_state = PolarizationState(angle=30 * ureg.degree)
source = Gaussian(
wavelength=750 * ureg.nanometer,
polarization=polarization_state,
optical_power=1 * ureg.watt,
numerical_aperture=0.3,
)
scatterer = InfiniteCylinder(
diameter=300 * ureg.nanometer,
material=(1.4 + 0.1j),
medium=1.33,
)
scatterer.init(source=source)
scatterer.print_properties()
Total running time of the script: (0 minutes 0.002 seconds)