/var/www2/hermes2d/hermes2d/src/refinement_type.h File Reference
Go to the source code of this file.
Define Documentation
| #define H2D_MAX_ELEMENT_SONS 4 |
A maximum number of sons of an element.
Enumeration Type Documentation
Possible refinements of an element.
- Enumerator:
| H2D_REFINEMENT_P |
P-refinement.
|
| H2D_REFINEMENT_H |
H-refinement.
|
| H2D_REFINEMENT_ANISO_H |
ANISO-refienement. The element is split along the horizontal axis. Quadrilaterals only.
|
| H2D_REFINEMENT_ANISO_V |
ANISO-refienement. The element is split along the vertical axis. Quadrilaterals only.
|
Function Documentation
| H2D_API int get_refin_sons |
( |
const int |
refin_type |
) |
|
Returns a maximum number of sons that will be generated if a given refinement is applied.
- Parameters:
-
| [in] | refin_type | A refinement type. Possible values are defined in the enum RefinementType. |
- Returns:
- A number of possible sons. In a case of P-refinement, the function returns 1 even thought this refinement yields just a change in orders.
| H2D_API const std::string get_refin_str |
( |
const int |
refin_type |
) |
|
Returns a string representation of the refinement.
Used for debugging and event logging purposes.
- Parameters:
-
| [in] | refin_type | A refinement type. Possible values are defined in the enum RefinementType. |
- Returns:
- A string representation of a given refinement.
| H2D_API bool is_refin_aniso |
( |
const int |
refin_type |
) |
|
Retuns true if a given refinement is an ANISO-refinement.
- Parameters:
-
| [in] | refin_type | A refinement type. Possible values are defined in the enum RefinementType. |
- Returns:
- True of a given refinement is an ANISO-refinement.