cherab.imas.wall.load_wall_meshยถ
-
cherab.imas.wall.load_wall_mesh(*args, time: float =
0, occurrence: int =0, desc_ggd_index: int =0, subsets: list[str] | None =None, materials: dict[str, Material] | None =None, time_threshold: float =inf, parent: _NodeBase | None =None, **kwargs) dict[str, Mesh]Sourceยถ Load machine wall components from IMAS wall IDS and Create Raysect mesh primitives.
- Parameters:
- *argsยถ
Arguments passed to the
DBEntryconstructor.- time: float =
0ยถ Time for the wall, by default 0.
- occurrence: int =
0ยถ Occurrence index of the
wallIDS, by default 0.- desc_ggd_index: int =
0ยถ Index of
description_ggd, by default 0.- subsets: list[str] | None =
Noneยถ List of names of specific ggd subsets to load, by default None (loads all subsets).
- materials: dict[str, Material] | None =
Noneยถ Optional dictionary with Raysect materials for each wall component, by default None. Use component names as keys. The components are split by their grid subsets and for each grid subset by materials. All elements of the grid subset that share the same material are combined into a single component. The component names are assigns as follows:
"{grid_name}.{subset_name}.{material_name}"E.g.:"TokamakWall.full_main_chamber_wall.Be".- time_threshold: float =
infยถ Maximum allowed difference between the requested time and the nearest available time, by default
numpy.inf.- parent: _NodeBase | None =
Noneยถ Parent node in the Raysect scene graph, by default None. Normally,
Worldinstance.- **kwargsยถ
Keyword arguments passed to the
DBEntryconstructor.
- Returns:
dict[str, Mesh] โ Dictionary with the Raysect Mesh instances.
Examples
>>> from raysect.optical import World >>> world = World() >>> meshes = load_wall_mesh( ... "imas:hdf5?path=/work/imas/shared/imasdb/ITER_MD/3/116100/1001/", "r", parent=world ... ) >>> meshes {'FullTokamak.none.none': <raysect.primitive.mesh.mesh.Mesh at 0x1766322a0>}