cherab.imas.ids.common.ggd.load_unstruct_grid_2dΒΆ
-
cherab.imas.ids.common.ggd.load_unstruct_grid_2d(grid_ggd: IDSStructure, space_index: int =
0, with_subsets: bool =False) UnstructGrid2D | tuple[UnstructGrid2D, dict[str, ndarray[tuple[Any, ...], dtype[int32]]], dict[str, int]]SourceΒΆ Load unstructured 2D grid from the grid_ggd structure.
- Parameters:
- Returns:
grid (
UnstructGrid2D) β Unstructured 2D grid object.subsets (
dict[str, NDArray[numpy.int32]]) β Dictionary with grid subsets for each subset name containing the indices of the cells from that subset. Note that βCellsβ subset is included only if cell indices are specified.subset_id (
dict[str, int]) β Dictionary with grid subset indices.
- Raises:
ValueError β If the specified space does not contain a 2D grid.