opcsim 0.5.0
  • API
  • Tutorial
  • Gallery
  • Site
      • Installation
      • Contributing
      • API reference
      • Tutorial
      • Example gallery
  • Page
      • opcsim.utils.ri_eff

opcsim.utils.ri_eff¶

opcsim.utils.ri_eff(species, weights=None)¶

Calculate the effective refractive index for an array of refractive indices and their respective weights. Alternatively, an array of diameters can be passed which will be used to calculate the volumetric weights.

\[n_{eff}=\sum_{i=1}^{N} \frac{V_i}{V_{total}}*n_i\]
Parameters
species: ndarray

An array of refractive indices.

weights: ndarray, optional

An array of volumetric weights.

Returns
ri_eff: float

The effective refractive index.

Back to top

Source

© Copyright 2016-2020, David H Hagan and Jesse H Kroll.
Created using Sphinx 3.0.3.