Function t8_forest_element_face_area

Function Documentation

double t8_forest_element_face_area(t8_forest_t forest, t8_locidx_t ltreeid, const t8_element_t *element, int face)

Compute the area of an element’s face if a geometry for this tree is registered in the forest’s cmesh.

Currently implemented for 2D elements only. This is only an approximation.

Parameters:
  • forest[in] The forest.

  • ltreeid[in] The forest local id of the tree in which the element is.

  • element[in] The element.

  • face[in] A face of element.

Returns:

The area of face. forest must be committed when calling this function.