VolMesh.cell_centroid

VolMesh.cell_centroid(cell)[source]

Compute the location of the centroid of a cell.

Parameters

cell (hashable) – The identifier of the cell.

Returns

list – The coordinates of the centroid.