Function t8_forest_element_volume

Function Documentation

double t8_forest_element_volume(t8_forest_t forest, t8_locidx_t ltreeid, const t8_element_t *element)

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

This is only an approximation.

Note

This function assumes d-linear interpolation for the tree vertex coordinates. forest must be committed when calling this function.

Parameters:
  • forest[in] The forest.

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

  • element[in] The element.

Returns:

The diameter of the element.