Hermes2D
2.0
|
Refinement selectors allows to select a refinement according to an error of a candidate. More...
Namespaces | |
namespace | Hermes::Hermes2D::RefinementSelectors |
Namespace which encapsulates all refinement selectors. | |
Macros | |
#define | H2DRS_MAX_ORDER_INC 1 |
Maximum increase of an order in candidates. | |
#define | H2DRS_DEFAULT_ERR_WEIGHT_H 2.0 |
A default multiplicative coefficient of an error of a H-candidate. | |
#define | H2DRS_DEFAULT_ERR_WEIGHT_P 1.0 |
A default multiplicative coefficient of an error of a P-candidate. | |
#define | H2DRS_DEFAULT_ERR_WEIGHT_ANISO 1.414214 |
A default multiplicative coefficient of an error of a ANISO-candidate. | |
#define | H2DRS_DEFAULT_ORDER -1 |
A default order. Used to indicate an unkonwn order or a maximum support order. | |
#define | H2DRS_MAX_ORDER 9 |
A maximum order suported by refinement selectors. | |
Typedefs | |
typedef double | Hermes::Hermes2D::RefinementSelectors::CandElemProjError [H2DRS_MAX_ORDER+2][H2DRS_MAX_ORDER+2] |
Error of an element of a candidate for various permutations of orders. More... | |
Functions | |
HERMES_API const char * | Hermes::Hermes2D::RefinementSelectors::get_cand_list_str (const CandList cand_list) |
Returns a string representation of a predefined candidate list. More... | |
HERMES_API bool | Hermes::Hermes2D::RefinementSelectors::is_hp (const CandList cand_list) |
Returns true if a predefined candidate list may contain candidates that are HP. More... | |
HERMES_API bool | Hermes::Hermes2D::RefinementSelectors::is_p_aniso (const CandList cand_list) |
Returns true if a predefined candidate list may contain candidates with an anisotropic change of orders. More... | |
Variables | |
static const int | Hermes::Hermes2D::RefinementSelectors::ProjBasedSelector< Scalar >::H2DRS_VALCACHE_INVALID = 0 |
State of value cache: item contains undefined or invalid value. | |
static const int | Hermes::Hermes2D::RefinementSelectors::ProjBasedSelector< Scalar >::H2DRS_VALCACHE_VALID = 1 |
State of value cache: item contains a valid value. | |
static const int | Hermes::Hermes2D::RefinementSelectors::ProjBasedSelector< Scalar >::H2DRS_VALCACHE_USER = 2 |
State of value cache: the first state ID which can be used by the user. | |
Refinement selectors allows to select a refinement according to an error of a candidate.
The error is calculate by comparing a candidate projected to a reference solution with the reference solution. All selectors has to be derived from the class Selector. An instance of a selector should be created outside the adaptivity loop in order to save initialization time.
Currently available selectors:
typedef double Hermes::Hermes2D::RefinementSelectors::CandElemProjError[H2DRS_MAX_ORDER+2][H2DRS_MAX_ORDER+2] |
Error of an element of a candidate for various permutations of orders.
If not noted otherwise, the first index is the horizontal order, the second index is the vertical order. The maximum allowed order is H2DRS_MAX_ORDER + 1.
Definition at line 31 of file proj_based_selector.h.
Predefined list of candidates.
Definition at line 30 of file optimum_selector.h.
Options of the selector.
Enumerator | |
---|---|
H2D_PREFER_SYMMETRIC_MESH |
Prefer symmetric mesh when selection of the best candidate is done. If two or more candiates has the same score, they are skipped. This option is set by default. |
H2D_APPLY_CONV_EXP_DOF |
Use , where is the convergence exponent, instead of to evaluate the score in the method OptimumSelector::evaluate_cands_score(). This option is not set by default. |
Definition at line 43 of file optimum_selector.h.
HERMES_API const char * Hermes::Hermes2D::RefinementSelectors::get_cand_list_str | ( | const CandList | cand_list | ) |
Returns a string representation of a predefined candidate list.
Used for debugging and output purposes.
cand_list | A predefined list of candidates. |
Definition at line 17 of file optimum_selector.cpp.
Referenced by Hermes::Hermes2D::RefinementSelectors::ProjBasedSelector< Scalar >::calc_projection_errors().
HERMES_API bool Hermes::Hermes2D::RefinementSelectors::is_hp | ( | const CandList | cand_list | ) |
Returns true if a predefined candidate list may contain candidates that are HP.
cand_list | A predefined list of candidates. |
Definition at line 35 of file optimum_selector.cpp.
HERMES_API bool Hermes::Hermes2D::RefinementSelectors::is_p_aniso | ( | const CandList | cand_list | ) |
Returns true if a predefined candidate list may contain candidates with an anisotropic change of orders.
cand_list | A predefined list of candidates. |
Definition at line 51 of file optimum_selector.cpp.