cherab.phix.tools.raytransfer.import_phix_rtc#
- cherab.phix.tools.raytransfer.import_phix_rtc(parent, equilibrium=None, grid_size=0.002)Source#
This is a helper function to easily set up the RayTransfer Cylinder object on PHiX configuration.
This function returns a instance of
RayTransferCylinderobject, the mask property of which is defined to cut out the limiter. The spatial resolution of the grid is only in the radial and Z-axis directions.- Parameters:
parent (Node) – Raysect’s scene-graph parent node
equilibrium (EFITEquilibrium | None) –
EFITEquilibriumobject, by default the instance loaded byimport_equilibriumfunction.grid_size (float) – 1 voxel size \((dr=dz)\), by default
2.0e-3[m]
- Returns:
cherab’s Ray Transfer Cylinder object
- Return type:
Examples
from raysect.optical import World from cherab.phix.tools.raytransfer import import_phix_rtc world = World() rtc = import_phix_rtc(world) rtc.bins 13326
The grid shape and steps is as follows:
rtc.material.grid_shape (90, 1, 165) rtc.material.grid_steps (0.002, 360.0, 0.002)