Sources#

class PlaneWave(wavelength, polarization, amplitude)[source]#

Bases: BaseSource

Represents a Plane Wave light source with a specified amplitude.

Inherits from BaseSource and specifies amplitude directly.

Parameters:
  • wavelength (Quantity) – The wavelength(s) of the light source.

  • polarization (Union[UnitPolarizationAngle, Quantity]) – Polarization state of the light field, if float is given it is assumed Linear polarization of angle theta.

  • amplitude (Quantity) – The amplitude of the plane wave, in Watts.

amplitude: Quantity#
polarization: BasePolarization | Quantity#
wavelength: Quantity#
class Gaussian(wavelength, polarization, NA, optical_power)[source]#

Bases: BaseSource

Represents a Gaussian light source with a specified numerical aperture and optical power.

Inherits from BaseSource and adds specific attributes for Gaussian sources.

Parameters:
  • wavelength (Quantity) – The wavelength(s) of the light source.

  • polarization (Union[UnitPolarizationAngle, Quantity]) – Polarization state of the light field, if float is given it is assumed Linear polarization of angle theta.

  • NA (Quantity) – The numerical aperture(s) of the Gaussian source.

  • optical_power (Quantity) – The optical power of the source, in Watts.

NA: Quantity#
optical_power: Quantity#
polarization: BasePolarization | Quantity#
wavelength: Quantity#