openmc.lib.SolidRayTracePlot

class openmc.lib.SolidRayTracePlot(uid=None, new=True, index=None)[source]

Solid ray-traced plot stored internally.

This class exposes a solid ray-traced plot that is stored internally in the OpenMC library. To obtain a view of an existing plot with a given ID, use the openmc.lib.plots mapping.

Parameters:
  • uid (int or None) – Unique ID of the plot

  • new (bool) – When index is None, this argument controls whether a new object is created or a view of an existing object is returned.

  • index (int or None) – Index in the internal plots array.

Variables:
  • id (int) – Unique ID of the plot.

  • pixels (tuple of int) – Plot image dimensions as (width, height).

  • color_by (int) – Coloring mode. Use COLOR_BY_MATERIAL or COLOR_BY_CELL.

  • camera_position (tuple of float) – Camera position as (x, y, z).

  • look_at (tuple of float) – Point the camera is aimed at as (x, y, z).

  • up (tuple of float) – Up direction as (x, y, z).

  • light_position (tuple of float) – Position of the light source as (x, y, z).

  • fov (float) – Horizontal field-of-view angle in degrees.

  • diffuse_fraction (float) – Fraction of reflected light treated as diffuse (0 to 1).