Navigation: Scripting Reference Manual > Functions & Subroutines > ARNCompute3DGridWallCellStatistics

 

ARNCompute3DGridWallCellStatistics

 

Contact Us: fredsupport@photonengr.com

 

Description

Calculates the statistics of the data contained in a 3D Grid Wall ARN.

 

 

Syntax

ARNCompute3DGridWallCellStatistics arnNode, cellStats

 

 

Parameters

arnNode As Long

Node number of the ARN being queried for statistics.

 

cellStats As T_ARN_3DGRIDWALL_CELL_STATS

Data structure whose members contain the statistical results of the analysis.

 

 

Example

The following example performs a raytrace and then calculates and prints some statistical information about the data.

Sub Main()

 

    ClearOutputWindow

 

    'Delete existing rays and ARNs, trace new rayset

    EnableTextPrinting False

    DeleteRays()

    ARNDeleteAllNodes()

    TraceCreate

    EnableTextPrinting True

 

    'Retrieve the ARN created by 3D Box detector entity

    Dim Box3dDe As Long, arnNode As Long

    Box3dDe = FindFullName( "Analysis Surface(s).Detector Entity - 3x3" )

    arnNode = DEGetMostRecentARNNum( Box3dDe )

 

    'Calculate statistics

    Dim arn3Dstats As T_ARN_3DGRIDWALL_CELL_STATS

    ARNCompute3DGridWallCellStatistics(arnNode, arn3Dstats)

 

    'Print summary out

    Print "3D Box Statistics:"

    Print Chr(9) & "Average Cell Abs." & Chr(9) & arn3Dstats.AvgCellAbsorbedFlux

    Print Chr(9) & "Average Cell InFlux" & Chr(9) & arn3Dstats.AvgCellInFlux

    Print Chr(9) & "Average Cell OutFlux" & Chr(9) & arn3Dstats.AvgCellOutFlux

 

End Sub

 

 

See Also

T_ARN_3DGRIDWALL_CELL_STATS

All ARN Scripting Commands

 

 

 

 

 

Copyright © Photon Engineering, LLC