Functions for Coated Spheres (CoreShell Particles)¶

MieQCoreShell
(mCore, mShell, wavelength, dCore, dShell[, asDict=False, asCrossSection=False])¶ Compute Mie efficencies Q and asymmetry parameter g of a single, coated particle. Uses
CoreShell_ab()
to calculate a_{n} and b_{n} , and then calculates Q_{i} following closely from the original BHMIE.Parameters
 mCore : complex
 The complex refractive index of the core region, with the convention .
 mShell : complex
 The complex refractive index of the shell region, with the convention .
 wavelength : float
 The wavelength of incident light, in nanometers.
 dCore : float
 The diameter of the core, in nanometers.
 dShell : float
 The diameter of the shell, in nanomaters. This is equal to the total diameter of the particle.
 asDict : bool, optional
 If True, returns the results as a dict.
 asCrossSection : bool, optional
 If specified and set to True, returns the results as optical crosssections with units of nm^{2}.
Returns
 qext, qsca, qabs, g, qpr, qback, qratio : float
 The Mie efficencies described above.
 cext, csca, cabs, g, cpr, cback, cratio : float
 If asCrossSection==True,
MieQCoreShell()
returns optical crosssections.  q : dict
 If asDict==True,
MieQCoreShell()
returns a dict of the above efficiencies with appropriate keys.  c : dict
 If asDict==True and asCrossSection==True, returns a dict of the above crosssections with appropriate keys.
Considerations
When using this function in a script, there are three simplifying clauses that can speed up computation when considering both coated and homogeneous particles. Upon determining the size parameters of the core and the shell:
 if x_{core} == x_{shell}, then
MieQCoreShell()
returns Mie efficencies calculated by MieQ(mCore,wavelength,dShell).  If x_{core} == 0, then
MieQCoreShell()
returns efficencies calculated by MieQ(mShell,wavelength,dShell).  If m_{core} == m_{shell}, then
MieQCoreShell()
returns efficencies calculated by MieQ(mCore,wavelength,dShell).

CoreShellScatteringFunction
(mCore, mShell, wavelength, dCore, dShell[, minAngle=0, maxAngle=180, angularResolution=0.5, normed=False])¶ Computes the angledependent scattering intensity of a coated sphere.
Parameters
 mCore : complex
 The complex refractive index of the core region, with the convention .
 mShell : complex
 The complex refractive index of the shell region, with the convention .
 wavelength : float
 The wavelength of incident light, in nanometers.
 dCore : float
 The diameter of the core, in nanometers.
 dShell : float
 The diameter of the shell, in nanomaters. This is equal to the total diameter of the particle.
 thetaSteps : int
 The number of points between 0 and 180 degrees to use in calculations.
Returns
 theta : numpy.ndarray
 An array of the angles used in calculations. Values will be spaced according to angularResolution, and the size of the array will be (maxAngleminAngle)/angularResolution.
 SL : numpy.ndarray
 An array of the scattered intensity of leftpolarized (parallel) light. Same size as the theta array.
 SR : numpy.ndarray
 An array of the scattered intensity of rightpolarized (perpendicular) light. Same size as the theta array.
 SU : numpy.ndarray
 An array of the scattered intensity of unpolarized light, which is the average of SL and SR. Same size as the theta array.

CoreShellS1S2
(mCore, mShell, xCore, xShell, mu)¶ Computes S1 and S2 of a coated sphere as a function of mu, the cosine of the scattering angle.
Parameters
 mCore : complex
 The complex refractive index of the core region, with the convention .
 mShell : complex
 The complex refractive index of the shell region, with the convention .
 wavelength : float
 The wavelength of incident light, in nanometers.
 dCore : float
 The diameter of the core, in nanometers.
 dShell : float
 The diameter of the shell, in nanomaters. This is equal to the total diameter of the particle.
 mu : float
 The cosine of the scattering angle.
Returns
 S1, S2 : complex
 The S_{1} and S_{2} values.

CoreShellMatrixElements
(mCore, mShell, xCore, xShell, mu)¶ Calculates the four nonzero scattering matrix elements S_{11}, S_{12}, S_{33}, and S_{34} as functions of μ=cos(θ), where θ is the scattering angle:
Parameters
 mCore : complex
 The complex refractive index of the core region, with the convention .
 mShell : complex
 The complex refractive index of the shell region, with the convention .
 wavelength : float
 The wavelength of incident light, in nanometers.
 dCore : float
 The diameter of the core, in nanometers.
 dShell : float
 The diameter of the shell, in nanomaters. This is equal to the total diameter of the particle.
 mu : float
 The cosine of the scattering angle.
Returns
 S11, S12, S33, S34 : float
 The matrix elements described above.