|
hp-FEM
Adaptive hp-FEM suite for nano-optics
|
#include <mie.hpp>
Public Member Functions | |
| int | max_order () const noexcept |
| Real | size_parameter () const noexcept |
| Real | scattering_efficiency () const |
| Real | extinction_efficiency () const |
| Real | absorption_efficiency () const |
| Real | scattering_cross_section () const |
| [m²] | |
| Real | extinction_cross_section () const |
| [m²] | |
| Real | absorption_cross_section () const |
| [m²] | |
| assembly::ComplexVector< 3 > | incident_field (const Point< 3 > &x) const |
| Incident field \( \hat x\, e^{ikz} \) at x (any point). | |
| assembly::ComplexVector< 3 > | scattered_field (const Point< 3 > &x) const |
| Scattered field at x; valid outside the sphere (|x| ≥ a). | |
| assembly::ComplexVector< 3 > | internal_field (const Point< 3 > &x) const |
| Field inside the sphere at x (|x| ≤ a). | |
| assembly::ComplexVector< 3 > | total_field (const Point< 3 > &x) const |
| Total field: internal field inside, incident + scattered outside. | |
Public Attributes | |
| Real | k = 0 |
| background wavenumber \( n_b k_0 \) [1/m] | |
| Real | radius = 0 |
| a [m] | |
| Complex | eps_r {1.0, 0.0} |
| relative permittivity of the sphere | |
| Real | background_index = 1 |
| n_b | |
| Complex | m {1.0, 0.0} |
| relative refractive index | |
| std::vector< Complex > | a |
| std::vector< Complex > | b |
| scattering coefficients, order n at index n − 1 | |
| std::vector< Complex > | c |
| std::vector< Complex > | d |
| internal-field coefficients, order n at index n − 1 | |
Mie series of a homogeneous sphere of radius a and relative permittivity ε_r (complex, Im ε_r ≥ 0 for absorption) centred at the origin in a lossless background of refractive index n_b, illuminated by the plane wave \( E^{inc} = \hat x\, e^{i k z} \) of unit amplitude (1 V/m), \( k = n_b k_0 \). Non-magnetic media. Size parameter \( x = k a \), relative index \( m = \sqrt{\varepsilon_r} / n_b \) (branch with Im m ≥ 0).
Coefficients (Bohren & Huffman 4.53, μ = μ₁) with the Riccati–Bessel functions \( \psi_n(\rho) = \rho j_n(\rho) \), \( \xi_n(\rho) = \rho h_n^{(1)}(\rho) \) and the logarithmic derivative \( D_n(mx) = \psi_n'(mx)/\psi_n(mx) \) (downward recurrence): \( a_n = \frac{(D_n/m + n/x)\psi_n(x) - \psi_{n-1}(x)}{(D_n/m + n/x)\xi_n(x) - \xi_{n-1}(x)} \), \( b_n = \frac{(m D_n + n/x)\psi_n(x) - \psi_{n-1}(x)}{(m D_n + n/x)\xi_n(x) - \xi_{n-1}(x)} \); the internal coefficients c_n, d_n follow from the same boundary conditions. Efficiencies \( Q_{sca} = \frac{2}{x^2}\sum_n (2n+1)(|a_n|^2 + |b_n|^2) \), \( Q_{ext} = \frac{2}{x^2}\sum_n (2n+1)\,\mathrm{Re}(a_n + b_n) \) (optical theorem), \( Q_{abs} = Q_{ext} - Q_{sca} \); cross-sections \( \sigma = Q\,\pi a^2 \) [m²]. The fields are the vector spherical harmonic expansions of Bohren & Huffman (4.40, 4.45, 4.50): \( E^{sca} = \sum_n E_n (i a_n N^{(3)}_{e1n} - b_n M^{(3)}_{o1n}) \) outside and \( E^{int} = \sum_n E_n (c_n M^{(1)}_{o1n} - i d_n N^{(1)}_{e1n}) \) inside, \( E_n = i^n (2n+1)/(n(n+1)) \).
| Real hpfem::physics::MieSphere::absorption_cross_section | ( | ) | const |
[m²]
| Real hpfem::physics::MieSphere::absorption_efficiency | ( | ) | const |
| Real hpfem::physics::MieSphere::extinction_cross_section | ( | ) | const |
[m²]
| Real hpfem::physics::MieSphere::extinction_efficiency | ( | ) | const |
| assembly::ComplexVector< 3 > hpfem::physics::MieSphere::incident_field | ( | const Point< 3 > & | x | ) | const |
Incident field \( \hat x\, e^{ikz} \) at x (any point).
| assembly::ComplexVector< 3 > hpfem::physics::MieSphere::internal_field | ( | const Point< 3 > & | x | ) | const |
Field inside the sphere at x (|x| ≤ a).
|
inlinenoexcept |
| assembly::ComplexVector< 3 > hpfem::physics::MieSphere::scattered_field | ( | const Point< 3 > & | x | ) | const |
Scattered field at x; valid outside the sphere (|x| ≥ a).
| Real hpfem::physics::MieSphere::scattering_cross_section | ( | ) | const |
[m²]
| Real hpfem::physics::MieSphere::scattering_efficiency | ( | ) | const |
|
inlinenoexcept |
| assembly::ComplexVector< 3 > hpfem::physics::MieSphere::total_field | ( | const Point< 3 > & | x | ) | const |
Total field: internal field inside, incident + scattered outside.
| std::vector<Complex> hpfem::physics::MieSphere::a |
| std::vector<Complex> hpfem::physics::MieSphere::b |
scattering coefficients, order n at index n − 1
| Real hpfem::physics::MieSphere::background_index = 1 |
n_b
| std::vector<Complex> hpfem::physics::MieSphere::c |
| std::vector<Complex> hpfem::physics::MieSphere::d |
internal-field coefficients, order n at index n − 1
| Complex hpfem::physics::MieSphere::eps_r {1.0, 0.0} |
relative permittivity of the sphere
| Real hpfem::physics::MieSphere::k = 0 |
background wavenumber \( n_b k_0 \) [1/m]
| Complex hpfem::physics::MieSphere::m {1.0, 0.0} |
relative refractive index
| Real hpfem::physics::MieSphere::radius = 0 |
a [m]