Grid: add cells_connectivity and cells_definition
This PR adds two missing Grid properties:
-
cells_connectivity
: connectivity array as used by ESMF and VTK -
cells_definition
: cell definition as used by PyVista and legacy VTK -
cells_offset
: location of the start of each cell incells_connectivity
I also added convenience functions and constants to grid_tools
:
-
get_cells_matrix
: convertcells_connectivity
orcells_definition
back to the default cells matrix used in the Grid class (can be used to convert VTK-grids into FINAM-grids) -
INV_VTK_TYPE_MAP
: Inverse mapping toVTK_TYPE_MAP
: FINAM cell type to VTK cell type -
VTK_CELL_DIM
: parametric dimension for each VTK cell type
Edited by Sebastian Müller
Merge request reports
Activity
Filter activity
changed milestone to %v1.0
assigned to @muellese
requested review from @mlange
@muellese Don't forget to update the changlog!
😉 added 1 commit
- 2eae07e5 - grid_tools: add INV_VTK_TYPE_MAP and VTK_CELL_DIM maps for VTK conversion
added 3 commits
-
b073f2ab...51cfb36b - 2 commits from branch
main
- 08cdfec4 - Merge branch 'main' into 'add_grid_cells_connectivity'
-
b073f2ab...51cfb36b - 2 commits from branch
mentioned in commit a4b765ba
Please register or sign in to reply