fem.scaled_jacobians
fem.scaled_jacobians(points, cells)
Per-element scaled Jacobian quality metric of each hex.
At each of the eight corners the Jacobian determinant (the corner-tet volume of :func:corner_tet_volumes) is normalized by the product of the lengths of the three edges meeting at that corner; the element value is the minimum over its corners. A perfect cube scores 1.0; values approach 0 as corners flatten and turn negative on inversion.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| points | np.ndarray | Vertex positions, (N, 3). |
required |
| cells | np.ndarray | HEX8 connectivity, (C, 8). |
required |
Returns
| Name | Type | Description |
|---|---|---|
| np.ndarray | Scaled Jacobian per cell, shaped (C,), in [-1, 1]. |