fem.aspect_ratios
fem.aspect_ratios(points, cells)
Per-element edge aspect ratio of each hex.
The ratio of the longest to the shortest of the twelve element edges. A perfect cube scores 1.0; larger is worse.
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 | Aspect ratio per cell, shaped (C,), at least 1.0. |