cherab.phix.machine.pfc_mesh.import_phix_mesh#

cherab.phix.machine.pfc_mesh.import_phix_mesh(world, override_materials=None, reflection=True)Source#

Import PHiX Plasma facing component meshes.

Each Meshes allow the user to use an user-defined material which inherites Material.

Parameters:
  • world (World) – The world scenegraph belonging to these materials.

  • override_materials (dict[str, Material] | None) – user-defined material. Set up like {"Vaccum Vessel": RoughSUS316L(0.05), ...}.

  • reflection (bool) – whether or not to consider reflection light, by default True. If False, all of meshes’ material are replaced to AbsorbingSurface

Returns:

containing mesh name and Mesh objects

Return type:

dict[str, list[Mesh]]

Examples

from raysect.optical import World
from cherab.phix.machine import import_phix_mesh

world = World()
meshes = import_phix_mesh(world, reflection=True)