hp-FEM
Adaptive hp-FEM suite for nano-optics
Loading...
Searching...
No Matches
Static Public Member Functions | Public Attributes | List of all members
hpfem::pml::PmlProfile Struct Reference

#include <pml.hpp>

Static Public Member Functions

static PmlProfile for_angle (Real theta_max, Real target, Real r_amplitude=1.0, int order=2)
 

Public Attributes

int order = 3
 m
 
Real reflection = 1e-8
 R_0, round-trip field reflection at normal incidence.
 

Detailed Description

Polynomial absorption profile \( \hat\sigma(d) = \hat\sigma_{\max}(d/\text{thickness})^m \) with \( \hat\sigma_{\max} = -\frac{(m+1)\ln R_0}{2\,k_0\,n\,\text{thickness}} \), so that a wave at normal incidence returns from the far end with amplitude ratio \( R_0 \). At the angle \( \theta \) against the layer normal the attenuation scales with \( \cos\theta \): the round trip leaves \( R_0^{\cos\theta} \) and the far wall receives the one-way field \( R_0^{\cos\theta/2} \), so a reflectance computed with the layer is wrong by up to \( 2|r|R_0^{\cos\theta/2} \) ( \( r \) the reflection amplitude of the structure). Choose \( R_0 \) for the largest angle that occurs (for_angle); the thickness only sets how steep the profile is (docs/theory/pml.md, "Oblique incidence").

Member Function Documentation

◆ for_angle()

static PmlProfile hpfem::pml::PmlProfile::for_angle ( Real  theta_max,
Real  target,
Real  r_amplitude = 1.0,
int  order = 2 
)
static

\( R_0 \) such that the reflectance error of the layer stays below target up to the incidence angle theta_max [rad] against the layer normal for a structure of reflection amplitude r_amplitude: \( R_0 = (\text{target} / (2 r))^{2/\cos\theta_{\max}} \), clamped to \( [10^{-300}, 1) \). Steep profiles need thick layers: check PmlBox::max_resolution or use PmlBox::recommended_thickness with the profile.

Exceptions
InvalidArgumentfor θ outside [0, π/2), target ≤ 0, r ≤ 0 or order < 1.

Member Data Documentation

◆ order

int hpfem::pml::PmlProfile::order = 3

m

◆ reflection

Real hpfem::pml::PmlProfile::reflection = 1e-8

R_0, round-trip field reflection at normal incidence.


The documentation for this struct was generated from the following file: