Navigation: Scripting Reference Manual > Functions & Subroutines > SetSourceDirApodSampled

 

SetSourceDirApodSampled

 

Contact Us: fredsupport@photonengr.com

 

Description

Sets the power data for a source with a "Sampled as a function of spherical angles" power direction apodization type.

 

Syntax

SetSourceDirApodSampled n, angles, dirXX, dirXY, dirXZ, dirZX, dirZY, dirZZ

 

Parameters

n As Long

Node number of the source.

 

angles() As Double

The array of polar angles, azimuth angles, and apodization values.  See the Remarks section.

 

dirXX As Double

The new X component of the azimuth axis direction vector.

 

dirXY As Double

The new Y component of the azimuth axis direction vector.

 

dirXZ As Double

The new Z component of the azimuth axis direction vector.

 

dirZX As Double

The new X component of the polar axis direction vector.

 

dirZY As Double

The new Y component of the polar axis direction vector.

 

dirZZ As Double

The new Z component of the polar axis direction vector.

 

Remarks

This subroutine sets the power data for a source with a "Sampled as a function of spherical angles" power direction apodization type. If there is a problem the subroutine sets an error and returns without modifying the source.

 

The first column of data array is the polar angles (degrees).  The first row is the azimuthal angles (degrees).  The remainder of the array is the apodization values at the corresponding polar and azimuthal angles.

 

See Also

GetSourceDirApodSampled

IsSourceDirApodSampled

Examples

Sources

 

 

 

 

 

Copyright © Photon Engineering, LLC