hp-FEM
Adaptive hp-FEM suite for nano-optics
Loading...
Searching...
No Matches
Public Attributes | List of all members
hpfem::adaptivity::SmoothnessOptions Struct Reference

#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
 

Member Data Documentation

◆ extra_order

int hpfem::adaptivity::SmoothnessOptions::extra_order = 2

Quadrature degree 2p + extra_order (+2 on curved cells) for the coefficients.

◆ fit_from

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.

◆ floor

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).

◆ min_decision_order

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.

◆ smooth_threshold

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).

◆ threshold_scale

Real hpfem::adaptivity::SmoothnessOptions::threshold_scale = 3.5

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