Electromagnetic Template Library (EMTL)
Loading...
Searching...
No Matches
ray_t Struct Reference

Ray structure. More...

#include <ray_tracing.h>

Public Member Functions

 ray_t (Vector_3 E_, Vector_3 k_, Vector_3 pos_, valtype a_=1, int bounce_=0, int *pcell_=NULL)
 constructs a ray of amplitude a propagating in direction k and linearly polarized in direction E.
 

Public Attributes

Vector_3 k
 normalized ray direction (Z)
 
Vector_3 E
 normalized axis direction for reference polarization, normal to k (X)
 
valtype a
 ray amplitude
 
Vector_3 S
 3D part of the Stokes vector a^2*(1,S[0],S[1],S[2]) normalized on intensity a^2 in the basis (E,kE,k)
 
Vector_3 pos
 current ray starting position
 
int bounce
 number of scattering events for this ray (inherited from parent rays)
 
valtype path
 length of ray path from source
 
int pcell [3]
 number of crosses of container boundary (inherited from parent rays), NOT USED?
 
bool absorbed
 flag to indicate that the ray was absorbed along the path (a<min_a)
 
bool runaway
 flag to indicate that the ray exited the confinement
 
valtype data = 0
 extra data to be tracked along the ray. May be set up/changed by scatter function of a scat_t class.
 

Detailed Description

Ray structure.


The documentation for this struct was generated from the following file: