pado.optical_element.height2phase

height2phase(height, wvl, RI, wrap=True)[source]

Convert material height to corresponding phase shift.

Calculates phase shift from material height using wavelength and refractive index.

Parameters:
  • height (float) – Height of material in meters

  • wvl (float) – Wavelength of light in meters

  • RI (float) – Refractive index of material at given wavelength

  • wrap (bool) – If True, wraps phase to [0,2π] range

Returns:

Phase change induced by material height

Return type:

torch.Tensor

Examples

>>> height = 500e-9  # 500nm height
>>> phase = height2phase(height, 633e-9, 1.5)