Calculating E-field components in script

This knowledge base article demonstrates a script utility which calculates the Re{} and Im{} components of the E field along the s, p, x and y directions for each ray in the ray buffer.  In the GUI this information is printed to the output window using the Ray Report Detail feature (Menu > Tools > Reports > Ray Detail (for one ray)), but there is no direct access to this information from the scripting language.

Calculating Ex Ey PDF

Download the calcRayFieldComponents FRED script

Download the calculateExEy.frd FRED file