Sources#
- class PlaneWave(wavelength, polarization, amplitude)[source]#
Bases:
PLANEWAVE
,BaseSource
- Parameters:
wavelength (Quantity)
polarization (Quantity | BasePolarization)
amplitude (Quantity)
- plot(color='red', opacity=0.8, show_axis_label=False)[source]#
Plots the 3D structure of the Gaussian source.
This method creates a 3D plot of the Gaussian source, adds the structure to the plot, and optionally displays axis labels.
- Parameters:
color (str) – The color of the structure in the plot. Default is ‘red’.
opacity (float) – The opacity of the structure. Default is 0.8.
show_axis_label (bool) – If True, axis labels will be shown. Default is False.
- Return type:
None
- class Gaussian(wavelength, polarization, optical_power, NA)[source]#
Bases:
GAUSSIAN
,BaseSource
- Parameters:
wavelength (Quantity)
polarization (Quantity | BasePolarization)
optical_power (Quantity)
NA (Quantity)
- amplitude: Quantity#
- plot(color='red', opacity=0.8, show_axis_label=False)[source]#
Plots the 3D structure of the Gaussian source.
This method creates a 3D plot of the Gaussian source, adds the structure to the plot, and optionally displays axis labels.
- Parameters:
color (str) – The color of the structure in the plot. Default is ‘red’.
opacity (float) – The opacity of the structure. Default is 0.8.
show_axis_label (bool) – If True, axis labels will be shown. Default is False.
- Return type:
None