Navigation: Scripting Reference Manual > Functions & Subroutines > VectorFieldToFileAS

 

VectorFieldToFileAS

 

Contact Us: fredsupport@photonengr.com

 

Description

Alternate form of VectorFieldToFile. Computes the vector field using an Analysis Surface and writes the result either to a file or the Chart Viewer.  Depending on the number of rays traced, it may be necessary to dimension ray index and ray counter variables as data type Huge_ instead of Long.  Please see Multi-threaded Raytracing for more information.

 

Syntax

count = VectorFieldToFileAS( anaNode, fname )

 

Parameters

count (Long or Huge_)

Number of rays included in the analysis.

 

anaNode As Long

Node number of Analysis Surface. All Ray Specifications are applied.

 

fname As String

File name where plot file is to be saved. If string is empty, results are routed directly to Chart.

 

Remarks

Computes the vector field using an Analysis Surface and its Ray Specification filters. The result is written to either a plot file or directly to the Chart Viewer.

 

Multiple wavelengths

When a coherent field calculation encounters multiple wavelengths, the calculation will proceed using only the first wavelength which satisfies the ray filter criteria.  A warning dialog will be displayed which provides the wavelength range and the value used in the calculation (to 7 significant digits).  All other wavelengths are ignored.

 

Vector Field File

The header of the *.fgd output for a vector field contains the following lines:

A_AXIS_DIM = m

..

..

B_AXIS_DIM = n

..

..

BeginData

These lines indicate that m is the number of pixels in the X-direction and n is the number of pixels in the Y-direction.  After the line BeginData there are n rows with 6*m columns per row, with each group of 6 corresponding to the values of X(Re), X(Im), Y(Re), Y(Im), Z(Re) and Z(Im).

 

See Also

VectorField

VectorFieldToFile

Irradiance

IrradianceToFile

VectorFieldToARN

IrradianceToFileAS

Intensity

EnergyDensity

ScalarField

ScalarFieldToFile

ScalarFieldToFileAS

ColorImage

ColorImageToFile

ColorImageToFileAS

LoadAnalysis

SetAnalysisParameters

T_ANALYSIS

CoherentRaySize

DisplayPlotFile

 

 

 

 

 

Copyright © Photon Engineering, LLC