|
hp-FEM
Adaptive hp-FEM suite for nano-optics
|
#include <cmath>#include <complex>#include <vector>#include "hpfem/core/error.hpp"#include "hpfem/core/types.hpp"
Go to the source code of this file.
Namespaces | |
| namespace | hpfem |
Functions | |
| Real | hpfem::cyl_bessel_j (Real nu, Real x) |
| Real | hpfem::cyl_neumann (Real nu, Real x) |
| Real | hpfem::sph_bessel (unsigned order, Real x) |
Spherical Bessel function of the first kind \( j_n(x) \), x ≥ 0 (std::sph_bessel). | |
| Real | hpfem::sph_neumann (unsigned order, Real x) |
Spherical Bessel function of the second kind \( y_n(x) \), x > 0 (std::sph_neumann). | |
| Real | hpfem::bessel_j (int order, Real x) |
| Real | hpfem::bessel_y (int order, Real x) |
| Bessel function of the second kind \( Y_n(x) \), x > 0, any integer order. | |
| Real | hpfem::bessel_j_derivative (int order, Real x) |
| Derivative \( J_n'(x) = J_{n-1}(x) - \frac{n}{x} J_n(x) \). | |
| Complex | hpfem::hankel1 (int order, Real x) |
| Hankel function of the first kind \( H_n^{(1)}(x) = J_n(x) + iY_n(x) \), x > 0. | |
| Complex | hpfem::hankel1_derivative (int order, Real x) |
| Derivative \( H_n^{(1)\prime}(x) = H_{n-1}^{(1)}(x) - \frac{n}{x} H_n^{(1)}(x) \). | |
| Real | hpfem::spherical_bessel_j (int order, Real x) |
| Spherical Bessel function of the first kind \( j_n(x) \), n ≥ 0, real x ≥ 0. | |
| Real | hpfem::spherical_bessel_y (int order, Real x) |
| Spherical Bessel function of the second kind \( y_n(x) \), n ≥ 0, x > 0. | |
| Complex | hpfem::spherical_hankel1 (int order, Real x) |
| std::vector< Complex > | hpfem::spherical_bessel_j (int max_order, Complex z) |
| std::vector< Real > | hpfem::bessel_i_scaled (int max_order, Real x) |
Cylindrical Bessel and Hankel functions of real argument (line sources, Mie series for the cylinder) and spherical Bessel functions of real and complex argument (Mie series for the sphere). Thin wrappers around the C++17 special functions of the standard library (available in libstdc++ and the MSVC STL); with libc++ (Apple Clang), which lacks them, around Boost.Math in standalone mode (HPFEM_USE_BOOST_MATH, set by cmake/Dependencies.cmake). Code outside this header calls hpfem::cyl_bessel_j etc., never the std:: functions directly. Convention exp(−iωt): \( H_n^{(1)} = J_n + iY_n \) is outgoing.