RayZaler 0.1
The free opto-mechanical simulation framework
Obstruction

Flat obstacle to the passage of light.

Specialization of OpticalElement



Details

Obstruction is an element that can be used to model arbitrary 2D obscurations in the light path. Usually, Obstruction is instanced with the path of a grayscale PNG image file, in which the intensity of each pixel encodes a transmission probability in that location: shades of gray vary the transmission from no transmission (black) to full transmission (white).

Although there is freedom in the choice of a bit depth of the image, RayZaler will only take into account the 16 most significant bits of the pixel value.

If no path is specified, Obstruction represents a perfectly circular opaque disc. In any case, properties radius or diameter can be used to normalize the largest dimension (width or height) of the obstruction shape to a physical size.

Properties

NameDescriptionDefaultUnits
Obstruction
radius
Radius or half-length of the largest obstacle dimension 0.025m
diameter
Diameter or length of the lrgest obstacle dimension 0.05m
file
Path to the PNG file containing the shape of the obstace
Element
blue
Blue channel of the solid color of the element 0.250..1
green
Green channel of the solid color of the element 0.250..1
red
Red channel of the solid color of the element 0.250..1
shiny
Specular component intensity 630..127
specBlue
Blue channel of the specular color of the element 0.250..1
specGreen
Green channel of the specular color of the element 0.250..1
specRed
Red channel of the specular color of the element 0.250..1

Optical surfaces

  • stopSurf: ObstructionBoundary(CircularFlat, DummyEMInterface)