Scripted Encircled Energy for ARNs

This knowledge base article demonstrates how to calculate the encircled energy in an ARN by scripting.  The FRD file contains a simple gaussian source and analysis surface as well as an embedded script.  The embedded script will calculate the irradiance on the analysis surface and store the result in an Analysis Result Node (ARN), after which it creates a library object from the attached script file “encircledEnergy.frs” and calls the encircled energy subroutine from it.  When the encircled energy subroutine is finished, the two array arguments that are passed to it will have been populated with the radii and fractional encircled energy values.

Download the FRED Script: encircledEnergy.frs

Download the FRED document: encircledEnergyExample.frd