RCW Module

class pySCATMECH.rcw.RCW_Model(*args, **kwargs)

Class handling rigorous coupled wave (RCW) analysis for 1D gratings.

DiffractionAmplitude(i)

Returns the Jones matrix diffraction amplitude for the i-th diffraction order.

Parameters:

i (int) – Diffraction order

Returns:

amplitude – The Jones matrix diffraction amplitude for order i

Return type:

JonesMatrix

DiffractionEfficiency(i)

Returns the Mueller matrix diffraction efficiency for the i-th diffraction order.

Parameters:

i (int) – Diffraction order

Returns:

efficiency – The Mueller matrix diffraction efficiency for order i

Return type:

MuellerMatrix

Direction(i)

Returns a 3D unit vector [x,y,z] in the direction of propagation of the i-th diffraction order :param i: Diffraction order :type i: int

Returns:

direction – Directional cosines of diffracted order

Return type:

list of float

getEpsilon(x, z, direction='x')

Returns the grating dielectric constant at a specific location

Parameters:
  • x (float) – Location coordinates

  • z (float) – Location coordinates

  • direction (str, optional) – If the grating is anisotropic, then direction can be set to choose a particular field direction. Can be ‘x’, ‘y’, or ‘z’. (Default is ‘x’).

Returns:

epsilon – The dielectric constant evuated at the current wavelength and grating.

Return type:

complex

getGratingDefinition()

Returns the grating definition.

Returns:

  • Dictionary containing the following keys

  • ”position” (list of lists of x-positions of the transitions for) – each of the layers in the grating.

  • ”materialx” (list of lists of the dielectric constants (xx element)) – in each of the layers of the grating.

  • ”materialy” (list of lists of the dielectric constants (yy element)) – in each of the layers of the grating.

  • ”materialz” (list of lists of the dielectric constants (zz element)) – in each of the layers of the grating.

  • ”materialmux” (list of lists of the magnetic susceptibility (xx) – element) in each of the layers of the grating.

  • ”materialmuy” (list of lists of the magnetic susceptibility (yy) – element) in each of the layers of the grating.

  • ”materialmuz” (list of lists of the magnetic susceptibility (zz) – element) in each of the layers of the grating.

  • ”thickness” (list of thicknesses of each layer of the grating.)

  • ”heights” (list of the heights of each interface of the grating.)

  • If the grating is a Generic_Grating, then an additional key “segments”

  • contains a list of line segments for each of the boundaries, each

  • element a dict containing keys “x1”, “y1”, “x2”, “y2”, “mat1”, and

  • ”mat2”.