MeshReport
MeshReport(
lattice,
n_nodes,
n_cells,
cells_per_level,
cell_levels,
off_lattice_nodes,
duplicate_nodes,
split_edges,
hanging_nodes,
balance_violations,
orthogonality,
non_orthogonal_edges,
max_allowed_orthogonality,
clockwise_cells,
unrecognised_cells,
closable_holes,
)Result of :func:check.
Locations are coordinates (x, y) in the CRS of the mesh, so they can be shown on a map.
Attributes
| Name | Type | Description |
|---|---|---|
| lattice | Lattice | The lattice the mesh was checked against. |
| n_nodes, n_cells | int | Number of nodes and cells of the mesh. |
| cells_per_level | dict of int to int | Number of cells per refinement level; a transition cell counts at the level of the lattice square it lies in. |
| cell_levels | numpy.ndarray of int, shape (m,) | Refinement level of the lattice square each cell lies in; -1 for unrecognised cells. |
| off_lattice_nodes | numpy.ndarray of float, shape (k, 2) | Nodes that are not lattice points. |
| duplicate_nodes | numpy.ndarray of float, shape (k, 2) | Nodes at the same lattice point as another node (one row per extra node). Information only: cells that touch only in such a point lose nothing, as flow goes through edges (see split_edges). |
| split_edges | numpy.ndarray of float, shape (k, 2) | Midpoints of edges that lie on top of another edge with different nodes: an internal wall that flow cannot cross. |
| hanging_nodes | numpy.ndarray of float, shape (k, 2) | Nodes that lie inside an edge of a cell instead of at its ends. |
| balance_violations | numpy.ndarray of float, shape (k, 2) | Midpoints of sides where a lattice square meets a square more than one level coarser (2:1 balance). |
| orthogonality | numpy.ndarray of float, shape (e,) | FM orthogonality of every internal edge (an edge of exactly two cells); inf for a degenerate edge. |
| non_orthogonal_edges | numpy.ndarray of float, shape (k, 2) | Midpoints of internal edges with an orthogonality above :attr:max_allowed_orthogonality or that are degenerate. |
| max_allowed_orthogonality | float | Threshold D-Flow FM applies, 0.30. |
| clockwise_cells | numpy.ndarray of int | Cells whose nodes are not counterclockwise (clockwise or zero area). |
| unrecognised_cells | numpy.ndarray of int | Cells that are neither a lattice square nor part of a group of transition cells that fills one; their level is unknown, so they are left out of cells_per_level and the 2:1 check. |
| closable_holes | numpy.ndarray of float, shape (k, 2) | Centres of holes that MeshKernel makes a cell of when it builds the cells from nodes and edges, as hydrolib (mesh2d_from_netcdf) and the D-HYDRO GUI do: a ring of at most six nodes around no cell. Information only: a hole of four nodes becomes an ordinary cell, but one of five or six nodes can be a cell D-Flow FM rejects as not orthogonal. |
Methods
| Name | Description |
|---|---|
| summary | Describe the report in a few lines of text. |
summary
MeshReport.summary()Describe the report in a few lines of text.
Returns
| Name | Type | Description |
|---|---|---|
| str | Lattice, cells per level and the number of problems per check. |