|
hp-FEM
Adaptive hp-FEM suite for nano-optics
|
#include <material.hpp>
Public Member Functions | |
| Material ()=default | |
| Vacuum. | |
| Material (Complex eps_r, Complex mu_r) noexcept | |
| Isotropic medium with permittivity εr and permeability μr. | |
| bool | is_isotropic () const noexcept |
| Complex | eps_scalar () const |
| Complex | mu_scalar () const noexcept |
| Permeability μr (always scalar). | |
| Tensor3 | eps_tensor () const |
| Permittivity tensor: εr·I for an isotropic medium. | |
| Tensor3 | mu_inv_tensor () const |
| Inverse permeability tensor \( \mu_r^{-1} I \). | |
| Complex | refractive_index () const |
| Material & | set_eps_scalar (Complex eps_r) noexcept |
| Makes the medium isotropic with permittivity εr (drops a tensor). | |
| Material & | set_mu (Complex mu_r) noexcept |
| bool | operator== (const Material &other) const |
| Same kind and the same parameters (tensors compared entry by entry). | |
Static Public Member Functions | |
| static Material | isotropic (Complex eps_r, Complex mu_r=Complex{1.0, 0.0}) noexcept |
| static Material | anisotropic (const Tensor3 &eps_r, Complex mu_r=Complex{1.0, 0.0}) |
| static Material | vacuum () noexcept |
| static Material | dielectric (Real n) noexcept |
| Lossless non-magnetic dielectric of refractive index n. | |
Relative material parameters of a medium: an isotropic permittivity εr or a symmetric permittivity tensor (a crystal, ADR-0015), and a scalar permeability μr.
The scalar accessors eps_scalar() and refractive_index() throw AnisotropicUnsupported for a tensor material: a feature that has not been migrated to tensors fails instead of computing with a wrong scalar. Tensor-aware code uses eps_tensor() / mu_inv_tensor(), which work for both kinds. Isotropic materials carry no tensor and stay as small and fast as before.
|
default |
Vacuum.
Isotropic medium with permittivity εr and permeability μr.
|
static |
Medium with the relative permittivity tensor eps_r in the laboratory frame and the scalar permeability μr. The tensor stays a tensor even if it is a multiple of the identity (the isotropic limit of the tensor path).
| InvalidArgument | for a non-finite or non-symmetric tensor (gyrotropic media, \( \varepsilon \ne \varepsilon^T \), are out of scope, ADR-0015 §3). |
Lossless non-magnetic dielectric of refractive index n.
|
inline |
Scalar permittivity εr of an isotropic medium.
| AnisotropicUnsupported | for a tensor material. |
|
inline |
Permittivity tensor: εr·I for an isotropic medium.
|
inlinenoexcept |
|
inlinestaticnoexcept |
|
inline |
Inverse permeability tensor \( \mu_r^{-1} I \).
|
inlinenoexcept |
Permeability μr (always scalar).
| bool hpfem::materials::Material::operator== | ( | const Material & | other | ) | const |
Same kind and the same parameters (tensors compared entry by entry).
|
inline |
Refractive index \( n = \sqrt{\varepsilon_r \mu_r} \) (principal branch).
| AnisotropicUnsupported | for a tensor material. |
Makes the medium isotropic with permittivity εr (drops a tensor).
|
inlinestaticnoexcept |