Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
bsumlin committed Jul 24, 2017
1 parent ffa7a10 commit c295423
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion index.rst/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,17 @@ You can install PyMieScatt from `PyPI <https://pypi.python.org/pypi/PyMieScatt>`

.. py:function:: MieQ(m, wavelength, diameter[, asDict=False])
Return Mie efficencies of a spherical particle with a given refractive index *m*, *wavelength*, and *diameter*. Optionally returns the parameters as a dict when *asDict* is specified and set to True.
Return Mie efficencies of a spherical particle with a given refractive index *m*, *wavelength*, and *diameter*. Optionally returns the parameters as a dict when *asDict* is specified and set to True. Uses :py:func:`Mie_ab` to calculate :math:`a_n` and :math:`b_n`, and then calculates :math:`Q_i` via:

:math:`Q_{ext}=\frac{2}{x^2}\sum_{n=1}^{n_{max}}(2n+1)\:\text{Re}\left\{a_n+b_n\right\}`

:math:`Q_{sca}=\frac{2}{x^2}\sum_{n=1}^{n_{max}}(2n+1)(|a_n|^2+|b_n|^2)`

:math:`Q_{abs}=Q_{ext}-Q_{sca}`

:math:`Q_{back}=\frac{1}{x^2}\left|\sum_{n=1}^{n_{max}}(2n+1)(-1)^n(a_n-b_n)\right|^2`



.. py:Function:: Mie_ab(m,x)
Expand Down

0 comments on commit c295423

Please sign in to comment.