cherab.imas.ids.wall.load_wall_3dΒΆ

cherab.imas.ids.wall.load_wall_3d(description_ggd: IDSStructure, subsets: list[str] | None = None) dict[str, dict[str, ndarray]]SourceΒΆ

Load machine wall components from IMAS wall IDS.

Parameters:
description_ggd: IDSStructureΒΆ

A description_ggd structure from the β€˜wall’ IDS.

subsets: list[str] | None = NoneΒΆ

List of names of specific ggd subsets to load, by default None (loads all subsets).

Returns:

dict[str, dict[str, numpy.ndarray]] – Dictionary of wall components defined by vertices and triangles. The dictionary keys for components are assigns as follows: "{grid_name}.{subset_name}.{material_name}". So, the returning dictionary looks like:

{
    "FullTokamak.full_main_chamber_wall.Be": {
        "vertices": np.ndarray of shape (N, 3),
        "triangles": np.ndarray of shape (M, 3),
    },
    ...
}

Raises:

RuntimeError – If the grid_ggd AOS is empty in the given description_ggd.