Navigation: Scripting Reference Manual > Functions & Subroutines > GetPolarization

 

GetPolarization

 

Contact Us: fredsupport@photonengr.com

 

Description

Retrieves the polarization state for a specified ray in the ray buffer.  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

GetPolarization id, polar

 

Parameters

id As Long (or Huge_)

Ray identifier.

 

polar As T_POLARIZE

Structure containing the polarization data for the specified ray.

 

Remarks

This subroutine retrieves the polarization state for a specific ray in the ray buffer and stores that data in the parameter polar.  If there is a problem, an error is posted and the subroutine returns without modifying polar.

 

The information returned by this subroutine is in a more conventional form than the information returned by GetPolarization2.

 

In general, the polarized field is defined as

 

E = Sqrt(rayflux) × (ap p + as s + ad d) × Exp[i(2p/l)×OPL]

 

where d is the ray direction and s x p = d,

 

ap = pAmpReal + i pAmpImag,

as = sAmpReal + i sAmpImag,

s || p  and ad = 0 except in birefringent media.

 

 

See Also

T_POLARIZE

GetPolarization2

Examples

General Raydata

 

 

 

 

 

Copyright © Photon Engineering, LLC