tidy3d.components.source.Source#

class Source[source]#

Bases: Box, AbstractSource, ABC

Abstract base class for all sources.

Parameters:
  • name (Optional[str] = None) โ€“ Optional name for the source.

  • center (Tuple[float, float, float] = (0.0, 0.0, 0.0)) โ€“ [units = um]. Center of object in x, y, and z.

  • size (Tuple[NonNegativeFloat, NonNegativeFloat, NonNegativeFloat]) โ€“ [units = um]. Size in x, y, and z directions.

  • source_time (Union[GaussianPulse, ContinuousWave, CustomSourceTime]) โ€“ Specification of the source time-dependence.

Attributes

geometry

Box representation of source.

plot_params

Default parameters for plotting a Source object.

Methods

plot([x,ย y,ย z,ย ax])

Plot this source.

source_time#
property plot_params#

Default parameters for plotting a Source object.

property geometry#

Box representation of source.

plot(x=None, y=None, z=None, ax=None, **patch_kwargs)[source]#

Plot this source.

__hash__()#

Hash method.