PyPO User Manual
Hybrid RT/PO Methods

This section contains a list of public PyPO methods which employ both ray tracing (RT) and physical optics (PO). More...

Functions

def PyPO.System.System.runHybridPropagation (self, dict hybridDict)
 Perform a hybrid RT/PO propagation, starting from a reflected field and set of Poynting vectors. More...
 
np.ndarray PyPO.System.System.interpFrame (self, str name_fr_in, str name_field, str name_target, str name_out, FieldComponents comp=FieldComponents.NONE, str method="nearest")
 Interpolate a frame and an associated field on a regular surface. More...
 

Detailed Description

This section contains a list of public PyPO methods which employ both ray tracing (RT) and physical optics (PO).

Function Documentation

◆ interpFrame()

np.ndarray PyPO.System.System.interpFrame (   self,
str  name_fr_in,
str  name_field,
str  name_target,
str  name_out,
FieldComponents   comp = FieldComponents.NONE,
str   method = "nearest" 
)

Interpolate a frame and an associated field on a regular surface.

The surface should be the target on which the input frame is calculated. The "name_field" should be an associated field, calculated in the same hybrid propagation as "name_fr_in".

Parameters
name_fr_inName of input frame.
name_fieldName of field object, propagated along with the frame by multiplication.
name_targetName of surface on which to interpolate the field.
name_outName of output field object in target surface.
compComponent of field to interpolate. Instance of FieldComponents enum object.
methodMethod for the interpolation.
Returns
out Complex numpy array containing interpolated field.

◆ runHybridPropagation()

def PyPO.System.System.runHybridPropagation (   self,
dict  hybridDict 
)

Perform a hybrid RT/PO propagation, starting from a reflected field and set of Poynting vectors.

The propagation is done by performing a ray trace from the starting frame into the target surface. Then, the starting reflected field is propagated to the target by multiplying each point on the field by the phase factor corresponding to the travel length of the Poynting vector ray associated to the point on the field. Stores name of resultant field and frame in the internal association dictionary as two associated objects. The name of the association is the surface on which both the target frame and field are defined.

Parameters
hybridDictA hybridDict dictionary.