Description This subroutine modifies an existing Analysis Results Node by taking the 2D Fourier Transform of the data (axes and units are also properly transformed). The grid data must be complex. When working with non-complex data (ex. Irradiance) the ARNCreate2DComplexFromDouble routine can be used to quickly convert to an ARN which is suitable for a 2D FFT. Data slicing from a 3D analysis results dataset can also be performed via the ARNCreate2DComplexFromComplex3D routine.
Syntax ARNFFT2D arnNode
Parameters arnNode As Long Node number of the ARN whose data is being modified. This ARN is modified in place (no copy is made).
Example The following example creates several Analysis Results Nodes and manipulates their data by either taking a Log or performing an FFT.
Sub Main
ARNDeleteAllNodes() DeleteRays() TraceCreate()
Dim anaNode As Long anaNode = FindFullName( "Analysis Surface(s).DetectorAna" )
Dim rayCnt As Long Dim arnNode As Long rayCnt = IrradianceToARN( anaNode, "Detector Irradiance", arnNode )
'Log10 relative Dim newARN As Long newARN = ARNCreateCopy( arnNode, "Detector Irradiance Rel." ) ARNLog10WithRelativeFloor( newARN, 2, False, True ) ARNDisplayInChart( newARN, "" )
'Log10 absolute newARN = ARNCreateCopy( arnNode, "Detector Irradiance Abs." ) ARNLog10WithAbsoluteFloor( newARN, 66000, True, True ) ARNDisplayInChart( newARN, "" )
'FFT anaNode = FindFullName( "Analysis Surface(s).FFTAna" ) IrradianceToARN( anaNode, "Detector Irradiance", arnNode ) newARN = ARNCreate2DComplexFromDouble( arnNode ) ARNFFT2D( newARN ) ARNDisplayInChart( newARN, "" )
End Sub
See Also
|