|
hp-FEM
Adaptive hp-FEM suite for nano-optics
|
#include <smoothness.hpp>
Public Attributes | |
| int | extra_order = 2 |
| Quadrature degree 2p + extra_order (+2 on curved cells) for the coefficients. | |
| Real | smooth_threshold = 1.0 |
| Real | threshold_scale = 3.5 |
| int | min_decision_order = 2 |
| Real | floor = 1e-20 |
| Real | fit_from = 0.0 |
| int hpfem::adaptivity::SmoothnessOptions::extra_order = 2 |
Quadrature degree 2p + extra_order (+2 on curved cells) for the coefficients.
| Real hpfem::adaptivity::SmoothnessOptions::fit_from = 0.0 |
Lowest degree used in the fit, as a fraction of the cell order (rounded down): 0 fits all degrees, 0.5 the upper half, which measures the asymptotic decay rather than the drop from the dominant low modes.
| Real hpfem::adaptivity::SmoothnessOptions::floor = 1e-20 |
Degrees whose energy is below floor times the total are left out of the fit (a polynomial of lower degree has exactly vanishing higher coefficients).
| int hpfem::adaptivity::SmoothnessOptions::min_decision_order = 2 |
Cells below this order are p-refined without a decision: with one or two modes the decay of the Galerkin solution says nothing about the regularity.
| Real hpfem::adaptivity::SmoothnessOptions::smooth_threshold = 1.0 |
A cell counts as smooth (p-refinement) if its decay rate reaches smooth_threshold + threshold_scale / p_K: the asymptotic threshold of an analytic function (σ ≥ 1, Mavriplis) plus a correction for the finite number of modes, since the fit over few modes overestimates the decay of an algebraic (singular) sequence (calibrated on the corner singularity, docs/theory/hp-adaptivity.md#hp-decision).
| Real hpfem::adaptivity::SmoothnessOptions::threshold_scale = 3.5 |