fem.properties.cell_centroids
fem.properties.cell_centroids(points, cells)Element centroids, (C, 3), differentiable in points.
Computed from the element’s straight corners only: a TET10’s midside nodes would bias the mean away from the centroid of the straight-sided tet the mesher actually produced.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| points | Any | Node positions (N, 3) (may be traced). |
required |
| cells | Any | Connectivity (C, 8) (HEX8), (C, 4) or (C, 10) (tets). |
required |
Returns
| Name | Type | Description |
|---|---|---|
| Any | A JAX array of element centroids, (C, 3). |