Navigation: Scripting Reference Manual > Functions & Subroutines > SetSourcePosGridHex

 

SetSourcePosGridHex

 

Contact Us: fredsupport@photonengr.com

 

Description

Sets the position data for a source with a Hexagonal Plane ray position type.

 

Syntax

SetSourcePosGridHex n, cellSemiWidth, semiWidthX, semiWidthY, isEllipse

 

Parameters

n As Long

Node number of the source.

 

cellSemiWidth As Double

The new semi-aperture of one hexagonal cell.

 

semiWidthX As Double

The new X outer semi-aperture.

 

semiWidthY As Double

The new Y outer semi-aperture.

 

isEllipse As Boolean

The new aperture shape. Set to True for elliptical apertures, False for rectangular ones.

 

Remarks

This subroutine sets the position data for a source with a Hexagonal Plane ray position type, i.e. a plane containing a grid of ray positions arranged in a hexagonal pattern. If there is a problem the subroutine returns without modifying the source or setting an error.

 

See Also

IsSourcePosGridHex

GetSourcePosGridHex

Examples

Sources

 

 

 

 

 

Copyright © Photon Engineering, LLC