hp-FEM
Adaptive hp-FEM suite for nano-optics
Loading...
Searching...
No Matches
prediction.hpp
Go to the documentation of this file.
1#pragma once
12
13#include <span>
14#include <vector>
15
18#include "hpfem/core/types.hpp"
19
20namespace hpfem::adaptivity {
21
23 Real gamma_h = 2.0;
24 Real gamma_p = 0.63;
25 Real gamma_n = 1.0;
26};
27
31[[nodiscard]] std::vector<Real> predict_indicators(std::span<const Real> indicators,
32 std::span<const int> orders, const HpStep& hp,
33 const PredictionOptions& options = {});
34
39[[nodiscard]] HpDecision hp_decide_by_prediction(std::span<const Real> indicators,
40 std::span<const Real> predicted,
41 std::span<const Index> marked);
42
43} // namespace hpfem::adaptivity
Definition axisymmetric_estimator.hpp:39
std::vector< Real > predict_indicators(std::span< const Real > indicators, std::span< const int > orders, const HpStep &hp, const PredictionOptions &options={})
HpDecision hp_decide_by_prediction(std::span< const Real > indicators, std::span< const Real > predicted, std::span< const Index > marked)
double Real
Definition types.hpp:15
Marked cells split by the smoothness indicator.
Definition smoothness.hpp:53
Result of an hp-refinement step: the mesh relation and the orders of the new cells.
Definition refinement.hpp:25
Definition prediction.hpp:22
Real gamma_n
factor for unchanged cells
Definition prediction.hpp:25
Real gamma_p
factor of the p-prediction (≈ √0.4: one order gains √0.4 of the error)
Definition prediction.hpp:24
Real gamma_h
factor of the h-prediction (per family, before the child split)
Definition prediction.hpp:23