xopto.pf.miepolystyrene module¶
- class MieFractalPolystyrene(alpha: float, wavelength: float, drange: Optional[Tuple[float, float]] = None, ripolystyrene: Optional[float] = None, riliquid: Optional[float] = None, nd: int = 1000)[source]¶
Bases:
xopto.pf.miefractal.MieFractal
Fractal scattering phase function for spherical polystyrene microparticles.
- Parameters
alpha (float) – Parameter alpha of the fractal distribution.
wavelength (float) – Wavelength (m).
drange (list, tuple of two float) – Finite range (m) of the particle diameter used to compute the scattering phase function given as (dmin, dmax). If None, default a range [5e-9, 30e-6] m is used.
ripolystyrene (float) – Refrective index of polystyrene at the specified wavelength. If None, the builtin polystyrene refractive index is used.
riliquid (float) – Refrective index of the liquid phase (water by default). If None, the builtin refractive index of water is used.
nd (int) – Number of equally spaced control points between dmin and dmax that are used to estimate the phase function. A fixed-step Simpson numerical integration is used to estimate the phase function at the given deflection angle cosines. If nd is None, adaptive-step numerical integration is used (note that the computational time might increase dramatically!!!).
- class MieNormalPolystyrene(center: float, sigma: float, wavelength: float, ripolystyrene: Optional[float] = None, riliquid: Optional[float] = None, clip: float = 5, nd: int = 100)[source]¶
Bases:
xopto.pf.mienormal.MieNormal
Fractal scattering phase function for spherical polystyrene microparticles.
- Parameters
center (float) – Distribution/diameter mean (m).
sigma (float) – Distribution/diameter standard deviation (m).
wavelength (float) – Wavelength of light (m).
ripolystyrene (float) – Refrective index of polystyrene at the specified wavelength. If None, the builtin polystyrene refractive index is used.
riliquid (float) – Refrective index of the liquid phase (water by default). If None, the builtin refractive index of water is used.
clip (float) – Distribution/diameter range used to estimate the phase function defined as [center - clip*sigma, center + clip*sigma].
nd (int) – Number of equally spaced control points between dmin and dmax that are used to estimate the phase function. A fixed-step Simpson numerical integration is used to estimate the phase function at the given deflection angle cosines. If nd is None, adaptive-step numerical integration is used (note that the computational time might increase dramatically!!!).
- class MiePolystyrene(diameter: float, wavelength: float, ripolystyrene: Optional[float] = None, riliquid: Optional[float] = None)[source]¶
Bases:
xopto.pf.mie.Mie
Scattering phase function of monodisperse polystyrene microspherical particles.
- Parameters
diameter (float) – Diameter of the Microspherical particle (m).
wavelength (float or complex) – Wavelength (m).
ripolystyrene (float or complex) – Refractive index of polystyrene at the specified wavelength. If None, the builtin polystyrene refractive index is used.
riliquid (float) – Refrective index of the liquid phase (water by default). If None, the builtin refractive index of water is used.